configure 600 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for glog 0.3.5.
  4. #
  5. # Report bugs to <opensource@google.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: opensource@google.com about your system, including any
  260. $0: error possibly output before this message. Then install
  261. $0: a modern shell, or manually run the script under such a
  262. $0: 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='glog'
  542. PACKAGE_TARNAME='glog'
  543. PACKAGE_VERSION='0.3.5'
  544. PACKAGE_STRING='glog 0.3.5'
  545. PACKAGE_BUGREPORT='opensource@google.com'
  546. PACKAGE_URL=''
  547. ac_unique_file="README"
  548. # Factoring default headers for most tests.
  549. ac_includes_default="\
  550. #include <stdio.h>
  551. #ifdef HAVE_SYS_TYPES_H
  552. # include <sys/types.h>
  553. #endif
  554. #ifdef HAVE_SYS_STAT_H
  555. # include <sys/stat.h>
  556. #endif
  557. #ifdef STDC_HEADERS
  558. # include <stdlib.h>
  559. # include <stddef.h>
  560. #else
  561. # ifdef HAVE_STDLIB_H
  562. # include <stdlib.h>
  563. # endif
  564. #endif
  565. #ifdef HAVE_STRING_H
  566. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  567. # include <memory.h>
  568. # endif
  569. # include <string.h>
  570. #endif
  571. #ifdef HAVE_STRINGS_H
  572. # include <strings.h>
  573. #endif
  574. #ifdef HAVE_INTTYPES_H
  575. # include <inttypes.h>
  576. #endif
  577. #ifdef HAVE_STDINT_H
  578. # include <stdint.h>
  579. #endif
  580. #ifdef HAVE_UNISTD_H
  581. # include <unistd.h>
  582. #endif"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LIBOBJS
  587. GMOCK_LIBS
  588. GTEST_LIBS
  589. GFLAGS_LIBS
  590. MINGW_CFLAGS
  591. GMOCK_CFLAGS
  592. GTEST_CFLAGS
  593. GFLAGS_CFLAGS
  594. ac_cv_have_libgflags
  595. ac_cv_have___uint16
  596. ac_cv_have_u_int16_t
  597. ac_cv_have_uint16_t
  598. ac_cv_have_unistd_h
  599. ac_cv_have_inttypes_h
  600. ac_cv_have_systypes_h
  601. ac_cv_have_stdint_h
  602. ac_cv_have___builtin_expect
  603. ac_cv___attribute___printf_4_5
  604. ac_cv___attribute___noinline
  605. ac_cv___attribute___noreturn
  606. ac_cv_cxx_using_operator
  607. ac_google_namespace
  608. ac_google_end_namespace
  609. ac_google_start_namespace
  610. UNWIND_LIBS
  611. HAVE_GMOCK_FALSE
  612. HAVE_GMOCK_TRUE
  613. GMOCK_CONFIG
  614. GTEST_CONFIG
  615. PTHREAD_CFLAGS
  616. PTHREAD_LIBS
  617. PTHREAD_CC
  618. acx_pthread_config
  619. DISABLE_RTTI_FALSE
  620. DISABLE_RTTI_TRUE
  621. X86_64_FALSE
  622. X86_64_TRUE
  623. ENABLE_FRAME_POINTERS_FALSE
  624. ENABLE_FRAME_POINTERS_TRUE
  625. LIBTOOL_DEPS
  626. CXXCPP
  627. OTOOL64
  628. OTOOL
  629. LIPO
  630. NMEDIT
  631. DSYMUTIL
  632. MANIFEST_TOOL
  633. RANLIB
  634. ac_ct_AR
  635. AR
  636. DLLTOOL
  637. OBJDUMP
  638. LN_S
  639. NM
  640. ac_ct_DUMPBIN
  641. DUMPBIN
  642. LD
  643. FGREP
  644. EGREP
  645. GREP
  646. SED
  647. host_os
  648. host_vendor
  649. host_cpu
  650. host
  651. build_os
  652. build_vendor
  653. build_cpu
  654. build
  655. LIBTOOL
  656. GCC_FALSE
  657. GCC_TRUE
  658. am__fastdepCXX_FALSE
  659. am__fastdepCXX_TRUE
  660. CXXDEPMODE
  661. ac_ct_CXX
  662. CXXFLAGS
  663. CXX
  664. CPP
  665. am__fastdepCC_FALSE
  666. am__fastdepCC_TRUE
  667. CCDEPMODE
  668. am__nodep
  669. AMDEPBACKSLASH
  670. AMDEP_FALSE
  671. AMDEP_TRUE
  672. am__quote
  673. am__include
  674. DEPDIR
  675. OBJEXT
  676. EXEEXT
  677. ac_ct_CC
  678. CPPFLAGS
  679. LDFLAGS
  680. CFLAGS
  681. CC
  682. AM_BACKSLASH
  683. AM_DEFAULT_VERBOSITY
  684. AM_DEFAULT_V
  685. AM_V
  686. am__untar
  687. am__tar
  688. AMTAR
  689. am__leading_dot
  690. SET_MAKE
  691. AWK
  692. mkdir_p
  693. MKDIR_P
  694. INSTALL_STRIP_PROGRAM
  695. STRIP
  696. install_sh
  697. MAKEINFO
  698. AUTOHEADER
  699. AUTOMAKE
  700. AUTOCONF
  701. ACLOCAL
  702. VERSION
  703. PACKAGE
  704. CYGPATH_W
  705. am__isrc
  706. INSTALL_DATA
  707. INSTALL_SCRIPT
  708. INSTALL_PROGRAM
  709. target_alias
  710. host_alias
  711. build_alias
  712. LIBS
  713. ECHO_T
  714. ECHO_N
  715. ECHO_C
  716. DEFS
  717. mandir
  718. localedir
  719. libdir
  720. psdir
  721. pdfdir
  722. dvidir
  723. htmldir
  724. infodir
  725. docdir
  726. oldincludedir
  727. includedir
  728. localstatedir
  729. sharedstatedir
  730. sysconfdir
  731. datadir
  732. datarootdir
  733. libexecdir
  734. sbindir
  735. bindir
  736. program_transform_name
  737. prefix
  738. exec_prefix
  739. PACKAGE_URL
  740. PACKAGE_BUGREPORT
  741. PACKAGE_STRING
  742. PACKAGE_VERSION
  743. PACKAGE_TARNAME
  744. PACKAGE_NAME
  745. PATH_SEPARATOR
  746. SHELL'
  747. ac_subst_files=''
  748. ac_user_opts='
  749. enable_option_checking
  750. enable_silent_rules
  751. enable_dependency_tracking
  752. enable_shared
  753. enable_static
  754. with_pic
  755. enable_fast_install
  756. with_gnu_ld
  757. with_sysroot
  758. enable_libtool_lock
  759. enable_frame_pointers
  760. enable_rtti
  761. with_gflags
  762. enable_namespace
  763. '
  764. ac_precious_vars='build_alias
  765. host_alias
  766. target_alias
  767. CC
  768. CFLAGS
  769. LDFLAGS
  770. LIBS
  771. CPPFLAGS
  772. CPP
  773. CXX
  774. CXXFLAGS
  775. CCC
  776. CXXCPP'
  777. # Initialize some variables set by options.
  778. ac_init_help=
  779. ac_init_version=false
  780. ac_unrecognized_opts=
  781. ac_unrecognized_sep=
  782. # The variables have the same names as the options, with
  783. # dashes changed to underlines.
  784. cache_file=/dev/null
  785. exec_prefix=NONE
  786. no_create=
  787. no_recursion=
  788. prefix=NONE
  789. program_prefix=NONE
  790. program_suffix=NONE
  791. program_transform_name=s,x,x,
  792. silent=
  793. site=
  794. srcdir=
  795. verbose=
  796. x_includes=NONE
  797. x_libraries=NONE
  798. # Installation directory options.
  799. # These are left unexpanded so users can "make install exec_prefix=/foo"
  800. # and all the variables that are supposed to be based on exec_prefix
  801. # by default will actually change.
  802. # Use braces instead of parens because sh, perl, etc. also accept them.
  803. # (The list follows the same order as the GNU Coding Standards.)
  804. bindir='${exec_prefix}/bin'
  805. sbindir='${exec_prefix}/sbin'
  806. libexecdir='${exec_prefix}/libexec'
  807. datarootdir='${prefix}/share'
  808. datadir='${datarootdir}'
  809. sysconfdir='${prefix}/etc'
  810. sharedstatedir='${prefix}/com'
  811. localstatedir='${prefix}/var'
  812. includedir='${prefix}/include'
  813. oldincludedir='/usr/include'
  814. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  815. infodir='${datarootdir}/info'
  816. htmldir='${docdir}'
  817. dvidir='${docdir}'
  818. pdfdir='${docdir}'
  819. psdir='${docdir}'
  820. libdir='${exec_prefix}/lib'
  821. localedir='${datarootdir}/locale'
  822. mandir='${datarootdir}/man'
  823. ac_prev=
  824. ac_dashdash=
  825. for ac_option
  826. do
  827. # If the previous option needs an argument, assign it.
  828. if test -n "$ac_prev"; then
  829. eval $ac_prev=\$ac_option
  830. ac_prev=
  831. continue
  832. fi
  833. case $ac_option in
  834. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  835. *=) ac_optarg= ;;
  836. *) ac_optarg=yes ;;
  837. esac
  838. # Accept the important Cygnus configure options, so we can diagnose typos.
  839. case $ac_dashdash$ac_option in
  840. --)
  841. ac_dashdash=yes ;;
  842. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  843. ac_prev=bindir ;;
  844. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  845. bindir=$ac_optarg ;;
  846. -build | --build | --buil | --bui | --bu)
  847. ac_prev=build_alias ;;
  848. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  849. build_alias=$ac_optarg ;;
  850. -cache-file | --cache-file | --cache-fil | --cache-fi \
  851. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  852. ac_prev=cache_file ;;
  853. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  854. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  855. cache_file=$ac_optarg ;;
  856. --config-cache | -C)
  857. cache_file=config.cache ;;
  858. -datadir | --datadir | --datadi | --datad)
  859. ac_prev=datadir ;;
  860. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  861. datadir=$ac_optarg ;;
  862. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  863. | --dataroo | --dataro | --datar)
  864. ac_prev=datarootdir ;;
  865. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  866. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  867. datarootdir=$ac_optarg ;;
  868. -disable-* | --disable-*)
  869. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  870. # Reject names that are not valid shell variable names.
  871. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  872. as_fn_error $? "invalid feature name: $ac_useropt"
  873. ac_useropt_orig=$ac_useropt
  874. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  875. case $ac_user_opts in
  876. *"
  877. "enable_$ac_useropt"
  878. "*) ;;
  879. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  880. ac_unrecognized_sep=', ';;
  881. esac
  882. eval enable_$ac_useropt=no ;;
  883. -docdir | --docdir | --docdi | --doc | --do)
  884. ac_prev=docdir ;;
  885. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  886. docdir=$ac_optarg ;;
  887. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  888. ac_prev=dvidir ;;
  889. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  890. dvidir=$ac_optarg ;;
  891. -enable-* | --enable-*)
  892. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  893. # Reject names that are not valid shell variable names.
  894. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  895. as_fn_error $? "invalid feature name: $ac_useropt"
  896. ac_useropt_orig=$ac_useropt
  897. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  898. case $ac_user_opts in
  899. *"
  900. "enable_$ac_useropt"
  901. "*) ;;
  902. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  903. ac_unrecognized_sep=', ';;
  904. esac
  905. eval enable_$ac_useropt=\$ac_optarg ;;
  906. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  907. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  908. | --exec | --exe | --ex)
  909. ac_prev=exec_prefix ;;
  910. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  911. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  912. | --exec=* | --exe=* | --ex=*)
  913. exec_prefix=$ac_optarg ;;
  914. -gas | --gas | --ga | --g)
  915. # Obsolete; use --with-gas.
  916. with_gas=yes ;;
  917. -help | --help | --hel | --he | -h)
  918. ac_init_help=long ;;
  919. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  920. ac_init_help=recursive ;;
  921. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  922. ac_init_help=short ;;
  923. -host | --host | --hos | --ho)
  924. ac_prev=host_alias ;;
  925. -host=* | --host=* | --hos=* | --ho=*)
  926. host_alias=$ac_optarg ;;
  927. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  928. ac_prev=htmldir ;;
  929. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  930. | --ht=*)
  931. htmldir=$ac_optarg ;;
  932. -includedir | --includedir | --includedi | --included | --include \
  933. | --includ | --inclu | --incl | --inc)
  934. ac_prev=includedir ;;
  935. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  936. | --includ=* | --inclu=* | --incl=* | --inc=*)
  937. includedir=$ac_optarg ;;
  938. -infodir | --infodir | --infodi | --infod | --info | --inf)
  939. ac_prev=infodir ;;
  940. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  941. infodir=$ac_optarg ;;
  942. -libdir | --libdir | --libdi | --libd)
  943. ac_prev=libdir ;;
  944. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  945. libdir=$ac_optarg ;;
  946. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  947. | --libexe | --libex | --libe)
  948. ac_prev=libexecdir ;;
  949. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  950. | --libexe=* | --libex=* | --libe=*)
  951. libexecdir=$ac_optarg ;;
  952. -localedir | --localedir | --localedi | --localed | --locale)
  953. ac_prev=localedir ;;
  954. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  955. localedir=$ac_optarg ;;
  956. -localstatedir | --localstatedir | --localstatedi | --localstated \
  957. | --localstate | --localstat | --localsta | --localst | --locals)
  958. ac_prev=localstatedir ;;
  959. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  960. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  961. localstatedir=$ac_optarg ;;
  962. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  963. ac_prev=mandir ;;
  964. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  965. mandir=$ac_optarg ;;
  966. -nfp | --nfp | --nf)
  967. # Obsolete; use --without-fp.
  968. with_fp=no ;;
  969. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  970. | --no-cr | --no-c | -n)
  971. no_create=yes ;;
  972. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  973. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  974. no_recursion=yes ;;
  975. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  976. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  977. | --oldin | --oldi | --old | --ol | --o)
  978. ac_prev=oldincludedir ;;
  979. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  980. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  981. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  982. oldincludedir=$ac_optarg ;;
  983. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  984. ac_prev=prefix ;;
  985. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  986. prefix=$ac_optarg ;;
  987. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  988. | --program-pre | --program-pr | --program-p)
  989. ac_prev=program_prefix ;;
  990. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  991. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  992. program_prefix=$ac_optarg ;;
  993. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  994. | --program-suf | --program-su | --program-s)
  995. ac_prev=program_suffix ;;
  996. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  997. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  998. program_suffix=$ac_optarg ;;
  999. -program-transform-name | --program-transform-name \
  1000. | --program-transform-nam | --program-transform-na \
  1001. | --program-transform-n | --program-transform- \
  1002. | --program-transform | --program-transfor \
  1003. | --program-transfo | --program-transf \
  1004. | --program-trans | --program-tran \
  1005. | --progr-tra | --program-tr | --program-t)
  1006. ac_prev=program_transform_name ;;
  1007. -program-transform-name=* | --program-transform-name=* \
  1008. | --program-transform-nam=* | --program-transform-na=* \
  1009. | --program-transform-n=* | --program-transform-=* \
  1010. | --program-transform=* | --program-transfor=* \
  1011. | --program-transfo=* | --program-transf=* \
  1012. | --program-trans=* | --program-tran=* \
  1013. | --progr-tra=* | --program-tr=* | --program-t=*)
  1014. program_transform_name=$ac_optarg ;;
  1015. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1016. ac_prev=pdfdir ;;
  1017. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1018. pdfdir=$ac_optarg ;;
  1019. -psdir | --psdir | --psdi | --psd | --ps)
  1020. ac_prev=psdir ;;
  1021. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1022. psdir=$ac_optarg ;;
  1023. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1024. | -silent | --silent | --silen | --sile | --sil)
  1025. silent=yes ;;
  1026. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1027. ac_prev=sbindir ;;
  1028. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1029. | --sbi=* | --sb=*)
  1030. sbindir=$ac_optarg ;;
  1031. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1032. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1033. | --sharedst | --shareds | --shared | --share | --shar \
  1034. | --sha | --sh)
  1035. ac_prev=sharedstatedir ;;
  1036. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1037. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1038. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1039. | --sha=* | --sh=*)
  1040. sharedstatedir=$ac_optarg ;;
  1041. -site | --site | --sit)
  1042. ac_prev=site ;;
  1043. -site=* | --site=* | --sit=*)
  1044. site=$ac_optarg ;;
  1045. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1046. ac_prev=srcdir ;;
  1047. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1048. srcdir=$ac_optarg ;;
  1049. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1050. | --syscon | --sysco | --sysc | --sys | --sy)
  1051. ac_prev=sysconfdir ;;
  1052. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1053. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1054. sysconfdir=$ac_optarg ;;
  1055. -target | --target | --targe | --targ | --tar | --ta | --t)
  1056. ac_prev=target_alias ;;
  1057. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1058. target_alias=$ac_optarg ;;
  1059. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1060. verbose=yes ;;
  1061. -version | --version | --versio | --versi | --vers | -V)
  1062. ac_init_version=: ;;
  1063. -with-* | --with-*)
  1064. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1065. # Reject names that are not valid shell variable names.
  1066. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1067. as_fn_error $? "invalid package name: $ac_useropt"
  1068. ac_useropt_orig=$ac_useropt
  1069. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1070. case $ac_user_opts in
  1071. *"
  1072. "with_$ac_useropt"
  1073. "*) ;;
  1074. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1075. ac_unrecognized_sep=', ';;
  1076. esac
  1077. eval with_$ac_useropt=\$ac_optarg ;;
  1078. -without-* | --without-*)
  1079. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1080. # Reject names that are not valid shell variable names.
  1081. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1082. as_fn_error $? "invalid package name: $ac_useropt"
  1083. ac_useropt_orig=$ac_useropt
  1084. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1085. case $ac_user_opts in
  1086. *"
  1087. "with_$ac_useropt"
  1088. "*) ;;
  1089. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1090. ac_unrecognized_sep=', ';;
  1091. esac
  1092. eval with_$ac_useropt=no ;;
  1093. --x)
  1094. # Obsolete; use --with-x.
  1095. with_x=yes ;;
  1096. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1097. | --x-incl | --x-inc | --x-in | --x-i)
  1098. ac_prev=x_includes ;;
  1099. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1100. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1101. x_includes=$ac_optarg ;;
  1102. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1103. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1104. ac_prev=x_libraries ;;
  1105. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1106. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1107. x_libraries=$ac_optarg ;;
  1108. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1109. Try \`$0 --help' for more information"
  1110. ;;
  1111. *=*)
  1112. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1113. # Reject names that are not valid shell variable names.
  1114. case $ac_envvar in #(
  1115. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1116. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1117. esac
  1118. eval $ac_envvar=\$ac_optarg
  1119. export $ac_envvar ;;
  1120. *)
  1121. # FIXME: should be removed in autoconf 3.0.
  1122. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1123. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1124. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1125. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1126. ;;
  1127. esac
  1128. done
  1129. if test -n "$ac_prev"; then
  1130. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1131. as_fn_error $? "missing argument to $ac_option"
  1132. fi
  1133. if test -n "$ac_unrecognized_opts"; then
  1134. case $enable_option_checking in
  1135. no) ;;
  1136. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1137. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1138. esac
  1139. fi
  1140. # Check all directory arguments for consistency.
  1141. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1142. datadir sysconfdir sharedstatedir localstatedir includedir \
  1143. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1144. libdir localedir mandir
  1145. do
  1146. eval ac_val=\$$ac_var
  1147. # Remove trailing slashes.
  1148. case $ac_val in
  1149. */ )
  1150. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1151. eval $ac_var=\$ac_val;;
  1152. esac
  1153. # Be sure to have absolute directory names.
  1154. case $ac_val in
  1155. [\\/$]* | ?:[\\/]* ) continue;;
  1156. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1157. esac
  1158. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1159. done
  1160. # There might be people who depend on the old broken behavior: `$host'
  1161. # used to hold the argument of --host etc.
  1162. # FIXME: To remove some day.
  1163. build=$build_alias
  1164. host=$host_alias
  1165. target=$target_alias
  1166. # FIXME: To remove some day.
  1167. if test "x$host_alias" != x; then
  1168. if test "x$build_alias" = x; then
  1169. cross_compiling=maybe
  1170. elif test "x$build_alias" != "x$host_alias"; then
  1171. cross_compiling=yes
  1172. fi
  1173. fi
  1174. ac_tool_prefix=
  1175. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1176. test "$silent" = yes && exec 6>/dev/null
  1177. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1178. ac_ls_di=`ls -di .` &&
  1179. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1180. as_fn_error $? "working directory cannot be determined"
  1181. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1182. as_fn_error $? "pwd does not report name of working directory"
  1183. # Find the source files, if location was not specified.
  1184. if test -z "$srcdir"; then
  1185. ac_srcdir_defaulted=yes
  1186. # Try the directory containing this script, then the parent directory.
  1187. ac_confdir=`$as_dirname -- "$as_myself" ||
  1188. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1189. X"$as_myself" : 'X\(//\)[^/]' \| \
  1190. X"$as_myself" : 'X\(//\)$' \| \
  1191. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1192. $as_echo X"$as_myself" |
  1193. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1194. s//\1/
  1195. q
  1196. }
  1197. /^X\(\/\/\)[^/].*/{
  1198. s//\1/
  1199. q
  1200. }
  1201. /^X\(\/\/\)$/{
  1202. s//\1/
  1203. q
  1204. }
  1205. /^X\(\/\).*/{
  1206. s//\1/
  1207. q
  1208. }
  1209. s/.*/./; q'`
  1210. srcdir=$ac_confdir
  1211. if test ! -r "$srcdir/$ac_unique_file"; then
  1212. srcdir=..
  1213. fi
  1214. else
  1215. ac_srcdir_defaulted=no
  1216. fi
  1217. if test ! -r "$srcdir/$ac_unique_file"; then
  1218. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1219. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1220. fi
  1221. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1222. ac_abs_confdir=`(
  1223. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1224. pwd)`
  1225. # When building in place, set srcdir=.
  1226. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1227. srcdir=.
  1228. fi
  1229. # Remove unnecessary trailing slashes from srcdir.
  1230. # Double slashes in file names in object file debugging info
  1231. # mess up M-x gdb in Emacs.
  1232. case $srcdir in
  1233. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1234. esac
  1235. for ac_var in $ac_precious_vars; do
  1236. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1237. eval ac_env_${ac_var}_value=\$${ac_var}
  1238. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1239. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1240. done
  1241. #
  1242. # Report the --help message.
  1243. #
  1244. if test "$ac_init_help" = "long"; then
  1245. # Omit some internal or obsolete options to make the list less imposing.
  1246. # This message is too long to be a string in the A/UX 3.1 sh.
  1247. cat <<_ACEOF
  1248. \`configure' configures glog 0.3.5 to adapt to many kinds of systems.
  1249. Usage: $0 [OPTION]... [VAR=VALUE]...
  1250. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1251. VAR=VALUE. See below for descriptions of some of the useful variables.
  1252. Defaults for the options are specified in brackets.
  1253. Configuration:
  1254. -h, --help display this help and exit
  1255. --help=short display options specific to this package
  1256. --help=recursive display the short help of all the included packages
  1257. -V, --version display version information and exit
  1258. -q, --quiet, --silent do not print \`checking ...' messages
  1259. --cache-file=FILE cache test results in FILE [disabled]
  1260. -C, --config-cache alias for \`--cache-file=config.cache'
  1261. -n, --no-create do not create output files
  1262. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1263. Installation directories:
  1264. --prefix=PREFIX install architecture-independent files in PREFIX
  1265. [$ac_default_prefix]
  1266. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1267. [PREFIX]
  1268. By default, \`make install' will install all the files in
  1269. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1270. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1271. for instance \`--prefix=\$HOME'.
  1272. For better control, use the options below.
  1273. Fine tuning of the installation directories:
  1274. --bindir=DIR user executables [EPREFIX/bin]
  1275. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1276. --libexecdir=DIR program executables [EPREFIX/libexec]
  1277. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1278. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1279. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1280. --libdir=DIR object code libraries [EPREFIX/lib]
  1281. --includedir=DIR C header files [PREFIX/include]
  1282. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1283. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1284. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1285. --infodir=DIR info documentation [DATAROOTDIR/info]
  1286. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1287. --mandir=DIR man documentation [DATAROOTDIR/man]
  1288. --docdir=DIR documentation root [DATAROOTDIR/doc/glog]
  1289. --htmldir=DIR html documentation [DOCDIR]
  1290. --dvidir=DIR dvi documentation [DOCDIR]
  1291. --pdfdir=DIR pdf documentation [DOCDIR]
  1292. --psdir=DIR ps documentation [DOCDIR]
  1293. _ACEOF
  1294. cat <<\_ACEOF
  1295. Program names:
  1296. --program-prefix=PREFIX prepend PREFIX to installed program names
  1297. --program-suffix=SUFFIX append SUFFIX to installed program names
  1298. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1299. System types:
  1300. --build=BUILD configure for building on BUILD [guessed]
  1301. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1302. _ACEOF
  1303. fi
  1304. if test -n "$ac_init_help"; then
  1305. case $ac_init_help in
  1306. short | recursive ) echo "Configuration of glog 0.3.5:";;
  1307. esac
  1308. cat <<\_ACEOF
  1309. Optional Features:
  1310. --disable-option-checking ignore unrecognized --enable/--with options
  1311. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1312. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1313. --enable-silent-rules less verbose build output (undo: "make V=1")
  1314. --disable-silent-rules verbose build output (undo: "make V=0")
  1315. --enable-dependency-tracking
  1316. do not reject slow dependency extractors
  1317. --disable-dependency-tracking
  1318. speeds up one-time build
  1319. --enable-shared[=PKGS] build shared libraries [default=yes]
  1320. --enable-static[=PKGS] build static libraries [default=yes]
  1321. --enable-fast-install[=PKGS]
  1322. optimize for fast installation [default=yes]
  1323. --disable-libtool-lock avoid locking (might break parallel builds)
  1324. --enable-frame-pointers On x86_64 systems, compile with
  1325. -fno-omit-frame-pointer (see INSTALL)
  1326. --disable-rtti Disable RTTI in glog
  1327. --enable-namespace=FOO to define these Google
  1328. classes in the FOO namespace. --disable-namespace
  1329. to define them in the global namespace. Default
  1330. is to define them in namespace google.
  1331. Optional Packages:
  1332. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1333. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1334. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1335. both]
  1336. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1337. --with-sysroot=DIR Search for dependent libraries within DIR
  1338. (or the compiler's sysroot if not specified).
  1339. --with-gflags=GFLAGS_DIR
  1340. Some influential environment variables:
  1341. CC C compiler command
  1342. CFLAGS C compiler flags
  1343. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1344. nonstandard directory <lib dir>
  1345. LIBS libraries to pass to the linker, e.g. -l<library>
  1346. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1347. you have headers in a nonstandard directory <include dir>
  1348. CPP C preprocessor
  1349. CXX C++ compiler command
  1350. CXXFLAGS C++ compiler flags
  1351. CXXCPP C++ preprocessor
  1352. Use these variables to override the choices made by `configure' or to help
  1353. it to find libraries and programs with nonstandard names/locations.
  1354. Report bugs to <opensource@google.com>.
  1355. _ACEOF
  1356. ac_status=$?
  1357. fi
  1358. if test "$ac_init_help" = "recursive"; then
  1359. # If there are subdirs, report their specific --help.
  1360. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1361. test -d "$ac_dir" ||
  1362. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1363. continue
  1364. ac_builddir=.
  1365. case "$ac_dir" in
  1366. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1367. *)
  1368. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1369. # A ".." for each directory in $ac_dir_suffix.
  1370. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1371. case $ac_top_builddir_sub in
  1372. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1373. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1374. esac ;;
  1375. esac
  1376. ac_abs_top_builddir=$ac_pwd
  1377. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1378. # for backward compatibility:
  1379. ac_top_builddir=$ac_top_build_prefix
  1380. case $srcdir in
  1381. .) # We are building in place.
  1382. ac_srcdir=.
  1383. ac_top_srcdir=$ac_top_builddir_sub
  1384. ac_abs_top_srcdir=$ac_pwd ;;
  1385. [\\/]* | ?:[\\/]* ) # Absolute name.
  1386. ac_srcdir=$srcdir$ac_dir_suffix;
  1387. ac_top_srcdir=$srcdir
  1388. ac_abs_top_srcdir=$srcdir ;;
  1389. *) # Relative name.
  1390. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1391. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1392. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1393. esac
  1394. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1395. cd "$ac_dir" || { ac_status=$?; continue; }
  1396. # Check for guested configure.
  1397. if test -f "$ac_srcdir/configure.gnu"; then
  1398. echo &&
  1399. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1400. elif test -f "$ac_srcdir/configure"; then
  1401. echo &&
  1402. $SHELL "$ac_srcdir/configure" --help=recursive
  1403. else
  1404. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1405. fi || ac_status=$?
  1406. cd "$ac_pwd" || { ac_status=$?; break; }
  1407. done
  1408. fi
  1409. test -n "$ac_init_help" && exit $ac_status
  1410. if $ac_init_version; then
  1411. cat <<\_ACEOF
  1412. glog configure 0.3.5
  1413. generated by GNU Autoconf 2.69
  1414. Copyright (C) 2012 Free Software Foundation, Inc.
  1415. This configure script is free software; the Free Software Foundation
  1416. gives unlimited permission to copy, distribute and modify it.
  1417. _ACEOF
  1418. exit
  1419. fi
  1420. ## ------------------------ ##
  1421. ## Autoconf initialization. ##
  1422. ## ------------------------ ##
  1423. # ac_fn_c_try_compile LINENO
  1424. # --------------------------
  1425. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1426. ac_fn_c_try_compile ()
  1427. {
  1428. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1429. rm -f conftest.$ac_objext
  1430. if { { ac_try="$ac_compile"
  1431. case "(($ac_try" in
  1432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1433. *) ac_try_echo=$ac_try;;
  1434. esac
  1435. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1436. $as_echo "$ac_try_echo"; } >&5
  1437. (eval "$ac_compile") 2>conftest.err
  1438. ac_status=$?
  1439. if test -s conftest.err; then
  1440. grep -v '^ *+' conftest.err >conftest.er1
  1441. cat conftest.er1 >&5
  1442. mv -f conftest.er1 conftest.err
  1443. fi
  1444. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1445. test $ac_status = 0; } && {
  1446. test -z "$ac_c_werror_flag" ||
  1447. test ! -s conftest.err
  1448. } && test -s conftest.$ac_objext; then :
  1449. ac_retval=0
  1450. else
  1451. $as_echo "$as_me: failed program was:" >&5
  1452. sed 's/^/| /' conftest.$ac_ext >&5
  1453. ac_retval=1
  1454. fi
  1455. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1456. as_fn_set_status $ac_retval
  1457. } # ac_fn_c_try_compile
  1458. # ac_fn_c_try_cpp LINENO
  1459. # ----------------------
  1460. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1461. ac_fn_c_try_cpp ()
  1462. {
  1463. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1464. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1465. case "(($ac_try" in
  1466. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1467. *) ac_try_echo=$ac_try;;
  1468. esac
  1469. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1470. $as_echo "$ac_try_echo"; } >&5
  1471. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1472. ac_status=$?
  1473. if test -s conftest.err; then
  1474. grep -v '^ *+' conftest.err >conftest.er1
  1475. cat conftest.er1 >&5
  1476. mv -f conftest.er1 conftest.err
  1477. fi
  1478. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1479. test $ac_status = 0; } > conftest.i && {
  1480. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1481. test ! -s conftest.err
  1482. }; then :
  1483. ac_retval=0
  1484. else
  1485. $as_echo "$as_me: failed program was:" >&5
  1486. sed 's/^/| /' conftest.$ac_ext >&5
  1487. ac_retval=1
  1488. fi
  1489. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1490. as_fn_set_status $ac_retval
  1491. } # ac_fn_c_try_cpp
  1492. # ac_fn_cxx_try_compile LINENO
  1493. # ----------------------------
  1494. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1495. ac_fn_cxx_try_compile ()
  1496. {
  1497. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1498. rm -f conftest.$ac_objext
  1499. if { { ac_try="$ac_compile"
  1500. case "(($ac_try" in
  1501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1502. *) ac_try_echo=$ac_try;;
  1503. esac
  1504. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1505. $as_echo "$ac_try_echo"; } >&5
  1506. (eval "$ac_compile") 2>conftest.err
  1507. ac_status=$?
  1508. if test -s conftest.err; then
  1509. grep -v '^ *+' conftest.err >conftest.er1
  1510. cat conftest.er1 >&5
  1511. mv -f conftest.er1 conftest.err
  1512. fi
  1513. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1514. test $ac_status = 0; } && {
  1515. test -z "$ac_cxx_werror_flag" ||
  1516. test ! -s conftest.err
  1517. } && test -s conftest.$ac_objext; then :
  1518. ac_retval=0
  1519. else
  1520. $as_echo "$as_me: failed program was:" >&5
  1521. sed 's/^/| /' conftest.$ac_ext >&5
  1522. ac_retval=1
  1523. fi
  1524. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1525. as_fn_set_status $ac_retval
  1526. } # ac_fn_cxx_try_compile
  1527. # ac_fn_c_try_link LINENO
  1528. # -----------------------
  1529. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1530. ac_fn_c_try_link ()
  1531. {
  1532. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1533. rm -f conftest.$ac_objext conftest$ac_exeext
  1534. if { { ac_try="$ac_link"
  1535. case "(($ac_try" in
  1536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1537. *) ac_try_echo=$ac_try;;
  1538. esac
  1539. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1540. $as_echo "$ac_try_echo"; } >&5
  1541. (eval "$ac_link") 2>conftest.err
  1542. ac_status=$?
  1543. if test -s conftest.err; then
  1544. grep -v '^ *+' conftest.err >conftest.er1
  1545. cat conftest.er1 >&5
  1546. mv -f conftest.er1 conftest.err
  1547. fi
  1548. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1549. test $ac_status = 0; } && {
  1550. test -z "$ac_c_werror_flag" ||
  1551. test ! -s conftest.err
  1552. } && test -s conftest$ac_exeext && {
  1553. test "$cross_compiling" = yes ||
  1554. test -x conftest$ac_exeext
  1555. }; then :
  1556. ac_retval=0
  1557. else
  1558. $as_echo "$as_me: failed program was:" >&5
  1559. sed 's/^/| /' conftest.$ac_ext >&5
  1560. ac_retval=1
  1561. fi
  1562. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1563. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1564. # interfere with the next link command; also delete a directory that is
  1565. # left behind by Apple's compiler. We do this before executing the actions.
  1566. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1567. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1568. as_fn_set_status $ac_retval
  1569. } # ac_fn_c_try_link
  1570. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1571. # -------------------------------------------------------
  1572. # Tests whether HEADER exists and can be compiled using the include files in
  1573. # INCLUDES, setting the cache variable VAR accordingly.
  1574. ac_fn_c_check_header_compile ()
  1575. {
  1576. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1578. $as_echo_n "checking for $2... " >&6; }
  1579. if eval \${$3+:} false; then :
  1580. $as_echo_n "(cached) " >&6
  1581. else
  1582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1583. /* end confdefs.h. */
  1584. $4
  1585. #include <$2>
  1586. _ACEOF
  1587. if ac_fn_c_try_compile "$LINENO"; then :
  1588. eval "$3=yes"
  1589. else
  1590. eval "$3=no"
  1591. fi
  1592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1593. fi
  1594. eval ac_res=\$$3
  1595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1596. $as_echo "$ac_res" >&6; }
  1597. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1598. } # ac_fn_c_check_header_compile
  1599. # ac_fn_c_try_run LINENO
  1600. # ----------------------
  1601. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1602. # that executables *can* be run.
  1603. ac_fn_c_try_run ()
  1604. {
  1605. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1606. if { { ac_try="$ac_link"
  1607. case "(($ac_try" in
  1608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1609. *) ac_try_echo=$ac_try;;
  1610. esac
  1611. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1612. $as_echo "$ac_try_echo"; } >&5
  1613. (eval "$ac_link") 2>&5
  1614. ac_status=$?
  1615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1616. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1617. { { case "(($ac_try" in
  1618. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1619. *) ac_try_echo=$ac_try;;
  1620. esac
  1621. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1622. $as_echo "$ac_try_echo"; } >&5
  1623. (eval "$ac_try") 2>&5
  1624. ac_status=$?
  1625. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1626. test $ac_status = 0; }; }; then :
  1627. ac_retval=0
  1628. else
  1629. $as_echo "$as_me: program exited with status $ac_status" >&5
  1630. $as_echo "$as_me: failed program was:" >&5
  1631. sed 's/^/| /' conftest.$ac_ext >&5
  1632. ac_retval=$ac_status
  1633. fi
  1634. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1635. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1636. as_fn_set_status $ac_retval
  1637. } # ac_fn_c_try_run
  1638. # ac_fn_c_check_func LINENO FUNC VAR
  1639. # ----------------------------------
  1640. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1641. ac_fn_c_check_func ()
  1642. {
  1643. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1645. $as_echo_n "checking for $2... " >&6; }
  1646. if eval \${$3+:} false; then :
  1647. $as_echo_n "(cached) " >&6
  1648. else
  1649. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1650. /* end confdefs.h. */
  1651. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1652. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1653. #define $2 innocuous_$2
  1654. /* System header to define __stub macros and hopefully few prototypes,
  1655. which can conflict with char $2 (); below.
  1656. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1657. <limits.h> exists even on freestanding compilers. */
  1658. #ifdef __STDC__
  1659. # include <limits.h>
  1660. #else
  1661. # include <assert.h>
  1662. #endif
  1663. #undef $2
  1664. /* Override any GCC internal prototype to avoid an error.
  1665. Use char because int might match the return type of a GCC
  1666. builtin and then its argument prototype would still apply. */
  1667. #ifdef __cplusplus
  1668. extern "C"
  1669. #endif
  1670. char $2 ();
  1671. /* The GNU C library defines this for functions which it implements
  1672. to always fail with ENOSYS. Some functions are actually named
  1673. something starting with __ and the normal name is an alias. */
  1674. #if defined __stub_$2 || defined __stub___$2
  1675. choke me
  1676. #endif
  1677. int
  1678. main ()
  1679. {
  1680. return $2 ();
  1681. ;
  1682. return 0;
  1683. }
  1684. _ACEOF
  1685. if ac_fn_c_try_link "$LINENO"; then :
  1686. eval "$3=yes"
  1687. else
  1688. eval "$3=no"
  1689. fi
  1690. rm -f core conftest.err conftest.$ac_objext \
  1691. conftest$ac_exeext conftest.$ac_ext
  1692. fi
  1693. eval ac_res=\$$3
  1694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1695. $as_echo "$ac_res" >&6; }
  1696. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1697. } # ac_fn_c_check_func
  1698. # ac_fn_cxx_try_cpp LINENO
  1699. # ------------------------
  1700. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1701. ac_fn_cxx_try_cpp ()
  1702. {
  1703. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1704. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1705. case "(($ac_try" in
  1706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1707. *) ac_try_echo=$ac_try;;
  1708. esac
  1709. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1710. $as_echo "$ac_try_echo"; } >&5
  1711. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1712. ac_status=$?
  1713. if test -s conftest.err; then
  1714. grep -v '^ *+' conftest.err >conftest.er1
  1715. cat conftest.er1 >&5
  1716. mv -f conftest.er1 conftest.err
  1717. fi
  1718. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1719. test $ac_status = 0; } > conftest.i && {
  1720. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1721. test ! -s conftest.err
  1722. }; then :
  1723. ac_retval=0
  1724. else
  1725. $as_echo "$as_me: failed program was:" >&5
  1726. sed 's/^/| /' conftest.$ac_ext >&5
  1727. ac_retval=1
  1728. fi
  1729. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1730. as_fn_set_status $ac_retval
  1731. } # ac_fn_cxx_try_cpp
  1732. # ac_fn_cxx_try_link LINENO
  1733. # -------------------------
  1734. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1735. ac_fn_cxx_try_link ()
  1736. {
  1737. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1738. rm -f conftest.$ac_objext conftest$ac_exeext
  1739. if { { ac_try="$ac_link"
  1740. case "(($ac_try" in
  1741. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1742. *) ac_try_echo=$ac_try;;
  1743. esac
  1744. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1745. $as_echo "$ac_try_echo"; } >&5
  1746. (eval "$ac_link") 2>conftest.err
  1747. ac_status=$?
  1748. if test -s conftest.err; then
  1749. grep -v '^ *+' conftest.err >conftest.er1
  1750. cat conftest.er1 >&5
  1751. mv -f conftest.er1 conftest.err
  1752. fi
  1753. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1754. test $ac_status = 0; } && {
  1755. test -z "$ac_cxx_werror_flag" ||
  1756. test ! -s conftest.err
  1757. } && test -s conftest$ac_exeext && {
  1758. test "$cross_compiling" = yes ||
  1759. test -x conftest$ac_exeext
  1760. }; then :
  1761. ac_retval=0
  1762. else
  1763. $as_echo "$as_me: failed program was:" >&5
  1764. sed 's/^/| /' conftest.$ac_ext >&5
  1765. ac_retval=1
  1766. fi
  1767. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1768. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1769. # interfere with the next link command; also delete a directory that is
  1770. # left behind by Apple's compiler. We do this before executing the actions.
  1771. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1772. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1773. as_fn_set_status $ac_retval
  1774. } # ac_fn_cxx_try_link
  1775. # ac_fn_cxx_try_run LINENO
  1776. # ------------------------
  1777. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1778. # that executables *can* be run.
  1779. ac_fn_cxx_try_run ()
  1780. {
  1781. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1782. if { { ac_try="$ac_link"
  1783. case "(($ac_try" in
  1784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1785. *) ac_try_echo=$ac_try;;
  1786. esac
  1787. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1788. $as_echo "$ac_try_echo"; } >&5
  1789. (eval "$ac_link") 2>&5
  1790. ac_status=$?
  1791. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1792. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1793. { { case "(($ac_try" in
  1794. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1795. *) ac_try_echo=$ac_try;;
  1796. esac
  1797. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1798. $as_echo "$ac_try_echo"; } >&5
  1799. (eval "$ac_try") 2>&5
  1800. ac_status=$?
  1801. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1802. test $ac_status = 0; }; }; then :
  1803. ac_retval=0
  1804. else
  1805. $as_echo "$as_me: program exited with status $ac_status" >&5
  1806. $as_echo "$as_me: failed program was:" >&5
  1807. sed 's/^/| /' conftest.$ac_ext >&5
  1808. ac_retval=$ac_status
  1809. fi
  1810. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1811. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1812. as_fn_set_status $ac_retval
  1813. } # ac_fn_cxx_try_run
  1814. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1815. # ---------------------------------------------------------
  1816. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1817. # the include files in INCLUDES and setting the cache variable VAR
  1818. # accordingly.
  1819. ac_fn_cxx_check_header_mongrel ()
  1820. {
  1821. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1822. if eval \${$3+:} false; then :
  1823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1824. $as_echo_n "checking for $2... " >&6; }
  1825. if eval \${$3+:} false; then :
  1826. $as_echo_n "(cached) " >&6
  1827. fi
  1828. eval ac_res=\$$3
  1829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1830. $as_echo "$ac_res" >&6; }
  1831. else
  1832. # Is the header compilable?
  1833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1834. $as_echo_n "checking $2 usability... " >&6; }
  1835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1836. /* end confdefs.h. */
  1837. $4
  1838. #include <$2>
  1839. _ACEOF
  1840. if ac_fn_cxx_try_compile "$LINENO"; then :
  1841. ac_header_compiler=yes
  1842. else
  1843. ac_header_compiler=no
  1844. fi
  1845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1847. $as_echo "$ac_header_compiler" >&6; }
  1848. # Is the header present?
  1849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1850. $as_echo_n "checking $2 presence... " >&6; }
  1851. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1852. /* end confdefs.h. */
  1853. #include <$2>
  1854. _ACEOF
  1855. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1856. ac_header_preproc=yes
  1857. else
  1858. ac_header_preproc=no
  1859. fi
  1860. rm -f conftest.err conftest.i conftest.$ac_ext
  1861. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1862. $as_echo "$ac_header_preproc" >&6; }
  1863. # So? What about this header?
  1864. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1865. yes:no: )
  1866. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1867. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1868. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1869. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1870. ;;
  1871. no:yes:* )
  1872. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1873. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1874. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1875. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1876. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1877. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1878. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1879. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1880. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1881. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1882. ( $as_echo "## ------------------------------------ ##
  1883. ## Report this to opensource@google.com ##
  1884. ## ------------------------------------ ##"
  1885. ) | sed "s/^/$as_me: WARNING: /" >&2
  1886. ;;
  1887. esac
  1888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1889. $as_echo_n "checking for $2... " >&6; }
  1890. if eval \${$3+:} false; then :
  1891. $as_echo_n "(cached) " >&6
  1892. else
  1893. eval "$3=\$ac_header_compiler"
  1894. fi
  1895. eval ac_res=\$$3
  1896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1897. $as_echo "$ac_res" >&6; }
  1898. fi
  1899. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1900. } # ac_fn_cxx_check_header_mongrel
  1901. # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
  1902. # ----------------------------------------------
  1903. # Tries to find the compile-time value of EXPR in a program that includes
  1904. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1905. # computed
  1906. ac_fn_cxx_compute_int ()
  1907. {
  1908. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1909. if test "$cross_compiling" = yes; then
  1910. # Depending upon the size, compute the lo and hi bounds.
  1911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1912. /* end confdefs.h. */
  1913. $4
  1914. int
  1915. main ()
  1916. {
  1917. static int test_array [1 - 2 * !(($2) >= 0)];
  1918. test_array [0] = 0;
  1919. return test_array [0];
  1920. ;
  1921. return 0;
  1922. }
  1923. _ACEOF
  1924. if ac_fn_cxx_try_compile "$LINENO"; then :
  1925. ac_lo=0 ac_mid=0
  1926. while :; do
  1927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1928. /* end confdefs.h. */
  1929. $4
  1930. int
  1931. main ()
  1932. {
  1933. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1934. test_array [0] = 0;
  1935. return test_array [0];
  1936. ;
  1937. return 0;
  1938. }
  1939. _ACEOF
  1940. if ac_fn_cxx_try_compile "$LINENO"; then :
  1941. ac_hi=$ac_mid; break
  1942. else
  1943. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1944. if test $ac_lo -le $ac_mid; then
  1945. ac_lo= ac_hi=
  1946. break
  1947. fi
  1948. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1949. fi
  1950. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1951. done
  1952. else
  1953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1954. /* end confdefs.h. */
  1955. $4
  1956. int
  1957. main ()
  1958. {
  1959. static int test_array [1 - 2 * !(($2) < 0)];
  1960. test_array [0] = 0;
  1961. return test_array [0];
  1962. ;
  1963. return 0;
  1964. }
  1965. _ACEOF
  1966. if ac_fn_cxx_try_compile "$LINENO"; then :
  1967. ac_hi=-1 ac_mid=-1
  1968. while :; do
  1969. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1970. /* end confdefs.h. */
  1971. $4
  1972. int
  1973. main ()
  1974. {
  1975. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1976. test_array [0] = 0;
  1977. return test_array [0];
  1978. ;
  1979. return 0;
  1980. }
  1981. _ACEOF
  1982. if ac_fn_cxx_try_compile "$LINENO"; then :
  1983. ac_lo=$ac_mid; break
  1984. else
  1985. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1986. if test $ac_mid -le $ac_hi; then
  1987. ac_lo= ac_hi=
  1988. break
  1989. fi
  1990. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1991. fi
  1992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1993. done
  1994. else
  1995. ac_lo= ac_hi=
  1996. fi
  1997. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1998. fi
  1999. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2000. # Binary search between lo and hi bounds.
  2001. while test "x$ac_lo" != "x$ac_hi"; do
  2002. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2004. /* end confdefs.h. */
  2005. $4
  2006. int
  2007. main ()
  2008. {
  2009. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2010. test_array [0] = 0;
  2011. return test_array [0];
  2012. ;
  2013. return 0;
  2014. }
  2015. _ACEOF
  2016. if ac_fn_cxx_try_compile "$LINENO"; then :
  2017. ac_hi=$ac_mid
  2018. else
  2019. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2020. fi
  2021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2022. done
  2023. case $ac_lo in #((
  2024. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2025. '') ac_retval=1 ;;
  2026. esac
  2027. else
  2028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2029. /* end confdefs.h. */
  2030. $4
  2031. static long int longval () { return $2; }
  2032. static unsigned long int ulongval () { return $2; }
  2033. #include <stdio.h>
  2034. #include <stdlib.h>
  2035. int
  2036. main ()
  2037. {
  2038. FILE *f = fopen ("conftest.val", "w");
  2039. if (! f)
  2040. return 1;
  2041. if (($2) < 0)
  2042. {
  2043. long int i = longval ();
  2044. if (i != ($2))
  2045. return 1;
  2046. fprintf (f, "%ld", i);
  2047. }
  2048. else
  2049. {
  2050. unsigned long int i = ulongval ();
  2051. if (i != ($2))
  2052. return 1;
  2053. fprintf (f, "%lu", i);
  2054. }
  2055. /* Do not output a trailing newline, as this causes \r\n confusion
  2056. on some platforms. */
  2057. return ferror (f) || fclose (f) != 0;
  2058. ;
  2059. return 0;
  2060. }
  2061. _ACEOF
  2062. if ac_fn_cxx_try_run "$LINENO"; then :
  2063. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2064. else
  2065. ac_retval=1
  2066. fi
  2067. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2068. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2069. rm -f conftest.val
  2070. fi
  2071. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2072. as_fn_set_status $ac_retval
  2073. } # ac_fn_cxx_compute_int
  2074. # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
  2075. # ---------------------------------------------
  2076. # Tests whether TYPE exists after having included INCLUDES, setting cache
  2077. # variable VAR accordingly.
  2078. ac_fn_cxx_check_type ()
  2079. {
  2080. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2082. $as_echo_n "checking for $2... " >&6; }
  2083. if eval \${$3+:} false; then :
  2084. $as_echo_n "(cached) " >&6
  2085. else
  2086. eval "$3=no"
  2087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2088. /* end confdefs.h. */
  2089. $4
  2090. int
  2091. main ()
  2092. {
  2093. if (sizeof ($2))
  2094. return 0;
  2095. ;
  2096. return 0;
  2097. }
  2098. _ACEOF
  2099. if ac_fn_cxx_try_compile "$LINENO"; then :
  2100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2101. /* end confdefs.h. */
  2102. $4
  2103. int
  2104. main ()
  2105. {
  2106. if (sizeof (($2)))
  2107. return 0;
  2108. ;
  2109. return 0;
  2110. }
  2111. _ACEOF
  2112. if ac_fn_cxx_try_compile "$LINENO"; then :
  2113. else
  2114. eval "$3=yes"
  2115. fi
  2116. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2117. fi
  2118. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2119. fi
  2120. eval ac_res=\$$3
  2121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2122. $as_echo "$ac_res" >&6; }
  2123. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2124. } # ac_fn_cxx_check_type
  2125. # ac_fn_cxx_check_func LINENO FUNC VAR
  2126. # ------------------------------------
  2127. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2128. ac_fn_cxx_check_func ()
  2129. {
  2130. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2132. $as_echo_n "checking for $2... " >&6; }
  2133. if eval \${$3+:} false; then :
  2134. $as_echo_n "(cached) " >&6
  2135. else
  2136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2137. /* end confdefs.h. */
  2138. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2139. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2140. #define $2 innocuous_$2
  2141. /* System header to define __stub macros and hopefully few prototypes,
  2142. which can conflict with char $2 (); below.
  2143. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2144. <limits.h> exists even on freestanding compilers. */
  2145. #ifdef __STDC__
  2146. # include <limits.h>
  2147. #else
  2148. # include <assert.h>
  2149. #endif
  2150. #undef $2
  2151. /* Override any GCC internal prototype to avoid an error.
  2152. Use char because int might match the return type of a GCC
  2153. builtin and then its argument prototype would still apply. */
  2154. #ifdef __cplusplus
  2155. extern "C"
  2156. #endif
  2157. char $2 ();
  2158. /* The GNU C library defines this for functions which it implements
  2159. to always fail with ENOSYS. Some functions are actually named
  2160. something starting with __ and the normal name is an alias. */
  2161. #if defined __stub_$2 || defined __stub___$2
  2162. choke me
  2163. #endif
  2164. int
  2165. main ()
  2166. {
  2167. return $2 ();
  2168. ;
  2169. return 0;
  2170. }
  2171. _ACEOF
  2172. if ac_fn_cxx_try_link "$LINENO"; then :
  2173. eval "$3=yes"
  2174. else
  2175. eval "$3=no"
  2176. fi
  2177. rm -f core conftest.err conftest.$ac_objext \
  2178. conftest$ac_exeext conftest.$ac_ext
  2179. fi
  2180. eval ac_res=\$$3
  2181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2182. $as_echo "$ac_res" >&6; }
  2183. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  2184. } # ac_fn_cxx_check_func
  2185. cat >config.log <<_ACEOF
  2186. This file contains any messages produced by compilers while
  2187. running configure, to aid debugging if configure makes a mistake.
  2188. It was created by glog $as_me 0.3.5, which was
  2189. generated by GNU Autoconf 2.69. Invocation command line was
  2190. $ $0 $@
  2191. _ACEOF
  2192. exec 5>>config.log
  2193. {
  2194. cat <<_ASUNAME
  2195. ## --------- ##
  2196. ## Platform. ##
  2197. ## --------- ##
  2198. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2199. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2200. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2201. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2202. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2203. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2204. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2205. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2206. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2207. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2208. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2209. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2210. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2211. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2212. _ASUNAME
  2213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2214. for as_dir in $PATH
  2215. do
  2216. IFS=$as_save_IFS
  2217. test -z "$as_dir" && as_dir=.
  2218. $as_echo "PATH: $as_dir"
  2219. done
  2220. IFS=$as_save_IFS
  2221. } >&5
  2222. cat >&5 <<_ACEOF
  2223. ## ----------- ##
  2224. ## Core tests. ##
  2225. ## ----------- ##
  2226. _ACEOF
  2227. # Keep a trace of the command line.
  2228. # Strip out --no-create and --no-recursion so they do not pile up.
  2229. # Strip out --silent because we don't want to record it for future runs.
  2230. # Also quote any args containing shell meta-characters.
  2231. # Make two passes to allow for proper duplicate-argument suppression.
  2232. ac_configure_args=
  2233. ac_configure_args0=
  2234. ac_configure_args1=
  2235. ac_must_keep_next=false
  2236. for ac_pass in 1 2
  2237. do
  2238. for ac_arg
  2239. do
  2240. case $ac_arg in
  2241. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2242. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2243. | -silent | --silent | --silen | --sile | --sil)
  2244. continue ;;
  2245. *\'*)
  2246. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2247. esac
  2248. case $ac_pass in
  2249. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2250. 2)
  2251. as_fn_append ac_configure_args1 " '$ac_arg'"
  2252. if test $ac_must_keep_next = true; then
  2253. ac_must_keep_next=false # Got value, back to normal.
  2254. else
  2255. case $ac_arg in
  2256. *=* | --config-cache | -C | -disable-* | --disable-* \
  2257. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2258. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2259. | -with-* | --with-* | -without-* | --without-* | --x)
  2260. case "$ac_configure_args0 " in
  2261. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2262. esac
  2263. ;;
  2264. -* ) ac_must_keep_next=true ;;
  2265. esac
  2266. fi
  2267. as_fn_append ac_configure_args " '$ac_arg'"
  2268. ;;
  2269. esac
  2270. done
  2271. done
  2272. { ac_configure_args0=; unset ac_configure_args0;}
  2273. { ac_configure_args1=; unset ac_configure_args1;}
  2274. # When interrupted or exit'd, cleanup temporary files, and complete
  2275. # config.log. We remove comments because anyway the quotes in there
  2276. # would cause problems or look ugly.
  2277. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2278. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2279. trap 'exit_status=$?
  2280. # Save into config.log some information that might help in debugging.
  2281. {
  2282. echo
  2283. $as_echo "## ---------------- ##
  2284. ## Cache variables. ##
  2285. ## ---------------- ##"
  2286. echo
  2287. # The following way of writing the cache mishandles newlines in values,
  2288. (
  2289. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2290. eval ac_val=\$$ac_var
  2291. case $ac_val in #(
  2292. *${as_nl}*)
  2293. case $ac_var in #(
  2294. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2295. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2296. esac
  2297. case $ac_var in #(
  2298. _ | IFS | as_nl) ;; #(
  2299. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2300. *) { eval $ac_var=; unset $ac_var;} ;;
  2301. esac ;;
  2302. esac
  2303. done
  2304. (set) 2>&1 |
  2305. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2306. *${as_nl}ac_space=\ *)
  2307. sed -n \
  2308. "s/'\''/'\''\\\\'\'''\''/g;
  2309. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2310. ;; #(
  2311. *)
  2312. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2313. ;;
  2314. esac |
  2315. sort
  2316. )
  2317. echo
  2318. $as_echo "## ----------------- ##
  2319. ## Output variables. ##
  2320. ## ----------------- ##"
  2321. echo
  2322. for ac_var in $ac_subst_vars
  2323. do
  2324. eval ac_val=\$$ac_var
  2325. case $ac_val in
  2326. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2327. esac
  2328. $as_echo "$ac_var='\''$ac_val'\''"
  2329. done | sort
  2330. echo
  2331. if test -n "$ac_subst_files"; then
  2332. $as_echo "## ------------------- ##
  2333. ## File substitutions. ##
  2334. ## ------------------- ##"
  2335. echo
  2336. for ac_var in $ac_subst_files
  2337. do
  2338. eval ac_val=\$$ac_var
  2339. case $ac_val in
  2340. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2341. esac
  2342. $as_echo "$ac_var='\''$ac_val'\''"
  2343. done | sort
  2344. echo
  2345. fi
  2346. if test -s confdefs.h; then
  2347. $as_echo "## ----------- ##
  2348. ## confdefs.h. ##
  2349. ## ----------- ##"
  2350. echo
  2351. cat confdefs.h
  2352. echo
  2353. fi
  2354. test "$ac_signal" != 0 &&
  2355. $as_echo "$as_me: caught signal $ac_signal"
  2356. $as_echo "$as_me: exit $exit_status"
  2357. } >&5
  2358. rm -f core *.core core.conftest.* &&
  2359. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2360. exit $exit_status
  2361. ' 0
  2362. for ac_signal in 1 2 13 15; do
  2363. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2364. done
  2365. ac_signal=0
  2366. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2367. rm -f -r conftest* confdefs.h
  2368. $as_echo "/* confdefs.h */" > confdefs.h
  2369. # Predefined preprocessor variables.
  2370. cat >>confdefs.h <<_ACEOF
  2371. #define PACKAGE_NAME "$PACKAGE_NAME"
  2372. _ACEOF
  2373. cat >>confdefs.h <<_ACEOF
  2374. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2375. _ACEOF
  2376. cat >>confdefs.h <<_ACEOF
  2377. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2378. _ACEOF
  2379. cat >>confdefs.h <<_ACEOF
  2380. #define PACKAGE_STRING "$PACKAGE_STRING"
  2381. _ACEOF
  2382. cat >>confdefs.h <<_ACEOF
  2383. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2384. _ACEOF
  2385. cat >>confdefs.h <<_ACEOF
  2386. #define PACKAGE_URL "$PACKAGE_URL"
  2387. _ACEOF
  2388. # Let the site file select an alternate cache file if it wants to.
  2389. # Prefer an explicitly selected file to automatically selected ones.
  2390. ac_site_file1=NONE
  2391. ac_site_file2=NONE
  2392. if test -n "$CONFIG_SITE"; then
  2393. # We do not want a PATH search for config.site.
  2394. case $CONFIG_SITE in #((
  2395. -*) ac_site_file1=./$CONFIG_SITE;;
  2396. */*) ac_site_file1=$CONFIG_SITE;;
  2397. *) ac_site_file1=./$CONFIG_SITE;;
  2398. esac
  2399. elif test "x$prefix" != xNONE; then
  2400. ac_site_file1=$prefix/share/config.site
  2401. ac_site_file2=$prefix/etc/config.site
  2402. else
  2403. ac_site_file1=$ac_default_prefix/share/config.site
  2404. ac_site_file2=$ac_default_prefix/etc/config.site
  2405. fi
  2406. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2407. do
  2408. test "x$ac_site_file" = xNONE && continue
  2409. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2411. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2412. sed 's/^/| /' "$ac_site_file" >&5
  2413. . "$ac_site_file" \
  2414. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2415. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2416. as_fn_error $? "failed to load site script $ac_site_file
  2417. See \`config.log' for more details" "$LINENO" 5; }
  2418. fi
  2419. done
  2420. if test -r "$cache_file"; then
  2421. # Some versions of bash will fail to source /dev/null (special files
  2422. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2423. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2424. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2425. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2426. case $cache_file in
  2427. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2428. *) . "./$cache_file";;
  2429. esac
  2430. fi
  2431. else
  2432. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2433. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2434. >$cache_file
  2435. fi
  2436. # Check that the precious variables saved in the cache have kept the same
  2437. # value.
  2438. ac_cache_corrupted=false
  2439. for ac_var in $ac_precious_vars; do
  2440. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2441. eval ac_new_set=\$ac_env_${ac_var}_set
  2442. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2443. eval ac_new_val=\$ac_env_${ac_var}_value
  2444. case $ac_old_set,$ac_new_set in
  2445. set,)
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2447. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2448. ac_cache_corrupted=: ;;
  2449. ,set)
  2450. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2451. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2452. ac_cache_corrupted=: ;;
  2453. ,);;
  2454. *)
  2455. if test "x$ac_old_val" != "x$ac_new_val"; then
  2456. # differences in whitespace do not lead to failure.
  2457. ac_old_val_w=`echo x $ac_old_val`
  2458. ac_new_val_w=`echo x $ac_new_val`
  2459. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2461. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2462. ac_cache_corrupted=:
  2463. else
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2465. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2466. eval $ac_var=\$ac_old_val
  2467. fi
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2469. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2470. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2471. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2472. fi;;
  2473. esac
  2474. # Pass precious variables to config.status.
  2475. if test "$ac_new_set" = set; then
  2476. case $ac_new_val in
  2477. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2478. *) ac_arg=$ac_var=$ac_new_val ;;
  2479. esac
  2480. case " $ac_configure_args " in
  2481. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2482. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2483. esac
  2484. fi
  2485. done
  2486. if $ac_cache_corrupted; then
  2487. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2488. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2489. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2490. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2491. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2492. fi
  2493. ## -------------------- ##
  2494. ## Main body of script. ##
  2495. ## -------------------- ##
  2496. ac_ext=c
  2497. ac_cpp='$CPP $CPPFLAGS'
  2498. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2499. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2500. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2501. # The argument here is just something that should be in the current directory
  2502. # (for sanity checking)
  2503. am__api_version='1.14'
  2504. ac_aux_dir=
  2505. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2506. if test -f "$ac_dir/install-sh"; then
  2507. ac_aux_dir=$ac_dir
  2508. ac_install_sh="$ac_aux_dir/install-sh -c"
  2509. break
  2510. elif test -f "$ac_dir/install.sh"; then
  2511. ac_aux_dir=$ac_dir
  2512. ac_install_sh="$ac_aux_dir/install.sh -c"
  2513. break
  2514. elif test -f "$ac_dir/shtool"; then
  2515. ac_aux_dir=$ac_dir
  2516. ac_install_sh="$ac_aux_dir/shtool install -c"
  2517. break
  2518. fi
  2519. done
  2520. if test -z "$ac_aux_dir"; then
  2521. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2522. fi
  2523. # These three variables are undocumented and unsupported,
  2524. # and are intended to be withdrawn in a future Autoconf release.
  2525. # They can cause serious problems if a builder's source tree is in a directory
  2526. # whose full name contains unusual characters.
  2527. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2528. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2529. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2530. # Find a good install program. We prefer a C program (faster),
  2531. # so one script is as good as another. But avoid the broken or
  2532. # incompatible versions:
  2533. # SysV /etc/install, /usr/sbin/install
  2534. # SunOS /usr/etc/install
  2535. # IRIX /sbin/install
  2536. # AIX /bin/install
  2537. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2538. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2539. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2540. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2541. # OS/2's system install, which has a completely different semantic
  2542. # ./install, which can be erroneously created by make from ./install.sh.
  2543. # Reject install programs that cannot install multiple files.
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2545. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2546. if test -z "$INSTALL"; then
  2547. if ${ac_cv_path_install+:} false; then :
  2548. $as_echo_n "(cached) " >&6
  2549. else
  2550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2551. for as_dir in $PATH
  2552. do
  2553. IFS=$as_save_IFS
  2554. test -z "$as_dir" && as_dir=.
  2555. # Account for people who put trailing slashes in PATH elements.
  2556. case $as_dir/ in #((
  2557. ./ | .// | /[cC]/* | \
  2558. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2559. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2560. /usr/ucb/* ) ;;
  2561. *)
  2562. # OSF1 and SCO ODT 3.0 have their own names for install.
  2563. # Don't use installbsd from OSF since it installs stuff as root
  2564. # by default.
  2565. for ac_prog in ginstall scoinst install; do
  2566. for ac_exec_ext in '' $ac_executable_extensions; do
  2567. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2568. if test $ac_prog = install &&
  2569. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2570. # AIX install. It has an incompatible calling convention.
  2571. :
  2572. elif test $ac_prog = install &&
  2573. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2574. # program-specific install script used by HP pwplus--don't use.
  2575. :
  2576. else
  2577. rm -rf conftest.one conftest.two conftest.dir
  2578. echo one > conftest.one
  2579. echo two > conftest.two
  2580. mkdir conftest.dir
  2581. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2582. test -s conftest.one && test -s conftest.two &&
  2583. test -s conftest.dir/conftest.one &&
  2584. test -s conftest.dir/conftest.two
  2585. then
  2586. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2587. break 3
  2588. fi
  2589. fi
  2590. fi
  2591. done
  2592. done
  2593. ;;
  2594. esac
  2595. done
  2596. IFS=$as_save_IFS
  2597. rm -rf conftest.one conftest.two conftest.dir
  2598. fi
  2599. if test "${ac_cv_path_install+set}" = set; then
  2600. INSTALL=$ac_cv_path_install
  2601. else
  2602. # As a last resort, use the slow shell script. Don't cache a
  2603. # value for INSTALL within a source directory, because that will
  2604. # break other packages using the cache if that directory is
  2605. # removed, or if the value is a relative name.
  2606. INSTALL=$ac_install_sh
  2607. fi
  2608. fi
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2610. $as_echo "$INSTALL" >&6; }
  2611. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2612. # It thinks the first close brace ends the variable substitution.
  2613. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2614. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2615. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2616. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2617. $as_echo_n "checking whether build environment is sane... " >&6; }
  2618. # Reject unsafe characters in $srcdir or the absolute working directory
  2619. # name. Accept space and tab only in the latter.
  2620. am_lf='
  2621. '
  2622. case `pwd` in
  2623. *[\\\"\#\$\&\'\`$am_lf]*)
  2624. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2625. esac
  2626. case $srcdir in
  2627. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2628. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2629. esac
  2630. # Do 'set' in a subshell so we don't clobber the current shell's
  2631. # arguments. Must try -L first in case configure is actually a
  2632. # symlink; some systems play weird games with the mod time of symlinks
  2633. # (eg FreeBSD returns the mod time of the symlink's containing
  2634. # directory).
  2635. if (
  2636. am_has_slept=no
  2637. for am_try in 1 2; do
  2638. echo "timestamp, slept: $am_has_slept" > conftest.file
  2639. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2640. if test "$*" = "X"; then
  2641. # -L didn't work.
  2642. set X `ls -t "$srcdir/configure" conftest.file`
  2643. fi
  2644. if test "$*" != "X $srcdir/configure conftest.file" \
  2645. && test "$*" != "X conftest.file $srcdir/configure"; then
  2646. # If neither matched, then we have a broken ls. This can happen
  2647. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2648. # broken ls alias from the environment. This has actually
  2649. # happened. Such a system could not be considered "sane".
  2650. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2651. alias in your environment" "$LINENO" 5
  2652. fi
  2653. if test "$2" = conftest.file || test $am_try -eq 2; then
  2654. break
  2655. fi
  2656. # Just in case.
  2657. sleep 1
  2658. am_has_slept=yes
  2659. done
  2660. test "$2" = conftest.file
  2661. )
  2662. then
  2663. # Ok.
  2664. :
  2665. else
  2666. as_fn_error $? "newly created file is older than distributed files!
  2667. Check your system clock" "$LINENO" 5
  2668. fi
  2669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2670. $as_echo "yes" >&6; }
  2671. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2672. # generated files are strictly newer.
  2673. am_sleep_pid=
  2674. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2675. ( sleep 1 ) &
  2676. am_sleep_pid=$!
  2677. fi
  2678. rm -f conftest.file
  2679. test "$program_prefix" != NONE &&
  2680. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2681. # Use a double $ so make ignores it.
  2682. test "$program_suffix" != NONE &&
  2683. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2684. # Double any \ or $.
  2685. # By default was `s,x,x', remove it if useless.
  2686. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2687. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2688. # expand $ac_aux_dir to an absolute path
  2689. am_aux_dir=`cd $ac_aux_dir && pwd`
  2690. if test x"${MISSING+set}" != xset; then
  2691. case $am_aux_dir in
  2692. *\ * | *\ *)
  2693. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2694. *)
  2695. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2696. esac
  2697. fi
  2698. # Use eval to expand $SHELL
  2699. if eval "$MISSING --is-lightweight"; then
  2700. am_missing_run="$MISSING "
  2701. else
  2702. am_missing_run=
  2703. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2704. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2705. fi
  2706. if test x"${install_sh}" != xset; then
  2707. case $am_aux_dir in
  2708. *\ * | *\ *)
  2709. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2710. *)
  2711. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2712. esac
  2713. fi
  2714. # Installed binaries are usually stripped using 'strip' when the user
  2715. # run "make install-strip". However 'strip' might not be the right
  2716. # tool to use in cross-compilation environments, therefore Automake
  2717. # will honor the 'STRIP' environment variable to overrule this program.
  2718. if test "$cross_compiling" != no; then
  2719. if test -n "$ac_tool_prefix"; then
  2720. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2721. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2723. $as_echo_n "checking for $ac_word... " >&6; }
  2724. if ${ac_cv_prog_STRIP+:} false; then :
  2725. $as_echo_n "(cached) " >&6
  2726. else
  2727. if test -n "$STRIP"; then
  2728. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2729. else
  2730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2731. for as_dir in $PATH
  2732. do
  2733. IFS=$as_save_IFS
  2734. test -z "$as_dir" && as_dir=.
  2735. for ac_exec_ext in '' $ac_executable_extensions; do
  2736. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2737. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2738. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2739. break 2
  2740. fi
  2741. done
  2742. done
  2743. IFS=$as_save_IFS
  2744. fi
  2745. fi
  2746. STRIP=$ac_cv_prog_STRIP
  2747. if test -n "$STRIP"; then
  2748. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2749. $as_echo "$STRIP" >&6; }
  2750. else
  2751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2752. $as_echo "no" >&6; }
  2753. fi
  2754. fi
  2755. if test -z "$ac_cv_prog_STRIP"; then
  2756. ac_ct_STRIP=$STRIP
  2757. # Extract the first word of "strip", so it can be a program name with args.
  2758. set dummy strip; ac_word=$2
  2759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2760. $as_echo_n "checking for $ac_word... " >&6; }
  2761. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2762. $as_echo_n "(cached) " >&6
  2763. else
  2764. if test -n "$ac_ct_STRIP"; then
  2765. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2766. else
  2767. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2768. for as_dir in $PATH
  2769. do
  2770. IFS=$as_save_IFS
  2771. test -z "$as_dir" && as_dir=.
  2772. for ac_exec_ext in '' $ac_executable_extensions; do
  2773. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2774. ac_cv_prog_ac_ct_STRIP="strip"
  2775. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2776. break 2
  2777. fi
  2778. done
  2779. done
  2780. IFS=$as_save_IFS
  2781. fi
  2782. fi
  2783. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2784. if test -n "$ac_ct_STRIP"; then
  2785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2786. $as_echo "$ac_ct_STRIP" >&6; }
  2787. else
  2788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2789. $as_echo "no" >&6; }
  2790. fi
  2791. if test "x$ac_ct_STRIP" = x; then
  2792. STRIP=":"
  2793. else
  2794. case $cross_compiling:$ac_tool_warned in
  2795. yes:)
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2797. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2798. ac_tool_warned=yes ;;
  2799. esac
  2800. STRIP=$ac_ct_STRIP
  2801. fi
  2802. else
  2803. STRIP="$ac_cv_prog_STRIP"
  2804. fi
  2805. fi
  2806. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2808. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2809. if test -z "$MKDIR_P"; then
  2810. if ${ac_cv_path_mkdir+:} false; then :
  2811. $as_echo_n "(cached) " >&6
  2812. else
  2813. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2814. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2815. do
  2816. IFS=$as_save_IFS
  2817. test -z "$as_dir" && as_dir=.
  2818. for ac_prog in mkdir gmkdir; do
  2819. for ac_exec_ext in '' $ac_executable_extensions; do
  2820. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2821. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2822. 'mkdir (GNU coreutils) '* | \
  2823. 'mkdir (coreutils) '* | \
  2824. 'mkdir (fileutils) '4.1*)
  2825. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2826. break 3;;
  2827. esac
  2828. done
  2829. done
  2830. done
  2831. IFS=$as_save_IFS
  2832. fi
  2833. test -d ./--version && rmdir ./--version
  2834. if test "${ac_cv_path_mkdir+set}" = set; then
  2835. MKDIR_P="$ac_cv_path_mkdir -p"
  2836. else
  2837. # As a last resort, use the slow shell script. Don't cache a
  2838. # value for MKDIR_P within a source directory, because that will
  2839. # break other packages using the cache if that directory is
  2840. # removed, or if the value is a relative name.
  2841. MKDIR_P="$ac_install_sh -d"
  2842. fi
  2843. fi
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2845. $as_echo "$MKDIR_P" >&6; }
  2846. for ac_prog in gawk mawk nawk awk
  2847. do
  2848. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2849. set dummy $ac_prog; ac_word=$2
  2850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2851. $as_echo_n "checking for $ac_word... " >&6; }
  2852. if ${ac_cv_prog_AWK+:} false; then :
  2853. $as_echo_n "(cached) " >&6
  2854. else
  2855. if test -n "$AWK"; then
  2856. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2857. else
  2858. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2859. for as_dir in $PATH
  2860. do
  2861. IFS=$as_save_IFS
  2862. test -z "$as_dir" && as_dir=.
  2863. for ac_exec_ext in '' $ac_executable_extensions; do
  2864. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2865. ac_cv_prog_AWK="$ac_prog"
  2866. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2867. break 2
  2868. fi
  2869. done
  2870. done
  2871. IFS=$as_save_IFS
  2872. fi
  2873. fi
  2874. AWK=$ac_cv_prog_AWK
  2875. if test -n "$AWK"; then
  2876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2877. $as_echo "$AWK" >&6; }
  2878. else
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2880. $as_echo "no" >&6; }
  2881. fi
  2882. test -n "$AWK" && break
  2883. done
  2884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2885. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2886. set x ${MAKE-make}
  2887. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2888. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2889. $as_echo_n "(cached) " >&6
  2890. else
  2891. cat >conftest.make <<\_ACEOF
  2892. SHELL = /bin/sh
  2893. all:
  2894. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2895. _ACEOF
  2896. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2897. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2898. *@@@%%%=?*=@@@%%%*)
  2899. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2900. *)
  2901. eval ac_cv_prog_make_${ac_make}_set=no;;
  2902. esac
  2903. rm -f conftest.make
  2904. fi
  2905. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2907. $as_echo "yes" >&6; }
  2908. SET_MAKE=
  2909. else
  2910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2911. $as_echo "no" >&6; }
  2912. SET_MAKE="MAKE=${MAKE-make}"
  2913. fi
  2914. rm -rf .tst 2>/dev/null
  2915. mkdir .tst 2>/dev/null
  2916. if test -d .tst; then
  2917. am__leading_dot=.
  2918. else
  2919. am__leading_dot=_
  2920. fi
  2921. rmdir .tst 2>/dev/null
  2922. # Check whether --enable-silent-rules was given.
  2923. if test "${enable_silent_rules+set}" = set; then :
  2924. enableval=$enable_silent_rules;
  2925. fi
  2926. case $enable_silent_rules in # (((
  2927. yes) AM_DEFAULT_VERBOSITY=0;;
  2928. no) AM_DEFAULT_VERBOSITY=1;;
  2929. *) AM_DEFAULT_VERBOSITY=1;;
  2930. esac
  2931. am_make=${MAKE-make}
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2933. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2934. if ${am_cv_make_support_nested_variables+:} false; then :
  2935. $as_echo_n "(cached) " >&6
  2936. else
  2937. if $as_echo 'TRUE=$(BAR$(V))
  2938. BAR0=false
  2939. BAR1=true
  2940. V=1
  2941. am__doit:
  2942. @$(TRUE)
  2943. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2944. am_cv_make_support_nested_variables=yes
  2945. else
  2946. am_cv_make_support_nested_variables=no
  2947. fi
  2948. fi
  2949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2950. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2951. if test $am_cv_make_support_nested_variables = yes; then
  2952. AM_V='$(V)'
  2953. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2954. else
  2955. AM_V=$AM_DEFAULT_VERBOSITY
  2956. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2957. fi
  2958. AM_BACKSLASH='\'
  2959. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2960. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2961. # is not polluted with repeated "-I."
  2962. am__isrc=' -I$(srcdir)'
  2963. # test to see if srcdir already configured
  2964. if test -f $srcdir/config.status; then
  2965. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2966. fi
  2967. fi
  2968. # test whether we have cygpath
  2969. if test -z "$CYGPATH_W"; then
  2970. if (cygpath --version) >/dev/null 2>/dev/null; then
  2971. CYGPATH_W='cygpath -w'
  2972. else
  2973. CYGPATH_W=echo
  2974. fi
  2975. fi
  2976. # Define the identity of the package.
  2977. PACKAGE='glog'
  2978. VERSION='0.3.5'
  2979. cat >>confdefs.h <<_ACEOF
  2980. #define PACKAGE "$PACKAGE"
  2981. _ACEOF
  2982. cat >>confdefs.h <<_ACEOF
  2983. #define VERSION "$VERSION"
  2984. _ACEOF
  2985. # Some tools Automake needs.
  2986. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2987. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2988. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2989. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2990. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2991. # For better backward compatibility. To be removed once Automake 1.9.x
  2992. # dies out for good. For more background, see:
  2993. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2994. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2995. mkdir_p='$(MKDIR_P)'
  2996. # We need awk for the "check" target. The system "awk" is bad on
  2997. # some platforms.
  2998. # Always define AMTAR for backward compatibility. Yes, it's still used
  2999. # in the wild :-( We should find a proper way to deprecate it ...
  3000. AMTAR='$${TAR-tar}'
  3001. # We'll loop over all known methods to create a tar archive until one works.
  3002. _am_tools='gnutar pax cpio none'
  3003. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  3004. # POSIX will say in a future version that running "rm -f" with no argument
  3005. # is OK; and we want to be able to make that assumption in our Makefile
  3006. # recipes. So use an aggressive probe to check that the usage we want is
  3007. # actually supported "in the wild" to an acceptable degree.
  3008. # See automake bug#10828.
  3009. # To make any issue more visible, cause the running configure to be aborted
  3010. # by default if the 'rm' program in use doesn't match our expectations; the
  3011. # user can still override this though.
  3012. if rm -f && rm -fr && rm -rf; then : OK; else
  3013. cat >&2 <<'END'
  3014. Oops!
  3015. Your 'rm' program seems unable to run without file operands specified
  3016. on the command line, even when the '-f' option is present. This is contrary
  3017. to the behaviour of most rm programs out there, and not conforming with
  3018. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  3019. Please tell bug-automake@gnu.org about your system, including the value
  3020. of your $PATH and any error possibly output before this message. This
  3021. can help us improve future automake versions.
  3022. END
  3023. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  3024. echo 'Configuration will proceed anyway, since you have set the' >&2
  3025. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  3026. echo >&2
  3027. else
  3028. cat >&2 <<'END'
  3029. Aborting the configuration process, to ensure you take notice of the issue.
  3030. You can download and install GNU coreutils to get an 'rm' implementation
  3031. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  3032. If you want to complete the configuration process using your problematic
  3033. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  3034. to "yes", and re-run configure.
  3035. END
  3036. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  3037. fi
  3038. fi
  3039. ac_config_headers="$ac_config_headers src/config.h"
  3040. ac_ext=cpp
  3041. ac_cpp='$CXXCPP $CPPFLAGS'
  3042. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3043. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3044. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3045. # Checks for programs.
  3046. ac_ext=c
  3047. ac_cpp='$CPP $CPPFLAGS'
  3048. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3049. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3050. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3051. if test -n "$ac_tool_prefix"; then
  3052. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3053. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3054. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3055. $as_echo_n "checking for $ac_word... " >&6; }
  3056. if ${ac_cv_prog_CC+:} false; then :
  3057. $as_echo_n "(cached) " >&6
  3058. else
  3059. if test -n "$CC"; then
  3060. ac_cv_prog_CC="$CC" # Let the user override the test.
  3061. else
  3062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3063. for as_dir in $PATH
  3064. do
  3065. IFS=$as_save_IFS
  3066. test -z "$as_dir" && as_dir=.
  3067. for ac_exec_ext in '' $ac_executable_extensions; do
  3068. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3069. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3070. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3071. break 2
  3072. fi
  3073. done
  3074. done
  3075. IFS=$as_save_IFS
  3076. fi
  3077. fi
  3078. CC=$ac_cv_prog_CC
  3079. if test -n "$CC"; then
  3080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3081. $as_echo "$CC" >&6; }
  3082. else
  3083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3084. $as_echo "no" >&6; }
  3085. fi
  3086. fi
  3087. if test -z "$ac_cv_prog_CC"; then
  3088. ac_ct_CC=$CC
  3089. # Extract the first word of "gcc", so it can be a program name with args.
  3090. set dummy gcc; ac_word=$2
  3091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3092. $as_echo_n "checking for $ac_word... " >&6; }
  3093. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3094. $as_echo_n "(cached) " >&6
  3095. else
  3096. if test -n "$ac_ct_CC"; then
  3097. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3098. else
  3099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3100. for as_dir in $PATH
  3101. do
  3102. IFS=$as_save_IFS
  3103. test -z "$as_dir" && as_dir=.
  3104. for ac_exec_ext in '' $ac_executable_extensions; do
  3105. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3106. ac_cv_prog_ac_ct_CC="gcc"
  3107. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3108. break 2
  3109. fi
  3110. done
  3111. done
  3112. IFS=$as_save_IFS
  3113. fi
  3114. fi
  3115. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3116. if test -n "$ac_ct_CC"; then
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3118. $as_echo "$ac_ct_CC" >&6; }
  3119. else
  3120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3121. $as_echo "no" >&6; }
  3122. fi
  3123. if test "x$ac_ct_CC" = x; then
  3124. CC=""
  3125. else
  3126. case $cross_compiling:$ac_tool_warned in
  3127. yes:)
  3128. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3129. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3130. ac_tool_warned=yes ;;
  3131. esac
  3132. CC=$ac_ct_CC
  3133. fi
  3134. else
  3135. CC="$ac_cv_prog_CC"
  3136. fi
  3137. if test -z "$CC"; then
  3138. if test -n "$ac_tool_prefix"; then
  3139. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3140. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3142. $as_echo_n "checking for $ac_word... " >&6; }
  3143. if ${ac_cv_prog_CC+:} false; then :
  3144. $as_echo_n "(cached) " >&6
  3145. else
  3146. if test -n "$CC"; then
  3147. ac_cv_prog_CC="$CC" # Let the user override the test.
  3148. else
  3149. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3150. for as_dir in $PATH
  3151. do
  3152. IFS=$as_save_IFS
  3153. test -z "$as_dir" && as_dir=.
  3154. for ac_exec_ext in '' $ac_executable_extensions; do
  3155. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3156. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3157. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3158. break 2
  3159. fi
  3160. done
  3161. done
  3162. IFS=$as_save_IFS
  3163. fi
  3164. fi
  3165. CC=$ac_cv_prog_CC
  3166. if test -n "$CC"; then
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3168. $as_echo "$CC" >&6; }
  3169. else
  3170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3171. $as_echo "no" >&6; }
  3172. fi
  3173. fi
  3174. fi
  3175. if test -z "$CC"; then
  3176. # Extract the first word of "cc", so it can be a program name with args.
  3177. set dummy cc; ac_word=$2
  3178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3179. $as_echo_n "checking for $ac_word... " >&6; }
  3180. if ${ac_cv_prog_CC+:} false; then :
  3181. $as_echo_n "(cached) " >&6
  3182. else
  3183. if test -n "$CC"; then
  3184. ac_cv_prog_CC="$CC" # Let the user override the test.
  3185. else
  3186. ac_prog_rejected=no
  3187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3188. for as_dir in $PATH
  3189. do
  3190. IFS=$as_save_IFS
  3191. test -z "$as_dir" && as_dir=.
  3192. for ac_exec_ext in '' $ac_executable_extensions; do
  3193. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3194. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3195. ac_prog_rejected=yes
  3196. continue
  3197. fi
  3198. ac_cv_prog_CC="cc"
  3199. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3200. break 2
  3201. fi
  3202. done
  3203. done
  3204. IFS=$as_save_IFS
  3205. if test $ac_prog_rejected = yes; then
  3206. # We found a bogon in the path, so make sure we never use it.
  3207. set dummy $ac_cv_prog_CC
  3208. shift
  3209. if test $# != 0; then
  3210. # We chose a different compiler from the bogus one.
  3211. # However, it has the same basename, so the bogon will be chosen
  3212. # first if we set CC to just the basename; use the full file name.
  3213. shift
  3214. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3215. fi
  3216. fi
  3217. fi
  3218. fi
  3219. CC=$ac_cv_prog_CC
  3220. if test -n "$CC"; then
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3222. $as_echo "$CC" >&6; }
  3223. else
  3224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3225. $as_echo "no" >&6; }
  3226. fi
  3227. fi
  3228. if test -z "$CC"; then
  3229. if test -n "$ac_tool_prefix"; then
  3230. for ac_prog in cl.exe
  3231. do
  3232. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3233. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3234. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3235. $as_echo_n "checking for $ac_word... " >&6; }
  3236. if ${ac_cv_prog_CC+:} false; then :
  3237. $as_echo_n "(cached) " >&6
  3238. else
  3239. if test -n "$CC"; then
  3240. ac_cv_prog_CC="$CC" # Let the user override the test.
  3241. else
  3242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3243. for as_dir in $PATH
  3244. do
  3245. IFS=$as_save_IFS
  3246. test -z "$as_dir" && as_dir=.
  3247. for ac_exec_ext in '' $ac_executable_extensions; do
  3248. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3249. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3250. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3251. break 2
  3252. fi
  3253. done
  3254. done
  3255. IFS=$as_save_IFS
  3256. fi
  3257. fi
  3258. CC=$ac_cv_prog_CC
  3259. if test -n "$CC"; then
  3260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3261. $as_echo "$CC" >&6; }
  3262. else
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3264. $as_echo "no" >&6; }
  3265. fi
  3266. test -n "$CC" && break
  3267. done
  3268. fi
  3269. if test -z "$CC"; then
  3270. ac_ct_CC=$CC
  3271. for ac_prog in cl.exe
  3272. do
  3273. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3274. set dummy $ac_prog; ac_word=$2
  3275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3276. $as_echo_n "checking for $ac_word... " >&6; }
  3277. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3278. $as_echo_n "(cached) " >&6
  3279. else
  3280. if test -n "$ac_ct_CC"; then
  3281. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3282. else
  3283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3284. for as_dir in $PATH
  3285. do
  3286. IFS=$as_save_IFS
  3287. test -z "$as_dir" && as_dir=.
  3288. for ac_exec_ext in '' $ac_executable_extensions; do
  3289. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3290. ac_cv_prog_ac_ct_CC="$ac_prog"
  3291. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3292. break 2
  3293. fi
  3294. done
  3295. done
  3296. IFS=$as_save_IFS
  3297. fi
  3298. fi
  3299. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3300. if test -n "$ac_ct_CC"; then
  3301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3302. $as_echo "$ac_ct_CC" >&6; }
  3303. else
  3304. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3305. $as_echo "no" >&6; }
  3306. fi
  3307. test -n "$ac_ct_CC" && break
  3308. done
  3309. if test "x$ac_ct_CC" = x; then
  3310. CC=""
  3311. else
  3312. case $cross_compiling:$ac_tool_warned in
  3313. yes:)
  3314. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3315. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3316. ac_tool_warned=yes ;;
  3317. esac
  3318. CC=$ac_ct_CC
  3319. fi
  3320. fi
  3321. fi
  3322. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3323. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3324. as_fn_error $? "no acceptable C compiler found in \$PATH
  3325. See \`config.log' for more details" "$LINENO" 5; }
  3326. # Provide some information about the compiler.
  3327. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3328. set X $ac_compile
  3329. ac_compiler=$2
  3330. for ac_option in --version -v -V -qversion; do
  3331. { { ac_try="$ac_compiler $ac_option >&5"
  3332. case "(($ac_try" in
  3333. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3334. *) ac_try_echo=$ac_try;;
  3335. esac
  3336. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3337. $as_echo "$ac_try_echo"; } >&5
  3338. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3339. ac_status=$?
  3340. if test -s conftest.err; then
  3341. sed '10a\
  3342. ... rest of stderr output deleted ...
  3343. 10q' conftest.err >conftest.er1
  3344. cat conftest.er1 >&5
  3345. fi
  3346. rm -f conftest.er1 conftest.err
  3347. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3348. test $ac_status = 0; }
  3349. done
  3350. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3351. /* end confdefs.h. */
  3352. int
  3353. main ()
  3354. {
  3355. ;
  3356. return 0;
  3357. }
  3358. _ACEOF
  3359. ac_clean_files_save=$ac_clean_files
  3360. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3361. # Try to create an executable without -o first, disregard a.out.
  3362. # It will help us diagnose broken compilers, and finding out an intuition
  3363. # of exeext.
  3364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3365. $as_echo_n "checking whether the C compiler works... " >&6; }
  3366. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3367. # The possible output files:
  3368. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3369. ac_rmfiles=
  3370. for ac_file in $ac_files
  3371. do
  3372. case $ac_file in
  3373. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3374. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3375. esac
  3376. done
  3377. rm -f $ac_rmfiles
  3378. if { { ac_try="$ac_link_default"
  3379. case "(($ac_try" in
  3380. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3381. *) ac_try_echo=$ac_try;;
  3382. esac
  3383. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3384. $as_echo "$ac_try_echo"; } >&5
  3385. (eval "$ac_link_default") 2>&5
  3386. ac_status=$?
  3387. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3388. test $ac_status = 0; }; then :
  3389. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3390. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3391. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3392. # so that the user can short-circuit this test for compilers unknown to
  3393. # Autoconf.
  3394. for ac_file in $ac_files ''
  3395. do
  3396. test -f "$ac_file" || continue
  3397. case $ac_file in
  3398. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3399. ;;
  3400. [ab].out )
  3401. # We found the default executable, but exeext='' is most
  3402. # certainly right.
  3403. break;;
  3404. *.* )
  3405. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3406. then :; else
  3407. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3408. fi
  3409. # We set ac_cv_exeext here because the later test for it is not
  3410. # safe: cross compilers may not add the suffix if given an `-o'
  3411. # argument, so we may need to know it at that point already.
  3412. # Even if this section looks crufty: it has the advantage of
  3413. # actually working.
  3414. break;;
  3415. * )
  3416. break;;
  3417. esac
  3418. done
  3419. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3420. else
  3421. ac_file=''
  3422. fi
  3423. if test -z "$ac_file"; then :
  3424. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3425. $as_echo "no" >&6; }
  3426. $as_echo "$as_me: failed program was:" >&5
  3427. sed 's/^/| /' conftest.$ac_ext >&5
  3428. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3429. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3430. as_fn_error 77 "C compiler cannot create executables
  3431. See \`config.log' for more details" "$LINENO" 5; }
  3432. else
  3433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3434. $as_echo "yes" >&6; }
  3435. fi
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3437. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3439. $as_echo "$ac_file" >&6; }
  3440. ac_exeext=$ac_cv_exeext
  3441. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3442. ac_clean_files=$ac_clean_files_save
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3444. $as_echo_n "checking for suffix of executables... " >&6; }
  3445. if { { ac_try="$ac_link"
  3446. case "(($ac_try" in
  3447. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3448. *) ac_try_echo=$ac_try;;
  3449. esac
  3450. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3451. $as_echo "$ac_try_echo"; } >&5
  3452. (eval "$ac_link") 2>&5
  3453. ac_status=$?
  3454. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3455. test $ac_status = 0; }; then :
  3456. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3457. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3458. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3459. # `rm'.
  3460. for ac_file in conftest.exe conftest conftest.*; do
  3461. test -f "$ac_file" || continue
  3462. case $ac_file in
  3463. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3464. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3465. break;;
  3466. * ) break;;
  3467. esac
  3468. done
  3469. else
  3470. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3471. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3472. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3473. See \`config.log' for more details" "$LINENO" 5; }
  3474. fi
  3475. rm -f conftest conftest$ac_cv_exeext
  3476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3477. $as_echo "$ac_cv_exeext" >&6; }
  3478. rm -f conftest.$ac_ext
  3479. EXEEXT=$ac_cv_exeext
  3480. ac_exeext=$EXEEXT
  3481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3482. /* end confdefs.h. */
  3483. #include <stdio.h>
  3484. int
  3485. main ()
  3486. {
  3487. FILE *f = fopen ("conftest.out", "w");
  3488. return ferror (f) || fclose (f) != 0;
  3489. ;
  3490. return 0;
  3491. }
  3492. _ACEOF
  3493. ac_clean_files="$ac_clean_files conftest.out"
  3494. # Check that the compiler produces executables we can run. If not, either
  3495. # the compiler is broken, or we cross compile.
  3496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3497. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3498. if test "$cross_compiling" != yes; then
  3499. { { ac_try="$ac_link"
  3500. case "(($ac_try" in
  3501. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3502. *) ac_try_echo=$ac_try;;
  3503. esac
  3504. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3505. $as_echo "$ac_try_echo"; } >&5
  3506. (eval "$ac_link") 2>&5
  3507. ac_status=$?
  3508. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3509. test $ac_status = 0; }
  3510. if { ac_try='./conftest$ac_cv_exeext'
  3511. { { case "(($ac_try" in
  3512. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3513. *) ac_try_echo=$ac_try;;
  3514. esac
  3515. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3516. $as_echo "$ac_try_echo"; } >&5
  3517. (eval "$ac_try") 2>&5
  3518. ac_status=$?
  3519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3520. test $ac_status = 0; }; }; then
  3521. cross_compiling=no
  3522. else
  3523. if test "$cross_compiling" = maybe; then
  3524. cross_compiling=yes
  3525. else
  3526. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3527. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3528. as_fn_error $? "cannot run C compiled programs.
  3529. If you meant to cross compile, use \`--host'.
  3530. See \`config.log' for more details" "$LINENO" 5; }
  3531. fi
  3532. fi
  3533. fi
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3535. $as_echo "$cross_compiling" >&6; }
  3536. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3537. ac_clean_files=$ac_clean_files_save
  3538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3539. $as_echo_n "checking for suffix of object files... " >&6; }
  3540. if ${ac_cv_objext+:} false; then :
  3541. $as_echo_n "(cached) " >&6
  3542. else
  3543. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3544. /* end confdefs.h. */
  3545. int
  3546. main ()
  3547. {
  3548. ;
  3549. return 0;
  3550. }
  3551. _ACEOF
  3552. rm -f conftest.o conftest.obj
  3553. if { { ac_try="$ac_compile"
  3554. case "(($ac_try" in
  3555. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3556. *) ac_try_echo=$ac_try;;
  3557. esac
  3558. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3559. $as_echo "$ac_try_echo"; } >&5
  3560. (eval "$ac_compile") 2>&5
  3561. ac_status=$?
  3562. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3563. test $ac_status = 0; }; then :
  3564. for ac_file in conftest.o conftest.obj conftest.*; do
  3565. test -f "$ac_file" || continue;
  3566. case $ac_file in
  3567. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3568. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3569. break;;
  3570. esac
  3571. done
  3572. else
  3573. $as_echo "$as_me: failed program was:" >&5
  3574. sed 's/^/| /' conftest.$ac_ext >&5
  3575. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3576. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3577. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3578. See \`config.log' for more details" "$LINENO" 5; }
  3579. fi
  3580. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3581. fi
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3583. $as_echo "$ac_cv_objext" >&6; }
  3584. OBJEXT=$ac_cv_objext
  3585. ac_objext=$OBJEXT
  3586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3587. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3588. if ${ac_cv_c_compiler_gnu+:} false; then :
  3589. $as_echo_n "(cached) " >&6
  3590. else
  3591. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3592. /* end confdefs.h. */
  3593. int
  3594. main ()
  3595. {
  3596. #ifndef __GNUC__
  3597. choke me
  3598. #endif
  3599. ;
  3600. return 0;
  3601. }
  3602. _ACEOF
  3603. if ac_fn_c_try_compile "$LINENO"; then :
  3604. ac_compiler_gnu=yes
  3605. else
  3606. ac_compiler_gnu=no
  3607. fi
  3608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3609. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3610. fi
  3611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3612. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3613. if test $ac_compiler_gnu = yes; then
  3614. GCC=yes
  3615. else
  3616. GCC=
  3617. fi
  3618. ac_test_CFLAGS=${CFLAGS+set}
  3619. ac_save_CFLAGS=$CFLAGS
  3620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3621. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3622. if ${ac_cv_prog_cc_g+:} false; then :
  3623. $as_echo_n "(cached) " >&6
  3624. else
  3625. ac_save_c_werror_flag=$ac_c_werror_flag
  3626. ac_c_werror_flag=yes
  3627. ac_cv_prog_cc_g=no
  3628. CFLAGS="-g"
  3629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3630. /* end confdefs.h. */
  3631. int
  3632. main ()
  3633. {
  3634. ;
  3635. return 0;
  3636. }
  3637. _ACEOF
  3638. if ac_fn_c_try_compile "$LINENO"; then :
  3639. ac_cv_prog_cc_g=yes
  3640. else
  3641. CFLAGS=""
  3642. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3643. /* end confdefs.h. */
  3644. int
  3645. main ()
  3646. {
  3647. ;
  3648. return 0;
  3649. }
  3650. _ACEOF
  3651. if ac_fn_c_try_compile "$LINENO"; then :
  3652. else
  3653. ac_c_werror_flag=$ac_save_c_werror_flag
  3654. CFLAGS="-g"
  3655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3656. /* end confdefs.h. */
  3657. int
  3658. main ()
  3659. {
  3660. ;
  3661. return 0;
  3662. }
  3663. _ACEOF
  3664. if ac_fn_c_try_compile "$LINENO"; then :
  3665. ac_cv_prog_cc_g=yes
  3666. fi
  3667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3668. fi
  3669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3670. fi
  3671. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3672. ac_c_werror_flag=$ac_save_c_werror_flag
  3673. fi
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3675. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3676. if test "$ac_test_CFLAGS" = set; then
  3677. CFLAGS=$ac_save_CFLAGS
  3678. elif test $ac_cv_prog_cc_g = yes; then
  3679. if test "$GCC" = yes; then
  3680. CFLAGS="-g -O2"
  3681. else
  3682. CFLAGS="-g"
  3683. fi
  3684. else
  3685. if test "$GCC" = yes; then
  3686. CFLAGS="-O2"
  3687. else
  3688. CFLAGS=
  3689. fi
  3690. fi
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3692. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3693. if ${ac_cv_prog_cc_c89+:} false; then :
  3694. $as_echo_n "(cached) " >&6
  3695. else
  3696. ac_cv_prog_cc_c89=no
  3697. ac_save_CC=$CC
  3698. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3699. /* end confdefs.h. */
  3700. #include <stdarg.h>
  3701. #include <stdio.h>
  3702. struct stat;
  3703. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3704. struct buf { int x; };
  3705. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3706. static char *e (p, i)
  3707. char **p;
  3708. int i;
  3709. {
  3710. return p[i];
  3711. }
  3712. static char *f (char * (*g) (char **, int), char **p, ...)
  3713. {
  3714. char *s;
  3715. va_list v;
  3716. va_start (v,p);
  3717. s = g (p, va_arg (v,int));
  3718. va_end (v);
  3719. return s;
  3720. }
  3721. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3722. function prototypes and stuff, but not '\xHH' hex character constants.
  3723. These don't provoke an error unfortunately, instead are silently treated
  3724. as 'x'. The following induces an error, until -std is added to get
  3725. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3726. array size at least. It's necessary to write '\x00'==0 to get something
  3727. that's true only with -std. */
  3728. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3729. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3730. inside strings and character constants. */
  3731. #define FOO(x) 'x'
  3732. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3733. int test (int i, double x);
  3734. struct s1 {int (*f) (int a);};
  3735. struct s2 {int (*f) (double a);};
  3736. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3737. int argc;
  3738. char **argv;
  3739. int
  3740. main ()
  3741. {
  3742. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3743. ;
  3744. return 0;
  3745. }
  3746. _ACEOF
  3747. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3748. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3749. do
  3750. CC="$ac_save_CC $ac_arg"
  3751. if ac_fn_c_try_compile "$LINENO"; then :
  3752. ac_cv_prog_cc_c89=$ac_arg
  3753. fi
  3754. rm -f core conftest.err conftest.$ac_objext
  3755. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3756. done
  3757. rm -f conftest.$ac_ext
  3758. CC=$ac_save_CC
  3759. fi
  3760. # AC_CACHE_VAL
  3761. case "x$ac_cv_prog_cc_c89" in
  3762. x)
  3763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3764. $as_echo "none needed" >&6; } ;;
  3765. xno)
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3767. $as_echo "unsupported" >&6; } ;;
  3768. *)
  3769. CC="$CC $ac_cv_prog_cc_c89"
  3770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3771. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3772. esac
  3773. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3774. fi
  3775. ac_ext=cpp
  3776. ac_cpp='$CXXCPP $CPPFLAGS'
  3777. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3778. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3779. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3780. ac_ext=c
  3781. ac_cpp='$CPP $CPPFLAGS'
  3782. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3783. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3784. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3785. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3786. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3787. if ${am_cv_prog_cc_c_o+:} false; then :
  3788. $as_echo_n "(cached) " >&6
  3789. else
  3790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3791. /* end confdefs.h. */
  3792. int
  3793. main ()
  3794. {
  3795. ;
  3796. return 0;
  3797. }
  3798. _ACEOF
  3799. # Make sure it works both with $CC and with simple cc.
  3800. # Following AC_PROG_CC_C_O, we do the test twice because some
  3801. # compilers refuse to overwrite an existing .o file with -o,
  3802. # though they will create one.
  3803. am_cv_prog_cc_c_o=yes
  3804. for am_i in 1 2; do
  3805. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3806. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3807. ac_status=$?
  3808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3809. (exit $ac_status); } \
  3810. && test -f conftest2.$ac_objext; then
  3811. : OK
  3812. else
  3813. am_cv_prog_cc_c_o=no
  3814. break
  3815. fi
  3816. done
  3817. rm -f core conftest*
  3818. unset am_i
  3819. fi
  3820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3821. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3822. if test "$am_cv_prog_cc_c_o" != yes; then
  3823. # Losing compiler, so override with the script.
  3824. # FIXME: It is wrong to rewrite CC.
  3825. # But if we don't then we get into trouble of one sort or another.
  3826. # A longer-term fix would be to have automake use am__CC in this case,
  3827. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3828. CC="$am_aux_dir/compile $CC"
  3829. fi
  3830. ac_ext=cpp
  3831. ac_cpp='$CXXCPP $CPPFLAGS'
  3832. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3833. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3834. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3835. DEPDIR="${am__leading_dot}deps"
  3836. ac_config_commands="$ac_config_commands depfiles"
  3837. am_make=${MAKE-make}
  3838. cat > confinc << 'END'
  3839. am__doit:
  3840. @echo this is the am__doit target
  3841. .PHONY: am__doit
  3842. END
  3843. # If we don't find an include directive, just comment out the code.
  3844. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3845. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3846. am__include="#"
  3847. am__quote=
  3848. _am_result=none
  3849. # First try GNU make style include.
  3850. echo "include confinc" > confmf
  3851. # Ignore all kinds of additional output from 'make'.
  3852. case `$am_make -s -f confmf 2> /dev/null` in #(
  3853. *the\ am__doit\ target*)
  3854. am__include=include
  3855. am__quote=
  3856. _am_result=GNU
  3857. ;;
  3858. esac
  3859. # Now try BSD make style include.
  3860. if test "$am__include" = "#"; then
  3861. echo '.include "confinc"' > confmf
  3862. case `$am_make -s -f confmf 2> /dev/null` in #(
  3863. *the\ am__doit\ target*)
  3864. am__include=.include
  3865. am__quote="\""
  3866. _am_result=BSD
  3867. ;;
  3868. esac
  3869. fi
  3870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3871. $as_echo "$_am_result" >&6; }
  3872. rm -f confinc confmf
  3873. # Check whether --enable-dependency-tracking was given.
  3874. if test "${enable_dependency_tracking+set}" = set; then :
  3875. enableval=$enable_dependency_tracking;
  3876. fi
  3877. if test "x$enable_dependency_tracking" != xno; then
  3878. am_depcomp="$ac_aux_dir/depcomp"
  3879. AMDEPBACKSLASH='\'
  3880. am__nodep='_no'
  3881. fi
  3882. if test "x$enable_dependency_tracking" != xno; then
  3883. AMDEP_TRUE=
  3884. AMDEP_FALSE='#'
  3885. else
  3886. AMDEP_TRUE='#'
  3887. AMDEP_FALSE=
  3888. fi
  3889. depcc="$CC" am_compiler_list=
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3891. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3892. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3893. $as_echo_n "(cached) " >&6
  3894. else
  3895. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3896. # We make a subdir and do the tests there. Otherwise we can end up
  3897. # making bogus files that we don't know about and never remove. For
  3898. # instance it was reported that on HP-UX the gcc test will end up
  3899. # making a dummy file named 'D' -- because '-MD' means "put the output
  3900. # in D".
  3901. rm -rf conftest.dir
  3902. mkdir conftest.dir
  3903. # Copy depcomp to subdir because otherwise we won't find it if we're
  3904. # using a relative directory.
  3905. cp "$am_depcomp" conftest.dir
  3906. cd conftest.dir
  3907. # We will build objects and dependencies in a subdirectory because
  3908. # it helps to detect inapplicable dependency modes. For instance
  3909. # both Tru64's cc and ICC support -MD to output dependencies as a
  3910. # side effect of compilation, but ICC will put the dependencies in
  3911. # the current directory while Tru64 will put them in the object
  3912. # directory.
  3913. mkdir sub
  3914. am_cv_CC_dependencies_compiler_type=none
  3915. if test "$am_compiler_list" = ""; then
  3916. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3917. fi
  3918. am__universal=false
  3919. case " $depcc " in #(
  3920. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3921. esac
  3922. for depmode in $am_compiler_list; do
  3923. # Setup a source with many dependencies, because some compilers
  3924. # like to wrap large dependency lists on column 80 (with \), and
  3925. # we should not choose a depcomp mode which is confused by this.
  3926. #
  3927. # We need to recreate these files for each test, as the compiler may
  3928. # overwrite some of them when testing with obscure command lines.
  3929. # This happens at least with the AIX C compiler.
  3930. : > sub/conftest.c
  3931. for i in 1 2 3 4 5 6; do
  3932. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3933. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3934. # Solaris 10 /bin/sh.
  3935. echo '/* dummy */' > sub/conftst$i.h
  3936. done
  3937. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3938. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3939. # mode. It turns out that the SunPro C++ compiler does not properly
  3940. # handle '-M -o', and we need to detect this. Also, some Intel
  3941. # versions had trouble with output in subdirs.
  3942. am__obj=sub/conftest.${OBJEXT-o}
  3943. am__minus_obj="-o $am__obj"
  3944. case $depmode in
  3945. gcc)
  3946. # This depmode causes a compiler race in universal mode.
  3947. test "$am__universal" = false || continue
  3948. ;;
  3949. nosideeffect)
  3950. # After this tag, mechanisms are not by side-effect, so they'll
  3951. # only be used when explicitly requested.
  3952. if test "x$enable_dependency_tracking" = xyes; then
  3953. continue
  3954. else
  3955. break
  3956. fi
  3957. ;;
  3958. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3959. # This compiler won't grok '-c -o', but also, the minuso test has
  3960. # not run yet. These depmodes are late enough in the game, and
  3961. # so weak that their functioning should not be impacted.
  3962. am__obj=conftest.${OBJEXT-o}
  3963. am__minus_obj=
  3964. ;;
  3965. none) break ;;
  3966. esac
  3967. if depmode=$depmode \
  3968. source=sub/conftest.c object=$am__obj \
  3969. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3970. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3971. >/dev/null 2>conftest.err &&
  3972. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3973. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3974. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3975. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3976. # icc doesn't choke on unknown options, it will just issue warnings
  3977. # or remarks (even with -Werror). So we grep stderr for any message
  3978. # that says an option was ignored or not supported.
  3979. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3980. # icc: Command line warning: ignoring option '-M'; no argument required
  3981. # The diagnosis changed in icc 8.0:
  3982. # icc: Command line remark: option '-MP' not supported
  3983. if (grep 'ignoring option' conftest.err ||
  3984. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3985. am_cv_CC_dependencies_compiler_type=$depmode
  3986. break
  3987. fi
  3988. fi
  3989. done
  3990. cd ..
  3991. rm -rf conftest.dir
  3992. else
  3993. am_cv_CC_dependencies_compiler_type=none
  3994. fi
  3995. fi
  3996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3997. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3998. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3999. if
  4000. test "x$enable_dependency_tracking" != xno \
  4001. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4002. am__fastdepCC_TRUE=
  4003. am__fastdepCC_FALSE='#'
  4004. else
  4005. am__fastdepCC_TRUE='#'
  4006. am__fastdepCC_FALSE=
  4007. fi
  4008. ac_ext=c
  4009. ac_cpp='$CPP $CPPFLAGS'
  4010. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4011. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4012. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  4014. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  4015. # On Suns, sometimes $CPP names a directory.
  4016. if test -n "$CPP" && test -d "$CPP"; then
  4017. CPP=
  4018. fi
  4019. if test -z "$CPP"; then
  4020. if ${ac_cv_prog_CPP+:} false; then :
  4021. $as_echo_n "(cached) " >&6
  4022. else
  4023. # Double quotes because CPP needs to be expanded
  4024. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  4025. do
  4026. ac_preproc_ok=false
  4027. for ac_c_preproc_warn_flag in '' yes
  4028. do
  4029. # Use a header file that comes with gcc, so configuring glibc
  4030. # with a fresh cross-compiler works.
  4031. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4032. # <limits.h> exists even on freestanding compilers.
  4033. # On the NeXT, cc -E runs the code through the compiler's parser,
  4034. # not just through cpp. "Syntax error" is here to catch this case.
  4035. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4036. /* end confdefs.h. */
  4037. #ifdef __STDC__
  4038. # include <limits.h>
  4039. #else
  4040. # include <assert.h>
  4041. #endif
  4042. Syntax error
  4043. _ACEOF
  4044. if ac_fn_c_try_cpp "$LINENO"; then :
  4045. else
  4046. # Broken: fails on valid input.
  4047. continue
  4048. fi
  4049. rm -f conftest.err conftest.i conftest.$ac_ext
  4050. # OK, works on sane cases. Now check whether nonexistent headers
  4051. # can be detected and how.
  4052. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4053. /* end confdefs.h. */
  4054. #include <ac_nonexistent.h>
  4055. _ACEOF
  4056. if ac_fn_c_try_cpp "$LINENO"; then :
  4057. # Broken: success on invalid input.
  4058. continue
  4059. else
  4060. # Passes both tests.
  4061. ac_preproc_ok=:
  4062. break
  4063. fi
  4064. rm -f conftest.err conftest.i conftest.$ac_ext
  4065. done
  4066. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4067. rm -f conftest.i conftest.err conftest.$ac_ext
  4068. if $ac_preproc_ok; then :
  4069. break
  4070. fi
  4071. done
  4072. ac_cv_prog_CPP=$CPP
  4073. fi
  4074. CPP=$ac_cv_prog_CPP
  4075. else
  4076. ac_cv_prog_CPP=$CPP
  4077. fi
  4078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  4079. $as_echo "$CPP" >&6; }
  4080. ac_preproc_ok=false
  4081. for ac_c_preproc_warn_flag in '' yes
  4082. do
  4083. # Use a header file that comes with gcc, so configuring glibc
  4084. # with a fresh cross-compiler works.
  4085. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4086. # <limits.h> exists even on freestanding compilers.
  4087. # On the NeXT, cc -E runs the code through the compiler's parser,
  4088. # not just through cpp. "Syntax error" is here to catch this case.
  4089. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4090. /* end confdefs.h. */
  4091. #ifdef __STDC__
  4092. # include <limits.h>
  4093. #else
  4094. # include <assert.h>
  4095. #endif
  4096. Syntax error
  4097. _ACEOF
  4098. if ac_fn_c_try_cpp "$LINENO"; then :
  4099. else
  4100. # Broken: fails on valid input.
  4101. continue
  4102. fi
  4103. rm -f conftest.err conftest.i conftest.$ac_ext
  4104. # OK, works on sane cases. Now check whether nonexistent headers
  4105. # can be detected and how.
  4106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4107. /* end confdefs.h. */
  4108. #include <ac_nonexistent.h>
  4109. _ACEOF
  4110. if ac_fn_c_try_cpp "$LINENO"; then :
  4111. # Broken: success on invalid input.
  4112. continue
  4113. else
  4114. # Passes both tests.
  4115. ac_preproc_ok=:
  4116. break
  4117. fi
  4118. rm -f conftest.err conftest.i conftest.$ac_ext
  4119. done
  4120. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4121. rm -f conftest.i conftest.err conftest.$ac_ext
  4122. if $ac_preproc_ok; then :
  4123. else
  4124. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4125. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4126. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  4127. See \`config.log' for more details" "$LINENO" 5; }
  4128. fi
  4129. ac_ext=cpp
  4130. ac_cpp='$CXXCPP $CPPFLAGS'
  4131. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4132. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4133. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4134. ac_ext=cpp
  4135. ac_cpp='$CXXCPP $CPPFLAGS'
  4136. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4137. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4138. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4139. if test -z "$CXX"; then
  4140. if test -n "$CCC"; then
  4141. CXX=$CCC
  4142. else
  4143. if test -n "$ac_tool_prefix"; then
  4144. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4145. do
  4146. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4147. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4149. $as_echo_n "checking for $ac_word... " >&6; }
  4150. if ${ac_cv_prog_CXX+:} false; then :
  4151. $as_echo_n "(cached) " >&6
  4152. else
  4153. if test -n "$CXX"; then
  4154. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4155. else
  4156. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4157. for as_dir in $PATH
  4158. do
  4159. IFS=$as_save_IFS
  4160. test -z "$as_dir" && as_dir=.
  4161. for ac_exec_ext in '' $ac_executable_extensions; do
  4162. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4163. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4164. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4165. break 2
  4166. fi
  4167. done
  4168. done
  4169. IFS=$as_save_IFS
  4170. fi
  4171. fi
  4172. CXX=$ac_cv_prog_CXX
  4173. if test -n "$CXX"; then
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4175. $as_echo "$CXX" >&6; }
  4176. else
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4178. $as_echo "no" >&6; }
  4179. fi
  4180. test -n "$CXX" && break
  4181. done
  4182. fi
  4183. if test -z "$CXX"; then
  4184. ac_ct_CXX=$CXX
  4185. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4186. do
  4187. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4188. set dummy $ac_prog; ac_word=$2
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4190. $as_echo_n "checking for $ac_word... " >&6; }
  4191. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4192. $as_echo_n "(cached) " >&6
  4193. else
  4194. if test -n "$ac_ct_CXX"; then
  4195. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4196. else
  4197. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4198. for as_dir in $PATH
  4199. do
  4200. IFS=$as_save_IFS
  4201. test -z "$as_dir" && as_dir=.
  4202. for ac_exec_ext in '' $ac_executable_extensions; do
  4203. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4204. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4205. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4206. break 2
  4207. fi
  4208. done
  4209. done
  4210. IFS=$as_save_IFS
  4211. fi
  4212. fi
  4213. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4214. if test -n "$ac_ct_CXX"; then
  4215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4216. $as_echo "$ac_ct_CXX" >&6; }
  4217. else
  4218. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4219. $as_echo "no" >&6; }
  4220. fi
  4221. test -n "$ac_ct_CXX" && break
  4222. done
  4223. if test "x$ac_ct_CXX" = x; then
  4224. CXX="g++"
  4225. else
  4226. case $cross_compiling:$ac_tool_warned in
  4227. yes:)
  4228. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4229. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4230. ac_tool_warned=yes ;;
  4231. esac
  4232. CXX=$ac_ct_CXX
  4233. fi
  4234. fi
  4235. fi
  4236. fi
  4237. # Provide some information about the compiler.
  4238. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4239. set X $ac_compile
  4240. ac_compiler=$2
  4241. for ac_option in --version -v -V -qversion; do
  4242. { { ac_try="$ac_compiler $ac_option >&5"
  4243. case "(($ac_try" in
  4244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4245. *) ac_try_echo=$ac_try;;
  4246. esac
  4247. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4248. $as_echo "$ac_try_echo"; } >&5
  4249. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4250. ac_status=$?
  4251. if test -s conftest.err; then
  4252. sed '10a\
  4253. ... rest of stderr output deleted ...
  4254. 10q' conftest.err >conftest.er1
  4255. cat conftest.er1 >&5
  4256. fi
  4257. rm -f conftest.er1 conftest.err
  4258. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4259. test $ac_status = 0; }
  4260. done
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4262. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4263. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4264. $as_echo_n "(cached) " >&6
  4265. else
  4266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4267. /* end confdefs.h. */
  4268. int
  4269. main ()
  4270. {
  4271. #ifndef __GNUC__
  4272. choke me
  4273. #endif
  4274. ;
  4275. return 0;
  4276. }
  4277. _ACEOF
  4278. if ac_fn_cxx_try_compile "$LINENO"; then :
  4279. ac_compiler_gnu=yes
  4280. else
  4281. ac_compiler_gnu=no
  4282. fi
  4283. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4284. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4285. fi
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4287. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4288. if test $ac_compiler_gnu = yes; then
  4289. GXX=yes
  4290. else
  4291. GXX=
  4292. fi
  4293. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4294. ac_save_CXXFLAGS=$CXXFLAGS
  4295. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4296. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4297. if ${ac_cv_prog_cxx_g+:} false; then :
  4298. $as_echo_n "(cached) " >&6
  4299. else
  4300. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4301. ac_cxx_werror_flag=yes
  4302. ac_cv_prog_cxx_g=no
  4303. CXXFLAGS="-g"
  4304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4305. /* end confdefs.h. */
  4306. int
  4307. main ()
  4308. {
  4309. ;
  4310. return 0;
  4311. }
  4312. _ACEOF
  4313. if ac_fn_cxx_try_compile "$LINENO"; then :
  4314. ac_cv_prog_cxx_g=yes
  4315. else
  4316. CXXFLAGS=""
  4317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4318. /* end confdefs.h. */
  4319. int
  4320. main ()
  4321. {
  4322. ;
  4323. return 0;
  4324. }
  4325. _ACEOF
  4326. if ac_fn_cxx_try_compile "$LINENO"; then :
  4327. else
  4328. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4329. CXXFLAGS="-g"
  4330. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4331. /* end confdefs.h. */
  4332. int
  4333. main ()
  4334. {
  4335. ;
  4336. return 0;
  4337. }
  4338. _ACEOF
  4339. if ac_fn_cxx_try_compile "$LINENO"; then :
  4340. ac_cv_prog_cxx_g=yes
  4341. fi
  4342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4343. fi
  4344. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4345. fi
  4346. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4347. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4348. fi
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4350. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4351. if test "$ac_test_CXXFLAGS" = set; then
  4352. CXXFLAGS=$ac_save_CXXFLAGS
  4353. elif test $ac_cv_prog_cxx_g = yes; then
  4354. if test "$GXX" = yes; then
  4355. CXXFLAGS="-g -O2"
  4356. else
  4357. CXXFLAGS="-g"
  4358. fi
  4359. else
  4360. if test "$GXX" = yes; then
  4361. CXXFLAGS="-O2"
  4362. else
  4363. CXXFLAGS=
  4364. fi
  4365. fi
  4366. ac_ext=cpp
  4367. ac_cpp='$CXXCPP $CPPFLAGS'
  4368. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4369. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4370. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4371. depcc="$CXX" am_compiler_list=
  4372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4373. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4374. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  4375. $as_echo_n "(cached) " >&6
  4376. else
  4377. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4378. # We make a subdir and do the tests there. Otherwise we can end up
  4379. # making bogus files that we don't know about and never remove. For
  4380. # instance it was reported that on HP-UX the gcc test will end up
  4381. # making a dummy file named 'D' -- because '-MD' means "put the output
  4382. # in D".
  4383. rm -rf conftest.dir
  4384. mkdir conftest.dir
  4385. # Copy depcomp to subdir because otherwise we won't find it if we're
  4386. # using a relative directory.
  4387. cp "$am_depcomp" conftest.dir
  4388. cd conftest.dir
  4389. # We will build objects and dependencies in a subdirectory because
  4390. # it helps to detect inapplicable dependency modes. For instance
  4391. # both Tru64's cc and ICC support -MD to output dependencies as a
  4392. # side effect of compilation, but ICC will put the dependencies in
  4393. # the current directory while Tru64 will put them in the object
  4394. # directory.
  4395. mkdir sub
  4396. am_cv_CXX_dependencies_compiler_type=none
  4397. if test "$am_compiler_list" = ""; then
  4398. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4399. fi
  4400. am__universal=false
  4401. case " $depcc " in #(
  4402. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4403. esac
  4404. for depmode in $am_compiler_list; do
  4405. # Setup a source with many dependencies, because some compilers
  4406. # like to wrap large dependency lists on column 80 (with \), and
  4407. # we should not choose a depcomp mode which is confused by this.
  4408. #
  4409. # We need to recreate these files for each test, as the compiler may
  4410. # overwrite some of them when testing with obscure command lines.
  4411. # This happens at least with the AIX C compiler.
  4412. : > sub/conftest.c
  4413. for i in 1 2 3 4 5 6; do
  4414. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4415. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4416. # Solaris 10 /bin/sh.
  4417. echo '/* dummy */' > sub/conftst$i.h
  4418. done
  4419. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4420. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4421. # mode. It turns out that the SunPro C++ compiler does not properly
  4422. # handle '-M -o', and we need to detect this. Also, some Intel
  4423. # versions had trouble with output in subdirs.
  4424. am__obj=sub/conftest.${OBJEXT-o}
  4425. am__minus_obj="-o $am__obj"
  4426. case $depmode in
  4427. gcc)
  4428. # This depmode causes a compiler race in universal mode.
  4429. test "$am__universal" = false || continue
  4430. ;;
  4431. nosideeffect)
  4432. # After this tag, mechanisms are not by side-effect, so they'll
  4433. # only be used when explicitly requested.
  4434. if test "x$enable_dependency_tracking" = xyes; then
  4435. continue
  4436. else
  4437. break
  4438. fi
  4439. ;;
  4440. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4441. # This compiler won't grok '-c -o', but also, the minuso test has
  4442. # not run yet. These depmodes are late enough in the game, and
  4443. # so weak that their functioning should not be impacted.
  4444. am__obj=conftest.${OBJEXT-o}
  4445. am__minus_obj=
  4446. ;;
  4447. none) break ;;
  4448. esac
  4449. if depmode=$depmode \
  4450. source=sub/conftest.c object=$am__obj \
  4451. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4452. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4453. >/dev/null 2>conftest.err &&
  4454. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4455. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4456. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4457. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4458. # icc doesn't choke on unknown options, it will just issue warnings
  4459. # or remarks (even with -Werror). So we grep stderr for any message
  4460. # that says an option was ignored or not supported.
  4461. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4462. # icc: Command line warning: ignoring option '-M'; no argument required
  4463. # The diagnosis changed in icc 8.0:
  4464. # icc: Command line remark: option '-MP' not supported
  4465. if (grep 'ignoring option' conftest.err ||
  4466. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4467. am_cv_CXX_dependencies_compiler_type=$depmode
  4468. break
  4469. fi
  4470. fi
  4471. done
  4472. cd ..
  4473. rm -rf conftest.dir
  4474. else
  4475. am_cv_CXX_dependencies_compiler_type=none
  4476. fi
  4477. fi
  4478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4479. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4480. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4481. if
  4482. test "x$enable_dependency_tracking" != xno \
  4483. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4484. am__fastdepCXX_TRUE=
  4485. am__fastdepCXX_FALSE='#'
  4486. else
  4487. am__fastdepCXX_TRUE='#'
  4488. am__fastdepCXX_FALSE=
  4489. fi
  4490. if test "$GCC" = yes; then
  4491. GCC_TRUE=
  4492. GCC_FALSE='#'
  4493. else
  4494. GCC_TRUE='#'
  4495. GCC_FALSE=
  4496. fi
  4497. # let the Makefile know if we're gcc
  4498. case `pwd` in
  4499. *\ * | *\ *)
  4500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4501. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4502. esac
  4503. macro_version='2.4.2'
  4504. macro_revision='1.3337'
  4505. ltmain="$ac_aux_dir/ltmain.sh"
  4506. # Make sure we can run config.sub.
  4507. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4508. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4509. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4510. $as_echo_n "checking build system type... " >&6; }
  4511. if ${ac_cv_build+:} false; then :
  4512. $as_echo_n "(cached) " >&6
  4513. else
  4514. ac_build_alias=$build_alias
  4515. test "x$ac_build_alias" = x &&
  4516. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4517. test "x$ac_build_alias" = x &&
  4518. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4519. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4520. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4521. fi
  4522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4523. $as_echo "$ac_cv_build" >&6; }
  4524. case $ac_cv_build in
  4525. *-*-*) ;;
  4526. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4527. esac
  4528. build=$ac_cv_build
  4529. ac_save_IFS=$IFS; IFS='-'
  4530. set x $ac_cv_build
  4531. shift
  4532. build_cpu=$1
  4533. build_vendor=$2
  4534. shift; shift
  4535. # Remember, the first character of IFS is used to create $*,
  4536. # except with old shells:
  4537. build_os=$*
  4538. IFS=$ac_save_IFS
  4539. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4541. $as_echo_n "checking host system type... " >&6; }
  4542. if ${ac_cv_host+:} false; then :
  4543. $as_echo_n "(cached) " >&6
  4544. else
  4545. if test "x$host_alias" = x; then
  4546. ac_cv_host=$ac_cv_build
  4547. else
  4548. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4549. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4550. fi
  4551. fi
  4552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4553. $as_echo "$ac_cv_host" >&6; }
  4554. case $ac_cv_host in
  4555. *-*-*) ;;
  4556. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4557. esac
  4558. host=$ac_cv_host
  4559. ac_save_IFS=$IFS; IFS='-'
  4560. set x $ac_cv_host
  4561. shift
  4562. host_cpu=$1
  4563. host_vendor=$2
  4564. shift; shift
  4565. # Remember, the first character of IFS is used to create $*,
  4566. # except with old shells:
  4567. host_os=$*
  4568. IFS=$ac_save_IFS
  4569. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4570. # Backslashify metacharacters that are still active within
  4571. # double-quoted strings.
  4572. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4573. # Same as above, but do not quote variable references.
  4574. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4575. # Sed substitution to delay expansion of an escaped shell variable in a
  4576. # double_quote_subst'ed string.
  4577. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4578. # Sed substitution to delay expansion of an escaped single quote.
  4579. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4580. # Sed substitution to avoid accidental globbing in evaled expressions
  4581. no_glob_subst='s/\*/\\\*/g'
  4582. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4583. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4584. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4586. $as_echo_n "checking how to print strings... " >&6; }
  4587. # Test print first, because it will be a builtin if present.
  4588. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4589. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4590. ECHO='print -r --'
  4591. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4592. ECHO='printf %s\n'
  4593. else
  4594. # Use this function as a fallback that always works.
  4595. func_fallback_echo ()
  4596. {
  4597. eval 'cat <<_LTECHO_EOF
  4598. $1
  4599. _LTECHO_EOF'
  4600. }
  4601. ECHO='func_fallback_echo'
  4602. fi
  4603. # func_echo_all arg...
  4604. # Invoke $ECHO with all args, space-separated.
  4605. func_echo_all ()
  4606. {
  4607. $ECHO ""
  4608. }
  4609. case "$ECHO" in
  4610. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4611. $as_echo "printf" >&6; } ;;
  4612. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4613. $as_echo "print -r" >&6; } ;;
  4614. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4615. $as_echo "cat" >&6; } ;;
  4616. esac
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4618. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4619. if ${ac_cv_path_SED+:} false; then :
  4620. $as_echo_n "(cached) " >&6
  4621. else
  4622. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4623. for ac_i in 1 2 3 4 5 6 7; do
  4624. ac_script="$ac_script$as_nl$ac_script"
  4625. done
  4626. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4627. { ac_script=; unset ac_script;}
  4628. if test -z "$SED"; then
  4629. ac_path_SED_found=false
  4630. # Loop through the user's path and test for each of PROGNAME-LIST
  4631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4632. for as_dir in $PATH
  4633. do
  4634. IFS=$as_save_IFS
  4635. test -z "$as_dir" && as_dir=.
  4636. for ac_prog in sed gsed; do
  4637. for ac_exec_ext in '' $ac_executable_extensions; do
  4638. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4639. as_fn_executable_p "$ac_path_SED" || continue
  4640. # Check for GNU ac_path_SED and select it if it is found.
  4641. # Check for GNU $ac_path_SED
  4642. case `"$ac_path_SED" --version 2>&1` in
  4643. *GNU*)
  4644. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4645. *)
  4646. ac_count=0
  4647. $as_echo_n 0123456789 >"conftest.in"
  4648. while :
  4649. do
  4650. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4651. mv "conftest.tmp" "conftest.in"
  4652. cp "conftest.in" "conftest.nl"
  4653. $as_echo '' >> "conftest.nl"
  4654. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4655. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4656. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4657. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4658. # Best one so far, save it but keep looking for a better one
  4659. ac_cv_path_SED="$ac_path_SED"
  4660. ac_path_SED_max=$ac_count
  4661. fi
  4662. # 10*(2^10) chars as input seems more than enough
  4663. test $ac_count -gt 10 && break
  4664. done
  4665. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4666. esac
  4667. $ac_path_SED_found && break 3
  4668. done
  4669. done
  4670. done
  4671. IFS=$as_save_IFS
  4672. if test -z "$ac_cv_path_SED"; then
  4673. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4674. fi
  4675. else
  4676. ac_cv_path_SED=$SED
  4677. fi
  4678. fi
  4679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4680. $as_echo "$ac_cv_path_SED" >&6; }
  4681. SED="$ac_cv_path_SED"
  4682. rm -f conftest.sed
  4683. test -z "$SED" && SED=sed
  4684. Xsed="$SED -e 1s/^X//"
  4685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4686. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4687. if ${ac_cv_path_GREP+:} false; then :
  4688. $as_echo_n "(cached) " >&6
  4689. else
  4690. if test -z "$GREP"; then
  4691. ac_path_GREP_found=false
  4692. # Loop through the user's path and test for each of PROGNAME-LIST
  4693. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4694. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4695. do
  4696. IFS=$as_save_IFS
  4697. test -z "$as_dir" && as_dir=.
  4698. for ac_prog in grep ggrep; do
  4699. for ac_exec_ext in '' $ac_executable_extensions; do
  4700. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4701. as_fn_executable_p "$ac_path_GREP" || continue
  4702. # Check for GNU ac_path_GREP and select it if it is found.
  4703. # Check for GNU $ac_path_GREP
  4704. case `"$ac_path_GREP" --version 2>&1` in
  4705. *GNU*)
  4706. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4707. *)
  4708. ac_count=0
  4709. $as_echo_n 0123456789 >"conftest.in"
  4710. while :
  4711. do
  4712. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4713. mv "conftest.tmp" "conftest.in"
  4714. cp "conftest.in" "conftest.nl"
  4715. $as_echo 'GREP' >> "conftest.nl"
  4716. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4717. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4718. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4719. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4720. # Best one so far, save it but keep looking for a better one
  4721. ac_cv_path_GREP="$ac_path_GREP"
  4722. ac_path_GREP_max=$ac_count
  4723. fi
  4724. # 10*(2^10) chars as input seems more than enough
  4725. test $ac_count -gt 10 && break
  4726. done
  4727. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4728. esac
  4729. $ac_path_GREP_found && break 3
  4730. done
  4731. done
  4732. done
  4733. IFS=$as_save_IFS
  4734. if test -z "$ac_cv_path_GREP"; then
  4735. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4736. fi
  4737. else
  4738. ac_cv_path_GREP=$GREP
  4739. fi
  4740. fi
  4741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4742. $as_echo "$ac_cv_path_GREP" >&6; }
  4743. GREP="$ac_cv_path_GREP"
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4745. $as_echo_n "checking for egrep... " >&6; }
  4746. if ${ac_cv_path_EGREP+:} false; then :
  4747. $as_echo_n "(cached) " >&6
  4748. else
  4749. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4750. then ac_cv_path_EGREP="$GREP -E"
  4751. else
  4752. if test -z "$EGREP"; then
  4753. ac_path_EGREP_found=false
  4754. # Loop through the user's path and test for each of PROGNAME-LIST
  4755. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4756. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4757. do
  4758. IFS=$as_save_IFS
  4759. test -z "$as_dir" && as_dir=.
  4760. for ac_prog in egrep; do
  4761. for ac_exec_ext in '' $ac_executable_extensions; do
  4762. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4763. as_fn_executable_p "$ac_path_EGREP" || continue
  4764. # Check for GNU ac_path_EGREP and select it if it is found.
  4765. # Check for GNU $ac_path_EGREP
  4766. case `"$ac_path_EGREP" --version 2>&1` in
  4767. *GNU*)
  4768. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4769. *)
  4770. ac_count=0
  4771. $as_echo_n 0123456789 >"conftest.in"
  4772. while :
  4773. do
  4774. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4775. mv "conftest.tmp" "conftest.in"
  4776. cp "conftest.in" "conftest.nl"
  4777. $as_echo 'EGREP' >> "conftest.nl"
  4778. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4779. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4780. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4781. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4782. # Best one so far, save it but keep looking for a better one
  4783. ac_cv_path_EGREP="$ac_path_EGREP"
  4784. ac_path_EGREP_max=$ac_count
  4785. fi
  4786. # 10*(2^10) chars as input seems more than enough
  4787. test $ac_count -gt 10 && break
  4788. done
  4789. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4790. esac
  4791. $ac_path_EGREP_found && break 3
  4792. done
  4793. done
  4794. done
  4795. IFS=$as_save_IFS
  4796. if test -z "$ac_cv_path_EGREP"; then
  4797. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4798. fi
  4799. else
  4800. ac_cv_path_EGREP=$EGREP
  4801. fi
  4802. fi
  4803. fi
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4805. $as_echo "$ac_cv_path_EGREP" >&6; }
  4806. EGREP="$ac_cv_path_EGREP"
  4807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4808. $as_echo_n "checking for fgrep... " >&6; }
  4809. if ${ac_cv_path_FGREP+:} false; then :
  4810. $as_echo_n "(cached) " >&6
  4811. else
  4812. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4813. then ac_cv_path_FGREP="$GREP -F"
  4814. else
  4815. if test -z "$FGREP"; then
  4816. ac_path_FGREP_found=false
  4817. # Loop through the user's path and test for each of PROGNAME-LIST
  4818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4819. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4820. do
  4821. IFS=$as_save_IFS
  4822. test -z "$as_dir" && as_dir=.
  4823. for ac_prog in fgrep; do
  4824. for ac_exec_ext in '' $ac_executable_extensions; do
  4825. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4826. as_fn_executable_p "$ac_path_FGREP" || continue
  4827. # Check for GNU ac_path_FGREP and select it if it is found.
  4828. # Check for GNU $ac_path_FGREP
  4829. case `"$ac_path_FGREP" --version 2>&1` in
  4830. *GNU*)
  4831. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4832. *)
  4833. ac_count=0
  4834. $as_echo_n 0123456789 >"conftest.in"
  4835. while :
  4836. do
  4837. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4838. mv "conftest.tmp" "conftest.in"
  4839. cp "conftest.in" "conftest.nl"
  4840. $as_echo 'FGREP' >> "conftest.nl"
  4841. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4842. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4843. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4844. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4845. # Best one so far, save it but keep looking for a better one
  4846. ac_cv_path_FGREP="$ac_path_FGREP"
  4847. ac_path_FGREP_max=$ac_count
  4848. fi
  4849. # 10*(2^10) chars as input seems more than enough
  4850. test $ac_count -gt 10 && break
  4851. done
  4852. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4853. esac
  4854. $ac_path_FGREP_found && break 3
  4855. done
  4856. done
  4857. done
  4858. IFS=$as_save_IFS
  4859. if test -z "$ac_cv_path_FGREP"; then
  4860. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4861. fi
  4862. else
  4863. ac_cv_path_FGREP=$FGREP
  4864. fi
  4865. fi
  4866. fi
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4868. $as_echo "$ac_cv_path_FGREP" >&6; }
  4869. FGREP="$ac_cv_path_FGREP"
  4870. test -z "$GREP" && GREP=grep
  4871. # Check whether --with-gnu-ld was given.
  4872. if test "${with_gnu_ld+set}" = set; then :
  4873. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4874. else
  4875. with_gnu_ld=no
  4876. fi
  4877. ac_prog=ld
  4878. if test "$GCC" = yes; then
  4879. # Check if gcc -print-prog-name=ld gives a path.
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4881. $as_echo_n "checking for ld used by $CC... " >&6; }
  4882. case $host in
  4883. *-*-mingw*)
  4884. # gcc leaves a trailing carriage return which upsets mingw
  4885. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4886. *)
  4887. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4888. esac
  4889. case $ac_prog in
  4890. # Accept absolute paths.
  4891. [\\/]* | ?:[\\/]*)
  4892. re_direlt='/[^/][^/]*/\.\./'
  4893. # Canonicalize the pathname of ld
  4894. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4895. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4896. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4897. done
  4898. test -z "$LD" && LD="$ac_prog"
  4899. ;;
  4900. "")
  4901. # If it fails, then pretend we aren't using GCC.
  4902. ac_prog=ld
  4903. ;;
  4904. *)
  4905. # If it is relative, then search for the first ld in PATH.
  4906. with_gnu_ld=unknown
  4907. ;;
  4908. esac
  4909. elif test "$with_gnu_ld" = yes; then
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4911. $as_echo_n "checking for GNU ld... " >&6; }
  4912. else
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4914. $as_echo_n "checking for non-GNU ld... " >&6; }
  4915. fi
  4916. if ${lt_cv_path_LD+:} false; then :
  4917. $as_echo_n "(cached) " >&6
  4918. else
  4919. if test -z "$LD"; then
  4920. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4921. for ac_dir in $PATH; do
  4922. IFS="$lt_save_ifs"
  4923. test -z "$ac_dir" && ac_dir=.
  4924. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4925. lt_cv_path_LD="$ac_dir/$ac_prog"
  4926. # Check to see if the program is GNU ld. I'd rather use --version,
  4927. # but apparently some variants of GNU ld only accept -v.
  4928. # Break only if it was the GNU/non-GNU ld that we prefer.
  4929. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4930. *GNU* | *'with BFD'*)
  4931. test "$with_gnu_ld" != no && break
  4932. ;;
  4933. *)
  4934. test "$with_gnu_ld" != yes && break
  4935. ;;
  4936. esac
  4937. fi
  4938. done
  4939. IFS="$lt_save_ifs"
  4940. else
  4941. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4942. fi
  4943. fi
  4944. LD="$lt_cv_path_LD"
  4945. if test -n "$LD"; then
  4946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4947. $as_echo "$LD" >&6; }
  4948. else
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4950. $as_echo "no" >&6; }
  4951. fi
  4952. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4954. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4955. if ${lt_cv_prog_gnu_ld+:} false; then :
  4956. $as_echo_n "(cached) " >&6
  4957. else
  4958. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4959. case `$LD -v 2>&1 </dev/null` in
  4960. *GNU* | *'with BFD'*)
  4961. lt_cv_prog_gnu_ld=yes
  4962. ;;
  4963. *)
  4964. lt_cv_prog_gnu_ld=no
  4965. ;;
  4966. esac
  4967. fi
  4968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4969. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4970. with_gnu_ld=$lt_cv_prog_gnu_ld
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4972. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4973. if ${lt_cv_path_NM+:} false; then :
  4974. $as_echo_n "(cached) " >&6
  4975. else
  4976. if test -n "$NM"; then
  4977. # Let the user override the test.
  4978. lt_cv_path_NM="$NM"
  4979. else
  4980. lt_nm_to_check="${ac_tool_prefix}nm"
  4981. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4982. lt_nm_to_check="$lt_nm_to_check nm"
  4983. fi
  4984. for lt_tmp_nm in $lt_nm_to_check; do
  4985. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4986. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4987. IFS="$lt_save_ifs"
  4988. test -z "$ac_dir" && ac_dir=.
  4989. tmp_nm="$ac_dir/$lt_tmp_nm"
  4990. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4991. # Check to see if the nm accepts a BSD-compat flag.
  4992. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4993. # nm: unknown option "B" ignored
  4994. # Tru64's nm complains that /dev/null is an invalid object file
  4995. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4996. */dev/null* | *'Invalid file or object type'*)
  4997. lt_cv_path_NM="$tmp_nm -B"
  4998. break
  4999. ;;
  5000. *)
  5001. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5002. */dev/null*)
  5003. lt_cv_path_NM="$tmp_nm -p"
  5004. break
  5005. ;;
  5006. *)
  5007. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5008. continue # so that we can try to find one that supports BSD flags
  5009. ;;
  5010. esac
  5011. ;;
  5012. esac
  5013. fi
  5014. done
  5015. IFS="$lt_save_ifs"
  5016. done
  5017. : ${lt_cv_path_NM=no}
  5018. fi
  5019. fi
  5020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5021. $as_echo "$lt_cv_path_NM" >&6; }
  5022. if test "$lt_cv_path_NM" != "no"; then
  5023. NM="$lt_cv_path_NM"
  5024. else
  5025. # Didn't find any BSD compatible name lister, look for dumpbin.
  5026. if test -n "$DUMPBIN"; then :
  5027. # Let the user override the test.
  5028. else
  5029. if test -n "$ac_tool_prefix"; then
  5030. for ac_prog in dumpbin "link -dump"
  5031. do
  5032. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5033. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5035. $as_echo_n "checking for $ac_word... " >&6; }
  5036. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5037. $as_echo_n "(cached) " >&6
  5038. else
  5039. if test -n "$DUMPBIN"; then
  5040. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5041. else
  5042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5043. for as_dir in $PATH
  5044. do
  5045. IFS=$as_save_IFS
  5046. test -z "$as_dir" && as_dir=.
  5047. for ac_exec_ext in '' $ac_executable_extensions; do
  5048. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5049. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5051. break 2
  5052. fi
  5053. done
  5054. done
  5055. IFS=$as_save_IFS
  5056. fi
  5057. fi
  5058. DUMPBIN=$ac_cv_prog_DUMPBIN
  5059. if test -n "$DUMPBIN"; then
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5061. $as_echo "$DUMPBIN" >&6; }
  5062. else
  5063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5064. $as_echo "no" >&6; }
  5065. fi
  5066. test -n "$DUMPBIN" && break
  5067. done
  5068. fi
  5069. if test -z "$DUMPBIN"; then
  5070. ac_ct_DUMPBIN=$DUMPBIN
  5071. for ac_prog in dumpbin "link -dump"
  5072. do
  5073. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5074. set dummy $ac_prog; ac_word=$2
  5075. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5076. $as_echo_n "checking for $ac_word... " >&6; }
  5077. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5078. $as_echo_n "(cached) " >&6
  5079. else
  5080. if test -n "$ac_ct_DUMPBIN"; then
  5081. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5082. else
  5083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5084. for as_dir in $PATH
  5085. do
  5086. IFS=$as_save_IFS
  5087. test -z "$as_dir" && as_dir=.
  5088. for ac_exec_ext in '' $ac_executable_extensions; do
  5089. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5090. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5091. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5092. break 2
  5093. fi
  5094. done
  5095. done
  5096. IFS=$as_save_IFS
  5097. fi
  5098. fi
  5099. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5100. if test -n "$ac_ct_DUMPBIN"; then
  5101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5102. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5103. else
  5104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5105. $as_echo "no" >&6; }
  5106. fi
  5107. test -n "$ac_ct_DUMPBIN" && break
  5108. done
  5109. if test "x$ac_ct_DUMPBIN" = x; then
  5110. DUMPBIN=":"
  5111. else
  5112. case $cross_compiling:$ac_tool_warned in
  5113. yes:)
  5114. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5115. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5116. ac_tool_warned=yes ;;
  5117. esac
  5118. DUMPBIN=$ac_ct_DUMPBIN
  5119. fi
  5120. fi
  5121. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5122. *COFF*)
  5123. DUMPBIN="$DUMPBIN -symbols"
  5124. ;;
  5125. *)
  5126. DUMPBIN=:
  5127. ;;
  5128. esac
  5129. fi
  5130. if test "$DUMPBIN" != ":"; then
  5131. NM="$DUMPBIN"
  5132. fi
  5133. fi
  5134. test -z "$NM" && NM=nm
  5135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5136. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5137. if ${lt_cv_nm_interface+:} false; then :
  5138. $as_echo_n "(cached) " >&6
  5139. else
  5140. lt_cv_nm_interface="BSD nm"
  5141. echo "int some_variable = 0;" > conftest.$ac_ext
  5142. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5143. (eval "$ac_compile" 2>conftest.err)
  5144. cat conftest.err >&5
  5145. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5146. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5147. cat conftest.err >&5
  5148. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5149. cat conftest.out >&5
  5150. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5151. lt_cv_nm_interface="MS dumpbin"
  5152. fi
  5153. rm -f conftest*
  5154. fi
  5155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5156. $as_echo "$lt_cv_nm_interface" >&6; }
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5158. $as_echo_n "checking whether ln -s works... " >&6; }
  5159. LN_S=$as_ln_s
  5160. if test "$LN_S" = "ln -s"; then
  5161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5162. $as_echo "yes" >&6; }
  5163. else
  5164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5165. $as_echo "no, using $LN_S" >&6; }
  5166. fi
  5167. # find the maximum length of command line arguments
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5169. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5170. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5171. $as_echo_n "(cached) " >&6
  5172. else
  5173. i=0
  5174. teststring="ABCD"
  5175. case $build_os in
  5176. msdosdjgpp*)
  5177. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5178. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5179. # during glob expansion). Even if it were fixed, the result of this
  5180. # check would be larger than it should be.
  5181. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5182. ;;
  5183. gnu*)
  5184. # Under GNU Hurd, this test is not required because there is
  5185. # no limit to the length of command line arguments.
  5186. # Libtool will interpret -1 as no limit whatsoever
  5187. lt_cv_sys_max_cmd_len=-1;
  5188. ;;
  5189. cygwin* | mingw* | cegcc*)
  5190. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5191. # about 5 minutes as the teststring grows exponentially.
  5192. # Worse, since 9x/ME are not pre-emptively multitasking,
  5193. # you end up with a "frozen" computer, even though with patience
  5194. # the test eventually succeeds (with a max line length of 256k).
  5195. # Instead, let's just punt: use the minimum linelength reported by
  5196. # all of the supported platforms: 8192 (on NT/2K/XP).
  5197. lt_cv_sys_max_cmd_len=8192;
  5198. ;;
  5199. mint*)
  5200. # On MiNT this can take a long time and run out of memory.
  5201. lt_cv_sys_max_cmd_len=8192;
  5202. ;;
  5203. amigaos*)
  5204. # On AmigaOS with pdksh, this test takes hours, literally.
  5205. # So we just punt and use a minimum line length of 8192.
  5206. lt_cv_sys_max_cmd_len=8192;
  5207. ;;
  5208. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5209. # This has been around since 386BSD, at least. Likely further.
  5210. if test -x /sbin/sysctl; then
  5211. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5212. elif test -x /usr/sbin/sysctl; then
  5213. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5214. else
  5215. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5216. fi
  5217. # And add a safety zone
  5218. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5219. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5220. ;;
  5221. interix*)
  5222. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5223. lt_cv_sys_max_cmd_len=196608
  5224. ;;
  5225. os2*)
  5226. # The test takes a long time on OS/2.
  5227. lt_cv_sys_max_cmd_len=8192
  5228. ;;
  5229. osf*)
  5230. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5231. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5232. # nice to cause kernel panics so lets avoid the loop below.
  5233. # First set a reasonable default.
  5234. lt_cv_sys_max_cmd_len=16384
  5235. #
  5236. if test -x /sbin/sysconfig; then
  5237. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5238. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5239. esac
  5240. fi
  5241. ;;
  5242. sco3.2v5*)
  5243. lt_cv_sys_max_cmd_len=102400
  5244. ;;
  5245. sysv5* | sco5v6* | sysv4.2uw2*)
  5246. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5247. if test -n "$kargmax"; then
  5248. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5249. else
  5250. lt_cv_sys_max_cmd_len=32768
  5251. fi
  5252. ;;
  5253. *)
  5254. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5255. if test -n "$lt_cv_sys_max_cmd_len"; then
  5256. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5257. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5258. else
  5259. # Make teststring a little bigger before we do anything with it.
  5260. # a 1K string should be a reasonable start.
  5261. for i in 1 2 3 4 5 6 7 8 ; do
  5262. teststring=$teststring$teststring
  5263. done
  5264. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5265. # If test is not a shell built-in, we'll probably end up computing a
  5266. # maximum length that is only half of the actual maximum length, but
  5267. # we can't tell.
  5268. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5269. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5270. test $i != 17 # 1/2 MB should be enough
  5271. do
  5272. i=`expr $i + 1`
  5273. teststring=$teststring$teststring
  5274. done
  5275. # Only check the string length outside the loop.
  5276. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5277. teststring=
  5278. # Add a significant safety factor because C++ compilers can tack on
  5279. # massive amounts of additional arguments before passing them to the
  5280. # linker. It appears as though 1/2 is a usable value.
  5281. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5282. fi
  5283. ;;
  5284. esac
  5285. fi
  5286. if test -n $lt_cv_sys_max_cmd_len ; then
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5288. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5289. else
  5290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5291. $as_echo "none" >&6; }
  5292. fi
  5293. max_cmd_len=$lt_cv_sys_max_cmd_len
  5294. : ${CP="cp -f"}
  5295. : ${MV="mv -f"}
  5296. : ${RM="rm -f"}
  5297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5298. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5299. # Try some XSI features
  5300. xsi_shell=no
  5301. ( _lt_dummy="a/b/c"
  5302. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5303. = c,a/b,b/c, \
  5304. && eval 'test $(( 1 + 1 )) -eq 2 \
  5305. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5306. && xsi_shell=yes
  5307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5308. $as_echo "$xsi_shell" >&6; }
  5309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5310. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5311. lt_shell_append=no
  5312. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5313. >/dev/null 2>&1 \
  5314. && lt_shell_append=yes
  5315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5316. $as_echo "$lt_shell_append" >&6; }
  5317. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5318. lt_unset=unset
  5319. else
  5320. lt_unset=false
  5321. fi
  5322. # test EBCDIC or ASCII
  5323. case `echo X|tr X '\101'` in
  5324. A) # ASCII based system
  5325. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5326. lt_SP2NL='tr \040 \012'
  5327. lt_NL2SP='tr \015\012 \040\040'
  5328. ;;
  5329. *) # EBCDIC based system
  5330. lt_SP2NL='tr \100 \n'
  5331. lt_NL2SP='tr \r\n \100\100'
  5332. ;;
  5333. esac
  5334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5335. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5336. if ${lt_cv_to_host_file_cmd+:} false; then :
  5337. $as_echo_n "(cached) " >&6
  5338. else
  5339. case $host in
  5340. *-*-mingw* )
  5341. case $build in
  5342. *-*-mingw* ) # actually msys
  5343. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5344. ;;
  5345. *-*-cygwin* )
  5346. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5347. ;;
  5348. * ) # otherwise, assume *nix
  5349. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5350. ;;
  5351. esac
  5352. ;;
  5353. *-*-cygwin* )
  5354. case $build in
  5355. *-*-mingw* ) # actually msys
  5356. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5357. ;;
  5358. *-*-cygwin* )
  5359. lt_cv_to_host_file_cmd=func_convert_file_noop
  5360. ;;
  5361. * ) # otherwise, assume *nix
  5362. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5363. ;;
  5364. esac
  5365. ;;
  5366. * ) # unhandled hosts (and "normal" native builds)
  5367. lt_cv_to_host_file_cmd=func_convert_file_noop
  5368. ;;
  5369. esac
  5370. fi
  5371. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5373. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5375. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5376. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5377. $as_echo_n "(cached) " >&6
  5378. else
  5379. #assume ordinary cross tools, or native build.
  5380. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5381. case $host in
  5382. *-*-mingw* )
  5383. case $build in
  5384. *-*-mingw* ) # actually msys
  5385. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5386. ;;
  5387. esac
  5388. ;;
  5389. esac
  5390. fi
  5391. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5393. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5395. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5396. if ${lt_cv_ld_reload_flag+:} false; then :
  5397. $as_echo_n "(cached) " >&6
  5398. else
  5399. lt_cv_ld_reload_flag='-r'
  5400. fi
  5401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5402. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5403. reload_flag=$lt_cv_ld_reload_flag
  5404. case $reload_flag in
  5405. "" | " "*) ;;
  5406. *) reload_flag=" $reload_flag" ;;
  5407. esac
  5408. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5409. case $host_os in
  5410. cygwin* | mingw* | pw32* | cegcc*)
  5411. if test "$GCC" != yes; then
  5412. reload_cmds=false
  5413. fi
  5414. ;;
  5415. darwin*)
  5416. if test "$GCC" = yes; then
  5417. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5418. else
  5419. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5420. fi
  5421. ;;
  5422. esac
  5423. if test -n "$ac_tool_prefix"; then
  5424. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5425. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5427. $as_echo_n "checking for $ac_word... " >&6; }
  5428. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5429. $as_echo_n "(cached) " >&6
  5430. else
  5431. if test -n "$OBJDUMP"; then
  5432. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5433. else
  5434. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5435. for as_dir in $PATH
  5436. do
  5437. IFS=$as_save_IFS
  5438. test -z "$as_dir" && as_dir=.
  5439. for ac_exec_ext in '' $ac_executable_extensions; do
  5440. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5441. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5442. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5443. break 2
  5444. fi
  5445. done
  5446. done
  5447. IFS=$as_save_IFS
  5448. fi
  5449. fi
  5450. OBJDUMP=$ac_cv_prog_OBJDUMP
  5451. if test -n "$OBJDUMP"; then
  5452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5453. $as_echo "$OBJDUMP" >&6; }
  5454. else
  5455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5456. $as_echo "no" >&6; }
  5457. fi
  5458. fi
  5459. if test -z "$ac_cv_prog_OBJDUMP"; then
  5460. ac_ct_OBJDUMP=$OBJDUMP
  5461. # Extract the first word of "objdump", so it can be a program name with args.
  5462. set dummy objdump; ac_word=$2
  5463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5464. $as_echo_n "checking for $ac_word... " >&6; }
  5465. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5466. $as_echo_n "(cached) " >&6
  5467. else
  5468. if test -n "$ac_ct_OBJDUMP"; then
  5469. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5470. else
  5471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5472. for as_dir in $PATH
  5473. do
  5474. IFS=$as_save_IFS
  5475. test -z "$as_dir" && as_dir=.
  5476. for ac_exec_ext in '' $ac_executable_extensions; do
  5477. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5478. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5479. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5480. break 2
  5481. fi
  5482. done
  5483. done
  5484. IFS=$as_save_IFS
  5485. fi
  5486. fi
  5487. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5488. if test -n "$ac_ct_OBJDUMP"; then
  5489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5490. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5491. else
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5493. $as_echo "no" >&6; }
  5494. fi
  5495. if test "x$ac_ct_OBJDUMP" = x; then
  5496. OBJDUMP="false"
  5497. else
  5498. case $cross_compiling:$ac_tool_warned in
  5499. yes:)
  5500. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5501. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5502. ac_tool_warned=yes ;;
  5503. esac
  5504. OBJDUMP=$ac_ct_OBJDUMP
  5505. fi
  5506. else
  5507. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5508. fi
  5509. test -z "$OBJDUMP" && OBJDUMP=objdump
  5510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5511. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5512. if ${lt_cv_deplibs_check_method+:} false; then :
  5513. $as_echo_n "(cached) " >&6
  5514. else
  5515. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5516. lt_cv_file_magic_test_file=
  5517. lt_cv_deplibs_check_method='unknown'
  5518. # Need to set the preceding variable on all platforms that support
  5519. # interlibrary dependencies.
  5520. # 'none' -- dependencies not supported.
  5521. # `unknown' -- same as none, but documents that we really don't know.
  5522. # 'pass_all' -- all dependencies passed with no checks.
  5523. # 'test_compile' -- check by making test program.
  5524. # 'file_magic [[regex]]' -- check by looking for files in library path
  5525. # which responds to the $file_magic_cmd with a given extended regex.
  5526. # If you have `file' or equivalent on your system and you're not sure
  5527. # whether `pass_all' will *always* work, you probably want this one.
  5528. case $host_os in
  5529. aix[4-9]*)
  5530. lt_cv_deplibs_check_method=pass_all
  5531. ;;
  5532. beos*)
  5533. lt_cv_deplibs_check_method=pass_all
  5534. ;;
  5535. bsdi[45]*)
  5536. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5537. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5538. lt_cv_file_magic_test_file=/shlib/libc.so
  5539. ;;
  5540. cygwin*)
  5541. # func_win32_libid is a shell function defined in ltmain.sh
  5542. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5543. lt_cv_file_magic_cmd='func_win32_libid'
  5544. ;;
  5545. mingw* | pw32*)
  5546. # Base MSYS/MinGW do not provide the 'file' command needed by
  5547. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5548. # unless we find 'file', for example because we are cross-compiling.
  5549. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5550. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5551. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5552. lt_cv_file_magic_cmd='func_win32_libid'
  5553. else
  5554. # Keep this pattern in sync with the one in func_win32_libid.
  5555. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5556. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5557. fi
  5558. ;;
  5559. cegcc*)
  5560. # use the weaker test based on 'objdump'. See mingw*.
  5561. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5562. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5563. ;;
  5564. darwin* | rhapsody*)
  5565. lt_cv_deplibs_check_method=pass_all
  5566. ;;
  5567. freebsd* | dragonfly*)
  5568. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5569. case $host_cpu in
  5570. i*86 )
  5571. # Not sure whether the presence of OpenBSD here was a mistake.
  5572. # Let's accept both of them until this is cleared up.
  5573. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5574. lt_cv_file_magic_cmd=/usr/bin/file
  5575. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5576. ;;
  5577. esac
  5578. else
  5579. lt_cv_deplibs_check_method=pass_all
  5580. fi
  5581. ;;
  5582. gnu*)
  5583. lt_cv_deplibs_check_method=pass_all
  5584. ;;
  5585. haiku*)
  5586. lt_cv_deplibs_check_method=pass_all
  5587. ;;
  5588. hpux10.20* | hpux11*)
  5589. lt_cv_file_magic_cmd=/usr/bin/file
  5590. case $host_cpu in
  5591. ia64*)
  5592. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5593. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5594. ;;
  5595. hppa*64*)
  5596. 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]'
  5597. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5598. ;;
  5599. *)
  5600. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5601. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5602. ;;
  5603. esac
  5604. ;;
  5605. interix[3-9]*)
  5606. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5607. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5608. ;;
  5609. irix5* | irix6* | nonstopux*)
  5610. case $LD in
  5611. *-32|*"-32 ") libmagic=32-bit;;
  5612. *-n32|*"-n32 ") libmagic=N32;;
  5613. *-64|*"-64 ") libmagic=64-bit;;
  5614. *) libmagic=never-match;;
  5615. esac
  5616. lt_cv_deplibs_check_method=pass_all
  5617. ;;
  5618. # This must be glibc/ELF.
  5619. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5620. lt_cv_deplibs_check_method=pass_all
  5621. ;;
  5622. netbsd* | netbsdelf*-gnu)
  5623. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5624. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5625. else
  5626. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5627. fi
  5628. ;;
  5629. newos6*)
  5630. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5631. lt_cv_file_magic_cmd=/usr/bin/file
  5632. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5633. ;;
  5634. *nto* | *qnx*)
  5635. lt_cv_deplibs_check_method=pass_all
  5636. ;;
  5637. openbsd*)
  5638. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5639. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5640. else
  5641. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5642. fi
  5643. ;;
  5644. osf3* | osf4* | osf5*)
  5645. lt_cv_deplibs_check_method=pass_all
  5646. ;;
  5647. rdos*)
  5648. lt_cv_deplibs_check_method=pass_all
  5649. ;;
  5650. solaris*)
  5651. lt_cv_deplibs_check_method=pass_all
  5652. ;;
  5653. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5654. lt_cv_deplibs_check_method=pass_all
  5655. ;;
  5656. sysv4 | sysv4.3*)
  5657. case $host_vendor in
  5658. motorola)
  5659. 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]'
  5660. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5661. ;;
  5662. ncr)
  5663. lt_cv_deplibs_check_method=pass_all
  5664. ;;
  5665. sequent)
  5666. lt_cv_file_magic_cmd='/bin/file'
  5667. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5668. ;;
  5669. sni)
  5670. lt_cv_file_magic_cmd='/bin/file'
  5671. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5672. lt_cv_file_magic_test_file=/lib/libc.so
  5673. ;;
  5674. siemens)
  5675. lt_cv_deplibs_check_method=pass_all
  5676. ;;
  5677. pc)
  5678. lt_cv_deplibs_check_method=pass_all
  5679. ;;
  5680. esac
  5681. ;;
  5682. tpf*)
  5683. lt_cv_deplibs_check_method=pass_all
  5684. ;;
  5685. esac
  5686. fi
  5687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5688. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5689. file_magic_glob=
  5690. want_nocaseglob=no
  5691. if test "$build" = "$host"; then
  5692. case $host_os in
  5693. mingw* | pw32*)
  5694. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5695. want_nocaseglob=yes
  5696. else
  5697. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5698. fi
  5699. ;;
  5700. esac
  5701. fi
  5702. file_magic_cmd=$lt_cv_file_magic_cmd
  5703. deplibs_check_method=$lt_cv_deplibs_check_method
  5704. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5705. if test -n "$ac_tool_prefix"; then
  5706. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5707. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5709. $as_echo_n "checking for $ac_word... " >&6; }
  5710. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5711. $as_echo_n "(cached) " >&6
  5712. else
  5713. if test -n "$DLLTOOL"; then
  5714. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5715. else
  5716. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5717. for as_dir in $PATH
  5718. do
  5719. IFS=$as_save_IFS
  5720. test -z "$as_dir" && as_dir=.
  5721. for ac_exec_ext in '' $ac_executable_extensions; do
  5722. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5723. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5724. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5725. break 2
  5726. fi
  5727. done
  5728. done
  5729. IFS=$as_save_IFS
  5730. fi
  5731. fi
  5732. DLLTOOL=$ac_cv_prog_DLLTOOL
  5733. if test -n "$DLLTOOL"; then
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5735. $as_echo "$DLLTOOL" >&6; }
  5736. else
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5738. $as_echo "no" >&6; }
  5739. fi
  5740. fi
  5741. if test -z "$ac_cv_prog_DLLTOOL"; then
  5742. ac_ct_DLLTOOL=$DLLTOOL
  5743. # Extract the first word of "dlltool", so it can be a program name with args.
  5744. set dummy dlltool; ac_word=$2
  5745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5746. $as_echo_n "checking for $ac_word... " >&6; }
  5747. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5748. $as_echo_n "(cached) " >&6
  5749. else
  5750. if test -n "$ac_ct_DLLTOOL"; then
  5751. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5752. else
  5753. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5754. for as_dir in $PATH
  5755. do
  5756. IFS=$as_save_IFS
  5757. test -z "$as_dir" && as_dir=.
  5758. for ac_exec_ext in '' $ac_executable_extensions; do
  5759. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5760. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5761. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5762. break 2
  5763. fi
  5764. done
  5765. done
  5766. IFS=$as_save_IFS
  5767. fi
  5768. fi
  5769. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5770. if test -n "$ac_ct_DLLTOOL"; then
  5771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5772. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5773. else
  5774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5775. $as_echo "no" >&6; }
  5776. fi
  5777. if test "x$ac_ct_DLLTOOL" = x; then
  5778. DLLTOOL="false"
  5779. else
  5780. case $cross_compiling:$ac_tool_warned in
  5781. yes:)
  5782. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5783. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5784. ac_tool_warned=yes ;;
  5785. esac
  5786. DLLTOOL=$ac_ct_DLLTOOL
  5787. fi
  5788. else
  5789. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5790. fi
  5791. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5793. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5794. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5795. $as_echo_n "(cached) " >&6
  5796. else
  5797. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5798. case $host_os in
  5799. cygwin* | mingw* | pw32* | cegcc*)
  5800. # two different shell functions defined in ltmain.sh
  5801. # decide which to use based on capabilities of $DLLTOOL
  5802. case `$DLLTOOL --help 2>&1` in
  5803. *--identify-strict*)
  5804. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5805. ;;
  5806. *)
  5807. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5808. ;;
  5809. esac
  5810. ;;
  5811. *)
  5812. # fallback: assume linklib IS sharedlib
  5813. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5814. ;;
  5815. esac
  5816. fi
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5818. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5819. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5820. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5821. if test -n "$ac_tool_prefix"; then
  5822. for ac_prog in ar
  5823. do
  5824. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5825. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5827. $as_echo_n "checking for $ac_word... " >&6; }
  5828. if ${ac_cv_prog_AR+:} false; then :
  5829. $as_echo_n "(cached) " >&6
  5830. else
  5831. if test -n "$AR"; then
  5832. ac_cv_prog_AR="$AR" # Let the user override the test.
  5833. else
  5834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5835. for as_dir in $PATH
  5836. do
  5837. IFS=$as_save_IFS
  5838. test -z "$as_dir" && as_dir=.
  5839. for ac_exec_ext in '' $ac_executable_extensions; do
  5840. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5841. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5843. break 2
  5844. fi
  5845. done
  5846. done
  5847. IFS=$as_save_IFS
  5848. fi
  5849. fi
  5850. AR=$ac_cv_prog_AR
  5851. if test -n "$AR"; then
  5852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5853. $as_echo "$AR" >&6; }
  5854. else
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5856. $as_echo "no" >&6; }
  5857. fi
  5858. test -n "$AR" && break
  5859. done
  5860. fi
  5861. if test -z "$AR"; then
  5862. ac_ct_AR=$AR
  5863. for ac_prog in ar
  5864. do
  5865. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5866. set dummy $ac_prog; ac_word=$2
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5868. $as_echo_n "checking for $ac_word... " >&6; }
  5869. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5870. $as_echo_n "(cached) " >&6
  5871. else
  5872. if test -n "$ac_ct_AR"; then
  5873. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5874. else
  5875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5876. for as_dir in $PATH
  5877. do
  5878. IFS=$as_save_IFS
  5879. test -z "$as_dir" && as_dir=.
  5880. for ac_exec_ext in '' $ac_executable_extensions; do
  5881. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5882. ac_cv_prog_ac_ct_AR="$ac_prog"
  5883. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5884. break 2
  5885. fi
  5886. done
  5887. done
  5888. IFS=$as_save_IFS
  5889. fi
  5890. fi
  5891. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5892. if test -n "$ac_ct_AR"; then
  5893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5894. $as_echo "$ac_ct_AR" >&6; }
  5895. else
  5896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5897. $as_echo "no" >&6; }
  5898. fi
  5899. test -n "$ac_ct_AR" && break
  5900. done
  5901. if test "x$ac_ct_AR" = x; then
  5902. AR="false"
  5903. else
  5904. case $cross_compiling:$ac_tool_warned in
  5905. yes:)
  5906. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5907. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5908. ac_tool_warned=yes ;;
  5909. esac
  5910. AR=$ac_ct_AR
  5911. fi
  5912. fi
  5913. : ${AR=ar}
  5914. : ${AR_FLAGS=cru}
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5916. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5917. if ${lt_cv_ar_at_file+:} false; then :
  5918. $as_echo_n "(cached) " >&6
  5919. else
  5920. lt_cv_ar_at_file=no
  5921. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5922. /* end confdefs.h. */
  5923. int
  5924. main ()
  5925. {
  5926. ;
  5927. return 0;
  5928. }
  5929. _ACEOF
  5930. if ac_fn_cxx_try_compile "$LINENO"; then :
  5931. echo conftest.$ac_objext > conftest.lst
  5932. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5933. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5934. (eval $lt_ar_try) 2>&5
  5935. ac_status=$?
  5936. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5937. test $ac_status = 0; }
  5938. if test "$ac_status" -eq 0; then
  5939. # Ensure the archiver fails upon bogus file names.
  5940. rm -f conftest.$ac_objext libconftest.a
  5941. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5942. (eval $lt_ar_try) 2>&5
  5943. ac_status=$?
  5944. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5945. test $ac_status = 0; }
  5946. if test "$ac_status" -ne 0; then
  5947. lt_cv_ar_at_file=@
  5948. fi
  5949. fi
  5950. rm -f conftest.* libconftest.a
  5951. fi
  5952. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5953. fi
  5954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5955. $as_echo "$lt_cv_ar_at_file" >&6; }
  5956. if test "x$lt_cv_ar_at_file" = xno; then
  5957. archiver_list_spec=
  5958. else
  5959. archiver_list_spec=$lt_cv_ar_at_file
  5960. fi
  5961. if test -n "$ac_tool_prefix"; then
  5962. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5963. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5965. $as_echo_n "checking for $ac_word... " >&6; }
  5966. if ${ac_cv_prog_STRIP+:} false; then :
  5967. $as_echo_n "(cached) " >&6
  5968. else
  5969. if test -n "$STRIP"; then
  5970. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5971. else
  5972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5973. for as_dir in $PATH
  5974. do
  5975. IFS=$as_save_IFS
  5976. test -z "$as_dir" && as_dir=.
  5977. for ac_exec_ext in '' $ac_executable_extensions; do
  5978. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5979. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5980. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5981. break 2
  5982. fi
  5983. done
  5984. done
  5985. IFS=$as_save_IFS
  5986. fi
  5987. fi
  5988. STRIP=$ac_cv_prog_STRIP
  5989. if test -n "$STRIP"; then
  5990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5991. $as_echo "$STRIP" >&6; }
  5992. else
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5994. $as_echo "no" >&6; }
  5995. fi
  5996. fi
  5997. if test -z "$ac_cv_prog_STRIP"; then
  5998. ac_ct_STRIP=$STRIP
  5999. # Extract the first word of "strip", so it can be a program name with args.
  6000. set dummy strip; ac_word=$2
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6002. $as_echo_n "checking for $ac_word... " >&6; }
  6003. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6004. $as_echo_n "(cached) " >&6
  6005. else
  6006. if test -n "$ac_ct_STRIP"; then
  6007. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6008. else
  6009. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6010. for as_dir in $PATH
  6011. do
  6012. IFS=$as_save_IFS
  6013. test -z "$as_dir" && as_dir=.
  6014. for ac_exec_ext in '' $ac_executable_extensions; do
  6015. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6016. ac_cv_prog_ac_ct_STRIP="strip"
  6017. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6018. break 2
  6019. fi
  6020. done
  6021. done
  6022. IFS=$as_save_IFS
  6023. fi
  6024. fi
  6025. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6026. if test -n "$ac_ct_STRIP"; then
  6027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6028. $as_echo "$ac_ct_STRIP" >&6; }
  6029. else
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6031. $as_echo "no" >&6; }
  6032. fi
  6033. if test "x$ac_ct_STRIP" = x; then
  6034. STRIP=":"
  6035. else
  6036. case $cross_compiling:$ac_tool_warned in
  6037. yes:)
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6039. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6040. ac_tool_warned=yes ;;
  6041. esac
  6042. STRIP=$ac_ct_STRIP
  6043. fi
  6044. else
  6045. STRIP="$ac_cv_prog_STRIP"
  6046. fi
  6047. test -z "$STRIP" && STRIP=:
  6048. if test -n "$ac_tool_prefix"; then
  6049. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6050. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6052. $as_echo_n "checking for $ac_word... " >&6; }
  6053. if ${ac_cv_prog_RANLIB+:} false; then :
  6054. $as_echo_n "(cached) " >&6
  6055. else
  6056. if test -n "$RANLIB"; then
  6057. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6058. else
  6059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6060. for as_dir in $PATH
  6061. do
  6062. IFS=$as_save_IFS
  6063. test -z "$as_dir" && as_dir=.
  6064. for ac_exec_ext in '' $ac_executable_extensions; do
  6065. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6066. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6067. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6068. break 2
  6069. fi
  6070. done
  6071. done
  6072. IFS=$as_save_IFS
  6073. fi
  6074. fi
  6075. RANLIB=$ac_cv_prog_RANLIB
  6076. if test -n "$RANLIB"; then
  6077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6078. $as_echo "$RANLIB" >&6; }
  6079. else
  6080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6081. $as_echo "no" >&6; }
  6082. fi
  6083. fi
  6084. if test -z "$ac_cv_prog_RANLIB"; then
  6085. ac_ct_RANLIB=$RANLIB
  6086. # Extract the first word of "ranlib", so it can be a program name with args.
  6087. set dummy ranlib; ac_word=$2
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6089. $as_echo_n "checking for $ac_word... " >&6; }
  6090. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6091. $as_echo_n "(cached) " >&6
  6092. else
  6093. if test -n "$ac_ct_RANLIB"; then
  6094. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6095. else
  6096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6097. for as_dir in $PATH
  6098. do
  6099. IFS=$as_save_IFS
  6100. test -z "$as_dir" && as_dir=.
  6101. for ac_exec_ext in '' $ac_executable_extensions; do
  6102. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6103. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6105. break 2
  6106. fi
  6107. done
  6108. done
  6109. IFS=$as_save_IFS
  6110. fi
  6111. fi
  6112. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6113. if test -n "$ac_ct_RANLIB"; then
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6115. $as_echo "$ac_ct_RANLIB" >&6; }
  6116. else
  6117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6118. $as_echo "no" >&6; }
  6119. fi
  6120. if test "x$ac_ct_RANLIB" = x; then
  6121. RANLIB=":"
  6122. else
  6123. case $cross_compiling:$ac_tool_warned in
  6124. yes:)
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6126. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6127. ac_tool_warned=yes ;;
  6128. esac
  6129. RANLIB=$ac_ct_RANLIB
  6130. fi
  6131. else
  6132. RANLIB="$ac_cv_prog_RANLIB"
  6133. fi
  6134. test -z "$RANLIB" && RANLIB=:
  6135. # Determine commands to create old-style static archives.
  6136. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6137. old_postinstall_cmds='chmod 644 $oldlib'
  6138. old_postuninstall_cmds=
  6139. if test -n "$RANLIB"; then
  6140. case $host_os in
  6141. openbsd*)
  6142. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  6143. ;;
  6144. *)
  6145. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  6146. ;;
  6147. esac
  6148. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  6149. fi
  6150. case $host_os in
  6151. darwin*)
  6152. lock_old_archive_extraction=yes ;;
  6153. *)
  6154. lock_old_archive_extraction=no ;;
  6155. esac
  6156. # If no C compiler was specified, use CC.
  6157. LTCC=${LTCC-"$CC"}
  6158. # If no C compiler flags were specified, use CFLAGS.
  6159. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6160. # Allow CC to be a program name with arguments.
  6161. compiler=$CC
  6162. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6164. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6165. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6166. $as_echo_n "(cached) " >&6
  6167. else
  6168. # These are sane defaults that work on at least a few old systems.
  6169. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6170. # Character class describing NM global symbol codes.
  6171. symcode='[BCDEGRST]'
  6172. # Regexp to match symbols that can be accessed directly from C.
  6173. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6174. # Define system-specific variables.
  6175. case $host_os in
  6176. aix*)
  6177. symcode='[BCDT]'
  6178. ;;
  6179. cygwin* | mingw* | pw32* | cegcc*)
  6180. symcode='[ABCDGISTW]'
  6181. ;;
  6182. hpux*)
  6183. if test "$host_cpu" = ia64; then
  6184. symcode='[ABCDEGRST]'
  6185. fi
  6186. ;;
  6187. irix* | nonstopux*)
  6188. symcode='[BCDEGRST]'
  6189. ;;
  6190. osf*)
  6191. symcode='[BCDEGQRST]'
  6192. ;;
  6193. solaris*)
  6194. symcode='[BDRT]'
  6195. ;;
  6196. sco3.2v5*)
  6197. symcode='[DT]'
  6198. ;;
  6199. sysv4.2uw2*)
  6200. symcode='[DT]'
  6201. ;;
  6202. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6203. symcode='[ABDT]'
  6204. ;;
  6205. sysv4)
  6206. symcode='[DFNSTU]'
  6207. ;;
  6208. esac
  6209. # If we're using GNU nm, then use its standard symbol codes.
  6210. case `$NM -V 2>&1` in
  6211. *GNU* | *'with BFD'*)
  6212. symcode='[ABCDGIRSTW]' ;;
  6213. esac
  6214. # Transform an extracted symbol line into a proper C declaration.
  6215. # Some systems (esp. on ia64) link data and code symbols differently,
  6216. # so use this general approach.
  6217. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6218. # Transform an extracted symbol line into symbol name and symbol address
  6219. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6220. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  6221. # Handle CRLF in mingw tool chain
  6222. opt_cr=
  6223. case $build_os in
  6224. mingw*)
  6225. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6226. ;;
  6227. esac
  6228. # Try without a prefix underscore, then with it.
  6229. for ac_symprfx in "" "_"; do
  6230. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6231. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6232. # Write the raw and C identifiers.
  6233. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6234. # Fake it for dumpbin and say T for any non-static function
  6235. # and D for any global variable.
  6236. # Also find C++ and __fastcall symbols from MSVC++,
  6237. # which start with @ or ?.
  6238. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6239. " {last_section=section; section=\$ 3};"\
  6240. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6241. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6242. " \$ 0!~/External *\|/{next};"\
  6243. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6244. " {if(hide[section]) next};"\
  6245. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6246. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6247. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6248. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6249. " ' prfx=^$ac_symprfx"
  6250. else
  6251. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6252. fi
  6253. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6254. # Check to see that the pipe works correctly.
  6255. pipe_works=no
  6256. rm -f conftest*
  6257. cat > conftest.$ac_ext <<_LT_EOF
  6258. #ifdef __cplusplus
  6259. extern "C" {
  6260. #endif
  6261. char nm_test_var;
  6262. void nm_test_func(void);
  6263. void nm_test_func(void){}
  6264. #ifdef __cplusplus
  6265. }
  6266. #endif
  6267. int main(){nm_test_var='a';nm_test_func();return(0);}
  6268. _LT_EOF
  6269. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6270. (eval $ac_compile) 2>&5
  6271. ac_status=$?
  6272. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6273. test $ac_status = 0; }; then
  6274. # Now try to grab the symbols.
  6275. nlist=conftest.nm
  6276. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6277. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6278. ac_status=$?
  6279. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6280. test $ac_status = 0; } && test -s "$nlist"; then
  6281. # Try sorting and uniquifying the output.
  6282. if sort "$nlist" | uniq > "$nlist"T; then
  6283. mv -f "$nlist"T "$nlist"
  6284. else
  6285. rm -f "$nlist"T
  6286. fi
  6287. # Make sure that we snagged all the symbols we need.
  6288. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6289. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6290. cat <<_LT_EOF > conftest.$ac_ext
  6291. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6292. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6293. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6294. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6295. # define LT_DLSYM_CONST
  6296. #elif defined(__osf__)
  6297. /* This system does not cope well with relocations in const data. */
  6298. # define LT_DLSYM_CONST
  6299. #else
  6300. # define LT_DLSYM_CONST const
  6301. #endif
  6302. #ifdef __cplusplus
  6303. extern "C" {
  6304. #endif
  6305. _LT_EOF
  6306. # Now generate the symbol file.
  6307. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6308. cat <<_LT_EOF >> conftest.$ac_ext
  6309. /* The mapping between symbol names and symbols. */
  6310. LT_DLSYM_CONST struct {
  6311. const char *name;
  6312. void *address;
  6313. }
  6314. lt__PROGRAM__LTX_preloaded_symbols[] =
  6315. {
  6316. { "@PROGRAM@", (void *) 0 },
  6317. _LT_EOF
  6318. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6319. cat <<\_LT_EOF >> conftest.$ac_ext
  6320. {0, (void *) 0}
  6321. };
  6322. /* This works around a problem in FreeBSD linker */
  6323. #ifdef FREEBSD_WORKAROUND
  6324. static const void *lt_preloaded_setup() {
  6325. return lt__PROGRAM__LTX_preloaded_symbols;
  6326. }
  6327. #endif
  6328. #ifdef __cplusplus
  6329. }
  6330. #endif
  6331. _LT_EOF
  6332. # Now try linking the two files.
  6333. mv conftest.$ac_objext conftstm.$ac_objext
  6334. lt_globsym_save_LIBS=$LIBS
  6335. lt_globsym_save_CFLAGS=$CFLAGS
  6336. LIBS="conftstm.$ac_objext"
  6337. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6338. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6339. (eval $ac_link) 2>&5
  6340. ac_status=$?
  6341. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6342. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6343. pipe_works=yes
  6344. fi
  6345. LIBS=$lt_globsym_save_LIBS
  6346. CFLAGS=$lt_globsym_save_CFLAGS
  6347. else
  6348. echo "cannot find nm_test_func in $nlist" >&5
  6349. fi
  6350. else
  6351. echo "cannot find nm_test_var in $nlist" >&5
  6352. fi
  6353. else
  6354. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6355. fi
  6356. else
  6357. echo "$progname: failed program was:" >&5
  6358. cat conftest.$ac_ext >&5
  6359. fi
  6360. rm -rf conftest* conftst*
  6361. # Do not use the global_symbol_pipe unless it works.
  6362. if test "$pipe_works" = yes; then
  6363. break
  6364. else
  6365. lt_cv_sys_global_symbol_pipe=
  6366. fi
  6367. done
  6368. fi
  6369. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6370. lt_cv_sys_global_symbol_to_cdecl=
  6371. fi
  6372. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6374. $as_echo "failed" >&6; }
  6375. else
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6377. $as_echo "ok" >&6; }
  6378. fi
  6379. # Response file support.
  6380. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6381. nm_file_list_spec='@'
  6382. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6383. nm_file_list_spec='@'
  6384. fi
  6385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6386. $as_echo_n "checking for sysroot... " >&6; }
  6387. # Check whether --with-sysroot was given.
  6388. if test "${with_sysroot+set}" = set; then :
  6389. withval=$with_sysroot;
  6390. else
  6391. with_sysroot=no
  6392. fi
  6393. lt_sysroot=
  6394. case ${with_sysroot} in #(
  6395. yes)
  6396. if test "$GCC" = yes; then
  6397. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6398. fi
  6399. ;; #(
  6400. /*)
  6401. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6402. ;; #(
  6403. no|'')
  6404. ;; #(
  6405. *)
  6406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6407. $as_echo "${with_sysroot}" >&6; }
  6408. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6409. ;;
  6410. esac
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6412. $as_echo "${lt_sysroot:-no}" >&6; }
  6413. # Check whether --enable-libtool-lock was given.
  6414. if test "${enable_libtool_lock+set}" = set; then :
  6415. enableval=$enable_libtool_lock;
  6416. fi
  6417. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6418. # Some flags need to be propagated to the compiler or linker for good
  6419. # libtool support.
  6420. case $host in
  6421. ia64-*-hpux*)
  6422. # Find out which ABI we are using.
  6423. echo 'int i;' > conftest.$ac_ext
  6424. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6425. (eval $ac_compile) 2>&5
  6426. ac_status=$?
  6427. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6428. test $ac_status = 0; }; then
  6429. case `/usr/bin/file conftest.$ac_objext` in
  6430. *ELF-32*)
  6431. HPUX_IA64_MODE="32"
  6432. ;;
  6433. *ELF-64*)
  6434. HPUX_IA64_MODE="64"
  6435. ;;
  6436. esac
  6437. fi
  6438. rm -rf conftest*
  6439. ;;
  6440. *-*-irix6*)
  6441. # Find out which ABI we are using.
  6442. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6443. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6444. (eval $ac_compile) 2>&5
  6445. ac_status=$?
  6446. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6447. test $ac_status = 0; }; then
  6448. if test "$lt_cv_prog_gnu_ld" = yes; then
  6449. case `/usr/bin/file conftest.$ac_objext` in
  6450. *32-bit*)
  6451. LD="${LD-ld} -melf32bsmip"
  6452. ;;
  6453. *N32*)
  6454. LD="${LD-ld} -melf32bmipn32"
  6455. ;;
  6456. *64-bit*)
  6457. LD="${LD-ld} -melf64bmip"
  6458. ;;
  6459. esac
  6460. else
  6461. case `/usr/bin/file conftest.$ac_objext` in
  6462. *32-bit*)
  6463. LD="${LD-ld} -32"
  6464. ;;
  6465. *N32*)
  6466. LD="${LD-ld} -n32"
  6467. ;;
  6468. *64-bit*)
  6469. LD="${LD-ld} -64"
  6470. ;;
  6471. esac
  6472. fi
  6473. fi
  6474. rm -rf conftest*
  6475. ;;
  6476. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6477. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6478. # Find out which ABI we are using.
  6479. echo 'int i;' > conftest.$ac_ext
  6480. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6481. (eval $ac_compile) 2>&5
  6482. ac_status=$?
  6483. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6484. test $ac_status = 0; }; then
  6485. case `/usr/bin/file conftest.o` in
  6486. *32-bit*)
  6487. case $host in
  6488. x86_64-*kfreebsd*-gnu)
  6489. LD="${LD-ld} -m elf_i386_fbsd"
  6490. ;;
  6491. x86_64-*linux*)
  6492. LD="${LD-ld} -m elf_i386"
  6493. ;;
  6494. ppc64-*linux*|powerpc64-*linux*)
  6495. LD="${LD-ld} -m elf32ppclinux"
  6496. ;;
  6497. s390x-*linux*)
  6498. LD="${LD-ld} -m elf_s390"
  6499. ;;
  6500. sparc64-*linux*)
  6501. LD="${LD-ld} -m elf32_sparc"
  6502. ;;
  6503. esac
  6504. ;;
  6505. *64-bit*)
  6506. case $host in
  6507. x86_64-*kfreebsd*-gnu)
  6508. LD="${LD-ld} -m elf_x86_64_fbsd"
  6509. ;;
  6510. x86_64-*linux*)
  6511. LD="${LD-ld} -m elf_x86_64"
  6512. ;;
  6513. ppc*-*linux*|powerpc*-*linux*)
  6514. LD="${LD-ld} -m elf64ppc"
  6515. ;;
  6516. s390*-*linux*|s390*-*tpf*)
  6517. LD="${LD-ld} -m elf64_s390"
  6518. ;;
  6519. sparc*-*linux*)
  6520. LD="${LD-ld} -m elf64_sparc"
  6521. ;;
  6522. esac
  6523. ;;
  6524. esac
  6525. fi
  6526. rm -rf conftest*
  6527. ;;
  6528. *-*-sco3.2v5*)
  6529. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6530. SAVE_CFLAGS="$CFLAGS"
  6531. CFLAGS="$CFLAGS -belf"
  6532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6533. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6534. if ${lt_cv_cc_needs_belf+:} false; then :
  6535. $as_echo_n "(cached) " >&6
  6536. else
  6537. ac_ext=c
  6538. ac_cpp='$CPP $CPPFLAGS'
  6539. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6540. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6541. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6543. /* end confdefs.h. */
  6544. int
  6545. main ()
  6546. {
  6547. ;
  6548. return 0;
  6549. }
  6550. _ACEOF
  6551. if ac_fn_c_try_link "$LINENO"; then :
  6552. lt_cv_cc_needs_belf=yes
  6553. else
  6554. lt_cv_cc_needs_belf=no
  6555. fi
  6556. rm -f core conftest.err conftest.$ac_objext \
  6557. conftest$ac_exeext conftest.$ac_ext
  6558. ac_ext=c
  6559. ac_cpp='$CPP $CPPFLAGS'
  6560. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6561. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6562. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6563. fi
  6564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6565. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6566. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6567. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6568. CFLAGS="$SAVE_CFLAGS"
  6569. fi
  6570. ;;
  6571. *-*solaris*)
  6572. # Find out which ABI we are using.
  6573. echo 'int i;' > conftest.$ac_ext
  6574. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6575. (eval $ac_compile) 2>&5
  6576. ac_status=$?
  6577. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6578. test $ac_status = 0; }; then
  6579. case `/usr/bin/file conftest.o` in
  6580. *64-bit*)
  6581. case $lt_cv_prog_gnu_ld in
  6582. yes*)
  6583. case $host in
  6584. i?86-*-solaris*)
  6585. LD="${LD-ld} -m elf_x86_64"
  6586. ;;
  6587. sparc*-*-solaris*)
  6588. LD="${LD-ld} -m elf64_sparc"
  6589. ;;
  6590. esac
  6591. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6592. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6593. LD="${LD-ld}_sol2"
  6594. fi
  6595. ;;
  6596. *)
  6597. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6598. LD="${LD-ld} -64"
  6599. fi
  6600. ;;
  6601. esac
  6602. ;;
  6603. esac
  6604. fi
  6605. rm -rf conftest*
  6606. ;;
  6607. esac
  6608. need_locks="$enable_libtool_lock"
  6609. if test -n "$ac_tool_prefix"; then
  6610. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6611. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6612. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6613. $as_echo_n "checking for $ac_word... " >&6; }
  6614. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6615. $as_echo_n "(cached) " >&6
  6616. else
  6617. if test -n "$MANIFEST_TOOL"; then
  6618. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6619. else
  6620. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6621. for as_dir in $PATH
  6622. do
  6623. IFS=$as_save_IFS
  6624. test -z "$as_dir" && as_dir=.
  6625. for ac_exec_ext in '' $ac_executable_extensions; do
  6626. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6627. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6628. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6629. break 2
  6630. fi
  6631. done
  6632. done
  6633. IFS=$as_save_IFS
  6634. fi
  6635. fi
  6636. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6637. if test -n "$MANIFEST_TOOL"; then
  6638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6639. $as_echo "$MANIFEST_TOOL" >&6; }
  6640. else
  6641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6642. $as_echo "no" >&6; }
  6643. fi
  6644. fi
  6645. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6646. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6647. # Extract the first word of "mt", so it can be a program name with args.
  6648. set dummy mt; ac_word=$2
  6649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6650. $as_echo_n "checking for $ac_word... " >&6; }
  6651. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6652. $as_echo_n "(cached) " >&6
  6653. else
  6654. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6655. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6656. else
  6657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6658. for as_dir in $PATH
  6659. do
  6660. IFS=$as_save_IFS
  6661. test -z "$as_dir" && as_dir=.
  6662. for ac_exec_ext in '' $ac_executable_extensions; do
  6663. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6664. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6665. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6666. break 2
  6667. fi
  6668. done
  6669. done
  6670. IFS=$as_save_IFS
  6671. fi
  6672. fi
  6673. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6674. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6676. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6677. else
  6678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6679. $as_echo "no" >&6; }
  6680. fi
  6681. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6682. MANIFEST_TOOL=":"
  6683. else
  6684. case $cross_compiling:$ac_tool_warned in
  6685. yes:)
  6686. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6687. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6688. ac_tool_warned=yes ;;
  6689. esac
  6690. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6691. fi
  6692. else
  6693. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6694. fi
  6695. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6697. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6698. if ${lt_cv_path_mainfest_tool+:} false; then :
  6699. $as_echo_n "(cached) " >&6
  6700. else
  6701. lt_cv_path_mainfest_tool=no
  6702. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6703. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6704. cat conftest.err >&5
  6705. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6706. lt_cv_path_mainfest_tool=yes
  6707. fi
  6708. rm -f conftest*
  6709. fi
  6710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6711. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6712. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6713. MANIFEST_TOOL=:
  6714. fi
  6715. case $host_os in
  6716. rhapsody* | darwin*)
  6717. if test -n "$ac_tool_prefix"; then
  6718. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6719. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6721. $as_echo_n "checking for $ac_word... " >&6; }
  6722. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6723. $as_echo_n "(cached) " >&6
  6724. else
  6725. if test -n "$DSYMUTIL"; then
  6726. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6727. else
  6728. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6729. for as_dir in $PATH
  6730. do
  6731. IFS=$as_save_IFS
  6732. test -z "$as_dir" && as_dir=.
  6733. for ac_exec_ext in '' $ac_executable_extensions; do
  6734. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6735. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6736. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6737. break 2
  6738. fi
  6739. done
  6740. done
  6741. IFS=$as_save_IFS
  6742. fi
  6743. fi
  6744. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6745. if test -n "$DSYMUTIL"; then
  6746. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6747. $as_echo "$DSYMUTIL" >&6; }
  6748. else
  6749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6750. $as_echo "no" >&6; }
  6751. fi
  6752. fi
  6753. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6754. ac_ct_DSYMUTIL=$DSYMUTIL
  6755. # Extract the first word of "dsymutil", so it can be a program name with args.
  6756. set dummy dsymutil; ac_word=$2
  6757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6758. $as_echo_n "checking for $ac_word... " >&6; }
  6759. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6760. $as_echo_n "(cached) " >&6
  6761. else
  6762. if test -n "$ac_ct_DSYMUTIL"; then
  6763. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6764. else
  6765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6766. for as_dir in $PATH
  6767. do
  6768. IFS=$as_save_IFS
  6769. test -z "$as_dir" && as_dir=.
  6770. for ac_exec_ext in '' $ac_executable_extensions; do
  6771. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6772. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6774. break 2
  6775. fi
  6776. done
  6777. done
  6778. IFS=$as_save_IFS
  6779. fi
  6780. fi
  6781. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6782. if test -n "$ac_ct_DSYMUTIL"; then
  6783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6784. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6785. else
  6786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6787. $as_echo "no" >&6; }
  6788. fi
  6789. if test "x$ac_ct_DSYMUTIL" = x; then
  6790. DSYMUTIL=":"
  6791. else
  6792. case $cross_compiling:$ac_tool_warned in
  6793. yes:)
  6794. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6795. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6796. ac_tool_warned=yes ;;
  6797. esac
  6798. DSYMUTIL=$ac_ct_DSYMUTIL
  6799. fi
  6800. else
  6801. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6802. fi
  6803. if test -n "$ac_tool_prefix"; then
  6804. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6805. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6807. $as_echo_n "checking for $ac_word... " >&6; }
  6808. if ${ac_cv_prog_NMEDIT+:} false; then :
  6809. $as_echo_n "(cached) " >&6
  6810. else
  6811. if test -n "$NMEDIT"; then
  6812. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6813. else
  6814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6815. for as_dir in $PATH
  6816. do
  6817. IFS=$as_save_IFS
  6818. test -z "$as_dir" && as_dir=.
  6819. for ac_exec_ext in '' $ac_executable_extensions; do
  6820. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6821. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6822. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6823. break 2
  6824. fi
  6825. done
  6826. done
  6827. IFS=$as_save_IFS
  6828. fi
  6829. fi
  6830. NMEDIT=$ac_cv_prog_NMEDIT
  6831. if test -n "$NMEDIT"; then
  6832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6833. $as_echo "$NMEDIT" >&6; }
  6834. else
  6835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6836. $as_echo "no" >&6; }
  6837. fi
  6838. fi
  6839. if test -z "$ac_cv_prog_NMEDIT"; then
  6840. ac_ct_NMEDIT=$NMEDIT
  6841. # Extract the first word of "nmedit", so it can be a program name with args.
  6842. set dummy nmedit; ac_word=$2
  6843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6844. $as_echo_n "checking for $ac_word... " >&6; }
  6845. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6846. $as_echo_n "(cached) " >&6
  6847. else
  6848. if test -n "$ac_ct_NMEDIT"; then
  6849. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6850. else
  6851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6852. for as_dir in $PATH
  6853. do
  6854. IFS=$as_save_IFS
  6855. test -z "$as_dir" && as_dir=.
  6856. for ac_exec_ext in '' $ac_executable_extensions; do
  6857. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6858. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6859. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6860. break 2
  6861. fi
  6862. done
  6863. done
  6864. IFS=$as_save_IFS
  6865. fi
  6866. fi
  6867. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6868. if test -n "$ac_ct_NMEDIT"; then
  6869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6870. $as_echo "$ac_ct_NMEDIT" >&6; }
  6871. else
  6872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6873. $as_echo "no" >&6; }
  6874. fi
  6875. if test "x$ac_ct_NMEDIT" = x; then
  6876. NMEDIT=":"
  6877. else
  6878. case $cross_compiling:$ac_tool_warned in
  6879. yes:)
  6880. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6881. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6882. ac_tool_warned=yes ;;
  6883. esac
  6884. NMEDIT=$ac_ct_NMEDIT
  6885. fi
  6886. else
  6887. NMEDIT="$ac_cv_prog_NMEDIT"
  6888. fi
  6889. if test -n "$ac_tool_prefix"; then
  6890. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6891. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6893. $as_echo_n "checking for $ac_word... " >&6; }
  6894. if ${ac_cv_prog_LIPO+:} false; then :
  6895. $as_echo_n "(cached) " >&6
  6896. else
  6897. if test -n "$LIPO"; then
  6898. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6899. else
  6900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6901. for as_dir in $PATH
  6902. do
  6903. IFS=$as_save_IFS
  6904. test -z "$as_dir" && as_dir=.
  6905. for ac_exec_ext in '' $ac_executable_extensions; do
  6906. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6907. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6908. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6909. break 2
  6910. fi
  6911. done
  6912. done
  6913. IFS=$as_save_IFS
  6914. fi
  6915. fi
  6916. LIPO=$ac_cv_prog_LIPO
  6917. if test -n "$LIPO"; then
  6918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6919. $as_echo "$LIPO" >&6; }
  6920. else
  6921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6922. $as_echo "no" >&6; }
  6923. fi
  6924. fi
  6925. if test -z "$ac_cv_prog_LIPO"; then
  6926. ac_ct_LIPO=$LIPO
  6927. # Extract the first word of "lipo", so it can be a program name with args.
  6928. set dummy lipo; ac_word=$2
  6929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6930. $as_echo_n "checking for $ac_word... " >&6; }
  6931. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6932. $as_echo_n "(cached) " >&6
  6933. else
  6934. if test -n "$ac_ct_LIPO"; then
  6935. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6936. else
  6937. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6938. for as_dir in $PATH
  6939. do
  6940. IFS=$as_save_IFS
  6941. test -z "$as_dir" && as_dir=.
  6942. for ac_exec_ext in '' $ac_executable_extensions; do
  6943. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6944. ac_cv_prog_ac_ct_LIPO="lipo"
  6945. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6946. break 2
  6947. fi
  6948. done
  6949. done
  6950. IFS=$as_save_IFS
  6951. fi
  6952. fi
  6953. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6954. if test -n "$ac_ct_LIPO"; then
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6956. $as_echo "$ac_ct_LIPO" >&6; }
  6957. else
  6958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6959. $as_echo "no" >&6; }
  6960. fi
  6961. if test "x$ac_ct_LIPO" = x; then
  6962. LIPO=":"
  6963. else
  6964. case $cross_compiling:$ac_tool_warned in
  6965. yes:)
  6966. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6967. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6968. ac_tool_warned=yes ;;
  6969. esac
  6970. LIPO=$ac_ct_LIPO
  6971. fi
  6972. else
  6973. LIPO="$ac_cv_prog_LIPO"
  6974. fi
  6975. if test -n "$ac_tool_prefix"; then
  6976. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6977. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6979. $as_echo_n "checking for $ac_word... " >&6; }
  6980. if ${ac_cv_prog_OTOOL+:} false; then :
  6981. $as_echo_n "(cached) " >&6
  6982. else
  6983. if test -n "$OTOOL"; then
  6984. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6985. else
  6986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6987. for as_dir in $PATH
  6988. do
  6989. IFS=$as_save_IFS
  6990. test -z "$as_dir" && as_dir=.
  6991. for ac_exec_ext in '' $ac_executable_extensions; do
  6992. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6993. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6994. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6995. break 2
  6996. fi
  6997. done
  6998. done
  6999. IFS=$as_save_IFS
  7000. fi
  7001. fi
  7002. OTOOL=$ac_cv_prog_OTOOL
  7003. if test -n "$OTOOL"; then
  7004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7005. $as_echo "$OTOOL" >&6; }
  7006. else
  7007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7008. $as_echo "no" >&6; }
  7009. fi
  7010. fi
  7011. if test -z "$ac_cv_prog_OTOOL"; then
  7012. ac_ct_OTOOL=$OTOOL
  7013. # Extract the first word of "otool", so it can be a program name with args.
  7014. set dummy otool; ac_word=$2
  7015. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7016. $as_echo_n "checking for $ac_word... " >&6; }
  7017. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7018. $as_echo_n "(cached) " >&6
  7019. else
  7020. if test -n "$ac_ct_OTOOL"; then
  7021. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7022. else
  7023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7024. for as_dir in $PATH
  7025. do
  7026. IFS=$as_save_IFS
  7027. test -z "$as_dir" && as_dir=.
  7028. for ac_exec_ext in '' $ac_executable_extensions; do
  7029. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7030. ac_cv_prog_ac_ct_OTOOL="otool"
  7031. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7032. break 2
  7033. fi
  7034. done
  7035. done
  7036. IFS=$as_save_IFS
  7037. fi
  7038. fi
  7039. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7040. if test -n "$ac_ct_OTOOL"; then
  7041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7042. $as_echo "$ac_ct_OTOOL" >&6; }
  7043. else
  7044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7045. $as_echo "no" >&6; }
  7046. fi
  7047. if test "x$ac_ct_OTOOL" = x; then
  7048. OTOOL=":"
  7049. else
  7050. case $cross_compiling:$ac_tool_warned in
  7051. yes:)
  7052. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7053. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7054. ac_tool_warned=yes ;;
  7055. esac
  7056. OTOOL=$ac_ct_OTOOL
  7057. fi
  7058. else
  7059. OTOOL="$ac_cv_prog_OTOOL"
  7060. fi
  7061. if test -n "$ac_tool_prefix"; then
  7062. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7063. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7065. $as_echo_n "checking for $ac_word... " >&6; }
  7066. if ${ac_cv_prog_OTOOL64+:} false; then :
  7067. $as_echo_n "(cached) " >&6
  7068. else
  7069. if test -n "$OTOOL64"; then
  7070. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7071. else
  7072. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7073. for as_dir in $PATH
  7074. do
  7075. IFS=$as_save_IFS
  7076. test -z "$as_dir" && as_dir=.
  7077. for ac_exec_ext in '' $ac_executable_extensions; do
  7078. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7079. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7080. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7081. break 2
  7082. fi
  7083. done
  7084. done
  7085. IFS=$as_save_IFS
  7086. fi
  7087. fi
  7088. OTOOL64=$ac_cv_prog_OTOOL64
  7089. if test -n "$OTOOL64"; then
  7090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7091. $as_echo "$OTOOL64" >&6; }
  7092. else
  7093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7094. $as_echo "no" >&6; }
  7095. fi
  7096. fi
  7097. if test -z "$ac_cv_prog_OTOOL64"; then
  7098. ac_ct_OTOOL64=$OTOOL64
  7099. # Extract the first word of "otool64", so it can be a program name with args.
  7100. set dummy otool64; ac_word=$2
  7101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7102. $as_echo_n "checking for $ac_word... " >&6; }
  7103. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7104. $as_echo_n "(cached) " >&6
  7105. else
  7106. if test -n "$ac_ct_OTOOL64"; then
  7107. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7108. else
  7109. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7110. for as_dir in $PATH
  7111. do
  7112. IFS=$as_save_IFS
  7113. test -z "$as_dir" && as_dir=.
  7114. for ac_exec_ext in '' $ac_executable_extensions; do
  7115. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7116. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7117. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7118. break 2
  7119. fi
  7120. done
  7121. done
  7122. IFS=$as_save_IFS
  7123. fi
  7124. fi
  7125. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7126. if test -n "$ac_ct_OTOOL64"; then
  7127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7128. $as_echo "$ac_ct_OTOOL64" >&6; }
  7129. else
  7130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7131. $as_echo "no" >&6; }
  7132. fi
  7133. if test "x$ac_ct_OTOOL64" = x; then
  7134. OTOOL64=":"
  7135. else
  7136. case $cross_compiling:$ac_tool_warned in
  7137. yes:)
  7138. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7139. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7140. ac_tool_warned=yes ;;
  7141. esac
  7142. OTOOL64=$ac_ct_OTOOL64
  7143. fi
  7144. else
  7145. OTOOL64="$ac_cv_prog_OTOOL64"
  7146. fi
  7147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7148. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7149. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7150. $as_echo_n "(cached) " >&6
  7151. else
  7152. lt_cv_apple_cc_single_mod=no
  7153. if test -z "${LT_MULTI_MODULE}"; then
  7154. # By default we will add the -single_module flag. You can override
  7155. # by either setting the environment variable LT_MULTI_MODULE
  7156. # non-empty at configure time, or by adding -multi_module to the
  7157. # link flags.
  7158. rm -rf libconftest.dylib*
  7159. echo "int foo(void){return 1;}" > conftest.c
  7160. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7161. -dynamiclib -Wl,-single_module conftest.c" >&5
  7162. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7163. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7164. _lt_result=$?
  7165. # If there is a non-empty error log, and "single_module"
  7166. # appears in it, assume the flag caused a linker warning
  7167. if test -s conftest.err && $GREP single_module conftest.err; then
  7168. cat conftest.err >&5
  7169. # Otherwise, if the output was created with a 0 exit code from
  7170. # the compiler, it worked.
  7171. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7172. lt_cv_apple_cc_single_mod=yes
  7173. else
  7174. cat conftest.err >&5
  7175. fi
  7176. rm -rf libconftest.dylib*
  7177. rm -f conftest.*
  7178. fi
  7179. fi
  7180. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7181. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7183. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7184. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7185. $as_echo_n "(cached) " >&6
  7186. else
  7187. lt_cv_ld_exported_symbols_list=no
  7188. save_LDFLAGS=$LDFLAGS
  7189. echo "_main" > conftest.sym
  7190. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7192. /* end confdefs.h. */
  7193. int
  7194. main ()
  7195. {
  7196. ;
  7197. return 0;
  7198. }
  7199. _ACEOF
  7200. if ac_fn_c_try_link "$LINENO"; then :
  7201. lt_cv_ld_exported_symbols_list=yes
  7202. else
  7203. lt_cv_ld_exported_symbols_list=no
  7204. fi
  7205. rm -f core conftest.err conftest.$ac_objext \
  7206. conftest$ac_exeext conftest.$ac_ext
  7207. LDFLAGS="$save_LDFLAGS"
  7208. fi
  7209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7210. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7212. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7213. if ${lt_cv_ld_force_load+:} false; then :
  7214. $as_echo_n "(cached) " >&6
  7215. else
  7216. lt_cv_ld_force_load=no
  7217. cat > conftest.c << _LT_EOF
  7218. int forced_loaded() { return 2;}
  7219. _LT_EOF
  7220. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7221. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7222. echo "$AR cru libconftest.a conftest.o" >&5
  7223. $AR cru libconftest.a conftest.o 2>&5
  7224. echo "$RANLIB libconftest.a" >&5
  7225. $RANLIB libconftest.a 2>&5
  7226. cat > conftest.c << _LT_EOF
  7227. int main() { return 0;}
  7228. _LT_EOF
  7229. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7230. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7231. _lt_result=$?
  7232. if test -s conftest.err && $GREP force_load conftest.err; then
  7233. cat conftest.err >&5
  7234. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7235. lt_cv_ld_force_load=yes
  7236. else
  7237. cat conftest.err >&5
  7238. fi
  7239. rm -f conftest.err libconftest.a conftest conftest.c
  7240. rm -rf conftest.dSYM
  7241. fi
  7242. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7243. $as_echo "$lt_cv_ld_force_load" >&6; }
  7244. case $host_os in
  7245. rhapsody* | darwin1.[012])
  7246. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7247. darwin1.*)
  7248. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7249. darwin*) # darwin 5.x on
  7250. # if running on 10.5 or later, the deployment target defaults
  7251. # to the OS version, if on x86, and 10.4, the deployment
  7252. # target defaults to 10.4. Don't you love it?
  7253. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7254. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7255. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7256. 10.[012]*)
  7257. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7258. 10.*)
  7259. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7260. esac
  7261. ;;
  7262. esac
  7263. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7264. _lt_dar_single_mod='$single_module'
  7265. fi
  7266. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7267. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7268. else
  7269. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7270. fi
  7271. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7272. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7273. else
  7274. _lt_dsymutil=
  7275. fi
  7276. ;;
  7277. esac
  7278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7279. $as_echo_n "checking for ANSI C header files... " >&6; }
  7280. if ${ac_cv_header_stdc+:} false; then :
  7281. $as_echo_n "(cached) " >&6
  7282. else
  7283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7284. /* end confdefs.h. */
  7285. #include <stdlib.h>
  7286. #include <stdarg.h>
  7287. #include <string.h>
  7288. #include <float.h>
  7289. int
  7290. main ()
  7291. {
  7292. ;
  7293. return 0;
  7294. }
  7295. _ACEOF
  7296. if ac_fn_c_try_compile "$LINENO"; then :
  7297. ac_cv_header_stdc=yes
  7298. else
  7299. ac_cv_header_stdc=no
  7300. fi
  7301. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7302. if test $ac_cv_header_stdc = yes; then
  7303. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7305. /* end confdefs.h. */
  7306. #include <string.h>
  7307. _ACEOF
  7308. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7309. $EGREP "memchr" >/dev/null 2>&1; then :
  7310. else
  7311. ac_cv_header_stdc=no
  7312. fi
  7313. rm -f conftest*
  7314. fi
  7315. if test $ac_cv_header_stdc = yes; then
  7316. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7318. /* end confdefs.h. */
  7319. #include <stdlib.h>
  7320. _ACEOF
  7321. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7322. $EGREP "free" >/dev/null 2>&1; then :
  7323. else
  7324. ac_cv_header_stdc=no
  7325. fi
  7326. rm -f conftest*
  7327. fi
  7328. if test $ac_cv_header_stdc = yes; then
  7329. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7330. if test "$cross_compiling" = yes; then :
  7331. :
  7332. else
  7333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7334. /* end confdefs.h. */
  7335. #include <ctype.h>
  7336. #include <stdlib.h>
  7337. #if ((' ' & 0x0FF) == 0x020)
  7338. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7339. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7340. #else
  7341. # define ISLOWER(c) \
  7342. (('a' <= (c) && (c) <= 'i') \
  7343. || ('j' <= (c) && (c) <= 'r') \
  7344. || ('s' <= (c) && (c) <= 'z'))
  7345. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7346. #endif
  7347. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7348. int
  7349. main ()
  7350. {
  7351. int i;
  7352. for (i = 0; i < 256; i++)
  7353. if (XOR (islower (i), ISLOWER (i))
  7354. || toupper (i) != TOUPPER (i))
  7355. return 2;
  7356. return 0;
  7357. }
  7358. _ACEOF
  7359. if ac_fn_c_try_run "$LINENO"; then :
  7360. else
  7361. ac_cv_header_stdc=no
  7362. fi
  7363. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7364. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7365. fi
  7366. fi
  7367. fi
  7368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7369. $as_echo "$ac_cv_header_stdc" >&6; }
  7370. if test $ac_cv_header_stdc = yes; then
  7371. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7372. fi
  7373. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7374. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7375. inttypes.h stdint.h unistd.h
  7376. do :
  7377. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7378. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7379. "
  7380. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7381. cat >>confdefs.h <<_ACEOF
  7382. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7383. _ACEOF
  7384. fi
  7385. done
  7386. for ac_header in dlfcn.h
  7387. do :
  7388. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7389. "
  7390. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7391. cat >>confdefs.h <<_ACEOF
  7392. #define HAVE_DLFCN_H 1
  7393. _ACEOF
  7394. fi
  7395. done
  7396. func_stripname_cnf ()
  7397. {
  7398. case ${2} in
  7399. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7400. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7401. esac
  7402. } # func_stripname_cnf
  7403. # Set options
  7404. enable_dlopen=no
  7405. enable_win32_dll=no
  7406. # Check whether --enable-shared was given.
  7407. if test "${enable_shared+set}" = set; then :
  7408. enableval=$enable_shared; p=${PACKAGE-default}
  7409. case $enableval in
  7410. yes) enable_shared=yes ;;
  7411. no) enable_shared=no ;;
  7412. *)
  7413. enable_shared=no
  7414. # Look at the argument we got. We use all the common list separators.
  7415. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7416. for pkg in $enableval; do
  7417. IFS="$lt_save_ifs"
  7418. if test "X$pkg" = "X$p"; then
  7419. enable_shared=yes
  7420. fi
  7421. done
  7422. IFS="$lt_save_ifs"
  7423. ;;
  7424. esac
  7425. else
  7426. enable_shared=yes
  7427. fi
  7428. # Check whether --enable-static was given.
  7429. if test "${enable_static+set}" = set; then :
  7430. enableval=$enable_static; p=${PACKAGE-default}
  7431. case $enableval in
  7432. yes) enable_static=yes ;;
  7433. no) enable_static=no ;;
  7434. *)
  7435. enable_static=no
  7436. # Look at the argument we got. We use all the common list separators.
  7437. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7438. for pkg in $enableval; do
  7439. IFS="$lt_save_ifs"
  7440. if test "X$pkg" = "X$p"; then
  7441. enable_static=yes
  7442. fi
  7443. done
  7444. IFS="$lt_save_ifs"
  7445. ;;
  7446. esac
  7447. else
  7448. enable_static=yes
  7449. fi
  7450. # Check whether --with-pic was given.
  7451. if test "${with_pic+set}" = set; then :
  7452. withval=$with_pic; lt_p=${PACKAGE-default}
  7453. case $withval in
  7454. yes|no) pic_mode=$withval ;;
  7455. *)
  7456. pic_mode=default
  7457. # Look at the argument we got. We use all the common list separators.
  7458. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7459. for lt_pkg in $withval; do
  7460. IFS="$lt_save_ifs"
  7461. if test "X$lt_pkg" = "X$lt_p"; then
  7462. pic_mode=yes
  7463. fi
  7464. done
  7465. IFS="$lt_save_ifs"
  7466. ;;
  7467. esac
  7468. else
  7469. pic_mode=default
  7470. fi
  7471. test -z "$pic_mode" && pic_mode=default
  7472. # Check whether --enable-fast-install was given.
  7473. if test "${enable_fast_install+set}" = set; then :
  7474. enableval=$enable_fast_install; p=${PACKAGE-default}
  7475. case $enableval in
  7476. yes) enable_fast_install=yes ;;
  7477. no) enable_fast_install=no ;;
  7478. *)
  7479. enable_fast_install=no
  7480. # Look at the argument we got. We use all the common list separators.
  7481. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7482. for pkg in $enableval; do
  7483. IFS="$lt_save_ifs"
  7484. if test "X$pkg" = "X$p"; then
  7485. enable_fast_install=yes
  7486. fi
  7487. done
  7488. IFS="$lt_save_ifs"
  7489. ;;
  7490. esac
  7491. else
  7492. enable_fast_install=yes
  7493. fi
  7494. # This can be used to rebuild libtool when needed
  7495. LIBTOOL_DEPS="$ltmain"
  7496. # Always use our own libtool.
  7497. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7498. test -z "$LN_S" && LN_S="ln -s"
  7499. if test -n "${ZSH_VERSION+set}" ; then
  7500. setopt NO_GLOB_SUBST
  7501. fi
  7502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7503. $as_echo_n "checking for objdir... " >&6; }
  7504. if ${lt_cv_objdir+:} false; then :
  7505. $as_echo_n "(cached) " >&6
  7506. else
  7507. rm -f .libs 2>/dev/null
  7508. mkdir .libs 2>/dev/null
  7509. if test -d .libs; then
  7510. lt_cv_objdir=.libs
  7511. else
  7512. # MS-DOS does not allow filenames that begin with a dot.
  7513. lt_cv_objdir=_libs
  7514. fi
  7515. rmdir .libs 2>/dev/null
  7516. fi
  7517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7518. $as_echo "$lt_cv_objdir" >&6; }
  7519. objdir=$lt_cv_objdir
  7520. cat >>confdefs.h <<_ACEOF
  7521. #define LT_OBJDIR "$lt_cv_objdir/"
  7522. _ACEOF
  7523. case $host_os in
  7524. aix3*)
  7525. # AIX sometimes has problems with the GCC collect2 program. For some
  7526. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7527. # vanish in a puff of smoke.
  7528. if test "X${COLLECT_NAMES+set}" != Xset; then
  7529. COLLECT_NAMES=
  7530. export COLLECT_NAMES
  7531. fi
  7532. ;;
  7533. esac
  7534. # Global variables:
  7535. ofile=libtool
  7536. can_build_shared=yes
  7537. # All known linkers require a `.a' archive for static linking (except MSVC,
  7538. # which needs '.lib').
  7539. libext=a
  7540. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7541. old_CC="$CC"
  7542. old_CFLAGS="$CFLAGS"
  7543. # Set sane defaults for various variables
  7544. test -z "$CC" && CC=cc
  7545. test -z "$LTCC" && LTCC=$CC
  7546. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7547. test -z "$LD" && LD=ld
  7548. test -z "$ac_objext" && ac_objext=o
  7549. for cc_temp in $compiler""; do
  7550. case $cc_temp in
  7551. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7552. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7553. \-*) ;;
  7554. *) break;;
  7555. esac
  7556. done
  7557. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7558. # Only perform the check for file, if the check method requires it
  7559. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7560. case $deplibs_check_method in
  7561. file_magic*)
  7562. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7564. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7565. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7566. $as_echo_n "(cached) " >&6
  7567. else
  7568. case $MAGIC_CMD in
  7569. [\\/*] | ?:[\\/]*)
  7570. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7571. ;;
  7572. *)
  7573. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7574. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7575. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7576. for ac_dir in $ac_dummy; do
  7577. IFS="$lt_save_ifs"
  7578. test -z "$ac_dir" && ac_dir=.
  7579. if test -f $ac_dir/${ac_tool_prefix}file; then
  7580. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7581. if test -n "$file_magic_test_file"; then
  7582. case $deplibs_check_method in
  7583. "file_magic "*)
  7584. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7585. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7586. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7587. $EGREP "$file_magic_regex" > /dev/null; then
  7588. :
  7589. else
  7590. cat <<_LT_EOF 1>&2
  7591. *** Warning: the command libtool uses to detect shared libraries,
  7592. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7593. *** The result is that libtool may fail to recognize shared libraries
  7594. *** as such. This will affect the creation of libtool libraries that
  7595. *** depend on shared libraries, but programs linked with such libtool
  7596. *** libraries will work regardless of this problem. Nevertheless, you
  7597. *** may want to report the problem to your system manager and/or to
  7598. *** bug-libtool@gnu.org
  7599. _LT_EOF
  7600. fi ;;
  7601. esac
  7602. fi
  7603. break
  7604. fi
  7605. done
  7606. IFS="$lt_save_ifs"
  7607. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7608. ;;
  7609. esac
  7610. fi
  7611. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7612. if test -n "$MAGIC_CMD"; then
  7613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7614. $as_echo "$MAGIC_CMD" >&6; }
  7615. else
  7616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7617. $as_echo "no" >&6; }
  7618. fi
  7619. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7620. if test -n "$ac_tool_prefix"; then
  7621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7622. $as_echo_n "checking for file... " >&6; }
  7623. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7624. $as_echo_n "(cached) " >&6
  7625. else
  7626. case $MAGIC_CMD in
  7627. [\\/*] | ?:[\\/]*)
  7628. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7629. ;;
  7630. *)
  7631. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7632. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7633. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7634. for ac_dir in $ac_dummy; do
  7635. IFS="$lt_save_ifs"
  7636. test -z "$ac_dir" && ac_dir=.
  7637. if test -f $ac_dir/file; then
  7638. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7639. if test -n "$file_magic_test_file"; then
  7640. case $deplibs_check_method in
  7641. "file_magic "*)
  7642. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7643. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7644. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7645. $EGREP "$file_magic_regex" > /dev/null; then
  7646. :
  7647. else
  7648. cat <<_LT_EOF 1>&2
  7649. *** Warning: the command libtool uses to detect shared libraries,
  7650. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7651. *** The result is that libtool may fail to recognize shared libraries
  7652. *** as such. This will affect the creation of libtool libraries that
  7653. *** depend on shared libraries, but programs linked with such libtool
  7654. *** libraries will work regardless of this problem. Nevertheless, you
  7655. *** may want to report the problem to your system manager and/or to
  7656. *** bug-libtool@gnu.org
  7657. _LT_EOF
  7658. fi ;;
  7659. esac
  7660. fi
  7661. break
  7662. fi
  7663. done
  7664. IFS="$lt_save_ifs"
  7665. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7666. ;;
  7667. esac
  7668. fi
  7669. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7670. if test -n "$MAGIC_CMD"; then
  7671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7672. $as_echo "$MAGIC_CMD" >&6; }
  7673. else
  7674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7675. $as_echo "no" >&6; }
  7676. fi
  7677. else
  7678. MAGIC_CMD=:
  7679. fi
  7680. fi
  7681. fi
  7682. ;;
  7683. esac
  7684. # Use C for the default configuration in the libtool script
  7685. lt_save_CC="$CC"
  7686. ac_ext=c
  7687. ac_cpp='$CPP $CPPFLAGS'
  7688. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7689. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7690. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7691. # Source file extension for C test sources.
  7692. ac_ext=c
  7693. # Object file extension for compiled C test sources.
  7694. objext=o
  7695. objext=$objext
  7696. # Code to be used in simple compile tests
  7697. lt_simple_compile_test_code="int some_variable = 0;"
  7698. # Code to be used in simple link tests
  7699. lt_simple_link_test_code='int main(){return(0);}'
  7700. # If no C compiler was specified, use CC.
  7701. LTCC=${LTCC-"$CC"}
  7702. # If no C compiler flags were specified, use CFLAGS.
  7703. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7704. # Allow CC to be a program name with arguments.
  7705. compiler=$CC
  7706. # Save the default compiler, since it gets overwritten when the other
  7707. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7708. compiler_DEFAULT=$CC
  7709. # save warnings/boilerplate of simple test code
  7710. ac_outfile=conftest.$ac_objext
  7711. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7712. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7713. _lt_compiler_boilerplate=`cat conftest.err`
  7714. $RM conftest*
  7715. ac_outfile=conftest.$ac_objext
  7716. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7717. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7718. _lt_linker_boilerplate=`cat conftest.err`
  7719. $RM -r conftest*
  7720. ## CAVEAT EMPTOR:
  7721. ## There is no encapsulation within the following macros, do not change
  7722. ## the running order or otherwise move them around unless you know exactly
  7723. ## what you are doing...
  7724. if test -n "$compiler"; then
  7725. lt_prog_compiler_no_builtin_flag=
  7726. if test "$GCC" = yes; then
  7727. case $cc_basename in
  7728. nvcc*)
  7729. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7730. *)
  7731. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7732. esac
  7733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7734. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7735. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7736. $as_echo_n "(cached) " >&6
  7737. else
  7738. lt_cv_prog_compiler_rtti_exceptions=no
  7739. ac_outfile=conftest.$ac_objext
  7740. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7741. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7742. # Insert the option either (1) after the last *FLAGS variable, or
  7743. # (2) before a word containing "conftest.", or (3) at the end.
  7744. # Note that $ac_compile itself does not contain backslashes and begins
  7745. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7746. # The option is referenced via a variable to avoid confusing sed.
  7747. lt_compile=`echo "$ac_compile" | $SED \
  7748. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7749. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7750. -e 's:$: $lt_compiler_flag:'`
  7751. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7752. (eval "$lt_compile" 2>conftest.err)
  7753. ac_status=$?
  7754. cat conftest.err >&5
  7755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7756. if (exit $ac_status) && test -s "$ac_outfile"; then
  7757. # The compiler can only warn and ignore the option if not recognized
  7758. # So say no if there are warnings other than the usual output.
  7759. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7760. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7761. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7762. lt_cv_prog_compiler_rtti_exceptions=yes
  7763. fi
  7764. fi
  7765. $RM conftest*
  7766. fi
  7767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7768. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7769. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7770. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7771. else
  7772. :
  7773. fi
  7774. fi
  7775. lt_prog_compiler_wl=
  7776. lt_prog_compiler_pic=
  7777. lt_prog_compiler_static=
  7778. if test "$GCC" = yes; then
  7779. lt_prog_compiler_wl='-Wl,'
  7780. lt_prog_compiler_static='-static'
  7781. case $host_os in
  7782. aix*)
  7783. # All AIX code is PIC.
  7784. if test "$host_cpu" = ia64; then
  7785. # AIX 5 now supports IA64 processor
  7786. lt_prog_compiler_static='-Bstatic'
  7787. fi
  7788. ;;
  7789. amigaos*)
  7790. case $host_cpu in
  7791. powerpc)
  7792. # see comment about AmigaOS4 .so support
  7793. lt_prog_compiler_pic='-fPIC'
  7794. ;;
  7795. m68k)
  7796. # FIXME: we need at least 68020 code to build shared libraries, but
  7797. # adding the `-m68020' flag to GCC prevents building anything better,
  7798. # like `-m68040'.
  7799. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7800. ;;
  7801. esac
  7802. ;;
  7803. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7804. # PIC is the default for these OSes.
  7805. ;;
  7806. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7807. # This hack is so that the source file can tell whether it is being
  7808. # built for inclusion in a dll (and should export symbols for example).
  7809. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7810. # (--disable-auto-import) libraries
  7811. lt_prog_compiler_pic='-DDLL_EXPORT'
  7812. ;;
  7813. darwin* | rhapsody*)
  7814. # PIC is the default on this platform
  7815. # Common symbols not allowed in MH_DYLIB files
  7816. lt_prog_compiler_pic='-fno-common'
  7817. ;;
  7818. haiku*)
  7819. # PIC is the default for Haiku.
  7820. # The "-static" flag exists, but is broken.
  7821. lt_prog_compiler_static=
  7822. ;;
  7823. hpux*)
  7824. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7825. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7826. # sets the default TLS model and affects inlining.
  7827. case $host_cpu in
  7828. hppa*64*)
  7829. # +Z the default
  7830. ;;
  7831. *)
  7832. lt_prog_compiler_pic='-fPIC'
  7833. ;;
  7834. esac
  7835. ;;
  7836. interix[3-9]*)
  7837. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7838. # Instead, we relocate shared libraries at runtime.
  7839. ;;
  7840. msdosdjgpp*)
  7841. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7842. # on systems that don't support them.
  7843. lt_prog_compiler_can_build_shared=no
  7844. enable_shared=no
  7845. ;;
  7846. *nto* | *qnx*)
  7847. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7848. # it will coredump.
  7849. lt_prog_compiler_pic='-fPIC -shared'
  7850. ;;
  7851. sysv4*MP*)
  7852. if test -d /usr/nec; then
  7853. lt_prog_compiler_pic=-Kconform_pic
  7854. fi
  7855. ;;
  7856. *)
  7857. lt_prog_compiler_pic='-fPIC'
  7858. ;;
  7859. esac
  7860. case $cc_basename in
  7861. nvcc*) # Cuda Compiler Driver 2.2
  7862. lt_prog_compiler_wl='-Xlinker '
  7863. if test -n "$lt_prog_compiler_pic"; then
  7864. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7865. fi
  7866. ;;
  7867. esac
  7868. else
  7869. # PORTME Check for flag to pass linker flags through the system compiler.
  7870. case $host_os in
  7871. aix*)
  7872. lt_prog_compiler_wl='-Wl,'
  7873. if test "$host_cpu" = ia64; then
  7874. # AIX 5 now supports IA64 processor
  7875. lt_prog_compiler_static='-Bstatic'
  7876. else
  7877. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7878. fi
  7879. ;;
  7880. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7881. # This hack is so that the source file can tell whether it is being
  7882. # built for inclusion in a dll (and should export symbols for example).
  7883. lt_prog_compiler_pic='-DDLL_EXPORT'
  7884. ;;
  7885. hpux9* | hpux10* | hpux11*)
  7886. lt_prog_compiler_wl='-Wl,'
  7887. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7888. # not for PA HP-UX.
  7889. case $host_cpu in
  7890. hppa*64*|ia64*)
  7891. # +Z the default
  7892. ;;
  7893. *)
  7894. lt_prog_compiler_pic='+Z'
  7895. ;;
  7896. esac
  7897. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7898. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7899. ;;
  7900. irix5* | irix6* | nonstopux*)
  7901. lt_prog_compiler_wl='-Wl,'
  7902. # PIC (with -KPIC) is the default.
  7903. lt_prog_compiler_static='-non_shared'
  7904. ;;
  7905. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7906. case $cc_basename in
  7907. # old Intel for x86_64 which still supported -KPIC.
  7908. ecc*)
  7909. lt_prog_compiler_wl='-Wl,'
  7910. lt_prog_compiler_pic='-KPIC'
  7911. lt_prog_compiler_static='-static'
  7912. ;;
  7913. # icc used to be incompatible with GCC.
  7914. # ICC 10 doesn't accept -KPIC any more.
  7915. icc* | ifort*)
  7916. lt_prog_compiler_wl='-Wl,'
  7917. lt_prog_compiler_pic='-fPIC'
  7918. lt_prog_compiler_static='-static'
  7919. ;;
  7920. # Lahey Fortran 8.1.
  7921. lf95*)
  7922. lt_prog_compiler_wl='-Wl,'
  7923. lt_prog_compiler_pic='--shared'
  7924. lt_prog_compiler_static='--static'
  7925. ;;
  7926. nagfor*)
  7927. # NAG Fortran compiler
  7928. lt_prog_compiler_wl='-Wl,-Wl,,'
  7929. lt_prog_compiler_pic='-PIC'
  7930. lt_prog_compiler_static='-Bstatic'
  7931. ;;
  7932. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7933. # Portland Group compilers (*not* the Pentium gcc compiler,
  7934. # which looks to be a dead project)
  7935. lt_prog_compiler_wl='-Wl,'
  7936. lt_prog_compiler_pic='-fpic'
  7937. lt_prog_compiler_static='-Bstatic'
  7938. ;;
  7939. ccc*)
  7940. lt_prog_compiler_wl='-Wl,'
  7941. # All Alpha code is PIC.
  7942. lt_prog_compiler_static='-non_shared'
  7943. ;;
  7944. xl* | bgxl* | bgf* | mpixl*)
  7945. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7946. lt_prog_compiler_wl='-Wl,'
  7947. lt_prog_compiler_pic='-qpic'
  7948. lt_prog_compiler_static='-qstaticlink'
  7949. ;;
  7950. *)
  7951. case `$CC -V 2>&1 | sed 5q` in
  7952. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7953. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7954. lt_prog_compiler_pic='-KPIC'
  7955. lt_prog_compiler_static='-Bstatic'
  7956. lt_prog_compiler_wl=''
  7957. ;;
  7958. *Sun\ F* | *Sun*Fortran*)
  7959. lt_prog_compiler_pic='-KPIC'
  7960. lt_prog_compiler_static='-Bstatic'
  7961. lt_prog_compiler_wl='-Qoption ld '
  7962. ;;
  7963. *Sun\ C*)
  7964. # Sun C 5.9
  7965. lt_prog_compiler_pic='-KPIC'
  7966. lt_prog_compiler_static='-Bstatic'
  7967. lt_prog_compiler_wl='-Wl,'
  7968. ;;
  7969. *Intel*\ [CF]*Compiler*)
  7970. lt_prog_compiler_wl='-Wl,'
  7971. lt_prog_compiler_pic='-fPIC'
  7972. lt_prog_compiler_static='-static'
  7973. ;;
  7974. *Portland\ Group*)
  7975. lt_prog_compiler_wl='-Wl,'
  7976. lt_prog_compiler_pic='-fpic'
  7977. lt_prog_compiler_static='-Bstatic'
  7978. ;;
  7979. esac
  7980. ;;
  7981. esac
  7982. ;;
  7983. newsos6)
  7984. lt_prog_compiler_pic='-KPIC'
  7985. lt_prog_compiler_static='-Bstatic'
  7986. ;;
  7987. *nto* | *qnx*)
  7988. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7989. # it will coredump.
  7990. lt_prog_compiler_pic='-fPIC -shared'
  7991. ;;
  7992. osf3* | osf4* | osf5*)
  7993. lt_prog_compiler_wl='-Wl,'
  7994. # All OSF/1 code is PIC.
  7995. lt_prog_compiler_static='-non_shared'
  7996. ;;
  7997. rdos*)
  7998. lt_prog_compiler_static='-non_shared'
  7999. ;;
  8000. solaris*)
  8001. lt_prog_compiler_pic='-KPIC'
  8002. lt_prog_compiler_static='-Bstatic'
  8003. case $cc_basename in
  8004. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  8005. lt_prog_compiler_wl='-Qoption ld ';;
  8006. *)
  8007. lt_prog_compiler_wl='-Wl,';;
  8008. esac
  8009. ;;
  8010. sunos4*)
  8011. lt_prog_compiler_wl='-Qoption ld '
  8012. lt_prog_compiler_pic='-PIC'
  8013. lt_prog_compiler_static='-Bstatic'
  8014. ;;
  8015. sysv4 | sysv4.2uw2* | sysv4.3*)
  8016. lt_prog_compiler_wl='-Wl,'
  8017. lt_prog_compiler_pic='-KPIC'
  8018. lt_prog_compiler_static='-Bstatic'
  8019. ;;
  8020. sysv4*MP*)
  8021. if test -d /usr/nec ;then
  8022. lt_prog_compiler_pic='-Kconform_pic'
  8023. lt_prog_compiler_static='-Bstatic'
  8024. fi
  8025. ;;
  8026. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8027. lt_prog_compiler_wl='-Wl,'
  8028. lt_prog_compiler_pic='-KPIC'
  8029. lt_prog_compiler_static='-Bstatic'
  8030. ;;
  8031. unicos*)
  8032. lt_prog_compiler_wl='-Wl,'
  8033. lt_prog_compiler_can_build_shared=no
  8034. ;;
  8035. uts4*)
  8036. lt_prog_compiler_pic='-pic'
  8037. lt_prog_compiler_static='-Bstatic'
  8038. ;;
  8039. *)
  8040. lt_prog_compiler_can_build_shared=no
  8041. ;;
  8042. esac
  8043. fi
  8044. case $host_os in
  8045. # For platforms which do not support PIC, -DPIC is meaningless:
  8046. *djgpp*)
  8047. lt_prog_compiler_pic=
  8048. ;;
  8049. *)
  8050. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8051. ;;
  8052. esac
  8053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  8054. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  8055. if ${lt_cv_prog_compiler_pic+:} false; then :
  8056. $as_echo_n "(cached) " >&6
  8057. else
  8058. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  8059. fi
  8060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  8061. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  8062. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  8063. #
  8064. # Check to make sure the PIC flag actually works.
  8065. #
  8066. if test -n "$lt_prog_compiler_pic"; then
  8067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8068. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8069. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8070. $as_echo_n "(cached) " >&6
  8071. else
  8072. lt_cv_prog_compiler_pic_works=no
  8073. ac_outfile=conftest.$ac_objext
  8074. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8075. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8076. # Insert the option either (1) after the last *FLAGS variable, or
  8077. # (2) before a word containing "conftest.", or (3) at the end.
  8078. # Note that $ac_compile itself does not contain backslashes and begins
  8079. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8080. # The option is referenced via a variable to avoid confusing sed.
  8081. lt_compile=`echo "$ac_compile" | $SED \
  8082. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8083. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8084. -e 's:$: $lt_compiler_flag:'`
  8085. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8086. (eval "$lt_compile" 2>conftest.err)
  8087. ac_status=$?
  8088. cat conftest.err >&5
  8089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8090. if (exit $ac_status) && test -s "$ac_outfile"; then
  8091. # The compiler can only warn and ignore the option if not recognized
  8092. # So say no if there are warnings other than the usual output.
  8093. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8094. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8095. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8096. lt_cv_prog_compiler_pic_works=yes
  8097. fi
  8098. fi
  8099. $RM conftest*
  8100. fi
  8101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8102. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8103. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8104. case $lt_prog_compiler_pic in
  8105. "" | " "*) ;;
  8106. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8107. esac
  8108. else
  8109. lt_prog_compiler_pic=
  8110. lt_prog_compiler_can_build_shared=no
  8111. fi
  8112. fi
  8113. #
  8114. # Check to make sure the static flag actually works.
  8115. #
  8116. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8118. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8119. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8120. $as_echo_n "(cached) " >&6
  8121. else
  8122. lt_cv_prog_compiler_static_works=no
  8123. save_LDFLAGS="$LDFLAGS"
  8124. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8125. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8126. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8127. # The linker can only warn and ignore the option if not recognized
  8128. # So say no if there are warnings
  8129. if test -s conftest.err; then
  8130. # Append any errors to the config.log.
  8131. cat conftest.err 1>&5
  8132. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8133. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8134. if diff conftest.exp conftest.er2 >/dev/null; then
  8135. lt_cv_prog_compiler_static_works=yes
  8136. fi
  8137. else
  8138. lt_cv_prog_compiler_static_works=yes
  8139. fi
  8140. fi
  8141. $RM -r conftest*
  8142. LDFLAGS="$save_LDFLAGS"
  8143. fi
  8144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8145. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8146. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8147. :
  8148. else
  8149. lt_prog_compiler_static=
  8150. fi
  8151. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8152. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8153. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8154. $as_echo_n "(cached) " >&6
  8155. else
  8156. lt_cv_prog_compiler_c_o=no
  8157. $RM -r conftest 2>/dev/null
  8158. mkdir conftest
  8159. cd conftest
  8160. mkdir out
  8161. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8162. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8163. # Insert the option either (1) after the last *FLAGS variable, or
  8164. # (2) before a word containing "conftest.", or (3) at the end.
  8165. # Note that $ac_compile itself does not contain backslashes and begins
  8166. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8167. lt_compile=`echo "$ac_compile" | $SED \
  8168. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8169. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8170. -e 's:$: $lt_compiler_flag:'`
  8171. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8172. (eval "$lt_compile" 2>out/conftest.err)
  8173. ac_status=$?
  8174. cat out/conftest.err >&5
  8175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8176. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8177. then
  8178. # The compiler can only warn and ignore the option if not recognized
  8179. # So say no if there are warnings
  8180. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8181. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8182. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8183. lt_cv_prog_compiler_c_o=yes
  8184. fi
  8185. fi
  8186. chmod u+w . 2>&5
  8187. $RM conftest*
  8188. # SGI C++ compiler will create directory out/ii_files/ for
  8189. # template instantiation
  8190. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8191. $RM out/* && rmdir out
  8192. cd ..
  8193. $RM -r conftest
  8194. $RM conftest*
  8195. fi
  8196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8197. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8199. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8200. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8201. $as_echo_n "(cached) " >&6
  8202. else
  8203. lt_cv_prog_compiler_c_o=no
  8204. $RM -r conftest 2>/dev/null
  8205. mkdir conftest
  8206. cd conftest
  8207. mkdir out
  8208. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8209. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8210. # Insert the option either (1) after the last *FLAGS variable, or
  8211. # (2) before a word containing "conftest.", or (3) at the end.
  8212. # Note that $ac_compile itself does not contain backslashes and begins
  8213. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8214. lt_compile=`echo "$ac_compile" | $SED \
  8215. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8216. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8217. -e 's:$: $lt_compiler_flag:'`
  8218. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8219. (eval "$lt_compile" 2>out/conftest.err)
  8220. ac_status=$?
  8221. cat out/conftest.err >&5
  8222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8223. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8224. then
  8225. # The compiler can only warn and ignore the option if not recognized
  8226. # So say no if there are warnings
  8227. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8228. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8229. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8230. lt_cv_prog_compiler_c_o=yes
  8231. fi
  8232. fi
  8233. chmod u+w . 2>&5
  8234. $RM conftest*
  8235. # SGI C++ compiler will create directory out/ii_files/ for
  8236. # template instantiation
  8237. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8238. $RM out/* && rmdir out
  8239. cd ..
  8240. $RM -r conftest
  8241. $RM conftest*
  8242. fi
  8243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8244. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8245. hard_links="nottested"
  8246. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8247. # do not overwrite the value of need_locks provided by the user
  8248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8249. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8250. hard_links=yes
  8251. $RM conftest*
  8252. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8253. touch conftest.a
  8254. ln conftest.a conftest.b 2>&5 || hard_links=no
  8255. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8257. $as_echo "$hard_links" >&6; }
  8258. if test "$hard_links" = no; then
  8259. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8260. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8261. need_locks=warn
  8262. fi
  8263. else
  8264. need_locks=no
  8265. fi
  8266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8267. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8268. runpath_var=
  8269. allow_undefined_flag=
  8270. always_export_symbols=no
  8271. archive_cmds=
  8272. archive_expsym_cmds=
  8273. compiler_needs_object=no
  8274. enable_shared_with_static_runtimes=no
  8275. export_dynamic_flag_spec=
  8276. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8277. hardcode_automatic=no
  8278. hardcode_direct=no
  8279. hardcode_direct_absolute=no
  8280. hardcode_libdir_flag_spec=
  8281. hardcode_libdir_separator=
  8282. hardcode_minus_L=no
  8283. hardcode_shlibpath_var=unsupported
  8284. inherit_rpath=no
  8285. link_all_deplibs=unknown
  8286. module_cmds=
  8287. module_expsym_cmds=
  8288. old_archive_from_new_cmds=
  8289. old_archive_from_expsyms_cmds=
  8290. thread_safe_flag_spec=
  8291. whole_archive_flag_spec=
  8292. # include_expsyms should be a list of space-separated symbols to be *always*
  8293. # included in the symbol list
  8294. include_expsyms=
  8295. # exclude_expsyms can be an extended regexp of symbols to exclude
  8296. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8297. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8298. # as well as any symbol that contains `d'.
  8299. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8300. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8301. # platforms (ab)use it in PIC code, but their linkers get confused if
  8302. # the symbol is explicitly referenced. Since portable code cannot
  8303. # rely on this symbol name, it's probably fine to never include it in
  8304. # preloaded symbol tables.
  8305. # Exclude shared library initialization/finalization symbols.
  8306. extract_expsyms_cmds=
  8307. case $host_os in
  8308. cygwin* | mingw* | pw32* | cegcc*)
  8309. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8310. # When not using gcc, we currently assume that we are using
  8311. # Microsoft Visual C++.
  8312. if test "$GCC" != yes; then
  8313. with_gnu_ld=no
  8314. fi
  8315. ;;
  8316. interix*)
  8317. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8318. with_gnu_ld=yes
  8319. ;;
  8320. openbsd*)
  8321. with_gnu_ld=no
  8322. ;;
  8323. linux* | k*bsd*-gnu | gnu*)
  8324. link_all_deplibs=no
  8325. ;;
  8326. esac
  8327. ld_shlibs=yes
  8328. # On some targets, GNU ld is compatible enough with the native linker
  8329. # that we're better off using the native interface for both.
  8330. lt_use_gnu_ld_interface=no
  8331. if test "$with_gnu_ld" = yes; then
  8332. case $host_os in
  8333. aix*)
  8334. # The AIX port of GNU ld has always aspired to compatibility
  8335. # with the native linker. However, as the warning in the GNU ld
  8336. # block says, versions before 2.19.5* couldn't really create working
  8337. # shared libraries, regardless of the interface used.
  8338. case `$LD -v 2>&1` in
  8339. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8340. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8341. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8342. *)
  8343. lt_use_gnu_ld_interface=yes
  8344. ;;
  8345. esac
  8346. ;;
  8347. *)
  8348. lt_use_gnu_ld_interface=yes
  8349. ;;
  8350. esac
  8351. fi
  8352. if test "$lt_use_gnu_ld_interface" = yes; then
  8353. # If archive_cmds runs LD, not CC, wlarc should be empty
  8354. wlarc='${wl}'
  8355. # Set some defaults for GNU ld with shared library support. These
  8356. # are reset later if shared libraries are not supported. Putting them
  8357. # here allows them to be overridden if necessary.
  8358. runpath_var=LD_RUN_PATH
  8359. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8360. export_dynamic_flag_spec='${wl}--export-dynamic'
  8361. # ancient GNU ld didn't support --whole-archive et. al.
  8362. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8363. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8364. else
  8365. whole_archive_flag_spec=
  8366. fi
  8367. supports_anon_versioning=no
  8368. case `$LD -v 2>&1` in
  8369. *GNU\ gold*) supports_anon_versioning=yes ;;
  8370. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8371. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8372. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8373. *\ 2.11.*) ;; # other 2.11 versions
  8374. *) supports_anon_versioning=yes ;;
  8375. esac
  8376. # See if GNU ld supports shared libraries.
  8377. case $host_os in
  8378. aix[3-9]*)
  8379. # On AIX/PPC, the GNU linker is very broken
  8380. if test "$host_cpu" != ia64; then
  8381. ld_shlibs=no
  8382. cat <<_LT_EOF 1>&2
  8383. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8384. *** to be unable to reliably create shared libraries on AIX.
  8385. *** Therefore, libtool is disabling shared libraries support. If you
  8386. *** really care for shared libraries, you may want to install binutils
  8387. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8388. *** You will then need to restart the configuration process.
  8389. _LT_EOF
  8390. fi
  8391. ;;
  8392. amigaos*)
  8393. case $host_cpu in
  8394. powerpc)
  8395. # see comment about AmigaOS4 .so support
  8396. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8397. archive_expsym_cmds=''
  8398. ;;
  8399. m68k)
  8400. 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)'
  8401. hardcode_libdir_flag_spec='-L$libdir'
  8402. hardcode_minus_L=yes
  8403. ;;
  8404. esac
  8405. ;;
  8406. beos*)
  8407. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8408. allow_undefined_flag=unsupported
  8409. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8410. # support --undefined. This deserves some investigation. FIXME
  8411. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8412. else
  8413. ld_shlibs=no
  8414. fi
  8415. ;;
  8416. cygwin* | mingw* | pw32* | cegcc*)
  8417. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8418. # as there is no search path for DLLs.
  8419. hardcode_libdir_flag_spec='-L$libdir'
  8420. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8421. allow_undefined_flag=unsupported
  8422. always_export_symbols=no
  8423. enable_shared_with_static_runtimes=yes
  8424. 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'
  8425. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8426. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8427. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8428. # If the export-symbols file already is a .def file (1st line
  8429. # is EXPORTS), use it as is; otherwise, prepend...
  8430. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8431. cp $export_symbols $output_objdir/$soname.def;
  8432. else
  8433. echo EXPORTS > $output_objdir/$soname.def;
  8434. cat $export_symbols >> $output_objdir/$soname.def;
  8435. fi~
  8436. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8437. else
  8438. ld_shlibs=no
  8439. fi
  8440. ;;
  8441. haiku*)
  8442. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8443. link_all_deplibs=yes
  8444. ;;
  8445. interix[3-9]*)
  8446. hardcode_direct=no
  8447. hardcode_shlibpath_var=no
  8448. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8449. export_dynamic_flag_spec='${wl}-E'
  8450. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8451. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8452. # default) and relocated if they conflict, which is a slow very memory
  8453. # consuming and fragmenting process. To avoid this, we pick a random,
  8454. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8455. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8456. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8457. 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'
  8458. ;;
  8459. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8460. tmp_diet=no
  8461. if test "$host_os" = linux-dietlibc; then
  8462. case $cc_basename in
  8463. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8464. esac
  8465. fi
  8466. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8467. && test "$tmp_diet" = no
  8468. then
  8469. tmp_addflag=' $pic_flag'
  8470. tmp_sharedflag='-shared'
  8471. case $cc_basename,$host_cpu in
  8472. pgcc*) # Portland Group C compiler
  8473. 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'
  8474. tmp_addflag=' $pic_flag'
  8475. ;;
  8476. pgf77* | pgf90* | pgf95* | pgfortran*)
  8477. # Portland Group f77 and f90 compilers
  8478. 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'
  8479. tmp_addflag=' $pic_flag -Mnomain' ;;
  8480. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8481. tmp_addflag=' -i_dynamic' ;;
  8482. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8483. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8484. ifc* | ifort*) # Intel Fortran compiler
  8485. tmp_addflag=' -nofor_main' ;;
  8486. lf95*) # Lahey Fortran 8.1
  8487. whole_archive_flag_spec=
  8488. tmp_sharedflag='--shared' ;;
  8489. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8490. tmp_sharedflag='-qmkshrobj'
  8491. tmp_addflag= ;;
  8492. nvcc*) # Cuda Compiler Driver 2.2
  8493. 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'
  8494. compiler_needs_object=yes
  8495. ;;
  8496. esac
  8497. case `$CC -V 2>&1 | sed 5q` in
  8498. *Sun\ C*) # Sun C 5.9
  8499. 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'
  8500. compiler_needs_object=yes
  8501. tmp_sharedflag='-G' ;;
  8502. *Sun\ F*) # Sun Fortran 8.3
  8503. tmp_sharedflag='-G' ;;
  8504. esac
  8505. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8506. if test "x$supports_anon_versioning" = xyes; then
  8507. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8508. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8509. echo "local: *; };" >> $output_objdir/$libname.ver~
  8510. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8511. fi
  8512. case $cc_basename in
  8513. xlf* | bgf* | bgxlf* | mpixlf*)
  8514. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8515. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8516. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8517. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8518. if test "x$supports_anon_versioning" = xyes; then
  8519. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8520. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8521. echo "local: *; };" >> $output_objdir/$libname.ver~
  8522. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8523. fi
  8524. ;;
  8525. esac
  8526. else
  8527. ld_shlibs=no
  8528. fi
  8529. ;;
  8530. netbsd* | netbsdelf*-gnu)
  8531. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8532. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8533. wlarc=
  8534. else
  8535. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8536. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8537. fi
  8538. ;;
  8539. solaris*)
  8540. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8541. ld_shlibs=no
  8542. cat <<_LT_EOF 1>&2
  8543. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8544. *** create shared libraries on Solaris systems. Therefore, libtool
  8545. *** is disabling shared libraries support. We urge you to upgrade GNU
  8546. *** binutils to release 2.9.1 or newer. Another option is to modify
  8547. *** your PATH or compiler configuration so that the native linker is
  8548. *** used, and then restart.
  8549. _LT_EOF
  8550. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8551. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8552. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8553. else
  8554. ld_shlibs=no
  8555. fi
  8556. ;;
  8557. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8558. case `$LD -v 2>&1` in
  8559. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8560. ld_shlibs=no
  8561. cat <<_LT_EOF 1>&2
  8562. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8563. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8564. *** is disabling shared libraries support. We urge you to upgrade GNU
  8565. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8566. *** your PATH or compiler configuration so that the native linker is
  8567. *** used, and then restart.
  8568. _LT_EOF
  8569. ;;
  8570. *)
  8571. # For security reasons, it is highly recommended that you always
  8572. # use absolute paths for naming shared libraries, and exclude the
  8573. # DT_RUNPATH tag from executables and libraries. But doing so
  8574. # requires that you compile everything twice, which is a pain.
  8575. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8576. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8577. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8578. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8579. else
  8580. ld_shlibs=no
  8581. fi
  8582. ;;
  8583. esac
  8584. ;;
  8585. sunos4*)
  8586. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8587. wlarc=
  8588. hardcode_direct=yes
  8589. hardcode_shlibpath_var=no
  8590. ;;
  8591. *)
  8592. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8593. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8594. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8595. else
  8596. ld_shlibs=no
  8597. fi
  8598. ;;
  8599. esac
  8600. if test "$ld_shlibs" = no; then
  8601. runpath_var=
  8602. hardcode_libdir_flag_spec=
  8603. export_dynamic_flag_spec=
  8604. whole_archive_flag_spec=
  8605. fi
  8606. else
  8607. # PORTME fill in a description of your system's linker (not GNU ld)
  8608. case $host_os in
  8609. aix3*)
  8610. allow_undefined_flag=unsupported
  8611. always_export_symbols=yes
  8612. 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'
  8613. # Note: this linker hardcodes the directories in LIBPATH if there
  8614. # are no directories specified by -L.
  8615. hardcode_minus_L=yes
  8616. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8617. # Neither direct hardcoding nor static linking is supported with a
  8618. # broken collect2.
  8619. hardcode_direct=unsupported
  8620. fi
  8621. ;;
  8622. aix[4-9]*)
  8623. if test "$host_cpu" = ia64; then
  8624. # On IA64, the linker does run time linking by default, so we don't
  8625. # have to do anything special.
  8626. aix_use_runtimelinking=no
  8627. exp_sym_flag='-Bexport'
  8628. no_entry_flag=""
  8629. else
  8630. # If we're using GNU nm, then we don't want the "-C" option.
  8631. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8632. # Also, AIX nm treats weak defined symbols like other global
  8633. # defined symbols, whereas GNU nm marks them as "W".
  8634. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8635. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8636. else
  8637. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8638. fi
  8639. aix_use_runtimelinking=no
  8640. # Test if we are trying to use run time linking or normal
  8641. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8642. # need to do runtime linking.
  8643. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8644. for ld_flag in $LDFLAGS; do
  8645. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8646. aix_use_runtimelinking=yes
  8647. break
  8648. fi
  8649. done
  8650. ;;
  8651. esac
  8652. exp_sym_flag='-bexport'
  8653. no_entry_flag='-bnoentry'
  8654. fi
  8655. # When large executables or shared objects are built, AIX ld can
  8656. # have problems creating the table of contents. If linking a library
  8657. # or program results in "error TOC overflow" add -mminimal-toc to
  8658. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8659. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8660. archive_cmds=''
  8661. hardcode_direct=yes
  8662. hardcode_direct_absolute=yes
  8663. hardcode_libdir_separator=':'
  8664. link_all_deplibs=yes
  8665. file_list_spec='${wl}-f,'
  8666. if test "$GCC" = yes; then
  8667. case $host_os in aix4.[012]|aix4.[012].*)
  8668. # We only want to do this on AIX 4.2 and lower, the check
  8669. # below for broken collect2 doesn't work under 4.3+
  8670. collect2name=`${CC} -print-prog-name=collect2`
  8671. if test -f "$collect2name" &&
  8672. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8673. then
  8674. # We have reworked collect2
  8675. :
  8676. else
  8677. # We have old collect2
  8678. hardcode_direct=unsupported
  8679. # It fails to find uninstalled libraries when the uninstalled
  8680. # path is not listed in the libpath. Setting hardcode_minus_L
  8681. # to unsupported forces relinking
  8682. hardcode_minus_L=yes
  8683. hardcode_libdir_flag_spec='-L$libdir'
  8684. hardcode_libdir_separator=
  8685. fi
  8686. ;;
  8687. esac
  8688. shared_flag='-shared'
  8689. if test "$aix_use_runtimelinking" = yes; then
  8690. shared_flag="$shared_flag "'${wl}-G'
  8691. fi
  8692. link_all_deplibs=no
  8693. else
  8694. # not using gcc
  8695. if test "$host_cpu" = ia64; then
  8696. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8697. # chokes on -Wl,-G. The following line is correct:
  8698. shared_flag='-G'
  8699. else
  8700. if test "$aix_use_runtimelinking" = yes; then
  8701. shared_flag='${wl}-G'
  8702. else
  8703. shared_flag='${wl}-bM:SRE'
  8704. fi
  8705. fi
  8706. fi
  8707. export_dynamic_flag_spec='${wl}-bexpall'
  8708. # It seems that -bexpall does not export symbols beginning with
  8709. # underscore (_), so it is better to generate a list of symbols to export.
  8710. always_export_symbols=yes
  8711. if test "$aix_use_runtimelinking" = yes; then
  8712. # Warning - without using the other runtime loading flags (-brtl),
  8713. # -berok will link without error, but may produce a broken library.
  8714. allow_undefined_flag='-berok'
  8715. # Determine the default libpath from the value encoded in an
  8716. # empty executable.
  8717. if test "${lt_cv_aix_libpath+set}" = set; then
  8718. aix_libpath=$lt_cv_aix_libpath
  8719. else
  8720. if ${lt_cv_aix_libpath_+:} false; then :
  8721. $as_echo_n "(cached) " >&6
  8722. else
  8723. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8724. /* end confdefs.h. */
  8725. int
  8726. main ()
  8727. {
  8728. ;
  8729. return 0;
  8730. }
  8731. _ACEOF
  8732. if ac_fn_c_try_link "$LINENO"; then :
  8733. lt_aix_libpath_sed='
  8734. /Import File Strings/,/^$/ {
  8735. /^0/ {
  8736. s/^0 *\([^ ]*\) *$/\1/
  8737. p
  8738. }
  8739. }'
  8740. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8741. # Check for a 64-bit object if we didn't find anything.
  8742. if test -z "$lt_cv_aix_libpath_"; then
  8743. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8744. fi
  8745. fi
  8746. rm -f core conftest.err conftest.$ac_objext \
  8747. conftest$ac_exeext conftest.$ac_ext
  8748. if test -z "$lt_cv_aix_libpath_"; then
  8749. lt_cv_aix_libpath_="/usr/lib:/lib"
  8750. fi
  8751. fi
  8752. aix_libpath=$lt_cv_aix_libpath_
  8753. fi
  8754. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8755. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8756. else
  8757. if test "$host_cpu" = ia64; then
  8758. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8759. allow_undefined_flag="-z nodefs"
  8760. 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"
  8761. else
  8762. # Determine the default libpath from the value encoded in an
  8763. # empty executable.
  8764. if test "${lt_cv_aix_libpath+set}" = set; then
  8765. aix_libpath=$lt_cv_aix_libpath
  8766. else
  8767. if ${lt_cv_aix_libpath_+:} false; then :
  8768. $as_echo_n "(cached) " >&6
  8769. else
  8770. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8771. /* end confdefs.h. */
  8772. int
  8773. main ()
  8774. {
  8775. ;
  8776. return 0;
  8777. }
  8778. _ACEOF
  8779. if ac_fn_c_try_link "$LINENO"; then :
  8780. lt_aix_libpath_sed='
  8781. /Import File Strings/,/^$/ {
  8782. /^0/ {
  8783. s/^0 *\([^ ]*\) *$/\1/
  8784. p
  8785. }
  8786. }'
  8787. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8788. # Check for a 64-bit object if we didn't find anything.
  8789. if test -z "$lt_cv_aix_libpath_"; then
  8790. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8791. fi
  8792. fi
  8793. rm -f core conftest.err conftest.$ac_objext \
  8794. conftest$ac_exeext conftest.$ac_ext
  8795. if test -z "$lt_cv_aix_libpath_"; then
  8796. lt_cv_aix_libpath_="/usr/lib:/lib"
  8797. fi
  8798. fi
  8799. aix_libpath=$lt_cv_aix_libpath_
  8800. fi
  8801. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8802. # Warning - without using the other run time loading flags,
  8803. # -berok will link without error, but may produce a broken library.
  8804. no_undefined_flag=' ${wl}-bernotok'
  8805. allow_undefined_flag=' ${wl}-berok'
  8806. if test "$with_gnu_ld" = yes; then
  8807. # We only use this code for GNU lds that support --whole-archive.
  8808. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8809. else
  8810. # Exported symbols can be pulled into shared objects from archives
  8811. whole_archive_flag_spec='$convenience'
  8812. fi
  8813. archive_cmds_need_lc=yes
  8814. # This is similar to how AIX traditionally builds its shared libraries.
  8815. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8816. fi
  8817. fi
  8818. ;;
  8819. amigaos*)
  8820. case $host_cpu in
  8821. powerpc)
  8822. # see comment about AmigaOS4 .so support
  8823. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8824. archive_expsym_cmds=''
  8825. ;;
  8826. m68k)
  8827. 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)'
  8828. hardcode_libdir_flag_spec='-L$libdir'
  8829. hardcode_minus_L=yes
  8830. ;;
  8831. esac
  8832. ;;
  8833. bsdi[45]*)
  8834. export_dynamic_flag_spec=-rdynamic
  8835. ;;
  8836. cygwin* | mingw* | pw32* | cegcc*)
  8837. # When not using gcc, we currently assume that we are using
  8838. # Microsoft Visual C++.
  8839. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8840. # no search path for DLLs.
  8841. case $cc_basename in
  8842. cl*)
  8843. # Native MSVC
  8844. hardcode_libdir_flag_spec=' '
  8845. allow_undefined_flag=unsupported
  8846. always_export_symbols=yes
  8847. file_list_spec='@'
  8848. # Tell ltmain to make .lib files, not .a files.
  8849. libext=lib
  8850. # Tell ltmain to make .dll files, not .so files.
  8851. shrext_cmds=".dll"
  8852. # FIXME: Setting linknames here is a bad hack.
  8853. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8854. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8855. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8856. else
  8857. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8858. fi~
  8859. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8860. linknames='
  8861. # The linker will not automatically build a static lib if we build a DLL.
  8862. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8863. enable_shared_with_static_runtimes=yes
  8864. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8865. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8866. # Don't use ranlib
  8867. old_postinstall_cmds='chmod 644 $oldlib'
  8868. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8869. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8870. case $lt_outputfile in
  8871. *.exe|*.EXE) ;;
  8872. *)
  8873. lt_outputfile="$lt_outputfile.exe"
  8874. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8875. ;;
  8876. esac~
  8877. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8878. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8879. $RM "$lt_outputfile.manifest";
  8880. fi'
  8881. ;;
  8882. *)
  8883. # Assume MSVC wrapper
  8884. hardcode_libdir_flag_spec=' '
  8885. allow_undefined_flag=unsupported
  8886. # Tell ltmain to make .lib files, not .a files.
  8887. libext=lib
  8888. # Tell ltmain to make .dll files, not .so files.
  8889. shrext_cmds=".dll"
  8890. # FIXME: Setting linknames here is a bad hack.
  8891. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8892. # The linker will automatically build a .lib file if we build a DLL.
  8893. old_archive_from_new_cmds='true'
  8894. # FIXME: Should let the user specify the lib program.
  8895. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8896. enable_shared_with_static_runtimes=yes
  8897. ;;
  8898. esac
  8899. ;;
  8900. darwin* | rhapsody*)
  8901. archive_cmds_need_lc=no
  8902. hardcode_direct=no
  8903. hardcode_automatic=yes
  8904. hardcode_shlibpath_var=unsupported
  8905. if test "$lt_cv_ld_force_load" = "yes"; then
  8906. 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\"`'
  8907. else
  8908. whole_archive_flag_spec=''
  8909. fi
  8910. link_all_deplibs=yes
  8911. allow_undefined_flag="$_lt_dar_allow_undefined"
  8912. case $cc_basename in
  8913. ifort*) _lt_dar_can_shared=yes ;;
  8914. *) _lt_dar_can_shared=$GCC ;;
  8915. esac
  8916. if test "$_lt_dar_can_shared" = "yes"; then
  8917. output_verbose_link_cmd=func_echo_all
  8918. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8919. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8920. 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}"
  8921. 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}"
  8922. else
  8923. ld_shlibs=no
  8924. fi
  8925. ;;
  8926. dgux*)
  8927. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8928. hardcode_libdir_flag_spec='-L$libdir'
  8929. hardcode_shlibpath_var=no
  8930. ;;
  8931. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8932. # support. Future versions do this automatically, but an explicit c++rt0.o
  8933. # does not break anything, and helps significantly (at the cost of a little
  8934. # extra space).
  8935. freebsd2.2*)
  8936. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8937. hardcode_libdir_flag_spec='-R$libdir'
  8938. hardcode_direct=yes
  8939. hardcode_shlibpath_var=no
  8940. ;;
  8941. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8942. freebsd2.*)
  8943. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8944. hardcode_direct=yes
  8945. hardcode_minus_L=yes
  8946. hardcode_shlibpath_var=no
  8947. ;;
  8948. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8949. freebsd* | dragonfly*)
  8950. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8951. hardcode_libdir_flag_spec='-R$libdir'
  8952. hardcode_direct=yes
  8953. hardcode_shlibpath_var=no
  8954. ;;
  8955. hpux9*)
  8956. if test "$GCC" = yes; then
  8957. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8958. else
  8959. archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8960. fi
  8961. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8962. hardcode_libdir_separator=:
  8963. hardcode_direct=yes
  8964. # hardcode_minus_L: Not really in the search PATH,
  8965. # but as the default location of the library.
  8966. hardcode_minus_L=yes
  8967. export_dynamic_flag_spec='${wl}-E'
  8968. ;;
  8969. hpux10*)
  8970. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8971. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8972. else
  8973. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8974. fi
  8975. if test "$with_gnu_ld" = no; then
  8976. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8977. hardcode_libdir_separator=:
  8978. hardcode_direct=yes
  8979. hardcode_direct_absolute=yes
  8980. export_dynamic_flag_spec='${wl}-E'
  8981. # hardcode_minus_L: Not really in the search PATH,
  8982. # but as the default location of the library.
  8983. hardcode_minus_L=yes
  8984. fi
  8985. ;;
  8986. hpux11*)
  8987. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8988. case $host_cpu in
  8989. hppa*64*)
  8990. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8991. ;;
  8992. ia64*)
  8993. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8994. ;;
  8995. *)
  8996. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8997. ;;
  8998. esac
  8999. else
  9000. case $host_cpu in
  9001. hppa*64*)
  9002. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9003. ;;
  9004. ia64*)
  9005. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9006. ;;
  9007. *)
  9008. # Older versions of the 11.00 compiler do not understand -b yet
  9009. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9011. $as_echo_n "checking if $CC understands -b... " >&6; }
  9012. if ${lt_cv_prog_compiler__b+:} false; then :
  9013. $as_echo_n "(cached) " >&6
  9014. else
  9015. lt_cv_prog_compiler__b=no
  9016. save_LDFLAGS="$LDFLAGS"
  9017. LDFLAGS="$LDFLAGS -b"
  9018. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9019. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9020. # The linker can only warn and ignore the option if not recognized
  9021. # So say no if there are warnings
  9022. if test -s conftest.err; then
  9023. # Append any errors to the config.log.
  9024. cat conftest.err 1>&5
  9025. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9026. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9027. if diff conftest.exp conftest.er2 >/dev/null; then
  9028. lt_cv_prog_compiler__b=yes
  9029. fi
  9030. else
  9031. lt_cv_prog_compiler__b=yes
  9032. fi
  9033. fi
  9034. $RM -r conftest*
  9035. LDFLAGS="$save_LDFLAGS"
  9036. fi
  9037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9038. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9039. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9040. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9041. else
  9042. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9043. fi
  9044. ;;
  9045. esac
  9046. fi
  9047. if test "$with_gnu_ld" = no; then
  9048. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9049. hardcode_libdir_separator=:
  9050. case $host_cpu in
  9051. hppa*64*|ia64*)
  9052. hardcode_direct=no
  9053. hardcode_shlibpath_var=no
  9054. ;;
  9055. *)
  9056. hardcode_direct=yes
  9057. hardcode_direct_absolute=yes
  9058. export_dynamic_flag_spec='${wl}-E'
  9059. # hardcode_minus_L: Not really in the search PATH,
  9060. # but as the default location of the library.
  9061. hardcode_minus_L=yes
  9062. ;;
  9063. esac
  9064. fi
  9065. ;;
  9066. irix5* | irix6* | nonstopux*)
  9067. if test "$GCC" = yes; then
  9068. 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'
  9069. # Try to use the -exported_symbol ld option, if it does not
  9070. # work, assume that -exports_file does not work either and
  9071. # implicitly export all symbols.
  9072. # This should be the same for all languages, so no per-tag cache variable.
  9073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9074. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9075. if ${lt_cv_irix_exported_symbol+:} false; then :
  9076. $as_echo_n "(cached) " >&6
  9077. else
  9078. save_LDFLAGS="$LDFLAGS"
  9079. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9080. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9081. /* end confdefs.h. */
  9082. int foo (void) { return 0; }
  9083. _ACEOF
  9084. if ac_fn_c_try_link "$LINENO"; then :
  9085. lt_cv_irix_exported_symbol=yes
  9086. else
  9087. lt_cv_irix_exported_symbol=no
  9088. fi
  9089. rm -f core conftest.err conftest.$ac_objext \
  9090. conftest$ac_exeext conftest.$ac_ext
  9091. LDFLAGS="$save_LDFLAGS"
  9092. fi
  9093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9094. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9095. if test "$lt_cv_irix_exported_symbol" = yes; then
  9096. 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'
  9097. fi
  9098. else
  9099. 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'
  9100. 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'
  9101. fi
  9102. archive_cmds_need_lc='no'
  9103. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9104. hardcode_libdir_separator=:
  9105. inherit_rpath=yes
  9106. link_all_deplibs=yes
  9107. ;;
  9108. netbsd* | netbsdelf*-gnu)
  9109. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9110. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9111. else
  9112. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9113. fi
  9114. hardcode_libdir_flag_spec='-R$libdir'
  9115. hardcode_direct=yes
  9116. hardcode_shlibpath_var=no
  9117. ;;
  9118. newsos6)
  9119. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9120. hardcode_direct=yes
  9121. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9122. hardcode_libdir_separator=:
  9123. hardcode_shlibpath_var=no
  9124. ;;
  9125. *nto* | *qnx*)
  9126. ;;
  9127. openbsd*)
  9128. if test -f /usr/libexec/ld.so; then
  9129. hardcode_direct=yes
  9130. hardcode_shlibpath_var=no
  9131. hardcode_direct_absolute=yes
  9132. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9133. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9134. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9135. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9136. export_dynamic_flag_spec='${wl}-E'
  9137. else
  9138. case $host_os in
  9139. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9140. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9141. hardcode_libdir_flag_spec='-R$libdir'
  9142. ;;
  9143. *)
  9144. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9145. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9146. ;;
  9147. esac
  9148. fi
  9149. else
  9150. ld_shlibs=no
  9151. fi
  9152. ;;
  9153. os2*)
  9154. hardcode_libdir_flag_spec='-L$libdir'
  9155. hardcode_minus_L=yes
  9156. allow_undefined_flag=unsupported
  9157. archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  9158. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9159. ;;
  9160. osf3*)
  9161. if test "$GCC" = yes; then
  9162. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9163. 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'
  9164. else
  9165. allow_undefined_flag=' -expect_unresolved \*'
  9166. 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'
  9167. fi
  9168. archive_cmds_need_lc='no'
  9169. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9170. hardcode_libdir_separator=:
  9171. ;;
  9172. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9173. if test "$GCC" = yes; then
  9174. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9175. 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'
  9176. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9177. else
  9178. allow_undefined_flag=' -expect_unresolved \*'
  9179. 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'
  9180. 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~
  9181. $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'
  9182. # Both c and cxx compiler support -rpath directly
  9183. hardcode_libdir_flag_spec='-rpath $libdir'
  9184. fi
  9185. archive_cmds_need_lc='no'
  9186. hardcode_libdir_separator=:
  9187. ;;
  9188. solaris*)
  9189. no_undefined_flag=' -z defs'
  9190. if test "$GCC" = yes; then
  9191. wlarc='${wl}'
  9192. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9193. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9194. $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'
  9195. else
  9196. case `$CC -V 2>&1` in
  9197. *"Compilers 5.0"*)
  9198. wlarc=''
  9199. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9200. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9201. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9202. ;;
  9203. *)
  9204. wlarc='${wl}'
  9205. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9206. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9207. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9208. ;;
  9209. esac
  9210. fi
  9211. hardcode_libdir_flag_spec='-R$libdir'
  9212. hardcode_shlibpath_var=no
  9213. case $host_os in
  9214. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9215. *)
  9216. # The compiler driver will combine and reorder linker options,
  9217. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9218. # but is careful enough not to reorder.
  9219. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9220. if test "$GCC" = yes; then
  9221. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9222. else
  9223. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9224. fi
  9225. ;;
  9226. esac
  9227. link_all_deplibs=yes
  9228. ;;
  9229. sunos4*)
  9230. if test "x$host_vendor" = xsequent; then
  9231. # Use $CC to link under sequent, because it throws in some extra .o
  9232. # files that make .init and .fini sections work.
  9233. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9234. else
  9235. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9236. fi
  9237. hardcode_libdir_flag_spec='-L$libdir'
  9238. hardcode_direct=yes
  9239. hardcode_minus_L=yes
  9240. hardcode_shlibpath_var=no
  9241. ;;
  9242. sysv4)
  9243. case $host_vendor in
  9244. sni)
  9245. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9246. hardcode_direct=yes # is this really true???
  9247. ;;
  9248. siemens)
  9249. ## LD is ld it makes a PLAMLIB
  9250. ## CC just makes a GrossModule.
  9251. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9252. reload_cmds='$CC -r -o $output$reload_objs'
  9253. hardcode_direct=no
  9254. ;;
  9255. motorola)
  9256. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9257. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9258. ;;
  9259. esac
  9260. runpath_var='LD_RUN_PATH'
  9261. hardcode_shlibpath_var=no
  9262. ;;
  9263. sysv4.3*)
  9264. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9265. hardcode_shlibpath_var=no
  9266. export_dynamic_flag_spec='-Bexport'
  9267. ;;
  9268. sysv4*MP*)
  9269. if test -d /usr/nec; then
  9270. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9271. hardcode_shlibpath_var=no
  9272. runpath_var=LD_RUN_PATH
  9273. hardcode_runpath_var=yes
  9274. ld_shlibs=yes
  9275. fi
  9276. ;;
  9277. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9278. no_undefined_flag='${wl}-z,text'
  9279. archive_cmds_need_lc=no
  9280. hardcode_shlibpath_var=no
  9281. runpath_var='LD_RUN_PATH'
  9282. if test "$GCC" = yes; then
  9283. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9284. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9285. else
  9286. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9287. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9288. fi
  9289. ;;
  9290. sysv5* | sco3.2v5* | sco5v6*)
  9291. # Note: We can NOT use -z defs as we might desire, because we do not
  9292. # link with -lc, and that would cause any symbols used from libc to
  9293. # always be unresolved, which means just about no library would
  9294. # ever link correctly. If we're not using GNU ld we use -z text
  9295. # though, which does catch some bad symbols but isn't as heavy-handed
  9296. # as -z defs.
  9297. no_undefined_flag='${wl}-z,text'
  9298. allow_undefined_flag='${wl}-z,nodefs'
  9299. archive_cmds_need_lc=no
  9300. hardcode_shlibpath_var=no
  9301. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9302. hardcode_libdir_separator=':'
  9303. link_all_deplibs=yes
  9304. export_dynamic_flag_spec='${wl}-Bexport'
  9305. runpath_var='LD_RUN_PATH'
  9306. if test "$GCC" = yes; then
  9307. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9308. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9309. else
  9310. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9311. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9312. fi
  9313. ;;
  9314. uts4*)
  9315. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9316. hardcode_libdir_flag_spec='-L$libdir'
  9317. hardcode_shlibpath_var=no
  9318. ;;
  9319. *)
  9320. ld_shlibs=no
  9321. ;;
  9322. esac
  9323. if test x$host_vendor = xsni; then
  9324. case $host in
  9325. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9326. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9327. ;;
  9328. esac
  9329. fi
  9330. fi
  9331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9332. $as_echo "$ld_shlibs" >&6; }
  9333. test "$ld_shlibs" = no && can_build_shared=no
  9334. with_gnu_ld=$with_gnu_ld
  9335. #
  9336. # Do we need to explicitly link libc?
  9337. #
  9338. case "x$archive_cmds_need_lc" in
  9339. x|xyes)
  9340. # Assume -lc should be added
  9341. archive_cmds_need_lc=yes
  9342. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9343. case $archive_cmds in
  9344. *'~'*)
  9345. # FIXME: we may have to deal with multi-command sequences.
  9346. ;;
  9347. '$CC '*)
  9348. # Test whether the compiler implicitly links with -lc since on some
  9349. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9350. # to ld, don't add -lc before -lgcc.
  9351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9352. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9353. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9354. $as_echo_n "(cached) " >&6
  9355. else
  9356. $RM conftest*
  9357. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9358. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9359. (eval $ac_compile) 2>&5
  9360. ac_status=$?
  9361. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9362. test $ac_status = 0; } 2>conftest.err; then
  9363. soname=conftest
  9364. lib=conftest
  9365. libobjs=conftest.$ac_objext
  9366. deplibs=
  9367. wl=$lt_prog_compiler_wl
  9368. pic_flag=$lt_prog_compiler_pic
  9369. compiler_flags=-v
  9370. linker_flags=-v
  9371. verstring=
  9372. output_objdir=.
  9373. libname=conftest
  9374. lt_save_allow_undefined_flag=$allow_undefined_flag
  9375. allow_undefined_flag=
  9376. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9377. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9378. ac_status=$?
  9379. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9380. test $ac_status = 0; }
  9381. then
  9382. lt_cv_archive_cmds_need_lc=no
  9383. else
  9384. lt_cv_archive_cmds_need_lc=yes
  9385. fi
  9386. allow_undefined_flag=$lt_save_allow_undefined_flag
  9387. else
  9388. cat conftest.err 1>&5
  9389. fi
  9390. $RM conftest*
  9391. fi
  9392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9393. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9394. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9395. ;;
  9396. esac
  9397. fi
  9398. ;;
  9399. esac
  9400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9401. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9402. if test "$GCC" = yes; then
  9403. case $host_os in
  9404. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9405. *) lt_awk_arg="/^libraries:/" ;;
  9406. esac
  9407. case $host_os in
  9408. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9409. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9410. esac
  9411. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9412. case $lt_search_path_spec in
  9413. *\;*)
  9414. # if the path contains ";" then we assume it to be the separator
  9415. # otherwise default to the standard path separator (i.e. ":") - it is
  9416. # assumed that no part of a normal pathname contains ";" but that should
  9417. # okay in the real world where ";" in dirpaths is itself problematic.
  9418. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9419. ;;
  9420. *)
  9421. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9422. ;;
  9423. esac
  9424. # Ok, now we have the path, separated by spaces, we can step through it
  9425. # and add multilib dir if necessary.
  9426. lt_tmp_lt_search_path_spec=
  9427. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9428. for lt_sys_path in $lt_search_path_spec; do
  9429. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9430. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9431. else
  9432. test -d "$lt_sys_path" && \
  9433. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9434. fi
  9435. done
  9436. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9437. BEGIN {RS=" "; FS="/|\n";} {
  9438. lt_foo="";
  9439. lt_count=0;
  9440. for (lt_i = NF; lt_i > 0; lt_i--) {
  9441. if ($lt_i != "" && $lt_i != ".") {
  9442. if ($lt_i == "..") {
  9443. lt_count++;
  9444. } else {
  9445. if (lt_count == 0) {
  9446. lt_foo="/" $lt_i lt_foo;
  9447. } else {
  9448. lt_count--;
  9449. }
  9450. }
  9451. }
  9452. }
  9453. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9454. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9455. }'`
  9456. # AWK program above erroneously prepends '/' to C:/dos/paths
  9457. # for these hosts.
  9458. case $host_os in
  9459. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9460. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9461. esac
  9462. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9463. else
  9464. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9465. fi
  9466. library_names_spec=
  9467. libname_spec='lib$name'
  9468. soname_spec=
  9469. shrext_cmds=".so"
  9470. postinstall_cmds=
  9471. postuninstall_cmds=
  9472. finish_cmds=
  9473. finish_eval=
  9474. shlibpath_var=
  9475. shlibpath_overrides_runpath=unknown
  9476. version_type=none
  9477. dynamic_linker="$host_os ld.so"
  9478. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9479. need_lib_prefix=unknown
  9480. hardcode_into_libs=no
  9481. # when you set need_version to no, make sure it does not cause -set_version
  9482. # flags to be left without arguments
  9483. need_version=unknown
  9484. case $host_os in
  9485. aix3*)
  9486. version_type=linux # correct to gnu/linux during the next big refactor
  9487. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9488. shlibpath_var=LIBPATH
  9489. # AIX 3 has no versioning support, so we append a major version to the name.
  9490. soname_spec='${libname}${release}${shared_ext}$major'
  9491. ;;
  9492. aix[4-9]*)
  9493. version_type=linux # correct to gnu/linux during the next big refactor
  9494. need_lib_prefix=no
  9495. need_version=no
  9496. hardcode_into_libs=yes
  9497. if test "$host_cpu" = ia64; then
  9498. # AIX 5 supports IA64
  9499. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9500. shlibpath_var=LD_LIBRARY_PATH
  9501. else
  9502. # With GCC up to 2.95.x, collect2 would create an import file
  9503. # for dependence libraries. The import file would start with
  9504. # the line `#! .'. This would cause the generated library to
  9505. # depend on `.', always an invalid library. This was fixed in
  9506. # development snapshots of GCC prior to 3.0.
  9507. case $host_os in
  9508. aix4 | aix4.[01] | aix4.[01].*)
  9509. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9510. echo ' yes '
  9511. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9512. :
  9513. else
  9514. can_build_shared=no
  9515. fi
  9516. ;;
  9517. esac
  9518. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9519. # soname into executable. Probably we can add versioning support to
  9520. # collect2, so additional links can be useful in future.
  9521. if test "$aix_use_runtimelinking" = yes; then
  9522. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9523. # instead of lib<name>.a to let people know that these are not
  9524. # typical AIX shared libraries.
  9525. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9526. else
  9527. # We preserve .a as extension for shared libraries through AIX4.2
  9528. # and later when we are not doing run time linking.
  9529. library_names_spec='${libname}${release}.a $libname.a'
  9530. soname_spec='${libname}${release}${shared_ext}$major'
  9531. fi
  9532. shlibpath_var=LIBPATH
  9533. fi
  9534. ;;
  9535. amigaos*)
  9536. case $host_cpu in
  9537. powerpc)
  9538. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9539. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9540. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9541. ;;
  9542. m68k)
  9543. library_names_spec='$libname.ixlibrary $libname.a'
  9544. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9545. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9546. ;;
  9547. esac
  9548. ;;
  9549. beos*)
  9550. library_names_spec='${libname}${shared_ext}'
  9551. dynamic_linker="$host_os ld.so"
  9552. shlibpath_var=LIBRARY_PATH
  9553. ;;
  9554. bsdi[45]*)
  9555. version_type=linux # correct to gnu/linux during the next big refactor
  9556. need_version=no
  9557. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9558. soname_spec='${libname}${release}${shared_ext}$major'
  9559. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9560. shlibpath_var=LD_LIBRARY_PATH
  9561. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9562. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9563. # the default ld.so.conf also contains /usr/contrib/lib and
  9564. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9565. # libtool to hard-code these into programs
  9566. ;;
  9567. cygwin* | mingw* | pw32* | cegcc*)
  9568. version_type=windows
  9569. shrext_cmds=".dll"
  9570. need_version=no
  9571. need_lib_prefix=no
  9572. case $GCC,$cc_basename in
  9573. yes,*)
  9574. # gcc
  9575. library_names_spec='$libname.dll.a'
  9576. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9577. postinstall_cmds='base_file=`basename \${file}`~
  9578. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9579. dldir=$destdir/`dirname \$dlpath`~
  9580. test -d \$dldir || mkdir -p \$dldir~
  9581. $install_prog $dir/$dlname \$dldir/$dlname~
  9582. chmod a+x \$dldir/$dlname~
  9583. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9584. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9585. fi'
  9586. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9587. dlpath=$dir/\$dldll~
  9588. $RM \$dlpath'
  9589. shlibpath_overrides_runpath=yes
  9590. case $host_os in
  9591. cygwin*)
  9592. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9593. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9594. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9595. ;;
  9596. mingw* | cegcc*)
  9597. # MinGW DLLs use traditional 'lib' prefix
  9598. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9599. ;;
  9600. pw32*)
  9601. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9602. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9603. ;;
  9604. esac
  9605. dynamic_linker='Win32 ld.exe'
  9606. ;;
  9607. *,cl*)
  9608. # Native MSVC
  9609. libname_spec='$name'
  9610. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9611. library_names_spec='${libname}.dll.lib'
  9612. case $build_os in
  9613. mingw*)
  9614. sys_lib_search_path_spec=
  9615. lt_save_ifs=$IFS
  9616. IFS=';'
  9617. for lt_path in $LIB
  9618. do
  9619. IFS=$lt_save_ifs
  9620. # Let DOS variable expansion print the short 8.3 style file name.
  9621. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9622. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9623. done
  9624. IFS=$lt_save_ifs
  9625. # Convert to MSYS style.
  9626. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9627. ;;
  9628. cygwin*)
  9629. # Convert to unix form, then to dos form, then back to unix form
  9630. # but this time dos style (no spaces!) so that the unix form looks
  9631. # like /cygdrive/c/PROGRA~1:/cygdr...
  9632. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9633. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9634. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9635. ;;
  9636. *)
  9637. sys_lib_search_path_spec="$LIB"
  9638. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9639. # It is most probably a Windows format PATH.
  9640. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9641. else
  9642. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9643. fi
  9644. # FIXME: find the short name or the path components, as spaces are
  9645. # common. (e.g. "Program Files" -> "PROGRA~1")
  9646. ;;
  9647. esac
  9648. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9649. postinstall_cmds='base_file=`basename \${file}`~
  9650. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9651. dldir=$destdir/`dirname \$dlpath`~
  9652. test -d \$dldir || mkdir -p \$dldir~
  9653. $install_prog $dir/$dlname \$dldir/$dlname'
  9654. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9655. dlpath=$dir/\$dldll~
  9656. $RM \$dlpath'
  9657. shlibpath_overrides_runpath=yes
  9658. dynamic_linker='Win32 link.exe'
  9659. ;;
  9660. *)
  9661. # Assume MSVC wrapper
  9662. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9663. dynamic_linker='Win32 ld.exe'
  9664. ;;
  9665. esac
  9666. # FIXME: first we should search . and the directory the executable is in
  9667. shlibpath_var=PATH
  9668. ;;
  9669. darwin* | rhapsody*)
  9670. dynamic_linker="$host_os dyld"
  9671. version_type=darwin
  9672. need_lib_prefix=no
  9673. need_version=no
  9674. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9675. soname_spec='${libname}${release}${major}$shared_ext'
  9676. shlibpath_overrides_runpath=yes
  9677. shlibpath_var=DYLD_LIBRARY_PATH
  9678. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9679. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9680. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9681. ;;
  9682. dgux*)
  9683. version_type=linux # correct to gnu/linux during the next big refactor
  9684. need_lib_prefix=no
  9685. need_version=no
  9686. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9687. soname_spec='${libname}${release}${shared_ext}$major'
  9688. shlibpath_var=LD_LIBRARY_PATH
  9689. ;;
  9690. freebsd* | dragonfly*)
  9691. # DragonFly does not have aout. When/if they implement a new
  9692. # versioning mechanism, adjust this.
  9693. if test -x /usr/bin/objformat; then
  9694. objformat=`/usr/bin/objformat`
  9695. else
  9696. case $host_os in
  9697. freebsd[23].*) objformat=aout ;;
  9698. *) objformat=elf ;;
  9699. esac
  9700. fi
  9701. version_type=freebsd-$objformat
  9702. case $version_type in
  9703. freebsd-elf*)
  9704. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9705. need_version=no
  9706. need_lib_prefix=no
  9707. ;;
  9708. freebsd-*)
  9709. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9710. need_version=yes
  9711. ;;
  9712. esac
  9713. shlibpath_var=LD_LIBRARY_PATH
  9714. case $host_os in
  9715. freebsd2.*)
  9716. shlibpath_overrides_runpath=yes
  9717. ;;
  9718. freebsd3.[01]* | freebsdelf3.[01]*)
  9719. shlibpath_overrides_runpath=yes
  9720. hardcode_into_libs=yes
  9721. ;;
  9722. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9723. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9724. shlibpath_overrides_runpath=no
  9725. hardcode_into_libs=yes
  9726. ;;
  9727. *) # from 4.6 on, and DragonFly
  9728. shlibpath_overrides_runpath=yes
  9729. hardcode_into_libs=yes
  9730. ;;
  9731. esac
  9732. ;;
  9733. gnu*)
  9734. version_type=linux # correct to gnu/linux during the next big refactor
  9735. need_lib_prefix=no
  9736. need_version=no
  9737. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9738. soname_spec='${libname}${release}${shared_ext}$major'
  9739. shlibpath_var=LD_LIBRARY_PATH
  9740. shlibpath_overrides_runpath=no
  9741. hardcode_into_libs=yes
  9742. ;;
  9743. haiku*)
  9744. version_type=linux # correct to gnu/linux during the next big refactor
  9745. need_lib_prefix=no
  9746. need_version=no
  9747. dynamic_linker="$host_os runtime_loader"
  9748. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9749. soname_spec='${libname}${release}${shared_ext}$major'
  9750. shlibpath_var=LIBRARY_PATH
  9751. shlibpath_overrides_runpath=yes
  9752. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9753. hardcode_into_libs=yes
  9754. ;;
  9755. hpux9* | hpux10* | hpux11*)
  9756. # Give a soname corresponding to the major version so that dld.sl refuses to
  9757. # link against other versions.
  9758. version_type=sunos
  9759. need_lib_prefix=no
  9760. need_version=no
  9761. case $host_cpu in
  9762. ia64*)
  9763. shrext_cmds='.so'
  9764. hardcode_into_libs=yes
  9765. dynamic_linker="$host_os dld.so"
  9766. shlibpath_var=LD_LIBRARY_PATH
  9767. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9768. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9769. soname_spec='${libname}${release}${shared_ext}$major'
  9770. if test "X$HPUX_IA64_MODE" = X32; then
  9771. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9772. else
  9773. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9774. fi
  9775. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9776. ;;
  9777. hppa*64*)
  9778. shrext_cmds='.sl'
  9779. hardcode_into_libs=yes
  9780. dynamic_linker="$host_os dld.sl"
  9781. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9782. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9783. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9784. soname_spec='${libname}${release}${shared_ext}$major'
  9785. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9786. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9787. ;;
  9788. *)
  9789. shrext_cmds='.sl'
  9790. dynamic_linker="$host_os dld.sl"
  9791. shlibpath_var=SHLIB_PATH
  9792. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9793. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9794. soname_spec='${libname}${release}${shared_ext}$major'
  9795. ;;
  9796. esac
  9797. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9798. postinstall_cmds='chmod 555 $lib'
  9799. # or fails outright, so override atomically:
  9800. install_override_mode=555
  9801. ;;
  9802. interix[3-9]*)
  9803. version_type=linux # correct to gnu/linux during the next big refactor
  9804. need_lib_prefix=no
  9805. need_version=no
  9806. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9807. soname_spec='${libname}${release}${shared_ext}$major'
  9808. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9809. shlibpath_var=LD_LIBRARY_PATH
  9810. shlibpath_overrides_runpath=no
  9811. hardcode_into_libs=yes
  9812. ;;
  9813. irix5* | irix6* | nonstopux*)
  9814. case $host_os in
  9815. nonstopux*) version_type=nonstopux ;;
  9816. *)
  9817. if test "$lt_cv_prog_gnu_ld" = yes; then
  9818. version_type=linux # correct to gnu/linux during the next big refactor
  9819. else
  9820. version_type=irix
  9821. fi ;;
  9822. esac
  9823. need_lib_prefix=no
  9824. need_version=no
  9825. soname_spec='${libname}${release}${shared_ext}$major'
  9826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9827. case $host_os in
  9828. irix5* | nonstopux*)
  9829. libsuff= shlibsuff=
  9830. ;;
  9831. *)
  9832. case $LD in # libtool.m4 will add one of these switches to LD
  9833. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9834. libsuff= shlibsuff= libmagic=32-bit;;
  9835. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9836. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9837. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9838. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9839. *) libsuff= shlibsuff= libmagic=never-match;;
  9840. esac
  9841. ;;
  9842. esac
  9843. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9844. shlibpath_overrides_runpath=no
  9845. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9846. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9847. hardcode_into_libs=yes
  9848. ;;
  9849. # No shared lib support for Linux oldld, aout, or coff.
  9850. linux*oldld* | linux*aout* | linux*coff*)
  9851. dynamic_linker=no
  9852. ;;
  9853. # This must be glibc/ELF.
  9854. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9855. version_type=linux # correct to gnu/linux during the next big refactor
  9856. need_lib_prefix=no
  9857. need_version=no
  9858. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9859. soname_spec='${libname}${release}${shared_ext}$major'
  9860. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9861. shlibpath_var=LD_LIBRARY_PATH
  9862. shlibpath_overrides_runpath=no
  9863. # Some binutils ld are patched to set DT_RUNPATH
  9864. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9865. $as_echo_n "(cached) " >&6
  9866. else
  9867. lt_cv_shlibpath_overrides_runpath=no
  9868. save_LDFLAGS=$LDFLAGS
  9869. save_libdir=$libdir
  9870. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9871. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9872. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9873. /* end confdefs.h. */
  9874. int
  9875. main ()
  9876. {
  9877. ;
  9878. return 0;
  9879. }
  9880. _ACEOF
  9881. if ac_fn_c_try_link "$LINENO"; then :
  9882. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9883. lt_cv_shlibpath_overrides_runpath=yes
  9884. fi
  9885. fi
  9886. rm -f core conftest.err conftest.$ac_objext \
  9887. conftest$ac_exeext conftest.$ac_ext
  9888. LDFLAGS=$save_LDFLAGS
  9889. libdir=$save_libdir
  9890. fi
  9891. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9892. # This implies no fast_install, which is unacceptable.
  9893. # Some rework will be needed to allow for fast_install
  9894. # before this can be enabled.
  9895. hardcode_into_libs=yes
  9896. # Append ld.so.conf contents to the search path
  9897. if test -f /etc/ld.so.conf; then
  9898. 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' ' '`
  9899. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9900. fi
  9901. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9902. # powerpc, because MkLinux only supported shared libraries with the
  9903. # GNU dynamic linker. Since this was broken with cross compilers,
  9904. # most powerpc-linux boxes support dynamic linking these days and
  9905. # people can always --disable-shared, the test was removed, and we
  9906. # assume the GNU/Linux dynamic linker is in use.
  9907. dynamic_linker='GNU/Linux ld.so'
  9908. ;;
  9909. netbsdelf*-gnu)
  9910. version_type=linux
  9911. need_lib_prefix=no
  9912. need_version=no
  9913. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9914. soname_spec='${libname}${release}${shared_ext}$major'
  9915. shlibpath_var=LD_LIBRARY_PATH
  9916. shlibpath_overrides_runpath=no
  9917. hardcode_into_libs=yes
  9918. dynamic_linker='NetBSD ld.elf_so'
  9919. ;;
  9920. netbsd*)
  9921. version_type=sunos
  9922. need_lib_prefix=no
  9923. need_version=no
  9924. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9925. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9926. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9927. dynamic_linker='NetBSD (a.out) ld.so'
  9928. else
  9929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9930. soname_spec='${libname}${release}${shared_ext}$major'
  9931. dynamic_linker='NetBSD ld.elf_so'
  9932. fi
  9933. shlibpath_var=LD_LIBRARY_PATH
  9934. shlibpath_overrides_runpath=yes
  9935. hardcode_into_libs=yes
  9936. ;;
  9937. newsos6)
  9938. version_type=linux # correct to gnu/linux during the next big refactor
  9939. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9940. shlibpath_var=LD_LIBRARY_PATH
  9941. shlibpath_overrides_runpath=yes
  9942. ;;
  9943. *nto* | *qnx*)
  9944. version_type=qnx
  9945. need_lib_prefix=no
  9946. need_version=no
  9947. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9948. soname_spec='${libname}${release}${shared_ext}$major'
  9949. shlibpath_var=LD_LIBRARY_PATH
  9950. shlibpath_overrides_runpath=no
  9951. hardcode_into_libs=yes
  9952. dynamic_linker='ldqnx.so'
  9953. ;;
  9954. openbsd*)
  9955. version_type=sunos
  9956. sys_lib_dlsearch_path_spec="/usr/lib"
  9957. need_lib_prefix=no
  9958. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9959. case $host_os in
  9960. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9961. *) need_version=no ;;
  9962. esac
  9963. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9964. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9965. shlibpath_var=LD_LIBRARY_PATH
  9966. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9967. case $host_os in
  9968. openbsd2.[89] | openbsd2.[89].*)
  9969. shlibpath_overrides_runpath=no
  9970. ;;
  9971. *)
  9972. shlibpath_overrides_runpath=yes
  9973. ;;
  9974. esac
  9975. else
  9976. shlibpath_overrides_runpath=yes
  9977. fi
  9978. ;;
  9979. os2*)
  9980. libname_spec='$name'
  9981. shrext_cmds=".dll"
  9982. need_lib_prefix=no
  9983. library_names_spec='$libname${shared_ext} $libname.a'
  9984. dynamic_linker='OS/2 ld.exe'
  9985. shlibpath_var=LIBPATH
  9986. ;;
  9987. osf3* | osf4* | osf5*)
  9988. version_type=osf
  9989. need_lib_prefix=no
  9990. need_version=no
  9991. soname_spec='${libname}${release}${shared_ext}$major'
  9992. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9993. shlibpath_var=LD_LIBRARY_PATH
  9994. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9995. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9996. ;;
  9997. rdos*)
  9998. dynamic_linker=no
  9999. ;;
  10000. solaris*)
  10001. version_type=linux # correct to gnu/linux during the next big refactor
  10002. need_lib_prefix=no
  10003. need_version=no
  10004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10005. soname_spec='${libname}${release}${shared_ext}$major'
  10006. shlibpath_var=LD_LIBRARY_PATH
  10007. shlibpath_overrides_runpath=yes
  10008. hardcode_into_libs=yes
  10009. # ldd complains unless libraries are executable
  10010. postinstall_cmds='chmod +x $lib'
  10011. ;;
  10012. sunos4*)
  10013. version_type=sunos
  10014. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10015. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10016. shlibpath_var=LD_LIBRARY_PATH
  10017. shlibpath_overrides_runpath=yes
  10018. if test "$with_gnu_ld" = yes; then
  10019. need_lib_prefix=no
  10020. fi
  10021. need_version=yes
  10022. ;;
  10023. sysv4 | sysv4.3*)
  10024. version_type=linux # correct to gnu/linux during the next big refactor
  10025. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10026. soname_spec='${libname}${release}${shared_ext}$major'
  10027. shlibpath_var=LD_LIBRARY_PATH
  10028. case $host_vendor in
  10029. sni)
  10030. shlibpath_overrides_runpath=no
  10031. need_lib_prefix=no
  10032. runpath_var=LD_RUN_PATH
  10033. ;;
  10034. siemens)
  10035. need_lib_prefix=no
  10036. ;;
  10037. motorola)
  10038. need_lib_prefix=no
  10039. need_version=no
  10040. shlibpath_overrides_runpath=no
  10041. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10042. ;;
  10043. esac
  10044. ;;
  10045. sysv4*MP*)
  10046. if test -d /usr/nec ;then
  10047. version_type=linux # correct to gnu/linux during the next big refactor
  10048. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10049. soname_spec='$libname${shared_ext}.$major'
  10050. shlibpath_var=LD_LIBRARY_PATH
  10051. fi
  10052. ;;
  10053. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10054. version_type=freebsd-elf
  10055. need_lib_prefix=no
  10056. need_version=no
  10057. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10058. soname_spec='${libname}${release}${shared_ext}$major'
  10059. shlibpath_var=LD_LIBRARY_PATH
  10060. shlibpath_overrides_runpath=yes
  10061. hardcode_into_libs=yes
  10062. if test "$with_gnu_ld" = yes; then
  10063. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10064. else
  10065. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10066. case $host_os in
  10067. sco3.2v5*)
  10068. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10069. ;;
  10070. esac
  10071. fi
  10072. sys_lib_dlsearch_path_spec='/usr/lib'
  10073. ;;
  10074. tpf*)
  10075. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10076. version_type=linux # correct to gnu/linux during the next big refactor
  10077. need_lib_prefix=no
  10078. need_version=no
  10079. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10080. shlibpath_var=LD_LIBRARY_PATH
  10081. shlibpath_overrides_runpath=no
  10082. hardcode_into_libs=yes
  10083. ;;
  10084. uts4*)
  10085. version_type=linux # correct to gnu/linux during the next big refactor
  10086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10087. soname_spec='${libname}${release}${shared_ext}$major'
  10088. shlibpath_var=LD_LIBRARY_PATH
  10089. ;;
  10090. *)
  10091. dynamic_linker=no
  10092. ;;
  10093. esac
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10095. $as_echo "$dynamic_linker" >&6; }
  10096. test "$dynamic_linker" = no && can_build_shared=no
  10097. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10098. if test "$GCC" = yes; then
  10099. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10100. fi
  10101. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10102. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10103. fi
  10104. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10105. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10106. fi
  10107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10108. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10109. hardcode_action=
  10110. if test -n "$hardcode_libdir_flag_spec" ||
  10111. test -n "$runpath_var" ||
  10112. test "X$hardcode_automatic" = "Xyes" ; then
  10113. # We can hardcode non-existent directories.
  10114. if test "$hardcode_direct" != no &&
  10115. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10116. # have to relink, otherwise we might link with an installed library
  10117. # when we should be linking with a yet-to-be-installed one
  10118. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10119. test "$hardcode_minus_L" != no; then
  10120. # Linking always hardcodes the temporary library directory.
  10121. hardcode_action=relink
  10122. else
  10123. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10124. hardcode_action=immediate
  10125. fi
  10126. else
  10127. # We cannot hardcode anything, or else we can only hardcode existing
  10128. # directories.
  10129. hardcode_action=unsupported
  10130. fi
  10131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10132. $as_echo "$hardcode_action" >&6; }
  10133. if test "$hardcode_action" = relink ||
  10134. test "$inherit_rpath" = yes; then
  10135. # Fast installation is not supported
  10136. enable_fast_install=no
  10137. elif test "$shlibpath_overrides_runpath" = yes ||
  10138. test "$enable_shared" = no; then
  10139. # Fast installation is not necessary
  10140. enable_fast_install=needless
  10141. fi
  10142. if test "x$enable_dlopen" != xyes; then
  10143. enable_dlopen=unknown
  10144. enable_dlopen_self=unknown
  10145. enable_dlopen_self_static=unknown
  10146. else
  10147. lt_cv_dlopen=no
  10148. lt_cv_dlopen_libs=
  10149. case $host_os in
  10150. beos*)
  10151. lt_cv_dlopen="load_add_on"
  10152. lt_cv_dlopen_libs=
  10153. lt_cv_dlopen_self=yes
  10154. ;;
  10155. mingw* | pw32* | cegcc*)
  10156. lt_cv_dlopen="LoadLibrary"
  10157. lt_cv_dlopen_libs=
  10158. ;;
  10159. cygwin*)
  10160. lt_cv_dlopen="dlopen"
  10161. lt_cv_dlopen_libs=
  10162. ;;
  10163. darwin*)
  10164. # if libdl is installed we need to link against it
  10165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10166. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10167. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10168. $as_echo_n "(cached) " >&6
  10169. else
  10170. ac_check_lib_save_LIBS=$LIBS
  10171. LIBS="-ldl $LIBS"
  10172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10173. /* end confdefs.h. */
  10174. /* Override any GCC internal prototype to avoid an error.
  10175. Use char because int might match the return type of a GCC
  10176. builtin and then its argument prototype would still apply. */
  10177. #ifdef __cplusplus
  10178. extern "C"
  10179. #endif
  10180. char dlopen ();
  10181. int
  10182. main ()
  10183. {
  10184. return dlopen ();
  10185. ;
  10186. return 0;
  10187. }
  10188. _ACEOF
  10189. if ac_fn_c_try_link "$LINENO"; then :
  10190. ac_cv_lib_dl_dlopen=yes
  10191. else
  10192. ac_cv_lib_dl_dlopen=no
  10193. fi
  10194. rm -f core conftest.err conftest.$ac_objext \
  10195. conftest$ac_exeext conftest.$ac_ext
  10196. LIBS=$ac_check_lib_save_LIBS
  10197. fi
  10198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10199. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10200. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10201. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10202. else
  10203. lt_cv_dlopen="dyld"
  10204. lt_cv_dlopen_libs=
  10205. lt_cv_dlopen_self=yes
  10206. fi
  10207. ;;
  10208. *)
  10209. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10210. if test "x$ac_cv_func_shl_load" = xyes; then :
  10211. lt_cv_dlopen="shl_load"
  10212. else
  10213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10214. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10215. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10216. $as_echo_n "(cached) " >&6
  10217. else
  10218. ac_check_lib_save_LIBS=$LIBS
  10219. LIBS="-ldld $LIBS"
  10220. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10221. /* end confdefs.h. */
  10222. /* Override any GCC internal prototype to avoid an error.
  10223. Use char because int might match the return type of a GCC
  10224. builtin and then its argument prototype would still apply. */
  10225. #ifdef __cplusplus
  10226. extern "C"
  10227. #endif
  10228. char shl_load ();
  10229. int
  10230. main ()
  10231. {
  10232. return shl_load ();
  10233. ;
  10234. return 0;
  10235. }
  10236. _ACEOF
  10237. if ac_fn_c_try_link "$LINENO"; then :
  10238. ac_cv_lib_dld_shl_load=yes
  10239. else
  10240. ac_cv_lib_dld_shl_load=no
  10241. fi
  10242. rm -f core conftest.err conftest.$ac_objext \
  10243. conftest$ac_exeext conftest.$ac_ext
  10244. LIBS=$ac_check_lib_save_LIBS
  10245. fi
  10246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10247. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10248. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10249. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10250. else
  10251. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10252. if test "x$ac_cv_func_dlopen" = xyes; then :
  10253. lt_cv_dlopen="dlopen"
  10254. else
  10255. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10256. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10257. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10258. $as_echo_n "(cached) " >&6
  10259. else
  10260. ac_check_lib_save_LIBS=$LIBS
  10261. LIBS="-ldl $LIBS"
  10262. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10263. /* end confdefs.h. */
  10264. /* Override any GCC internal prototype to avoid an error.
  10265. Use char because int might match the return type of a GCC
  10266. builtin and then its argument prototype would still apply. */
  10267. #ifdef __cplusplus
  10268. extern "C"
  10269. #endif
  10270. char dlopen ();
  10271. int
  10272. main ()
  10273. {
  10274. return dlopen ();
  10275. ;
  10276. return 0;
  10277. }
  10278. _ACEOF
  10279. if ac_fn_c_try_link "$LINENO"; then :
  10280. ac_cv_lib_dl_dlopen=yes
  10281. else
  10282. ac_cv_lib_dl_dlopen=no
  10283. fi
  10284. rm -f core conftest.err conftest.$ac_objext \
  10285. conftest$ac_exeext conftest.$ac_ext
  10286. LIBS=$ac_check_lib_save_LIBS
  10287. fi
  10288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10289. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10290. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10291. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10292. else
  10293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10294. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10295. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10296. $as_echo_n "(cached) " >&6
  10297. else
  10298. ac_check_lib_save_LIBS=$LIBS
  10299. LIBS="-lsvld $LIBS"
  10300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10301. /* end confdefs.h. */
  10302. /* Override any GCC internal prototype to avoid an error.
  10303. Use char because int might match the return type of a GCC
  10304. builtin and then its argument prototype would still apply. */
  10305. #ifdef __cplusplus
  10306. extern "C"
  10307. #endif
  10308. char dlopen ();
  10309. int
  10310. main ()
  10311. {
  10312. return dlopen ();
  10313. ;
  10314. return 0;
  10315. }
  10316. _ACEOF
  10317. if ac_fn_c_try_link "$LINENO"; then :
  10318. ac_cv_lib_svld_dlopen=yes
  10319. else
  10320. ac_cv_lib_svld_dlopen=no
  10321. fi
  10322. rm -f core conftest.err conftest.$ac_objext \
  10323. conftest$ac_exeext conftest.$ac_ext
  10324. LIBS=$ac_check_lib_save_LIBS
  10325. fi
  10326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10327. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10328. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10329. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10330. else
  10331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10332. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10333. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10334. $as_echo_n "(cached) " >&6
  10335. else
  10336. ac_check_lib_save_LIBS=$LIBS
  10337. LIBS="-ldld $LIBS"
  10338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10339. /* end confdefs.h. */
  10340. /* Override any GCC internal prototype to avoid an error.
  10341. Use char because int might match the return type of a GCC
  10342. builtin and then its argument prototype would still apply. */
  10343. #ifdef __cplusplus
  10344. extern "C"
  10345. #endif
  10346. char dld_link ();
  10347. int
  10348. main ()
  10349. {
  10350. return dld_link ();
  10351. ;
  10352. return 0;
  10353. }
  10354. _ACEOF
  10355. if ac_fn_c_try_link "$LINENO"; then :
  10356. ac_cv_lib_dld_dld_link=yes
  10357. else
  10358. ac_cv_lib_dld_dld_link=no
  10359. fi
  10360. rm -f core conftest.err conftest.$ac_objext \
  10361. conftest$ac_exeext conftest.$ac_ext
  10362. LIBS=$ac_check_lib_save_LIBS
  10363. fi
  10364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10365. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10366. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10367. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10368. fi
  10369. fi
  10370. fi
  10371. fi
  10372. fi
  10373. fi
  10374. ;;
  10375. esac
  10376. if test "x$lt_cv_dlopen" != xno; then
  10377. enable_dlopen=yes
  10378. else
  10379. enable_dlopen=no
  10380. fi
  10381. case $lt_cv_dlopen in
  10382. dlopen)
  10383. save_CPPFLAGS="$CPPFLAGS"
  10384. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10385. save_LDFLAGS="$LDFLAGS"
  10386. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10387. save_LIBS="$LIBS"
  10388. LIBS="$lt_cv_dlopen_libs $LIBS"
  10389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10390. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10391. if ${lt_cv_dlopen_self+:} false; then :
  10392. $as_echo_n "(cached) " >&6
  10393. else
  10394. if test "$cross_compiling" = yes; then :
  10395. lt_cv_dlopen_self=cross
  10396. else
  10397. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10398. lt_status=$lt_dlunknown
  10399. cat > conftest.$ac_ext <<_LT_EOF
  10400. #line $LINENO "configure"
  10401. #include "confdefs.h"
  10402. #if HAVE_DLFCN_H
  10403. #include <dlfcn.h>
  10404. #endif
  10405. #include <stdio.h>
  10406. #ifdef RTLD_GLOBAL
  10407. # define LT_DLGLOBAL RTLD_GLOBAL
  10408. #else
  10409. # ifdef DL_GLOBAL
  10410. # define LT_DLGLOBAL DL_GLOBAL
  10411. # else
  10412. # define LT_DLGLOBAL 0
  10413. # endif
  10414. #endif
  10415. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10416. find out it does not work in some platform. */
  10417. #ifndef LT_DLLAZY_OR_NOW
  10418. # ifdef RTLD_LAZY
  10419. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10420. # else
  10421. # ifdef DL_LAZY
  10422. # define LT_DLLAZY_OR_NOW DL_LAZY
  10423. # else
  10424. # ifdef RTLD_NOW
  10425. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10426. # else
  10427. # ifdef DL_NOW
  10428. # define LT_DLLAZY_OR_NOW DL_NOW
  10429. # else
  10430. # define LT_DLLAZY_OR_NOW 0
  10431. # endif
  10432. # endif
  10433. # endif
  10434. # endif
  10435. #endif
  10436. /* When -fvisbility=hidden is used, assume the code has been annotated
  10437. correspondingly for the symbols needed. */
  10438. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10439. int fnord () __attribute__((visibility("default")));
  10440. #endif
  10441. int fnord () { return 42; }
  10442. int main ()
  10443. {
  10444. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10445. int status = $lt_dlunknown;
  10446. if (self)
  10447. {
  10448. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10449. else
  10450. {
  10451. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10452. else puts (dlerror ());
  10453. }
  10454. /* dlclose (self); */
  10455. }
  10456. else
  10457. puts (dlerror ());
  10458. return status;
  10459. }
  10460. _LT_EOF
  10461. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10462. (eval $ac_link) 2>&5
  10463. ac_status=$?
  10464. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10465. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10466. (./conftest; exit; ) >&5 2>/dev/null
  10467. lt_status=$?
  10468. case x$lt_status in
  10469. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10470. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10471. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10472. esac
  10473. else :
  10474. # compilation failed
  10475. lt_cv_dlopen_self=no
  10476. fi
  10477. fi
  10478. rm -fr conftest*
  10479. fi
  10480. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10481. $as_echo "$lt_cv_dlopen_self" >&6; }
  10482. if test "x$lt_cv_dlopen_self" = xyes; then
  10483. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10484. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10485. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10486. if ${lt_cv_dlopen_self_static+:} false; then :
  10487. $as_echo_n "(cached) " >&6
  10488. else
  10489. if test "$cross_compiling" = yes; then :
  10490. lt_cv_dlopen_self_static=cross
  10491. else
  10492. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10493. lt_status=$lt_dlunknown
  10494. cat > conftest.$ac_ext <<_LT_EOF
  10495. #line $LINENO "configure"
  10496. #include "confdefs.h"
  10497. #if HAVE_DLFCN_H
  10498. #include <dlfcn.h>
  10499. #endif
  10500. #include <stdio.h>
  10501. #ifdef RTLD_GLOBAL
  10502. # define LT_DLGLOBAL RTLD_GLOBAL
  10503. #else
  10504. # ifdef DL_GLOBAL
  10505. # define LT_DLGLOBAL DL_GLOBAL
  10506. # else
  10507. # define LT_DLGLOBAL 0
  10508. # endif
  10509. #endif
  10510. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10511. find out it does not work in some platform. */
  10512. #ifndef LT_DLLAZY_OR_NOW
  10513. # ifdef RTLD_LAZY
  10514. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10515. # else
  10516. # ifdef DL_LAZY
  10517. # define LT_DLLAZY_OR_NOW DL_LAZY
  10518. # else
  10519. # ifdef RTLD_NOW
  10520. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10521. # else
  10522. # ifdef DL_NOW
  10523. # define LT_DLLAZY_OR_NOW DL_NOW
  10524. # else
  10525. # define LT_DLLAZY_OR_NOW 0
  10526. # endif
  10527. # endif
  10528. # endif
  10529. # endif
  10530. #endif
  10531. /* When -fvisbility=hidden is used, assume the code has been annotated
  10532. correspondingly for the symbols needed. */
  10533. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10534. int fnord () __attribute__((visibility("default")));
  10535. #endif
  10536. int fnord () { return 42; }
  10537. int main ()
  10538. {
  10539. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10540. int status = $lt_dlunknown;
  10541. if (self)
  10542. {
  10543. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10544. else
  10545. {
  10546. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10547. else puts (dlerror ());
  10548. }
  10549. /* dlclose (self); */
  10550. }
  10551. else
  10552. puts (dlerror ());
  10553. return status;
  10554. }
  10555. _LT_EOF
  10556. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10557. (eval $ac_link) 2>&5
  10558. ac_status=$?
  10559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10560. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10561. (./conftest; exit; ) >&5 2>/dev/null
  10562. lt_status=$?
  10563. case x$lt_status in
  10564. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10565. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10566. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10567. esac
  10568. else :
  10569. # compilation failed
  10570. lt_cv_dlopen_self_static=no
  10571. fi
  10572. fi
  10573. rm -fr conftest*
  10574. fi
  10575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10576. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10577. fi
  10578. CPPFLAGS="$save_CPPFLAGS"
  10579. LDFLAGS="$save_LDFLAGS"
  10580. LIBS="$save_LIBS"
  10581. ;;
  10582. esac
  10583. case $lt_cv_dlopen_self in
  10584. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10585. *) enable_dlopen_self=unknown ;;
  10586. esac
  10587. case $lt_cv_dlopen_self_static in
  10588. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10589. *) enable_dlopen_self_static=unknown ;;
  10590. esac
  10591. fi
  10592. striplib=
  10593. old_striplib=
  10594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10595. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10596. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10597. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10598. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10600. $as_echo "yes" >&6; }
  10601. else
  10602. # FIXME - insert some real tests, host_os isn't really good enough
  10603. case $host_os in
  10604. darwin*)
  10605. if test -n "$STRIP" ; then
  10606. striplib="$STRIP -x"
  10607. old_striplib="$STRIP -S"
  10608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10609. $as_echo "yes" >&6; }
  10610. else
  10611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10612. $as_echo "no" >&6; }
  10613. fi
  10614. ;;
  10615. *)
  10616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10617. $as_echo "no" >&6; }
  10618. ;;
  10619. esac
  10620. fi
  10621. # Report which library types will actually be built
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10623. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10625. $as_echo "$can_build_shared" >&6; }
  10626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10627. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10628. test "$can_build_shared" = "no" && enable_shared=no
  10629. # On AIX, shared libraries and static libraries use the same namespace, and
  10630. # are all built from PIC.
  10631. case $host_os in
  10632. aix3*)
  10633. test "$enable_shared" = yes && enable_static=no
  10634. if test -n "$RANLIB"; then
  10635. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10636. postinstall_cmds='$RANLIB $lib'
  10637. fi
  10638. ;;
  10639. aix[4-9]*)
  10640. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10641. test "$enable_shared" = yes && enable_static=no
  10642. fi
  10643. ;;
  10644. esac
  10645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10646. $as_echo "$enable_shared" >&6; }
  10647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10648. $as_echo_n "checking whether to build static libraries... " >&6; }
  10649. # Make sure either enable_shared or enable_static is yes.
  10650. test "$enable_shared" = yes || enable_static=yes
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10652. $as_echo "$enable_static" >&6; }
  10653. fi
  10654. ac_ext=cpp
  10655. ac_cpp='$CXXCPP $CPPFLAGS'
  10656. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10657. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10658. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10659. CC="$lt_save_CC"
  10660. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10661. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10662. (test "X$CXX" != "Xg++"))) ; then
  10663. ac_ext=cpp
  10664. ac_cpp='$CXXCPP $CPPFLAGS'
  10665. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10666. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10667. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10669. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10670. if test -z "$CXXCPP"; then
  10671. if ${ac_cv_prog_CXXCPP+:} false; then :
  10672. $as_echo_n "(cached) " >&6
  10673. else
  10674. # Double quotes because CXXCPP needs to be expanded
  10675. for CXXCPP in "$CXX -E" "/lib/cpp"
  10676. do
  10677. ac_preproc_ok=false
  10678. for ac_cxx_preproc_warn_flag in '' yes
  10679. do
  10680. # Use a header file that comes with gcc, so configuring glibc
  10681. # with a fresh cross-compiler works.
  10682. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10683. # <limits.h> exists even on freestanding compilers.
  10684. # On the NeXT, cc -E runs the code through the compiler's parser,
  10685. # not just through cpp. "Syntax error" is here to catch this case.
  10686. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10687. /* end confdefs.h. */
  10688. #ifdef __STDC__
  10689. # include <limits.h>
  10690. #else
  10691. # include <assert.h>
  10692. #endif
  10693. Syntax error
  10694. _ACEOF
  10695. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10696. else
  10697. # Broken: fails on valid input.
  10698. continue
  10699. fi
  10700. rm -f conftest.err conftest.i conftest.$ac_ext
  10701. # OK, works on sane cases. Now check whether nonexistent headers
  10702. # can be detected and how.
  10703. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10704. /* end confdefs.h. */
  10705. #include <ac_nonexistent.h>
  10706. _ACEOF
  10707. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10708. # Broken: success on invalid input.
  10709. continue
  10710. else
  10711. # Passes both tests.
  10712. ac_preproc_ok=:
  10713. break
  10714. fi
  10715. rm -f conftest.err conftest.i conftest.$ac_ext
  10716. done
  10717. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10718. rm -f conftest.i conftest.err conftest.$ac_ext
  10719. if $ac_preproc_ok; then :
  10720. break
  10721. fi
  10722. done
  10723. ac_cv_prog_CXXCPP=$CXXCPP
  10724. fi
  10725. CXXCPP=$ac_cv_prog_CXXCPP
  10726. else
  10727. ac_cv_prog_CXXCPP=$CXXCPP
  10728. fi
  10729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10730. $as_echo "$CXXCPP" >&6; }
  10731. ac_preproc_ok=false
  10732. for ac_cxx_preproc_warn_flag in '' yes
  10733. do
  10734. # Use a header file that comes with gcc, so configuring glibc
  10735. # with a fresh cross-compiler works.
  10736. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10737. # <limits.h> exists even on freestanding compilers.
  10738. # On the NeXT, cc -E runs the code through the compiler's parser,
  10739. # not just through cpp. "Syntax error" is here to catch this case.
  10740. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10741. /* end confdefs.h. */
  10742. #ifdef __STDC__
  10743. # include <limits.h>
  10744. #else
  10745. # include <assert.h>
  10746. #endif
  10747. Syntax error
  10748. _ACEOF
  10749. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10750. else
  10751. # Broken: fails on valid input.
  10752. continue
  10753. fi
  10754. rm -f conftest.err conftest.i conftest.$ac_ext
  10755. # OK, works on sane cases. Now check whether nonexistent headers
  10756. # can be detected and how.
  10757. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10758. /* end confdefs.h. */
  10759. #include <ac_nonexistent.h>
  10760. _ACEOF
  10761. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10762. # Broken: success on invalid input.
  10763. continue
  10764. else
  10765. # Passes both tests.
  10766. ac_preproc_ok=:
  10767. break
  10768. fi
  10769. rm -f conftest.err conftest.i conftest.$ac_ext
  10770. done
  10771. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10772. rm -f conftest.i conftest.err conftest.$ac_ext
  10773. if $ac_preproc_ok; then :
  10774. else
  10775. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10776. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10777. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10778. See \`config.log' for more details" "$LINENO" 5; }
  10779. fi
  10780. ac_ext=cpp
  10781. ac_cpp='$CXXCPP $CPPFLAGS'
  10782. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10783. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10784. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10785. else
  10786. _lt_caught_CXX_error=yes
  10787. fi
  10788. ac_ext=cpp
  10789. ac_cpp='$CXXCPP $CPPFLAGS'
  10790. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10791. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10792. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10793. archive_cmds_need_lc_CXX=no
  10794. allow_undefined_flag_CXX=
  10795. always_export_symbols_CXX=no
  10796. archive_expsym_cmds_CXX=
  10797. compiler_needs_object_CXX=no
  10798. export_dynamic_flag_spec_CXX=
  10799. hardcode_direct_CXX=no
  10800. hardcode_direct_absolute_CXX=no
  10801. hardcode_libdir_flag_spec_CXX=
  10802. hardcode_libdir_separator_CXX=
  10803. hardcode_minus_L_CXX=no
  10804. hardcode_shlibpath_var_CXX=unsupported
  10805. hardcode_automatic_CXX=no
  10806. inherit_rpath_CXX=no
  10807. module_cmds_CXX=
  10808. module_expsym_cmds_CXX=
  10809. link_all_deplibs_CXX=unknown
  10810. old_archive_cmds_CXX=$old_archive_cmds
  10811. reload_flag_CXX=$reload_flag
  10812. reload_cmds_CXX=$reload_cmds
  10813. no_undefined_flag_CXX=
  10814. whole_archive_flag_spec_CXX=
  10815. enable_shared_with_static_runtimes_CXX=no
  10816. # Source file extension for C++ test sources.
  10817. ac_ext=cpp
  10818. # Object file extension for compiled C++ test sources.
  10819. objext=o
  10820. objext_CXX=$objext
  10821. # No sense in running all these tests if we already determined that
  10822. # the CXX compiler isn't working. Some variables (like enable_shared)
  10823. # are currently assumed to apply to all compilers on this platform,
  10824. # and will be corrupted by setting them based on a non-working compiler.
  10825. if test "$_lt_caught_CXX_error" != yes; then
  10826. # Code to be used in simple compile tests
  10827. lt_simple_compile_test_code="int some_variable = 0;"
  10828. # Code to be used in simple link tests
  10829. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10830. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10831. # If no C compiler was specified, use CC.
  10832. LTCC=${LTCC-"$CC"}
  10833. # If no C compiler flags were specified, use CFLAGS.
  10834. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10835. # Allow CC to be a program name with arguments.
  10836. compiler=$CC
  10837. # save warnings/boilerplate of simple test code
  10838. ac_outfile=conftest.$ac_objext
  10839. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10840. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10841. _lt_compiler_boilerplate=`cat conftest.err`
  10842. $RM conftest*
  10843. ac_outfile=conftest.$ac_objext
  10844. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10845. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10846. _lt_linker_boilerplate=`cat conftest.err`
  10847. $RM -r conftest*
  10848. # Allow CC to be a program name with arguments.
  10849. lt_save_CC=$CC
  10850. lt_save_CFLAGS=$CFLAGS
  10851. lt_save_LD=$LD
  10852. lt_save_GCC=$GCC
  10853. GCC=$GXX
  10854. lt_save_with_gnu_ld=$with_gnu_ld
  10855. lt_save_path_LD=$lt_cv_path_LD
  10856. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10857. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10858. else
  10859. $as_unset lt_cv_prog_gnu_ld
  10860. fi
  10861. if test -n "${lt_cv_path_LDCXX+set}"; then
  10862. lt_cv_path_LD=$lt_cv_path_LDCXX
  10863. else
  10864. $as_unset lt_cv_path_LD
  10865. fi
  10866. test -z "${LDCXX+set}" || LD=$LDCXX
  10867. CC=${CXX-"c++"}
  10868. CFLAGS=$CXXFLAGS
  10869. compiler=$CC
  10870. compiler_CXX=$CC
  10871. for cc_temp in $compiler""; do
  10872. case $cc_temp in
  10873. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10874. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10875. \-*) ;;
  10876. *) break;;
  10877. esac
  10878. done
  10879. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10880. if test -n "$compiler"; then
  10881. # We don't want -fno-exception when compiling C++ code, so set the
  10882. # no_builtin_flag separately
  10883. if test "$GXX" = yes; then
  10884. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10885. else
  10886. lt_prog_compiler_no_builtin_flag_CXX=
  10887. fi
  10888. if test "$GXX" = yes; then
  10889. # Set up default GNU C++ configuration
  10890. # Check whether --with-gnu-ld was given.
  10891. if test "${with_gnu_ld+set}" = set; then :
  10892. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10893. else
  10894. with_gnu_ld=no
  10895. fi
  10896. ac_prog=ld
  10897. if test "$GCC" = yes; then
  10898. # Check if gcc -print-prog-name=ld gives a path.
  10899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10900. $as_echo_n "checking for ld used by $CC... " >&6; }
  10901. case $host in
  10902. *-*-mingw*)
  10903. # gcc leaves a trailing carriage return which upsets mingw
  10904. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10905. *)
  10906. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10907. esac
  10908. case $ac_prog in
  10909. # Accept absolute paths.
  10910. [\\/]* | ?:[\\/]*)
  10911. re_direlt='/[^/][^/]*/\.\./'
  10912. # Canonicalize the pathname of ld
  10913. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10914. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10915. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10916. done
  10917. test -z "$LD" && LD="$ac_prog"
  10918. ;;
  10919. "")
  10920. # If it fails, then pretend we aren't using GCC.
  10921. ac_prog=ld
  10922. ;;
  10923. *)
  10924. # If it is relative, then search for the first ld in PATH.
  10925. with_gnu_ld=unknown
  10926. ;;
  10927. esac
  10928. elif test "$with_gnu_ld" = yes; then
  10929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10930. $as_echo_n "checking for GNU ld... " >&6; }
  10931. else
  10932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10933. $as_echo_n "checking for non-GNU ld... " >&6; }
  10934. fi
  10935. if ${lt_cv_path_LD+:} false; then :
  10936. $as_echo_n "(cached) " >&6
  10937. else
  10938. if test -z "$LD"; then
  10939. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10940. for ac_dir in $PATH; do
  10941. IFS="$lt_save_ifs"
  10942. test -z "$ac_dir" && ac_dir=.
  10943. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10944. lt_cv_path_LD="$ac_dir/$ac_prog"
  10945. # Check to see if the program is GNU ld. I'd rather use --version,
  10946. # but apparently some variants of GNU ld only accept -v.
  10947. # Break only if it was the GNU/non-GNU ld that we prefer.
  10948. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10949. *GNU* | *'with BFD'*)
  10950. test "$with_gnu_ld" != no && break
  10951. ;;
  10952. *)
  10953. test "$with_gnu_ld" != yes && break
  10954. ;;
  10955. esac
  10956. fi
  10957. done
  10958. IFS="$lt_save_ifs"
  10959. else
  10960. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10961. fi
  10962. fi
  10963. LD="$lt_cv_path_LD"
  10964. if test -n "$LD"; then
  10965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10966. $as_echo "$LD" >&6; }
  10967. else
  10968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10969. $as_echo "no" >&6; }
  10970. fi
  10971. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10973. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10974. if ${lt_cv_prog_gnu_ld+:} false; then :
  10975. $as_echo_n "(cached) " >&6
  10976. else
  10977. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10978. case `$LD -v 2>&1 </dev/null` in
  10979. *GNU* | *'with BFD'*)
  10980. lt_cv_prog_gnu_ld=yes
  10981. ;;
  10982. *)
  10983. lt_cv_prog_gnu_ld=no
  10984. ;;
  10985. esac
  10986. fi
  10987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10988. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10989. with_gnu_ld=$lt_cv_prog_gnu_ld
  10990. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10991. # archiving commands below assume that GNU ld is being used.
  10992. if test "$with_gnu_ld" = yes; then
  10993. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10994. 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'
  10995. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10996. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10997. # If archive_cmds runs LD, not CC, wlarc should be empty
  10998. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10999. # investigate it a little bit more. (MM)
  11000. wlarc='${wl}'
  11001. # ancient GNU ld didn't support --whole-archive et. al.
  11002. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  11003. $GREP 'no-whole-archive' > /dev/null; then
  11004. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11005. else
  11006. whole_archive_flag_spec_CXX=
  11007. fi
  11008. else
  11009. with_gnu_ld=no
  11010. wlarc=
  11011. # A generic and very simple default shared library creation
  11012. # command for GNU C++ for the case where it uses the native
  11013. # linker, instead of GNU ld. If possible, this setting should
  11014. # overridden to take advantage of the native linker features on
  11015. # the platform it is being used on.
  11016. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11017. fi
  11018. # Commands to make compiler produce verbose output that lists
  11019. # what "hidden" libraries, object files and flags are used when
  11020. # linking a shared library.
  11021. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11022. else
  11023. GXX=no
  11024. with_gnu_ld=no
  11025. wlarc=
  11026. fi
  11027. # PORTME: fill in a description of your system's C++ link characteristics
  11028. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11029. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11030. ld_shlibs_CXX=yes
  11031. case $host_os in
  11032. aix3*)
  11033. # FIXME: insert proper C++ library support
  11034. ld_shlibs_CXX=no
  11035. ;;
  11036. aix[4-9]*)
  11037. if test "$host_cpu" = ia64; then
  11038. # On IA64, the linker does run time linking by default, so we don't
  11039. # have to do anything special.
  11040. aix_use_runtimelinking=no
  11041. exp_sym_flag='-Bexport'
  11042. no_entry_flag=""
  11043. else
  11044. aix_use_runtimelinking=no
  11045. # Test if we are trying to use run time linking or normal
  11046. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11047. # need to do runtime linking.
  11048. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  11049. for ld_flag in $LDFLAGS; do
  11050. case $ld_flag in
  11051. *-brtl*)
  11052. aix_use_runtimelinking=yes
  11053. break
  11054. ;;
  11055. esac
  11056. done
  11057. ;;
  11058. esac
  11059. exp_sym_flag='-bexport'
  11060. no_entry_flag='-bnoentry'
  11061. fi
  11062. # When large executables or shared objects are built, AIX ld can
  11063. # have problems creating the table of contents. If linking a library
  11064. # or program results in "error TOC overflow" add -mminimal-toc to
  11065. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11066. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11067. archive_cmds_CXX=''
  11068. hardcode_direct_CXX=yes
  11069. hardcode_direct_absolute_CXX=yes
  11070. hardcode_libdir_separator_CXX=':'
  11071. link_all_deplibs_CXX=yes
  11072. file_list_spec_CXX='${wl}-f,'
  11073. if test "$GXX" = yes; then
  11074. case $host_os in aix4.[012]|aix4.[012].*)
  11075. # We only want to do this on AIX 4.2 and lower, the check
  11076. # below for broken collect2 doesn't work under 4.3+
  11077. collect2name=`${CC} -print-prog-name=collect2`
  11078. if test -f "$collect2name" &&
  11079. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  11080. then
  11081. # We have reworked collect2
  11082. :
  11083. else
  11084. # We have old collect2
  11085. hardcode_direct_CXX=unsupported
  11086. # It fails to find uninstalled libraries when the uninstalled
  11087. # path is not listed in the libpath. Setting hardcode_minus_L
  11088. # to unsupported forces relinking
  11089. hardcode_minus_L_CXX=yes
  11090. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11091. hardcode_libdir_separator_CXX=
  11092. fi
  11093. esac
  11094. shared_flag='-shared'
  11095. if test "$aix_use_runtimelinking" = yes; then
  11096. shared_flag="$shared_flag "'${wl}-G'
  11097. fi
  11098. else
  11099. # not using gcc
  11100. if test "$host_cpu" = ia64; then
  11101. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11102. # chokes on -Wl,-G. The following line is correct:
  11103. shared_flag='-G'
  11104. else
  11105. if test "$aix_use_runtimelinking" = yes; then
  11106. shared_flag='${wl}-G'
  11107. else
  11108. shared_flag='${wl}-bM:SRE'
  11109. fi
  11110. fi
  11111. fi
  11112. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  11113. # It seems that -bexpall does not export symbols beginning with
  11114. # underscore (_), so it is better to generate a list of symbols to
  11115. # export.
  11116. always_export_symbols_CXX=yes
  11117. if test "$aix_use_runtimelinking" = yes; then
  11118. # Warning - without using the other runtime loading flags (-brtl),
  11119. # -berok will link without error, but may produce a broken library.
  11120. allow_undefined_flag_CXX='-berok'
  11121. # Determine the default libpath from the value encoded in an empty
  11122. # executable.
  11123. if test "${lt_cv_aix_libpath+set}" = set; then
  11124. aix_libpath=$lt_cv_aix_libpath
  11125. else
  11126. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11127. $as_echo_n "(cached) " >&6
  11128. else
  11129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11130. /* end confdefs.h. */
  11131. int
  11132. main ()
  11133. {
  11134. ;
  11135. return 0;
  11136. }
  11137. _ACEOF
  11138. if ac_fn_cxx_try_link "$LINENO"; then :
  11139. lt_aix_libpath_sed='
  11140. /Import File Strings/,/^$/ {
  11141. /^0/ {
  11142. s/^0 *\([^ ]*\) *$/\1/
  11143. p
  11144. }
  11145. }'
  11146. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11147. # Check for a 64-bit object if we didn't find anything.
  11148. if test -z "$lt_cv_aix_libpath__CXX"; then
  11149. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11150. fi
  11151. fi
  11152. rm -f core conftest.err conftest.$ac_objext \
  11153. conftest$ac_exeext conftest.$ac_ext
  11154. if test -z "$lt_cv_aix_libpath__CXX"; then
  11155. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11156. fi
  11157. fi
  11158. aix_libpath=$lt_cv_aix_libpath__CXX
  11159. fi
  11160. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11161. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  11162. else
  11163. if test "$host_cpu" = ia64; then
  11164. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  11165. allow_undefined_flag_CXX="-z nodefs"
  11166. 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"
  11167. else
  11168. # Determine the default libpath from the value encoded in an
  11169. # empty executable.
  11170. if test "${lt_cv_aix_libpath+set}" = set; then
  11171. aix_libpath=$lt_cv_aix_libpath
  11172. else
  11173. if ${lt_cv_aix_libpath__CXX+:} false; then :
  11174. $as_echo_n "(cached) " >&6
  11175. else
  11176. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11177. /* end confdefs.h. */
  11178. int
  11179. main ()
  11180. {
  11181. ;
  11182. return 0;
  11183. }
  11184. _ACEOF
  11185. if ac_fn_cxx_try_link "$LINENO"; then :
  11186. lt_aix_libpath_sed='
  11187. /Import File Strings/,/^$/ {
  11188. /^0/ {
  11189. s/^0 *\([^ ]*\) *$/\1/
  11190. p
  11191. }
  11192. }'
  11193. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11194. # Check for a 64-bit object if we didn't find anything.
  11195. if test -z "$lt_cv_aix_libpath__CXX"; then
  11196. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  11197. fi
  11198. fi
  11199. rm -f core conftest.err conftest.$ac_objext \
  11200. conftest$ac_exeext conftest.$ac_ext
  11201. if test -z "$lt_cv_aix_libpath__CXX"; then
  11202. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  11203. fi
  11204. fi
  11205. aix_libpath=$lt_cv_aix_libpath__CXX
  11206. fi
  11207. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  11208. # Warning - without using the other run time loading flags,
  11209. # -berok will link without error, but may produce a broken library.
  11210. no_undefined_flag_CXX=' ${wl}-bernotok'
  11211. allow_undefined_flag_CXX=' ${wl}-berok'
  11212. if test "$with_gnu_ld" = yes; then
  11213. # We only use this code for GNU lds that support --whole-archive.
  11214. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11215. else
  11216. # Exported symbols can be pulled into shared objects from archives
  11217. whole_archive_flag_spec_CXX='$convenience'
  11218. fi
  11219. archive_cmds_need_lc_CXX=yes
  11220. # This is similar to how AIX traditionally builds its shared
  11221. # libraries.
  11222. archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  11223. fi
  11224. fi
  11225. ;;
  11226. beos*)
  11227. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  11228. allow_undefined_flag_CXX=unsupported
  11229. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11230. # support --undefined. This deserves some investigation. FIXME
  11231. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11232. else
  11233. ld_shlibs_CXX=no
  11234. fi
  11235. ;;
  11236. chorus*)
  11237. case $cc_basename in
  11238. *)
  11239. # FIXME: insert proper C++ library support
  11240. ld_shlibs_CXX=no
  11241. ;;
  11242. esac
  11243. ;;
  11244. cygwin* | mingw* | pw32* | cegcc*)
  11245. case $GXX,$cc_basename in
  11246. ,cl* | no,cl*)
  11247. # Native MSVC
  11248. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11249. # no search path for DLLs.
  11250. hardcode_libdir_flag_spec_CXX=' '
  11251. allow_undefined_flag_CXX=unsupported
  11252. always_export_symbols_CXX=yes
  11253. file_list_spec_CXX='@'
  11254. # Tell ltmain to make .lib files, not .a files.
  11255. libext=lib
  11256. # Tell ltmain to make .dll files, not .so files.
  11257. shrext_cmds=".dll"
  11258. # FIXME: Setting linknames here is a bad hack.
  11259. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11260. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11261. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11262. else
  11263. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11264. fi~
  11265. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11266. linknames='
  11267. # The linker will not automatically build a static lib if we build a DLL.
  11268. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11269. enable_shared_with_static_runtimes_CXX=yes
  11270. # Don't use ranlib
  11271. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11272. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11273. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11274. case $lt_outputfile in
  11275. *.exe|*.EXE) ;;
  11276. *)
  11277. lt_outputfile="$lt_outputfile.exe"
  11278. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11279. ;;
  11280. esac~
  11281. func_to_tool_file "$lt_outputfile"~
  11282. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11283. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11284. $RM "$lt_outputfile.manifest";
  11285. fi'
  11286. ;;
  11287. *)
  11288. # g++
  11289. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11290. # as there is no search path for DLLs.
  11291. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11292. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11293. allow_undefined_flag_CXX=unsupported
  11294. always_export_symbols_CXX=no
  11295. enable_shared_with_static_runtimes_CXX=yes
  11296. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11297. 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'
  11298. # If the export-symbols file already is a .def file (1st line
  11299. # is EXPORTS), use it as is; otherwise, prepend...
  11300. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11301. cp $export_symbols $output_objdir/$soname.def;
  11302. else
  11303. echo EXPORTS > $output_objdir/$soname.def;
  11304. cat $export_symbols >> $output_objdir/$soname.def;
  11305. fi~
  11306. $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'
  11307. else
  11308. ld_shlibs_CXX=no
  11309. fi
  11310. ;;
  11311. esac
  11312. ;;
  11313. darwin* | rhapsody*)
  11314. archive_cmds_need_lc_CXX=no
  11315. hardcode_direct_CXX=no
  11316. hardcode_automatic_CXX=yes
  11317. hardcode_shlibpath_var_CXX=unsupported
  11318. if test "$lt_cv_ld_force_load" = "yes"; then
  11319. 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\"`'
  11320. else
  11321. whole_archive_flag_spec_CXX=''
  11322. fi
  11323. link_all_deplibs_CXX=yes
  11324. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11325. case $cc_basename in
  11326. ifort*) _lt_dar_can_shared=yes ;;
  11327. *) _lt_dar_can_shared=$GCC ;;
  11328. esac
  11329. if test "$_lt_dar_can_shared" = "yes"; then
  11330. output_verbose_link_cmd=func_echo_all
  11331. 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}"
  11332. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11333. 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}"
  11334. 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}"
  11335. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11336. 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}"
  11337. 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}"
  11338. fi
  11339. else
  11340. ld_shlibs_CXX=no
  11341. fi
  11342. ;;
  11343. dgux*)
  11344. case $cc_basename in
  11345. ec++*)
  11346. # FIXME: insert proper C++ library support
  11347. ld_shlibs_CXX=no
  11348. ;;
  11349. ghcx*)
  11350. # Green Hills C++ Compiler
  11351. # FIXME: insert proper C++ library support
  11352. ld_shlibs_CXX=no
  11353. ;;
  11354. *)
  11355. # FIXME: insert proper C++ library support
  11356. ld_shlibs_CXX=no
  11357. ;;
  11358. esac
  11359. ;;
  11360. freebsd2.*)
  11361. # C++ shared libraries reported to be fairly broken before
  11362. # switch to ELF
  11363. ld_shlibs_CXX=no
  11364. ;;
  11365. freebsd-elf*)
  11366. archive_cmds_need_lc_CXX=no
  11367. ;;
  11368. freebsd* | dragonfly*)
  11369. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11370. # conventions
  11371. ld_shlibs_CXX=yes
  11372. ;;
  11373. gnu*)
  11374. ;;
  11375. haiku*)
  11376. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11377. link_all_deplibs_CXX=yes
  11378. ;;
  11379. hpux9*)
  11380. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11381. hardcode_libdir_separator_CXX=:
  11382. export_dynamic_flag_spec_CXX='${wl}-E'
  11383. hardcode_direct_CXX=yes
  11384. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11385. # but as the default
  11386. # location of the library.
  11387. case $cc_basename in
  11388. CC*)
  11389. # FIXME: insert proper C++ library support
  11390. ld_shlibs_CXX=no
  11391. ;;
  11392. aCC*)
  11393. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11394. # Commands to make compiler produce verbose output that lists
  11395. # what "hidden" libraries, object files and flags are used when
  11396. # linking a shared library.
  11397. #
  11398. # There doesn't appear to be a way to prevent this compiler from
  11399. # explicitly linking system object files so we need to strip them
  11400. # from the output so that they don't get included in the library
  11401. # dependencies.
  11402. 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"'
  11403. ;;
  11404. *)
  11405. if test "$GXX" = yes; then
  11406. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11407. else
  11408. # FIXME: insert proper C++ library support
  11409. ld_shlibs_CXX=no
  11410. fi
  11411. ;;
  11412. esac
  11413. ;;
  11414. hpux10*|hpux11*)
  11415. if test $with_gnu_ld = no; then
  11416. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11417. hardcode_libdir_separator_CXX=:
  11418. case $host_cpu in
  11419. hppa*64*|ia64*)
  11420. ;;
  11421. *)
  11422. export_dynamic_flag_spec_CXX='${wl}-E'
  11423. ;;
  11424. esac
  11425. fi
  11426. case $host_cpu in
  11427. hppa*64*|ia64*)
  11428. hardcode_direct_CXX=no
  11429. hardcode_shlibpath_var_CXX=no
  11430. ;;
  11431. *)
  11432. hardcode_direct_CXX=yes
  11433. hardcode_direct_absolute_CXX=yes
  11434. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11435. # but as the default
  11436. # location of the library.
  11437. ;;
  11438. esac
  11439. case $cc_basename in
  11440. CC*)
  11441. # FIXME: insert proper C++ library support
  11442. ld_shlibs_CXX=no
  11443. ;;
  11444. aCC*)
  11445. case $host_cpu in
  11446. hppa*64*)
  11447. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11448. ;;
  11449. ia64*)
  11450. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11451. ;;
  11452. *)
  11453. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11454. ;;
  11455. esac
  11456. # Commands to make compiler produce verbose output that lists
  11457. # what "hidden" libraries, object files and flags are used when
  11458. # linking a shared library.
  11459. #
  11460. # There doesn't appear to be a way to prevent this compiler from
  11461. # explicitly linking system object files so we need to strip them
  11462. # from the output so that they don't get included in the library
  11463. # dependencies.
  11464. 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"'
  11465. ;;
  11466. *)
  11467. if test "$GXX" = yes; then
  11468. if test $with_gnu_ld = no; then
  11469. case $host_cpu in
  11470. hppa*64*)
  11471. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11472. ;;
  11473. ia64*)
  11474. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11475. ;;
  11476. *)
  11477. 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'
  11478. ;;
  11479. esac
  11480. fi
  11481. else
  11482. # FIXME: insert proper C++ library support
  11483. ld_shlibs_CXX=no
  11484. fi
  11485. ;;
  11486. esac
  11487. ;;
  11488. interix[3-9]*)
  11489. hardcode_direct_CXX=no
  11490. hardcode_shlibpath_var_CXX=no
  11491. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11492. export_dynamic_flag_spec_CXX='${wl}-E'
  11493. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11494. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11495. # default) and relocated if they conflict, which is a slow very memory
  11496. # consuming and fragmenting process. To avoid this, we pick a random,
  11497. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11498. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11499. 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'
  11500. 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'
  11501. ;;
  11502. irix5* | irix6*)
  11503. case $cc_basename in
  11504. CC*)
  11505. # SGI C++
  11506. 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'
  11507. # Archives containing C++ object files must be created using
  11508. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11509. # necessary to make sure instantiated templates are included
  11510. # in the archive.
  11511. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11512. ;;
  11513. *)
  11514. if test "$GXX" = yes; then
  11515. if test "$with_gnu_ld" = no; then
  11516. 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'
  11517. else
  11518. 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'
  11519. fi
  11520. fi
  11521. link_all_deplibs_CXX=yes
  11522. ;;
  11523. esac
  11524. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11525. hardcode_libdir_separator_CXX=:
  11526. inherit_rpath_CXX=yes
  11527. ;;
  11528. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11529. case $cc_basename in
  11530. KCC*)
  11531. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11532. # KCC will only create a shared library if the output file
  11533. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11534. # to its proper name (with version) after linking.
  11535. 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'
  11536. 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'
  11537. # Commands to make compiler produce verbose output that lists
  11538. # what "hidden" libraries, object files and flags are used when
  11539. # linking a shared library.
  11540. #
  11541. # There doesn't appear to be a way to prevent this compiler from
  11542. # explicitly linking system object files so we need to strip them
  11543. # from the output so that they don't get included in the library
  11544. # dependencies.
  11545. 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"'
  11546. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11547. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11548. # Archives containing C++ object files must be created using
  11549. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11550. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11551. ;;
  11552. icpc* | ecpc* )
  11553. # Intel C++
  11554. with_gnu_ld=yes
  11555. # version 8.0 and above of icpc choke on multiply defined symbols
  11556. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11557. # earlier do not add the objects themselves.
  11558. case `$CC -V 2>&1` in
  11559. *"Version 7."*)
  11560. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11561. 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'
  11562. ;;
  11563. *) # Version 8.0 or newer
  11564. tmp_idyn=
  11565. case $host_cpu in
  11566. ia64*) tmp_idyn=' -i_dynamic';;
  11567. esac
  11568. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11569. 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'
  11570. ;;
  11571. esac
  11572. archive_cmds_need_lc_CXX=no
  11573. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11574. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11575. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11576. ;;
  11577. pgCC* | pgcpp*)
  11578. # Portland Group C++ compiler
  11579. case `$CC -V` in
  11580. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11581. prelink_cmds_CXX='tpldir=Template.dir~
  11582. rm -rf $tpldir~
  11583. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11584. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11585. old_archive_cmds_CXX='tpldir=Template.dir~
  11586. rm -rf $tpldir~
  11587. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11588. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11589. $RANLIB $oldlib'
  11590. archive_cmds_CXX='tpldir=Template.dir~
  11591. rm -rf $tpldir~
  11592. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11593. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11594. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11595. rm -rf $tpldir~
  11596. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11597. $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'
  11598. ;;
  11599. *) # Version 6 and above use weak symbols
  11600. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11601. 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'
  11602. ;;
  11603. esac
  11604. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11605. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11606. 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'
  11607. ;;
  11608. cxx*)
  11609. # Compaq C++
  11610. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11611. 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'
  11612. runpath_var=LD_RUN_PATH
  11613. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11614. hardcode_libdir_separator_CXX=:
  11615. # Commands to make compiler produce verbose output that lists
  11616. # what "hidden" libraries, object files and flags are used when
  11617. # linking a shared library.
  11618. #
  11619. # There doesn't appear to be a way to prevent this compiler from
  11620. # explicitly linking system object files so we need to strip them
  11621. # from the output so that they don't get included in the library
  11622. # dependencies.
  11623. 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'
  11624. ;;
  11625. xl* | mpixl* | bgxl*)
  11626. # IBM XL 8.0 on PPC, with GNU ld
  11627. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11628. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11629. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11630. if test "x$supports_anon_versioning" = xyes; then
  11631. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11632. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11633. echo "local: *; };" >> $output_objdir/$libname.ver~
  11634. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11635. fi
  11636. ;;
  11637. *)
  11638. case `$CC -V 2>&1 | sed 5q` in
  11639. *Sun\ C*)
  11640. # Sun C++ 5.9
  11641. no_undefined_flag_CXX=' -zdefs'
  11642. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11643. 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'
  11644. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11645. 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'
  11646. compiler_needs_object_CXX=yes
  11647. # Not sure whether something based on
  11648. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11649. # would be better.
  11650. output_verbose_link_cmd='func_echo_all'
  11651. # Archives containing C++ object files must be created using
  11652. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11653. # necessary to make sure instantiated templates are included
  11654. # in the archive.
  11655. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11656. ;;
  11657. esac
  11658. ;;
  11659. esac
  11660. ;;
  11661. lynxos*)
  11662. # FIXME: insert proper C++ library support
  11663. ld_shlibs_CXX=no
  11664. ;;
  11665. m88k*)
  11666. # FIXME: insert proper C++ library support
  11667. ld_shlibs_CXX=no
  11668. ;;
  11669. mvs*)
  11670. case $cc_basename in
  11671. cxx*)
  11672. # FIXME: insert proper C++ library support
  11673. ld_shlibs_CXX=no
  11674. ;;
  11675. *)
  11676. # FIXME: insert proper C++ library support
  11677. ld_shlibs_CXX=no
  11678. ;;
  11679. esac
  11680. ;;
  11681. netbsd*)
  11682. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11683. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11684. wlarc=
  11685. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11686. hardcode_direct_CXX=yes
  11687. hardcode_shlibpath_var_CXX=no
  11688. fi
  11689. # Workaround some broken pre-1.5 toolchains
  11690. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11691. ;;
  11692. *nto* | *qnx*)
  11693. ld_shlibs_CXX=yes
  11694. ;;
  11695. openbsd2*)
  11696. # C++ shared libraries are fairly broken
  11697. ld_shlibs_CXX=no
  11698. ;;
  11699. openbsd*)
  11700. if test -f /usr/libexec/ld.so; then
  11701. hardcode_direct_CXX=yes
  11702. hardcode_shlibpath_var_CXX=no
  11703. hardcode_direct_absolute_CXX=yes
  11704. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11705. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11706. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11707. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11708. export_dynamic_flag_spec_CXX='${wl}-E'
  11709. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11710. fi
  11711. output_verbose_link_cmd=func_echo_all
  11712. else
  11713. ld_shlibs_CXX=no
  11714. fi
  11715. ;;
  11716. osf3* | osf4* | osf5*)
  11717. case $cc_basename in
  11718. KCC*)
  11719. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11720. # KCC will only create a shared library if the output file
  11721. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11722. # to its proper name (with version) after linking.
  11723. 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'
  11724. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11725. hardcode_libdir_separator_CXX=:
  11726. # Archives containing C++ object files must be created using
  11727. # the KAI C++ compiler.
  11728. case $host in
  11729. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11730. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11731. esac
  11732. ;;
  11733. RCC*)
  11734. # Rational C++ 2.4.1
  11735. # FIXME: insert proper C++ library support
  11736. ld_shlibs_CXX=no
  11737. ;;
  11738. cxx*)
  11739. case $host in
  11740. osf3*)
  11741. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11742. 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'
  11743. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11744. ;;
  11745. *)
  11746. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11747. 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'
  11748. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11749. echo "-hidden">> $lib.exp~
  11750. $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~
  11751. $RM $lib.exp'
  11752. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11753. ;;
  11754. esac
  11755. hardcode_libdir_separator_CXX=:
  11756. # Commands to make compiler produce verbose output that lists
  11757. # what "hidden" libraries, object files and flags are used when
  11758. # linking a shared library.
  11759. #
  11760. # There doesn't appear to be a way to prevent this compiler from
  11761. # explicitly linking system object files so we need to strip them
  11762. # from the output so that they don't get included in the library
  11763. # dependencies.
  11764. 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"'
  11765. ;;
  11766. *)
  11767. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11768. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11769. case $host in
  11770. osf3*)
  11771. 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'
  11772. ;;
  11773. *)
  11774. 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'
  11775. ;;
  11776. esac
  11777. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11778. hardcode_libdir_separator_CXX=:
  11779. # Commands to make compiler produce verbose output that lists
  11780. # what "hidden" libraries, object files and flags are used when
  11781. # linking a shared library.
  11782. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11783. else
  11784. # FIXME: insert proper C++ library support
  11785. ld_shlibs_CXX=no
  11786. fi
  11787. ;;
  11788. esac
  11789. ;;
  11790. psos*)
  11791. # FIXME: insert proper C++ library support
  11792. ld_shlibs_CXX=no
  11793. ;;
  11794. sunos4*)
  11795. case $cc_basename in
  11796. CC*)
  11797. # Sun C++ 4.x
  11798. # FIXME: insert proper C++ library support
  11799. ld_shlibs_CXX=no
  11800. ;;
  11801. lcc*)
  11802. # Lucid
  11803. # FIXME: insert proper C++ library support
  11804. ld_shlibs_CXX=no
  11805. ;;
  11806. *)
  11807. # FIXME: insert proper C++ library support
  11808. ld_shlibs_CXX=no
  11809. ;;
  11810. esac
  11811. ;;
  11812. solaris*)
  11813. case $cc_basename in
  11814. CC* | sunCC*)
  11815. # Sun C++ 4.2, 5.x and Centerline C++
  11816. archive_cmds_need_lc_CXX=yes
  11817. no_undefined_flag_CXX=' -zdefs'
  11818. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11819. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11820. $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'
  11821. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11822. hardcode_shlibpath_var_CXX=no
  11823. case $host_os in
  11824. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11825. *)
  11826. # The compiler driver will combine and reorder linker options,
  11827. # but understands `-z linker_flag'.
  11828. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11829. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11830. ;;
  11831. esac
  11832. link_all_deplibs_CXX=yes
  11833. output_verbose_link_cmd='func_echo_all'
  11834. # Archives containing C++ object files must be created using
  11835. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11836. # necessary to make sure instantiated templates are included
  11837. # in the archive.
  11838. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11839. ;;
  11840. gcx*)
  11841. # Green Hills C++ Compiler
  11842. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11843. # The C++ compiler must be used to create the archive.
  11844. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11845. ;;
  11846. *)
  11847. # GNU C++ compiler with Solaris linker
  11848. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11849. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11850. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11851. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11852. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11853. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11854. # Commands to make compiler produce verbose output that lists
  11855. # what "hidden" libraries, object files and flags are used when
  11856. # linking a shared library.
  11857. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11858. else
  11859. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11860. # platform.
  11861. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11862. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11863. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11864. # Commands to make compiler produce verbose output that lists
  11865. # what "hidden" libraries, object files and flags are used when
  11866. # linking a shared library.
  11867. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11868. fi
  11869. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11870. case $host_os in
  11871. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11872. *)
  11873. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11874. ;;
  11875. esac
  11876. fi
  11877. ;;
  11878. esac
  11879. ;;
  11880. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11881. no_undefined_flag_CXX='${wl}-z,text'
  11882. archive_cmds_need_lc_CXX=no
  11883. hardcode_shlibpath_var_CXX=no
  11884. runpath_var='LD_RUN_PATH'
  11885. case $cc_basename in
  11886. CC*)
  11887. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11888. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11889. ;;
  11890. *)
  11891. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11892. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11893. ;;
  11894. esac
  11895. ;;
  11896. sysv5* | sco3.2v5* | sco5v6*)
  11897. # Note: We can NOT use -z defs as we might desire, because we do not
  11898. # link with -lc, and that would cause any symbols used from libc to
  11899. # always be unresolved, which means just about no library would
  11900. # ever link correctly. If we're not using GNU ld we use -z text
  11901. # though, which does catch some bad symbols but isn't as heavy-handed
  11902. # as -z defs.
  11903. no_undefined_flag_CXX='${wl}-z,text'
  11904. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11905. archive_cmds_need_lc_CXX=no
  11906. hardcode_shlibpath_var_CXX=no
  11907. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11908. hardcode_libdir_separator_CXX=':'
  11909. link_all_deplibs_CXX=yes
  11910. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11911. runpath_var='LD_RUN_PATH'
  11912. case $cc_basename in
  11913. CC*)
  11914. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11915. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11916. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11917. '"$old_archive_cmds_CXX"
  11918. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11919. '"$reload_cmds_CXX"
  11920. ;;
  11921. *)
  11922. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11923. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11924. ;;
  11925. esac
  11926. ;;
  11927. tandem*)
  11928. case $cc_basename in
  11929. NCC*)
  11930. # NonStop-UX NCC 3.20
  11931. # FIXME: insert proper C++ library support
  11932. ld_shlibs_CXX=no
  11933. ;;
  11934. *)
  11935. # FIXME: insert proper C++ library support
  11936. ld_shlibs_CXX=no
  11937. ;;
  11938. esac
  11939. ;;
  11940. vxworks*)
  11941. # FIXME: insert proper C++ library support
  11942. ld_shlibs_CXX=no
  11943. ;;
  11944. *)
  11945. # FIXME: insert proper C++ library support
  11946. ld_shlibs_CXX=no
  11947. ;;
  11948. esac
  11949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11950. $as_echo "$ld_shlibs_CXX" >&6; }
  11951. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11952. GCC_CXX="$GXX"
  11953. LD_CXX="$LD"
  11954. ## CAVEAT EMPTOR:
  11955. ## There is no encapsulation within the following macros, do not change
  11956. ## the running order or otherwise move them around unless you know exactly
  11957. ## what you are doing...
  11958. # Dependencies to place before and after the object being linked:
  11959. predep_objects_CXX=
  11960. postdep_objects_CXX=
  11961. predeps_CXX=
  11962. postdeps_CXX=
  11963. compiler_lib_search_path_CXX=
  11964. cat > conftest.$ac_ext <<_LT_EOF
  11965. class Foo
  11966. {
  11967. public:
  11968. Foo (void) { a = 0; }
  11969. private:
  11970. int a;
  11971. };
  11972. _LT_EOF
  11973. _lt_libdeps_save_CFLAGS=$CFLAGS
  11974. case "$CC $CFLAGS " in #(
  11975. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11976. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11977. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11978. esac
  11979. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11980. (eval $ac_compile) 2>&5
  11981. ac_status=$?
  11982. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11983. test $ac_status = 0; }; then
  11984. # Parse the compiler output and extract the necessary
  11985. # objects, libraries and library flags.
  11986. # Sentinel used to keep track of whether or not we are before
  11987. # the conftest object file.
  11988. pre_test_object_deps_done=no
  11989. for p in `eval "$output_verbose_link_cmd"`; do
  11990. case ${prev}${p} in
  11991. -L* | -R* | -l*)
  11992. # Some compilers place space between "-{L,R}" and the path.
  11993. # Remove the space.
  11994. if test $p = "-L" ||
  11995. test $p = "-R"; then
  11996. prev=$p
  11997. continue
  11998. fi
  11999. # Expand the sysroot to ease extracting the directories later.
  12000. if test -z "$prev"; then
  12001. case $p in
  12002. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  12003. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  12004. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  12005. esac
  12006. fi
  12007. case $p in
  12008. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  12009. esac
  12010. if test "$pre_test_object_deps_done" = no; then
  12011. case ${prev} in
  12012. -L | -R)
  12013. # Internal compiler library paths should come after those
  12014. # provided the user. The postdeps already come after the
  12015. # user supplied libs so there is no need to process them.
  12016. if test -z "$compiler_lib_search_path_CXX"; then
  12017. compiler_lib_search_path_CXX="${prev}${p}"
  12018. else
  12019. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  12020. fi
  12021. ;;
  12022. # The "-l" case would never come before the object being
  12023. # linked, so don't bother handling this case.
  12024. esac
  12025. else
  12026. if test -z "$postdeps_CXX"; then
  12027. postdeps_CXX="${prev}${p}"
  12028. else
  12029. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  12030. fi
  12031. fi
  12032. prev=
  12033. ;;
  12034. *.lto.$objext) ;; # Ignore GCC LTO objects
  12035. *.$objext)
  12036. # This assumes that the test object file only shows up
  12037. # once in the compiler output.
  12038. if test "$p" = "conftest.$objext"; then
  12039. pre_test_object_deps_done=yes
  12040. continue
  12041. fi
  12042. if test "$pre_test_object_deps_done" = no; then
  12043. if test -z "$predep_objects_CXX"; then
  12044. predep_objects_CXX="$p"
  12045. else
  12046. predep_objects_CXX="$predep_objects_CXX $p"
  12047. fi
  12048. else
  12049. if test -z "$postdep_objects_CXX"; then
  12050. postdep_objects_CXX="$p"
  12051. else
  12052. postdep_objects_CXX="$postdep_objects_CXX $p"
  12053. fi
  12054. fi
  12055. ;;
  12056. *) ;; # Ignore the rest.
  12057. esac
  12058. done
  12059. # Clean up.
  12060. rm -f a.out a.exe
  12061. else
  12062. echo "libtool.m4: error: problem compiling CXX test program"
  12063. fi
  12064. $RM -f confest.$objext
  12065. CFLAGS=$_lt_libdeps_save_CFLAGS
  12066. # PORTME: override above test on systems where it is broken
  12067. case $host_os in
  12068. interix[3-9]*)
  12069. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  12070. # hack all around it, let's just trust "g++" to DTRT.
  12071. predep_objects_CXX=
  12072. postdep_objects_CXX=
  12073. postdeps_CXX=
  12074. ;;
  12075. linux*)
  12076. case `$CC -V 2>&1 | sed 5q` in
  12077. *Sun\ C*)
  12078. # Sun C++ 5.9
  12079. # The more standards-conforming stlport4 library is
  12080. # incompatible with the Cstd library. Avoid specifying
  12081. # it if it's in CXXFLAGS. Ignore libCrun as
  12082. # -library=stlport4 depends on it.
  12083. case " $CXX $CXXFLAGS " in
  12084. *" -library=stlport4 "*)
  12085. solaris_use_stlport4=yes
  12086. ;;
  12087. esac
  12088. if test "$solaris_use_stlport4" != yes; then
  12089. postdeps_CXX='-library=Cstd -library=Crun'
  12090. fi
  12091. ;;
  12092. esac
  12093. ;;
  12094. solaris*)
  12095. case $cc_basename in
  12096. CC* | sunCC*)
  12097. # The more standards-conforming stlport4 library is
  12098. # incompatible with the Cstd library. Avoid specifying
  12099. # it if it's in CXXFLAGS. Ignore libCrun as
  12100. # -library=stlport4 depends on it.
  12101. case " $CXX $CXXFLAGS " in
  12102. *" -library=stlport4 "*)
  12103. solaris_use_stlport4=yes
  12104. ;;
  12105. esac
  12106. # Adding this requires a known-good setup of shared libraries for
  12107. # Sun compiler versions before 5.6, else PIC objects from an old
  12108. # archive will be linked into the output, leading to subtle bugs.
  12109. if test "$solaris_use_stlport4" != yes; then
  12110. postdeps_CXX='-library=Cstd -library=Crun'
  12111. fi
  12112. ;;
  12113. esac
  12114. ;;
  12115. esac
  12116. case " $postdeps_CXX " in
  12117. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  12118. esac
  12119. compiler_lib_search_dirs_CXX=
  12120. if test -n "${compiler_lib_search_path_CXX}"; then
  12121. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  12122. fi
  12123. lt_prog_compiler_wl_CXX=
  12124. lt_prog_compiler_pic_CXX=
  12125. lt_prog_compiler_static_CXX=
  12126. # C++ specific cases for pic, static, wl, etc.
  12127. if test "$GXX" = yes; then
  12128. lt_prog_compiler_wl_CXX='-Wl,'
  12129. lt_prog_compiler_static_CXX='-static'
  12130. case $host_os in
  12131. aix*)
  12132. # All AIX code is PIC.
  12133. if test "$host_cpu" = ia64; then
  12134. # AIX 5 now supports IA64 processor
  12135. lt_prog_compiler_static_CXX='-Bstatic'
  12136. fi
  12137. ;;
  12138. amigaos*)
  12139. case $host_cpu in
  12140. powerpc)
  12141. # see comment about AmigaOS4 .so support
  12142. lt_prog_compiler_pic_CXX='-fPIC'
  12143. ;;
  12144. m68k)
  12145. # FIXME: we need at least 68020 code to build shared libraries, but
  12146. # adding the `-m68020' flag to GCC prevents building anything better,
  12147. # like `-m68040'.
  12148. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  12149. ;;
  12150. esac
  12151. ;;
  12152. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12153. # PIC is the default for these OSes.
  12154. ;;
  12155. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12156. # This hack is so that the source file can tell whether it is being
  12157. # built for inclusion in a dll (and should export symbols for example).
  12158. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12159. # (--disable-auto-import) libraries
  12160. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12161. ;;
  12162. darwin* | rhapsody*)
  12163. # PIC is the default on this platform
  12164. # Common symbols not allowed in MH_DYLIB files
  12165. lt_prog_compiler_pic_CXX='-fno-common'
  12166. ;;
  12167. *djgpp*)
  12168. # DJGPP does not support shared libraries at all
  12169. lt_prog_compiler_pic_CXX=
  12170. ;;
  12171. haiku*)
  12172. # PIC is the default for Haiku.
  12173. # The "-static" flag exists, but is broken.
  12174. lt_prog_compiler_static_CXX=
  12175. ;;
  12176. interix[3-9]*)
  12177. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12178. # Instead, we relocate shared libraries at runtime.
  12179. ;;
  12180. sysv4*MP*)
  12181. if test -d /usr/nec; then
  12182. lt_prog_compiler_pic_CXX=-Kconform_pic
  12183. fi
  12184. ;;
  12185. hpux*)
  12186. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12187. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12188. # sets the default TLS model and affects inlining.
  12189. case $host_cpu in
  12190. hppa*64*)
  12191. ;;
  12192. *)
  12193. lt_prog_compiler_pic_CXX='-fPIC'
  12194. ;;
  12195. esac
  12196. ;;
  12197. *qnx* | *nto*)
  12198. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12199. # it will coredump.
  12200. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12201. ;;
  12202. *)
  12203. lt_prog_compiler_pic_CXX='-fPIC'
  12204. ;;
  12205. esac
  12206. else
  12207. case $host_os in
  12208. aix[4-9]*)
  12209. # All AIX code is PIC.
  12210. if test "$host_cpu" = ia64; then
  12211. # AIX 5 now supports IA64 processor
  12212. lt_prog_compiler_static_CXX='-Bstatic'
  12213. else
  12214. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  12215. fi
  12216. ;;
  12217. chorus*)
  12218. case $cc_basename in
  12219. cxch68*)
  12220. # Green Hills C++ Compiler
  12221. # _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"
  12222. ;;
  12223. esac
  12224. ;;
  12225. mingw* | cygwin* | os2* | pw32* | cegcc*)
  12226. # This hack is so that the source file can tell whether it is being
  12227. # built for inclusion in a dll (and should export symbols for example).
  12228. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  12229. ;;
  12230. dgux*)
  12231. case $cc_basename in
  12232. ec++*)
  12233. lt_prog_compiler_pic_CXX='-KPIC'
  12234. ;;
  12235. ghcx*)
  12236. # Green Hills C++ Compiler
  12237. lt_prog_compiler_pic_CXX='-pic'
  12238. ;;
  12239. *)
  12240. ;;
  12241. esac
  12242. ;;
  12243. freebsd* | dragonfly*)
  12244. # FreeBSD uses GNU C++
  12245. ;;
  12246. hpux9* | hpux10* | hpux11*)
  12247. case $cc_basename in
  12248. CC*)
  12249. lt_prog_compiler_wl_CXX='-Wl,'
  12250. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12251. if test "$host_cpu" != ia64; then
  12252. lt_prog_compiler_pic_CXX='+Z'
  12253. fi
  12254. ;;
  12255. aCC*)
  12256. lt_prog_compiler_wl_CXX='-Wl,'
  12257. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12258. case $host_cpu in
  12259. hppa*64*|ia64*)
  12260. # +Z the default
  12261. ;;
  12262. *)
  12263. lt_prog_compiler_pic_CXX='+Z'
  12264. ;;
  12265. esac
  12266. ;;
  12267. *)
  12268. ;;
  12269. esac
  12270. ;;
  12271. interix*)
  12272. # This is c89, which is MS Visual C++ (no shared libs)
  12273. # Anyone wants to do a port?
  12274. ;;
  12275. irix5* | irix6* | nonstopux*)
  12276. case $cc_basename in
  12277. CC*)
  12278. lt_prog_compiler_wl_CXX='-Wl,'
  12279. lt_prog_compiler_static_CXX='-non_shared'
  12280. # CC pic flag -KPIC is the default.
  12281. ;;
  12282. *)
  12283. ;;
  12284. esac
  12285. ;;
  12286. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12287. case $cc_basename in
  12288. KCC*)
  12289. # KAI C++ Compiler
  12290. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12291. lt_prog_compiler_pic_CXX='-fPIC'
  12292. ;;
  12293. ecpc* )
  12294. # old Intel C++ for x86_64 which still supported -KPIC.
  12295. lt_prog_compiler_wl_CXX='-Wl,'
  12296. lt_prog_compiler_pic_CXX='-KPIC'
  12297. lt_prog_compiler_static_CXX='-static'
  12298. ;;
  12299. icpc* )
  12300. # Intel C++, used to be incompatible with GCC.
  12301. # ICC 10 doesn't accept -KPIC any more.
  12302. lt_prog_compiler_wl_CXX='-Wl,'
  12303. lt_prog_compiler_pic_CXX='-fPIC'
  12304. lt_prog_compiler_static_CXX='-static'
  12305. ;;
  12306. pgCC* | pgcpp*)
  12307. # Portland Group C++ compiler
  12308. lt_prog_compiler_wl_CXX='-Wl,'
  12309. lt_prog_compiler_pic_CXX='-fpic'
  12310. lt_prog_compiler_static_CXX='-Bstatic'
  12311. ;;
  12312. cxx*)
  12313. # Compaq C++
  12314. # Make sure the PIC flag is empty. It appears that all Alpha
  12315. # Linux and Compaq Tru64 Unix objects are PIC.
  12316. lt_prog_compiler_pic_CXX=
  12317. lt_prog_compiler_static_CXX='-non_shared'
  12318. ;;
  12319. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12320. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12321. lt_prog_compiler_wl_CXX='-Wl,'
  12322. lt_prog_compiler_pic_CXX='-qpic'
  12323. lt_prog_compiler_static_CXX='-qstaticlink'
  12324. ;;
  12325. *)
  12326. case `$CC -V 2>&1 | sed 5q` in
  12327. *Sun\ C*)
  12328. # Sun C++ 5.9
  12329. lt_prog_compiler_pic_CXX='-KPIC'
  12330. lt_prog_compiler_static_CXX='-Bstatic'
  12331. lt_prog_compiler_wl_CXX='-Qoption ld '
  12332. ;;
  12333. esac
  12334. ;;
  12335. esac
  12336. ;;
  12337. lynxos*)
  12338. ;;
  12339. m88k*)
  12340. ;;
  12341. mvs*)
  12342. case $cc_basename in
  12343. cxx*)
  12344. lt_prog_compiler_pic_CXX='-W c,exportall'
  12345. ;;
  12346. *)
  12347. ;;
  12348. esac
  12349. ;;
  12350. netbsd* | netbsdelf*-gnu)
  12351. ;;
  12352. *qnx* | *nto*)
  12353. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12354. # it will coredump.
  12355. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12356. ;;
  12357. osf3* | osf4* | osf5*)
  12358. case $cc_basename in
  12359. KCC*)
  12360. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12361. ;;
  12362. RCC*)
  12363. # Rational C++ 2.4.1
  12364. lt_prog_compiler_pic_CXX='-pic'
  12365. ;;
  12366. cxx*)
  12367. # Digital/Compaq C++
  12368. lt_prog_compiler_wl_CXX='-Wl,'
  12369. # Make sure the PIC flag is empty. It appears that all Alpha
  12370. # Linux and Compaq Tru64 Unix objects are PIC.
  12371. lt_prog_compiler_pic_CXX=
  12372. lt_prog_compiler_static_CXX='-non_shared'
  12373. ;;
  12374. *)
  12375. ;;
  12376. esac
  12377. ;;
  12378. psos*)
  12379. ;;
  12380. solaris*)
  12381. case $cc_basename in
  12382. CC* | sunCC*)
  12383. # Sun C++ 4.2, 5.x and Centerline C++
  12384. lt_prog_compiler_pic_CXX='-KPIC'
  12385. lt_prog_compiler_static_CXX='-Bstatic'
  12386. lt_prog_compiler_wl_CXX='-Qoption ld '
  12387. ;;
  12388. gcx*)
  12389. # Green Hills C++ Compiler
  12390. lt_prog_compiler_pic_CXX='-PIC'
  12391. ;;
  12392. *)
  12393. ;;
  12394. esac
  12395. ;;
  12396. sunos4*)
  12397. case $cc_basename in
  12398. CC*)
  12399. # Sun C++ 4.x
  12400. lt_prog_compiler_pic_CXX='-pic'
  12401. lt_prog_compiler_static_CXX='-Bstatic'
  12402. ;;
  12403. lcc*)
  12404. # Lucid
  12405. lt_prog_compiler_pic_CXX='-pic'
  12406. ;;
  12407. *)
  12408. ;;
  12409. esac
  12410. ;;
  12411. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12412. case $cc_basename in
  12413. CC*)
  12414. lt_prog_compiler_wl_CXX='-Wl,'
  12415. lt_prog_compiler_pic_CXX='-KPIC'
  12416. lt_prog_compiler_static_CXX='-Bstatic'
  12417. ;;
  12418. esac
  12419. ;;
  12420. tandem*)
  12421. case $cc_basename in
  12422. NCC*)
  12423. # NonStop-UX NCC 3.20
  12424. lt_prog_compiler_pic_CXX='-KPIC'
  12425. ;;
  12426. *)
  12427. ;;
  12428. esac
  12429. ;;
  12430. vxworks*)
  12431. ;;
  12432. *)
  12433. lt_prog_compiler_can_build_shared_CXX=no
  12434. ;;
  12435. esac
  12436. fi
  12437. case $host_os in
  12438. # For platforms which do not support PIC, -DPIC is meaningless:
  12439. *djgpp*)
  12440. lt_prog_compiler_pic_CXX=
  12441. ;;
  12442. *)
  12443. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12444. ;;
  12445. esac
  12446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12447. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12448. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12449. $as_echo_n "(cached) " >&6
  12450. else
  12451. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12452. fi
  12453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12454. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12455. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12456. #
  12457. # Check to make sure the PIC flag actually works.
  12458. #
  12459. if test -n "$lt_prog_compiler_pic_CXX"; then
  12460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12461. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12462. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12463. $as_echo_n "(cached) " >&6
  12464. else
  12465. lt_cv_prog_compiler_pic_works_CXX=no
  12466. ac_outfile=conftest.$ac_objext
  12467. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12468. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12469. # Insert the option either (1) after the last *FLAGS variable, or
  12470. # (2) before a word containing "conftest.", or (3) at the end.
  12471. # Note that $ac_compile itself does not contain backslashes and begins
  12472. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12473. # The option is referenced via a variable to avoid confusing sed.
  12474. lt_compile=`echo "$ac_compile" | $SED \
  12475. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12476. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12477. -e 's:$: $lt_compiler_flag:'`
  12478. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12479. (eval "$lt_compile" 2>conftest.err)
  12480. ac_status=$?
  12481. cat conftest.err >&5
  12482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12483. if (exit $ac_status) && test -s "$ac_outfile"; then
  12484. # The compiler can only warn and ignore the option if not recognized
  12485. # So say no if there are warnings other than the usual output.
  12486. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12487. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12488. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12489. lt_cv_prog_compiler_pic_works_CXX=yes
  12490. fi
  12491. fi
  12492. $RM conftest*
  12493. fi
  12494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12495. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12496. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12497. case $lt_prog_compiler_pic_CXX in
  12498. "" | " "*) ;;
  12499. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12500. esac
  12501. else
  12502. lt_prog_compiler_pic_CXX=
  12503. lt_prog_compiler_can_build_shared_CXX=no
  12504. fi
  12505. fi
  12506. #
  12507. # Check to make sure the static flag actually works.
  12508. #
  12509. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12511. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12512. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12513. $as_echo_n "(cached) " >&6
  12514. else
  12515. lt_cv_prog_compiler_static_works_CXX=no
  12516. save_LDFLAGS="$LDFLAGS"
  12517. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12518. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12519. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12520. # The linker can only warn and ignore the option if not recognized
  12521. # So say no if there are warnings
  12522. if test -s conftest.err; then
  12523. # Append any errors to the config.log.
  12524. cat conftest.err 1>&5
  12525. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12526. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12527. if diff conftest.exp conftest.er2 >/dev/null; then
  12528. lt_cv_prog_compiler_static_works_CXX=yes
  12529. fi
  12530. else
  12531. lt_cv_prog_compiler_static_works_CXX=yes
  12532. fi
  12533. fi
  12534. $RM -r conftest*
  12535. LDFLAGS="$save_LDFLAGS"
  12536. fi
  12537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12538. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12539. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12540. :
  12541. else
  12542. lt_prog_compiler_static_CXX=
  12543. fi
  12544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12545. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12546. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12547. $as_echo_n "(cached) " >&6
  12548. else
  12549. lt_cv_prog_compiler_c_o_CXX=no
  12550. $RM -r conftest 2>/dev/null
  12551. mkdir conftest
  12552. cd conftest
  12553. mkdir out
  12554. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12555. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12556. # Insert the option either (1) after the last *FLAGS variable, or
  12557. # (2) before a word containing "conftest.", or (3) at the end.
  12558. # Note that $ac_compile itself does not contain backslashes and begins
  12559. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12560. lt_compile=`echo "$ac_compile" | $SED \
  12561. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12562. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12563. -e 's:$: $lt_compiler_flag:'`
  12564. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12565. (eval "$lt_compile" 2>out/conftest.err)
  12566. ac_status=$?
  12567. cat out/conftest.err >&5
  12568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12569. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12570. then
  12571. # The compiler can only warn and ignore the option if not recognized
  12572. # So say no if there are warnings
  12573. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12574. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12575. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12576. lt_cv_prog_compiler_c_o_CXX=yes
  12577. fi
  12578. fi
  12579. chmod u+w . 2>&5
  12580. $RM conftest*
  12581. # SGI C++ compiler will create directory out/ii_files/ for
  12582. # template instantiation
  12583. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12584. $RM out/* && rmdir out
  12585. cd ..
  12586. $RM -r conftest
  12587. $RM conftest*
  12588. fi
  12589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12590. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12592. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12593. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12594. $as_echo_n "(cached) " >&6
  12595. else
  12596. lt_cv_prog_compiler_c_o_CXX=no
  12597. $RM -r conftest 2>/dev/null
  12598. mkdir conftest
  12599. cd conftest
  12600. mkdir out
  12601. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12602. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12603. # Insert the option either (1) after the last *FLAGS variable, or
  12604. # (2) before a word containing "conftest.", or (3) at the end.
  12605. # Note that $ac_compile itself does not contain backslashes and begins
  12606. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12607. lt_compile=`echo "$ac_compile" | $SED \
  12608. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12609. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12610. -e 's:$: $lt_compiler_flag:'`
  12611. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12612. (eval "$lt_compile" 2>out/conftest.err)
  12613. ac_status=$?
  12614. cat out/conftest.err >&5
  12615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12616. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12617. then
  12618. # The compiler can only warn and ignore the option if not recognized
  12619. # So say no if there are warnings
  12620. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12621. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12622. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12623. lt_cv_prog_compiler_c_o_CXX=yes
  12624. fi
  12625. fi
  12626. chmod u+w . 2>&5
  12627. $RM conftest*
  12628. # SGI C++ compiler will create directory out/ii_files/ for
  12629. # template instantiation
  12630. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12631. $RM out/* && rmdir out
  12632. cd ..
  12633. $RM -r conftest
  12634. $RM conftest*
  12635. fi
  12636. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12637. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12638. hard_links="nottested"
  12639. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12640. # do not overwrite the value of need_locks provided by the user
  12641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12642. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12643. hard_links=yes
  12644. $RM conftest*
  12645. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12646. touch conftest.a
  12647. ln conftest.a conftest.b 2>&5 || hard_links=no
  12648. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12650. $as_echo "$hard_links" >&6; }
  12651. if test "$hard_links" = no; then
  12652. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12653. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12654. need_locks=warn
  12655. fi
  12656. else
  12657. need_locks=no
  12658. fi
  12659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12660. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12661. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12662. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12663. case $host_os in
  12664. aix[4-9]*)
  12665. # If we're using GNU nm, then we don't want the "-C" option.
  12666. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12667. # Also, AIX nm treats weak defined symbols like other global defined
  12668. # symbols, whereas GNU nm marks them as "W".
  12669. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12670. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12671. else
  12672. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12673. fi
  12674. ;;
  12675. pw32*)
  12676. export_symbols_cmds_CXX="$ltdll_cmds"
  12677. ;;
  12678. cygwin* | mingw* | cegcc*)
  12679. case $cc_basename in
  12680. cl*)
  12681. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12682. ;;
  12683. *)
  12684. 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'
  12685. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12686. ;;
  12687. esac
  12688. ;;
  12689. linux* | k*bsd*-gnu | gnu*)
  12690. link_all_deplibs_CXX=no
  12691. ;;
  12692. *)
  12693. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12694. ;;
  12695. esac
  12696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12697. $as_echo "$ld_shlibs_CXX" >&6; }
  12698. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12699. with_gnu_ld_CXX=$with_gnu_ld
  12700. #
  12701. # Do we need to explicitly link libc?
  12702. #
  12703. case "x$archive_cmds_need_lc_CXX" in
  12704. x|xyes)
  12705. # Assume -lc should be added
  12706. archive_cmds_need_lc_CXX=yes
  12707. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12708. case $archive_cmds_CXX in
  12709. *'~'*)
  12710. # FIXME: we may have to deal with multi-command sequences.
  12711. ;;
  12712. '$CC '*)
  12713. # Test whether the compiler implicitly links with -lc since on some
  12714. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12715. # to ld, don't add -lc before -lgcc.
  12716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12717. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12718. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12719. $as_echo_n "(cached) " >&6
  12720. else
  12721. $RM conftest*
  12722. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12723. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12724. (eval $ac_compile) 2>&5
  12725. ac_status=$?
  12726. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12727. test $ac_status = 0; } 2>conftest.err; then
  12728. soname=conftest
  12729. lib=conftest
  12730. libobjs=conftest.$ac_objext
  12731. deplibs=
  12732. wl=$lt_prog_compiler_wl_CXX
  12733. pic_flag=$lt_prog_compiler_pic_CXX
  12734. compiler_flags=-v
  12735. linker_flags=-v
  12736. verstring=
  12737. output_objdir=.
  12738. libname=conftest
  12739. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12740. allow_undefined_flag_CXX=
  12741. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12742. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12743. ac_status=$?
  12744. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12745. test $ac_status = 0; }
  12746. then
  12747. lt_cv_archive_cmds_need_lc_CXX=no
  12748. else
  12749. lt_cv_archive_cmds_need_lc_CXX=yes
  12750. fi
  12751. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12752. else
  12753. cat conftest.err 1>&5
  12754. fi
  12755. $RM conftest*
  12756. fi
  12757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12758. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12759. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12760. ;;
  12761. esac
  12762. fi
  12763. ;;
  12764. esac
  12765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12766. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12767. library_names_spec=
  12768. libname_spec='lib$name'
  12769. soname_spec=
  12770. shrext_cmds=".so"
  12771. postinstall_cmds=
  12772. postuninstall_cmds=
  12773. finish_cmds=
  12774. finish_eval=
  12775. shlibpath_var=
  12776. shlibpath_overrides_runpath=unknown
  12777. version_type=none
  12778. dynamic_linker="$host_os ld.so"
  12779. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12780. need_lib_prefix=unknown
  12781. hardcode_into_libs=no
  12782. # when you set need_version to no, make sure it does not cause -set_version
  12783. # flags to be left without arguments
  12784. need_version=unknown
  12785. case $host_os in
  12786. aix3*)
  12787. version_type=linux # correct to gnu/linux during the next big refactor
  12788. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12789. shlibpath_var=LIBPATH
  12790. # AIX 3 has no versioning support, so we append a major version to the name.
  12791. soname_spec='${libname}${release}${shared_ext}$major'
  12792. ;;
  12793. aix[4-9]*)
  12794. version_type=linux # correct to gnu/linux during the next big refactor
  12795. need_lib_prefix=no
  12796. need_version=no
  12797. hardcode_into_libs=yes
  12798. if test "$host_cpu" = ia64; then
  12799. # AIX 5 supports IA64
  12800. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12801. shlibpath_var=LD_LIBRARY_PATH
  12802. else
  12803. # With GCC up to 2.95.x, collect2 would create an import file
  12804. # for dependence libraries. The import file would start with
  12805. # the line `#! .'. This would cause the generated library to
  12806. # depend on `.', always an invalid library. This was fixed in
  12807. # development snapshots of GCC prior to 3.0.
  12808. case $host_os in
  12809. aix4 | aix4.[01] | aix4.[01].*)
  12810. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12811. echo ' yes '
  12812. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12813. :
  12814. else
  12815. can_build_shared=no
  12816. fi
  12817. ;;
  12818. esac
  12819. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12820. # soname into executable. Probably we can add versioning support to
  12821. # collect2, so additional links can be useful in future.
  12822. if test "$aix_use_runtimelinking" = yes; then
  12823. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12824. # instead of lib<name>.a to let people know that these are not
  12825. # typical AIX shared libraries.
  12826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12827. else
  12828. # We preserve .a as extension for shared libraries through AIX4.2
  12829. # and later when we are not doing run time linking.
  12830. library_names_spec='${libname}${release}.a $libname.a'
  12831. soname_spec='${libname}${release}${shared_ext}$major'
  12832. fi
  12833. shlibpath_var=LIBPATH
  12834. fi
  12835. ;;
  12836. amigaos*)
  12837. case $host_cpu in
  12838. powerpc)
  12839. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12840. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12841. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12842. ;;
  12843. m68k)
  12844. library_names_spec='$libname.ixlibrary $libname.a'
  12845. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12846. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12847. ;;
  12848. esac
  12849. ;;
  12850. beos*)
  12851. library_names_spec='${libname}${shared_ext}'
  12852. dynamic_linker="$host_os ld.so"
  12853. shlibpath_var=LIBRARY_PATH
  12854. ;;
  12855. bsdi[45]*)
  12856. version_type=linux # correct to gnu/linux during the next big refactor
  12857. need_version=no
  12858. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12859. soname_spec='${libname}${release}${shared_ext}$major'
  12860. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12861. shlibpath_var=LD_LIBRARY_PATH
  12862. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12863. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12864. # the default ld.so.conf also contains /usr/contrib/lib and
  12865. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12866. # libtool to hard-code these into programs
  12867. ;;
  12868. cygwin* | mingw* | pw32* | cegcc*)
  12869. version_type=windows
  12870. shrext_cmds=".dll"
  12871. need_version=no
  12872. need_lib_prefix=no
  12873. case $GCC,$cc_basename in
  12874. yes,*)
  12875. # gcc
  12876. library_names_spec='$libname.dll.a'
  12877. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12878. postinstall_cmds='base_file=`basename \${file}`~
  12879. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12880. dldir=$destdir/`dirname \$dlpath`~
  12881. test -d \$dldir || mkdir -p \$dldir~
  12882. $install_prog $dir/$dlname \$dldir/$dlname~
  12883. chmod a+x \$dldir/$dlname~
  12884. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12885. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12886. fi'
  12887. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12888. dlpath=$dir/\$dldll~
  12889. $RM \$dlpath'
  12890. shlibpath_overrides_runpath=yes
  12891. case $host_os in
  12892. cygwin*)
  12893. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12894. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12895. ;;
  12896. mingw* | cegcc*)
  12897. # MinGW DLLs use traditional 'lib' prefix
  12898. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12899. ;;
  12900. pw32*)
  12901. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12902. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12903. ;;
  12904. esac
  12905. dynamic_linker='Win32 ld.exe'
  12906. ;;
  12907. *,cl*)
  12908. # Native MSVC
  12909. libname_spec='$name'
  12910. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12911. library_names_spec='${libname}.dll.lib'
  12912. case $build_os in
  12913. mingw*)
  12914. sys_lib_search_path_spec=
  12915. lt_save_ifs=$IFS
  12916. IFS=';'
  12917. for lt_path in $LIB
  12918. do
  12919. IFS=$lt_save_ifs
  12920. # Let DOS variable expansion print the short 8.3 style file name.
  12921. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12922. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12923. done
  12924. IFS=$lt_save_ifs
  12925. # Convert to MSYS style.
  12926. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12927. ;;
  12928. cygwin*)
  12929. # Convert to unix form, then to dos form, then back to unix form
  12930. # but this time dos style (no spaces!) so that the unix form looks
  12931. # like /cygdrive/c/PROGRA~1:/cygdr...
  12932. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12933. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12934. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12935. ;;
  12936. *)
  12937. sys_lib_search_path_spec="$LIB"
  12938. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12939. # It is most probably a Windows format PATH.
  12940. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12941. else
  12942. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12943. fi
  12944. # FIXME: find the short name or the path components, as spaces are
  12945. # common. (e.g. "Program Files" -> "PROGRA~1")
  12946. ;;
  12947. esac
  12948. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12949. postinstall_cmds='base_file=`basename \${file}`~
  12950. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12951. dldir=$destdir/`dirname \$dlpath`~
  12952. test -d \$dldir || mkdir -p \$dldir~
  12953. $install_prog $dir/$dlname \$dldir/$dlname'
  12954. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12955. dlpath=$dir/\$dldll~
  12956. $RM \$dlpath'
  12957. shlibpath_overrides_runpath=yes
  12958. dynamic_linker='Win32 link.exe'
  12959. ;;
  12960. *)
  12961. # Assume MSVC wrapper
  12962. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12963. dynamic_linker='Win32 ld.exe'
  12964. ;;
  12965. esac
  12966. # FIXME: first we should search . and the directory the executable is in
  12967. shlibpath_var=PATH
  12968. ;;
  12969. darwin* | rhapsody*)
  12970. dynamic_linker="$host_os dyld"
  12971. version_type=darwin
  12972. need_lib_prefix=no
  12973. need_version=no
  12974. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12975. soname_spec='${libname}${release}${major}$shared_ext'
  12976. shlibpath_overrides_runpath=yes
  12977. shlibpath_var=DYLD_LIBRARY_PATH
  12978. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12979. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12980. ;;
  12981. dgux*)
  12982. version_type=linux # correct to gnu/linux during the next big refactor
  12983. need_lib_prefix=no
  12984. need_version=no
  12985. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12986. soname_spec='${libname}${release}${shared_ext}$major'
  12987. shlibpath_var=LD_LIBRARY_PATH
  12988. ;;
  12989. freebsd* | dragonfly*)
  12990. # DragonFly does not have aout. When/if they implement a new
  12991. # versioning mechanism, adjust this.
  12992. if test -x /usr/bin/objformat; then
  12993. objformat=`/usr/bin/objformat`
  12994. else
  12995. case $host_os in
  12996. freebsd[23].*) objformat=aout ;;
  12997. *) objformat=elf ;;
  12998. esac
  12999. fi
  13000. version_type=freebsd-$objformat
  13001. case $version_type in
  13002. freebsd-elf*)
  13003. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13004. need_version=no
  13005. need_lib_prefix=no
  13006. ;;
  13007. freebsd-*)
  13008. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  13009. need_version=yes
  13010. ;;
  13011. esac
  13012. shlibpath_var=LD_LIBRARY_PATH
  13013. case $host_os in
  13014. freebsd2.*)
  13015. shlibpath_overrides_runpath=yes
  13016. ;;
  13017. freebsd3.[01]* | freebsdelf3.[01]*)
  13018. shlibpath_overrides_runpath=yes
  13019. hardcode_into_libs=yes
  13020. ;;
  13021. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  13022. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  13023. shlibpath_overrides_runpath=no
  13024. hardcode_into_libs=yes
  13025. ;;
  13026. *) # from 4.6 on, and DragonFly
  13027. shlibpath_overrides_runpath=yes
  13028. hardcode_into_libs=yes
  13029. ;;
  13030. esac
  13031. ;;
  13032. gnu*)
  13033. version_type=linux # correct to gnu/linux during the next big refactor
  13034. need_lib_prefix=no
  13035. need_version=no
  13036. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13037. soname_spec='${libname}${release}${shared_ext}$major'
  13038. shlibpath_var=LD_LIBRARY_PATH
  13039. shlibpath_overrides_runpath=no
  13040. hardcode_into_libs=yes
  13041. ;;
  13042. haiku*)
  13043. version_type=linux # correct to gnu/linux during the next big refactor
  13044. need_lib_prefix=no
  13045. need_version=no
  13046. dynamic_linker="$host_os runtime_loader"
  13047. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  13048. soname_spec='${libname}${release}${shared_ext}$major'
  13049. shlibpath_var=LIBRARY_PATH
  13050. shlibpath_overrides_runpath=yes
  13051. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  13052. hardcode_into_libs=yes
  13053. ;;
  13054. hpux9* | hpux10* | hpux11*)
  13055. # Give a soname corresponding to the major version so that dld.sl refuses to
  13056. # link against other versions.
  13057. version_type=sunos
  13058. need_lib_prefix=no
  13059. need_version=no
  13060. case $host_cpu in
  13061. ia64*)
  13062. shrext_cmds='.so'
  13063. hardcode_into_libs=yes
  13064. dynamic_linker="$host_os dld.so"
  13065. shlibpath_var=LD_LIBRARY_PATH
  13066. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13067. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13068. soname_spec='${libname}${release}${shared_ext}$major'
  13069. if test "X$HPUX_IA64_MODE" = X32; then
  13070. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  13071. else
  13072. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  13073. fi
  13074. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13075. ;;
  13076. hppa*64*)
  13077. shrext_cmds='.sl'
  13078. hardcode_into_libs=yes
  13079. dynamic_linker="$host_os dld.sl"
  13080. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  13081. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  13082. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13083. soname_spec='${libname}${release}${shared_ext}$major'
  13084. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  13085. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  13086. ;;
  13087. *)
  13088. shrext_cmds='.sl'
  13089. dynamic_linker="$host_os dld.sl"
  13090. shlibpath_var=SHLIB_PATH
  13091. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  13092. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13093. soname_spec='${libname}${release}${shared_ext}$major'
  13094. ;;
  13095. esac
  13096. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  13097. postinstall_cmds='chmod 555 $lib'
  13098. # or fails outright, so override atomically:
  13099. install_override_mode=555
  13100. ;;
  13101. interix[3-9]*)
  13102. version_type=linux # correct to gnu/linux during the next big refactor
  13103. need_lib_prefix=no
  13104. need_version=no
  13105. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13106. soname_spec='${libname}${release}${shared_ext}$major'
  13107. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  13108. shlibpath_var=LD_LIBRARY_PATH
  13109. shlibpath_overrides_runpath=no
  13110. hardcode_into_libs=yes
  13111. ;;
  13112. irix5* | irix6* | nonstopux*)
  13113. case $host_os in
  13114. nonstopux*) version_type=nonstopux ;;
  13115. *)
  13116. if test "$lt_cv_prog_gnu_ld" = yes; then
  13117. version_type=linux # correct to gnu/linux during the next big refactor
  13118. else
  13119. version_type=irix
  13120. fi ;;
  13121. esac
  13122. need_lib_prefix=no
  13123. need_version=no
  13124. soname_spec='${libname}${release}${shared_ext}$major'
  13125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  13126. case $host_os in
  13127. irix5* | nonstopux*)
  13128. libsuff= shlibsuff=
  13129. ;;
  13130. *)
  13131. case $LD in # libtool.m4 will add one of these switches to LD
  13132. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  13133. libsuff= shlibsuff= libmagic=32-bit;;
  13134. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  13135. libsuff=32 shlibsuff=N32 libmagic=N32;;
  13136. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  13137. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  13138. *) libsuff= shlibsuff= libmagic=never-match;;
  13139. esac
  13140. ;;
  13141. esac
  13142. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  13143. shlibpath_overrides_runpath=no
  13144. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  13145. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  13146. hardcode_into_libs=yes
  13147. ;;
  13148. # No shared lib support for Linux oldld, aout, or coff.
  13149. linux*oldld* | linux*aout* | linux*coff*)
  13150. dynamic_linker=no
  13151. ;;
  13152. # This must be glibc/ELF.
  13153. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  13154. version_type=linux # correct to gnu/linux during the next big refactor
  13155. need_lib_prefix=no
  13156. need_version=no
  13157. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13158. soname_spec='${libname}${release}${shared_ext}$major'
  13159. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  13160. shlibpath_var=LD_LIBRARY_PATH
  13161. shlibpath_overrides_runpath=no
  13162. # Some binutils ld are patched to set DT_RUNPATH
  13163. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  13164. $as_echo_n "(cached) " >&6
  13165. else
  13166. lt_cv_shlibpath_overrides_runpath=no
  13167. save_LDFLAGS=$LDFLAGS
  13168. save_libdir=$libdir
  13169. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  13170. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  13171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13172. /* end confdefs.h. */
  13173. int
  13174. main ()
  13175. {
  13176. ;
  13177. return 0;
  13178. }
  13179. _ACEOF
  13180. if ac_fn_cxx_try_link "$LINENO"; then :
  13181. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  13182. lt_cv_shlibpath_overrides_runpath=yes
  13183. fi
  13184. fi
  13185. rm -f core conftest.err conftest.$ac_objext \
  13186. conftest$ac_exeext conftest.$ac_ext
  13187. LDFLAGS=$save_LDFLAGS
  13188. libdir=$save_libdir
  13189. fi
  13190. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  13191. # This implies no fast_install, which is unacceptable.
  13192. # Some rework will be needed to allow for fast_install
  13193. # before this can be enabled.
  13194. hardcode_into_libs=yes
  13195. # Append ld.so.conf contents to the search path
  13196. if test -f /etc/ld.so.conf; then
  13197. 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' ' '`
  13198. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  13199. fi
  13200. # We used to test for /lib/ld.so.1 and disable shared libraries on
  13201. # powerpc, because MkLinux only supported shared libraries with the
  13202. # GNU dynamic linker. Since this was broken with cross compilers,
  13203. # most powerpc-linux boxes support dynamic linking these days and
  13204. # people can always --disable-shared, the test was removed, and we
  13205. # assume the GNU/Linux dynamic linker is in use.
  13206. dynamic_linker='GNU/Linux ld.so'
  13207. ;;
  13208. netbsdelf*-gnu)
  13209. version_type=linux
  13210. need_lib_prefix=no
  13211. need_version=no
  13212. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13213. soname_spec='${libname}${release}${shared_ext}$major'
  13214. shlibpath_var=LD_LIBRARY_PATH
  13215. shlibpath_overrides_runpath=no
  13216. hardcode_into_libs=yes
  13217. dynamic_linker='NetBSD ld.elf_so'
  13218. ;;
  13219. netbsd*)
  13220. version_type=sunos
  13221. need_lib_prefix=no
  13222. need_version=no
  13223. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13224. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13225. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13226. dynamic_linker='NetBSD (a.out) ld.so'
  13227. else
  13228. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  13229. soname_spec='${libname}${release}${shared_ext}$major'
  13230. dynamic_linker='NetBSD ld.elf_so'
  13231. fi
  13232. shlibpath_var=LD_LIBRARY_PATH
  13233. shlibpath_overrides_runpath=yes
  13234. hardcode_into_libs=yes
  13235. ;;
  13236. newsos6)
  13237. version_type=linux # correct to gnu/linux during the next big refactor
  13238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13239. shlibpath_var=LD_LIBRARY_PATH
  13240. shlibpath_overrides_runpath=yes
  13241. ;;
  13242. *nto* | *qnx*)
  13243. version_type=qnx
  13244. need_lib_prefix=no
  13245. need_version=no
  13246. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13247. soname_spec='${libname}${release}${shared_ext}$major'
  13248. shlibpath_var=LD_LIBRARY_PATH
  13249. shlibpath_overrides_runpath=no
  13250. hardcode_into_libs=yes
  13251. dynamic_linker='ldqnx.so'
  13252. ;;
  13253. openbsd*)
  13254. version_type=sunos
  13255. sys_lib_dlsearch_path_spec="/usr/lib"
  13256. need_lib_prefix=no
  13257. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  13258. case $host_os in
  13259. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13260. *) need_version=no ;;
  13261. esac
  13262. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13263. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13264. shlibpath_var=LD_LIBRARY_PATH
  13265. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13266. case $host_os in
  13267. openbsd2.[89] | openbsd2.[89].*)
  13268. shlibpath_overrides_runpath=no
  13269. ;;
  13270. *)
  13271. shlibpath_overrides_runpath=yes
  13272. ;;
  13273. esac
  13274. else
  13275. shlibpath_overrides_runpath=yes
  13276. fi
  13277. ;;
  13278. os2*)
  13279. libname_spec='$name'
  13280. shrext_cmds=".dll"
  13281. need_lib_prefix=no
  13282. library_names_spec='$libname${shared_ext} $libname.a'
  13283. dynamic_linker='OS/2 ld.exe'
  13284. shlibpath_var=LIBPATH
  13285. ;;
  13286. osf3* | osf4* | osf5*)
  13287. version_type=osf
  13288. need_lib_prefix=no
  13289. need_version=no
  13290. soname_spec='${libname}${release}${shared_ext}$major'
  13291. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13292. shlibpath_var=LD_LIBRARY_PATH
  13293. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13294. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13295. ;;
  13296. rdos*)
  13297. dynamic_linker=no
  13298. ;;
  13299. solaris*)
  13300. version_type=linux # correct to gnu/linux during the next big refactor
  13301. need_lib_prefix=no
  13302. need_version=no
  13303. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13304. soname_spec='${libname}${release}${shared_ext}$major'
  13305. shlibpath_var=LD_LIBRARY_PATH
  13306. shlibpath_overrides_runpath=yes
  13307. hardcode_into_libs=yes
  13308. # ldd complains unless libraries are executable
  13309. postinstall_cmds='chmod +x $lib'
  13310. ;;
  13311. sunos4*)
  13312. version_type=sunos
  13313. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13314. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13315. shlibpath_var=LD_LIBRARY_PATH
  13316. shlibpath_overrides_runpath=yes
  13317. if test "$with_gnu_ld" = yes; then
  13318. need_lib_prefix=no
  13319. fi
  13320. need_version=yes
  13321. ;;
  13322. sysv4 | sysv4.3*)
  13323. version_type=linux # correct to gnu/linux during the next big refactor
  13324. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13325. soname_spec='${libname}${release}${shared_ext}$major'
  13326. shlibpath_var=LD_LIBRARY_PATH
  13327. case $host_vendor in
  13328. sni)
  13329. shlibpath_overrides_runpath=no
  13330. need_lib_prefix=no
  13331. runpath_var=LD_RUN_PATH
  13332. ;;
  13333. siemens)
  13334. need_lib_prefix=no
  13335. ;;
  13336. motorola)
  13337. need_lib_prefix=no
  13338. need_version=no
  13339. shlibpath_overrides_runpath=no
  13340. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13341. ;;
  13342. esac
  13343. ;;
  13344. sysv4*MP*)
  13345. if test -d /usr/nec ;then
  13346. version_type=linux # correct to gnu/linux during the next big refactor
  13347. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13348. soname_spec='$libname${shared_ext}.$major'
  13349. shlibpath_var=LD_LIBRARY_PATH
  13350. fi
  13351. ;;
  13352. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13353. version_type=freebsd-elf
  13354. need_lib_prefix=no
  13355. need_version=no
  13356. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13357. soname_spec='${libname}${release}${shared_ext}$major'
  13358. shlibpath_var=LD_LIBRARY_PATH
  13359. shlibpath_overrides_runpath=yes
  13360. hardcode_into_libs=yes
  13361. if test "$with_gnu_ld" = yes; then
  13362. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13363. else
  13364. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13365. case $host_os in
  13366. sco3.2v5*)
  13367. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13368. ;;
  13369. esac
  13370. fi
  13371. sys_lib_dlsearch_path_spec='/usr/lib'
  13372. ;;
  13373. tpf*)
  13374. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13375. version_type=linux # correct to gnu/linux during the next big refactor
  13376. need_lib_prefix=no
  13377. need_version=no
  13378. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13379. shlibpath_var=LD_LIBRARY_PATH
  13380. shlibpath_overrides_runpath=no
  13381. hardcode_into_libs=yes
  13382. ;;
  13383. uts4*)
  13384. version_type=linux # correct to gnu/linux during the next big refactor
  13385. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13386. soname_spec='${libname}${release}${shared_ext}$major'
  13387. shlibpath_var=LD_LIBRARY_PATH
  13388. ;;
  13389. *)
  13390. dynamic_linker=no
  13391. ;;
  13392. esac
  13393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13394. $as_echo "$dynamic_linker" >&6; }
  13395. test "$dynamic_linker" = no && can_build_shared=no
  13396. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13397. if test "$GCC" = yes; then
  13398. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13399. fi
  13400. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13401. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13402. fi
  13403. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13404. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13405. fi
  13406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13407. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13408. hardcode_action_CXX=
  13409. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13410. test -n "$runpath_var_CXX" ||
  13411. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13412. # We can hardcode non-existent directories.
  13413. if test "$hardcode_direct_CXX" != no &&
  13414. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13415. # have to relink, otherwise we might link with an installed library
  13416. # when we should be linking with a yet-to-be-installed one
  13417. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13418. test "$hardcode_minus_L_CXX" != no; then
  13419. # Linking always hardcodes the temporary library directory.
  13420. hardcode_action_CXX=relink
  13421. else
  13422. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13423. hardcode_action_CXX=immediate
  13424. fi
  13425. else
  13426. # We cannot hardcode anything, or else we can only hardcode existing
  13427. # directories.
  13428. hardcode_action_CXX=unsupported
  13429. fi
  13430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13431. $as_echo "$hardcode_action_CXX" >&6; }
  13432. if test "$hardcode_action_CXX" = relink ||
  13433. test "$inherit_rpath_CXX" = yes; then
  13434. # Fast installation is not supported
  13435. enable_fast_install=no
  13436. elif test "$shlibpath_overrides_runpath" = yes ||
  13437. test "$enable_shared" = no; then
  13438. # Fast installation is not necessary
  13439. enable_fast_install=needless
  13440. fi
  13441. fi # test -n "$compiler"
  13442. CC=$lt_save_CC
  13443. CFLAGS=$lt_save_CFLAGS
  13444. LDCXX=$LD
  13445. LD=$lt_save_LD
  13446. GCC=$lt_save_GCC
  13447. with_gnu_ld=$lt_save_with_gnu_ld
  13448. lt_cv_path_LDCXX=$lt_cv_path_LD
  13449. lt_cv_path_LD=$lt_save_path_LD
  13450. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13451. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13452. fi # test "$_lt_caught_CXX_error" != yes
  13453. ac_ext=cpp
  13454. ac_cpp='$CXXCPP $CPPFLAGS'
  13455. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13456. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13457. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13458. ac_config_commands="$ac_config_commands libtool"
  13459. # Only expand once:
  13460. # Check whether some low-level functions/files are available
  13461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13462. $as_echo_n "checking for ANSI C header files... " >&6; }
  13463. if ${ac_cv_header_stdc+:} false; then :
  13464. $as_echo_n "(cached) " >&6
  13465. else
  13466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13467. /* end confdefs.h. */
  13468. #include <stdlib.h>
  13469. #include <stdarg.h>
  13470. #include <string.h>
  13471. #include <float.h>
  13472. int
  13473. main ()
  13474. {
  13475. ;
  13476. return 0;
  13477. }
  13478. _ACEOF
  13479. if ac_fn_cxx_try_compile "$LINENO"; then :
  13480. ac_cv_header_stdc=yes
  13481. else
  13482. ac_cv_header_stdc=no
  13483. fi
  13484. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13485. if test $ac_cv_header_stdc = yes; then
  13486. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13488. /* end confdefs.h. */
  13489. #include <string.h>
  13490. _ACEOF
  13491. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13492. $EGREP "memchr" >/dev/null 2>&1; then :
  13493. else
  13494. ac_cv_header_stdc=no
  13495. fi
  13496. rm -f conftest*
  13497. fi
  13498. if test $ac_cv_header_stdc = yes; then
  13499. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13500. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13501. /* end confdefs.h. */
  13502. #include <stdlib.h>
  13503. _ACEOF
  13504. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13505. $EGREP "free" >/dev/null 2>&1; then :
  13506. else
  13507. ac_cv_header_stdc=no
  13508. fi
  13509. rm -f conftest*
  13510. fi
  13511. if test $ac_cv_header_stdc = yes; then
  13512. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13513. if test "$cross_compiling" = yes; then :
  13514. :
  13515. else
  13516. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13517. /* end confdefs.h. */
  13518. #include <ctype.h>
  13519. #include <stdlib.h>
  13520. #if ((' ' & 0x0FF) == 0x020)
  13521. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13522. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13523. #else
  13524. # define ISLOWER(c) \
  13525. (('a' <= (c) && (c) <= 'i') \
  13526. || ('j' <= (c) && (c) <= 'r') \
  13527. || ('s' <= (c) && (c) <= 'z'))
  13528. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13529. #endif
  13530. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13531. int
  13532. main ()
  13533. {
  13534. int i;
  13535. for (i = 0; i < 256; i++)
  13536. if (XOR (islower (i), ISLOWER (i))
  13537. || toupper (i) != TOUPPER (i))
  13538. return 2;
  13539. return 0;
  13540. }
  13541. _ACEOF
  13542. if ac_fn_cxx_try_run "$LINENO"; then :
  13543. else
  13544. ac_cv_header_stdc=no
  13545. fi
  13546. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13547. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13548. fi
  13549. fi
  13550. fi
  13551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13552. $as_echo "$ac_cv_header_stdc" >&6; }
  13553. if test $ac_cv_header_stdc = yes; then
  13554. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13555. fi
  13556. # These are tested for by AC_HEADER_STDC, but I check again to set the var
  13557. ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
  13558. if test "x$ac_cv_header_stdint_h" = xyes; then :
  13559. ac_cv_have_stdint_h=1
  13560. else
  13561. ac_cv_have_stdint_h=0
  13562. fi
  13563. ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  13564. if test "x$ac_cv_header_sys_types_h" = xyes; then :
  13565. ac_cv_have_systypes_h=1
  13566. else
  13567. ac_cv_have_systypes_h=0
  13568. fi
  13569. ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
  13570. if test "x$ac_cv_header_inttypes_h" = xyes; then :
  13571. ac_cv_have_inttypes_h=1
  13572. else
  13573. ac_cv_have_inttypes_h=0
  13574. fi
  13575. for ac_header in unistd.h
  13576. do :
  13577. ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  13578. if test "x$ac_cv_header_unistd_h" = xyes; then :
  13579. cat >>confdefs.h <<_ACEOF
  13580. #define HAVE_UNISTD_H 1
  13581. _ACEOF
  13582. ac_cv_have_unistd_h=1
  13583. else
  13584. ac_cv_have_unistd_h=0
  13585. fi
  13586. done
  13587. for ac_header in syscall.h
  13588. do :
  13589. ac_fn_cxx_check_header_mongrel "$LINENO" "syscall.h" "ac_cv_header_syscall_h" "$ac_includes_default"
  13590. if test "x$ac_cv_header_syscall_h" = xyes; then :
  13591. cat >>confdefs.h <<_ACEOF
  13592. #define HAVE_SYSCALL_H 1
  13593. _ACEOF
  13594. fi
  13595. done
  13596. for ac_header in sys/syscall.h
  13597. do :
  13598. ac_fn_cxx_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
  13599. if test "x$ac_cv_header_sys_syscall_h" = xyes; then :
  13600. cat >>confdefs.h <<_ACEOF
  13601. #define HAVE_SYS_SYSCALL_H 1
  13602. _ACEOF
  13603. fi
  13604. done
  13605. # For backtrace with glibc.
  13606. for ac_header in execinfo.h
  13607. do :
  13608. ac_fn_cxx_check_header_mongrel "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
  13609. if test "x$ac_cv_header_execinfo_h" = xyes; then :
  13610. cat >>confdefs.h <<_ACEOF
  13611. #define HAVE_EXECINFO_H 1
  13612. _ACEOF
  13613. fi
  13614. done
  13615. # For backtrace with libunwind.
  13616. for ac_header in libunwind.h
  13617. do :
  13618. ac_fn_cxx_check_header_mongrel "$LINENO" "libunwind.h" "ac_cv_header_libunwind_h" "$ac_includes_default"
  13619. if test "x$ac_cv_header_libunwind_h" = xyes; then :
  13620. cat >>confdefs.h <<_ACEOF
  13621. #define HAVE_LIBUNWIND_H 1
  13622. _ACEOF
  13623. ac_cv_have_libunwind_h=1
  13624. else
  13625. ac_cv_have_libunwind_h=0
  13626. fi
  13627. done
  13628. for ac_header in ucontext.h
  13629. do :
  13630. ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
  13631. if test "x$ac_cv_header_ucontext_h" = xyes; then :
  13632. cat >>confdefs.h <<_ACEOF
  13633. #define HAVE_UCONTEXT_H 1
  13634. _ACEOF
  13635. fi
  13636. done
  13637. for ac_header in sys/utsname.h
  13638. do :
  13639. ac_fn_cxx_check_header_mongrel "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
  13640. if test "x$ac_cv_header_sys_utsname_h" = xyes; then :
  13641. cat >>confdefs.h <<_ACEOF
  13642. #define HAVE_SYS_UTSNAME_H 1
  13643. _ACEOF
  13644. fi
  13645. done
  13646. for ac_header in pwd.h
  13647. do :
  13648. ac_fn_cxx_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  13649. if test "x$ac_cv_header_pwd_h" = xyes; then :
  13650. cat >>confdefs.h <<_ACEOF
  13651. #define HAVE_PWD_H 1
  13652. _ACEOF
  13653. fi
  13654. done
  13655. for ac_header in syslog.h
  13656. do :
  13657. ac_fn_cxx_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
  13658. if test "x$ac_cv_header_syslog_h" = xyes; then :
  13659. cat >>confdefs.h <<_ACEOF
  13660. #define HAVE_SYSLOG_H 1
  13661. _ACEOF
  13662. fi
  13663. done
  13664. for ac_header in sys/time.h
  13665. do :
  13666. ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  13667. if test "x$ac_cv_header_sys_time_h" = xyes; then :
  13668. cat >>confdefs.h <<_ACEOF
  13669. #define HAVE_SYS_TIME_H 1
  13670. _ACEOF
  13671. fi
  13672. done
  13673. for ac_header in glob.h
  13674. do :
  13675. ac_fn_cxx_check_header_mongrel "$LINENO" "glob.h" "ac_cv_header_glob_h" "$ac_includes_default"
  13676. if test "x$ac_cv_header_glob_h" = xyes; then :
  13677. cat >>confdefs.h <<_ACEOF
  13678. #define HAVE_GLOB_H 1
  13679. _ACEOF
  13680. fi
  13681. done
  13682. # For backtrace with gcc.
  13683. for ac_header in unwind.h
  13684. do :
  13685. ac_fn_cxx_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
  13686. if test "x$ac_cv_header_unwind_h" = xyes; then :
  13687. cat >>confdefs.h <<_ACEOF
  13688. #define HAVE_UNWIND_H 1
  13689. _ACEOF
  13690. fi
  13691. done
  13692. ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
  13693. if test "x$ac_cv_header_windows_h" = xyes; then :
  13694. ac_cv_have_windows_h=1
  13695. else
  13696. ac_cv_have_windows_h=0
  13697. fi
  13698. if test x"$ac_cv_have_windows_h" = x"1"; then
  13699. MINGW_CFLAGS=-Isrc/windows
  13700. fi
  13701. # The cast to long int works around a bug in the HP C Compiler
  13702. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  13703. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  13704. # This bug is HP SR number 8606223364.
  13705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
  13706. $as_echo_n "checking size of void *... " >&6; }
  13707. if ${ac_cv_sizeof_void_p+:} false; then :
  13708. $as_echo_n "(cached) " >&6
  13709. else
  13710. if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
  13711. else
  13712. if test "$ac_cv_type_void_p" = yes; then
  13713. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13714. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13715. as_fn_error 77 "cannot compute sizeof (void *)
  13716. See \`config.log' for more details" "$LINENO" 5; }
  13717. else
  13718. ac_cv_sizeof_void_p=0
  13719. fi
  13720. fi
  13721. fi
  13722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
  13723. $as_echo "$ac_cv_sizeof_void_p" >&6; }
  13724. cat >>confdefs.h <<_ACEOF
  13725. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  13726. _ACEOF
  13727. # These are the types I need. We look for them in either stdint.h,
  13728. # sys/types.h, or inttypes.h, all of which are part of the default-includes.
  13729. ac_fn_cxx_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
  13730. if test "x$ac_cv_type_uint16_t" = xyes; then :
  13731. ac_cv_have_uint16_t=1
  13732. else
  13733. ac_cv_have_uint16_t=0
  13734. fi
  13735. ac_fn_cxx_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "$ac_includes_default"
  13736. if test "x$ac_cv_type_u_int16_t" = xyes; then :
  13737. ac_cv_have_u_int16_t=1
  13738. else
  13739. ac_cv_have_u_int16_t=0
  13740. fi
  13741. ac_fn_cxx_check_type "$LINENO" "__uint16" "ac_cv_type___uint16" "$ac_includes_default"
  13742. if test "x$ac_cv_type___uint16" = xyes; then :
  13743. ac_cv_have___uint16=1
  13744. else
  13745. ac_cv_have___uint16=0
  13746. fi
  13747. ac_fn_cxx_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
  13748. if test "x$ac_cv_func_sigaltstack" = xyes; then :
  13749. $as_echo "#define HAVE_SIGALTSTACK 1" >>confdefs.h
  13750. fi
  13751. ac_fn_cxx_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
  13752. if test "x$ac_cv_func_sigaction" = xyes; then :
  13753. $as_echo "#define HAVE_SIGACTION 1" >>confdefs.h
  13754. fi
  13755. ac_fn_cxx_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
  13756. if test "x$ac_cv_func_dladdr" = xyes; then :
  13757. $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
  13758. fi
  13759. ac_fn_cxx_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
  13760. if test "x$ac_cv_func_fcntl" = xyes; then :
  13761. $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
  13762. fi
  13763. ac_fn_cxx_check_func "$LINENO" "pread" "ac_cv_func_pread"
  13764. if test "x$ac_cv_func_pread" = xyes; then :
  13765. $as_echo "#define HAVE_PREAD 1" >>confdefs.h
  13766. fi
  13767. ac_fn_cxx_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
  13768. if test "x$ac_cv_func_pwrite" = xyes; then :
  13769. $as_echo "#define HAVE_PWRITE 1" >>confdefs.h
  13770. fi
  13771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
  13772. $as_echo_n "checking for __attribute__... " >&6; }
  13773. if ${ac_cv___attribute__+:} false; then :
  13774. $as_echo_n "(cached) " >&6
  13775. else
  13776. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13777. /* end confdefs.h. */
  13778. #include <stdlib.h>
  13779. static void foo(void) __attribute__ ((unused));
  13780. void foo(void) { exit(1); }
  13781. int
  13782. main ()
  13783. {
  13784. ;
  13785. return 0;
  13786. }
  13787. _ACEOF
  13788. if ac_fn_cxx_try_compile "$LINENO"; then :
  13789. ac_cv___attribute__=yes
  13790. else
  13791. ac_cv___attribute__=no
  13792. fi
  13793. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13794. fi
  13795. if test "$ac_cv___attribute__" = "yes"; then
  13796. $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
  13797. fi
  13798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
  13799. $as_echo "$ac_cv___attribute__" >&6; }
  13800. # We only care about these two attributes.
  13801. if test x"$ac_cv___attribute__" = x"yes"; then
  13802. ac_cv___attribute___noreturn="__attribute__ ((noreturn))"
  13803. ac_cv___attribute___noinline="__attribute__ ((noinline))"
  13804. ac_cv___attribute___printf_4_5="__attribute__((__format__ (__printf__, 4, 5)))"
  13805. else
  13806. ac_cv___attribute___noreturn=
  13807. ac_cv___attribute___noinline=
  13808. ac_cv___attribute___printf_4_5=
  13809. fi
  13810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_expect" >&5
  13811. $as_echo_n "checking for __builtin_expect... " >&6; }
  13812. if ${ac_cv___builtin_expect+:} false; then :
  13813. $as_echo_n "(cached) " >&6
  13814. else
  13815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13816. /* end confdefs.h. */
  13817. int foo(void) { if (__builtin_expect(0, 0)) return 1; return 0; }
  13818. int
  13819. main ()
  13820. {
  13821. ;
  13822. return 0;
  13823. }
  13824. _ACEOF
  13825. if ac_fn_cxx_try_compile "$LINENO"; then :
  13826. ac_cv___builtin_expect=yes
  13827. else
  13828. ac_cv___builtin_expect=no
  13829. fi
  13830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13831. fi
  13832. if test "$ac_cv___builtin_expect" = "yes"; then
  13833. $as_echo "#define HAVE___BUILTIN_EXPECT 1" >>confdefs.h
  13834. fi
  13835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___builtin_expect" >&5
  13836. $as_echo "$ac_cv___builtin_expect" >&6; }
  13837. if test x"$ac_cv___builtin_expect" = x"yes"; then
  13838. ac_cv_have___builtin_expect=1
  13839. else
  13840. ac_cv_have___builtin_expect=0
  13841. fi
  13842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_val_compare_and_swap" >&5
  13843. $as_echo_n "checking for __sync_val_compare_and_swap... " >&6; }
  13844. if ${ac_cv___sync_val_compare_and_swap+:} false; then :
  13845. $as_echo_n "(cached) " >&6
  13846. else
  13847. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13848. /* end confdefs.h. */
  13849. int
  13850. main ()
  13851. {
  13852. int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0;
  13853. ;
  13854. return 0;
  13855. }
  13856. _ACEOF
  13857. if ac_fn_cxx_try_link "$LINENO"; then :
  13858. ac_cv___sync_val_compare_and_swap=yes
  13859. else
  13860. ac_cv___sync_val_compare_and_swap=no
  13861. fi
  13862. rm -f core conftest.err conftest.$ac_objext \
  13863. conftest$ac_exeext conftest.$ac_ext
  13864. fi
  13865. if test "$ac_cv___sync_val_compare_and_swap" = "yes"; then
  13866. $as_echo "#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1" >>confdefs.h
  13867. fi
  13868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___sync_val_compare_and_swap" >&5
  13869. $as_echo "$ac_cv___sync_val_compare_and_swap" >&6; }
  13870. # On x86_64, instead of libunwind, we can choose to compile with frame-pointers
  13871. # (This isn't needed on i386, where -fno-omit-frame-pointer is the default).
  13872. # Check whether --enable-frame_pointers was given.
  13873. if test "${enable_frame_pointers+set}" = set; then :
  13874. enableval=$enable_frame_pointers;
  13875. else
  13876. enable_frame_pointers=no
  13877. fi
  13878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13879. /* end confdefs.h. */
  13880. int
  13881. main ()
  13882. {
  13883. return __x86_64__ == 1 ? 0 : 1
  13884. ;
  13885. return 0;
  13886. }
  13887. _ACEOF
  13888. if ac_fn_cxx_try_compile "$LINENO"; then :
  13889. is_x86_64=yes
  13890. else
  13891. is_x86_64=no
  13892. fi
  13893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13894. if test "$enable_frame_pointers" = yes; then
  13895. ENABLE_FRAME_POINTERS_TRUE=
  13896. ENABLE_FRAME_POINTERS_FALSE='#'
  13897. else
  13898. ENABLE_FRAME_POINTERS_TRUE='#'
  13899. ENABLE_FRAME_POINTERS_FALSE=
  13900. fi
  13901. if test "$is_x86_64" = yes; then
  13902. X86_64_TRUE=
  13903. X86_64_FALSE='#'
  13904. else
  13905. X86_64_TRUE='#'
  13906. X86_64_FALSE=
  13907. fi
  13908. # Check whether --enable-rtti was given.
  13909. if test "${enable_rtti+set}" = set; then :
  13910. enableval=$enable_rtti;
  13911. fi
  13912. if test x"$enable_rtti" = x"no"; then
  13913. DISABLE_RTTI_TRUE=
  13914. DISABLE_RTTI_FALSE='#'
  13915. else
  13916. DISABLE_RTTI_TRUE='#'
  13917. DISABLE_RTTI_FALSE=
  13918. fi
  13919. if test x"$enable_rtti" = x"no"; then
  13920. $as_echo "#define DISABLE_RTTI 1" >>confdefs.h
  13921. fi
  13922. # Some of the code in this directory depends on pthreads
  13923. ac_ext=c
  13924. ac_cpp='$CPP $CPPFLAGS'
  13925. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13926. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13927. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13928. acx_pthread_ok=no
  13929. # We used to check for pthread.h first, but this fails if pthread.h
  13930. # requires special compiler flags (e.g. on True64 or Sequent).
  13931. # It gets checked for in the link test anyway.
  13932. # First of all, check if the user has set any of the PTHREAD_LIBS,
  13933. # etcetera environment variables, and if threads linking works using
  13934. # them:
  13935. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  13936. save_CFLAGS="$CFLAGS"
  13937. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  13938. save_LIBS="$LIBS"
  13939. LIBS="$PTHREAD_LIBS $LIBS"
  13940. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  13941. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  13942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13943. /* end confdefs.h. */
  13944. /* Override any GCC internal prototype to avoid an error.
  13945. Use char because int might match the return type of a GCC
  13946. builtin and then its argument prototype would still apply. */
  13947. #ifdef __cplusplus
  13948. extern "C"
  13949. #endif
  13950. char pthread_join ();
  13951. int
  13952. main ()
  13953. {
  13954. return pthread_join ();
  13955. ;
  13956. return 0;
  13957. }
  13958. _ACEOF
  13959. if ac_fn_c_try_link "$LINENO"; then :
  13960. acx_pthread_ok=yes
  13961. fi
  13962. rm -f core conftest.err conftest.$ac_objext \
  13963. conftest$ac_exeext conftest.$ac_ext
  13964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  13965. $as_echo "$acx_pthread_ok" >&6; }
  13966. if test x"$acx_pthread_ok" = xno; then
  13967. PTHREAD_LIBS=""
  13968. PTHREAD_CFLAGS=""
  13969. fi
  13970. LIBS="$save_LIBS"
  13971. CFLAGS="$save_CFLAGS"
  13972. fi
  13973. # We must check for the threads library under a number of different
  13974. # names; the ordering is very important because some systems
  13975. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  13976. # libraries is broken (non-POSIX).
  13977. # Create a list of thread flags to try. Items starting with a "-" are
  13978. # C compiler flags, and other items are library names, except for "none"
  13979. # which indicates that we try without any flags at all, and "pthread-config"
  13980. # which is a program returning the flags for the Pth emulation library.
  13981. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  13982. # The ordering *is* (sometimes) important. Some notes on the
  13983. # individual items follow:
  13984. # pthreads: AIX (must check this before -lpthread)
  13985. # none: in case threads are in libc; should be tried before -Kthread and
  13986. # other compiler flags to prevent continual compiler warnings
  13987. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  13988. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  13989. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  13990. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  13991. # -pthreads: Solaris/gcc
  13992. # -mthreads: Mingw32/gcc, Lynx/gcc
  13993. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  13994. # doesn't hurt to check since this sometimes defines pthreads too;
  13995. # also defines -D_REENTRANT)
  13996. # ... -mt is also the pthreads flag for HP/aCC
  13997. # pthread: Linux, etcetera
  13998. # --thread-safe: KAI C++
  13999. # pthread-config: use pthread-config program (for GNU Pth library)
  14000. case "${host_cpu}-${host_os}" in
  14001. *solaris*)
  14002. # On Solaris (at least, for some versions), libc contains stubbed
  14003. # (non-functional) versions of the pthreads routines, so link-based
  14004. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  14005. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  14006. # a function called by this macro, so we could check for that, but
  14007. # who knows whether they'll stub that too in a future libc.) So,
  14008. # we'll just look for -pthreads and -lpthread first:
  14009. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  14010. ;;
  14011. esac
  14012. if test x"$acx_pthread_ok" = xno; then
  14013. for flag in $acx_pthread_flags; do
  14014. case $flag in
  14015. none)
  14016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  14017. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  14018. ;;
  14019. -*)
  14020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  14021. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  14022. PTHREAD_CFLAGS="$flag"
  14023. ;;
  14024. pthread-config)
  14025. # Extract the first word of "pthread-config", so it can be a program name with args.
  14026. set dummy pthread-config; ac_word=$2
  14027. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14028. $as_echo_n "checking for $ac_word... " >&6; }
  14029. if ${ac_cv_prog_acx_pthread_config+:} false; then :
  14030. $as_echo_n "(cached) " >&6
  14031. else
  14032. if test -n "$acx_pthread_config"; then
  14033. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  14034. else
  14035. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14036. for as_dir in $PATH
  14037. do
  14038. IFS=$as_save_IFS
  14039. test -z "$as_dir" && as_dir=.
  14040. for ac_exec_ext in '' $ac_executable_extensions; do
  14041. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14042. ac_cv_prog_acx_pthread_config="yes"
  14043. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14044. break 2
  14045. fi
  14046. done
  14047. done
  14048. IFS=$as_save_IFS
  14049. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  14050. fi
  14051. fi
  14052. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  14053. if test -n "$acx_pthread_config"; then
  14054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  14055. $as_echo "$acx_pthread_config" >&6; }
  14056. else
  14057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14058. $as_echo "no" >&6; }
  14059. fi
  14060. if test x"$acx_pthread_config" = xno; then continue; fi
  14061. PTHREAD_CFLAGS="`pthread-config --cflags`"
  14062. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  14063. ;;
  14064. *)
  14065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  14066. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  14067. PTHREAD_LIBS="-l$flag"
  14068. ;;
  14069. esac
  14070. save_LIBS="$LIBS"
  14071. save_CFLAGS="$CFLAGS"
  14072. LIBS="$PTHREAD_LIBS $LIBS"
  14073. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  14074. # Check for various functions. We must include pthread.h,
  14075. # since some functions may be macros. (On the Sequent, we
  14076. # need a special flag -Kthread to make this header compile.)
  14077. # We check for pthread_join because it is in -lpthread on IRIX
  14078. # while pthread_create is in libc. We check for pthread_attr_init
  14079. # due to DEC craziness with -lpthreads. We check for
  14080. # pthread_cleanup_push because it is one of the few pthread
  14081. # functions on Solaris that doesn't have a non-functional libc stub.
  14082. # We try pthread_create on general principles.
  14083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14084. /* end confdefs.h. */
  14085. #include <pthread.h>
  14086. int
  14087. main ()
  14088. {
  14089. pthread_t th; pthread_join(th, 0);
  14090. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  14091. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  14092. ;
  14093. return 0;
  14094. }
  14095. _ACEOF
  14096. if ac_fn_c_try_link "$LINENO"; then :
  14097. acx_pthread_ok=yes
  14098. fi
  14099. rm -f core conftest.err conftest.$ac_objext \
  14100. conftest$ac_exeext conftest.$ac_ext
  14101. LIBS="$save_LIBS"
  14102. CFLAGS="$save_CFLAGS"
  14103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  14104. $as_echo "$acx_pthread_ok" >&6; }
  14105. if test "x$acx_pthread_ok" = xyes; then
  14106. break;
  14107. fi
  14108. PTHREAD_LIBS=""
  14109. PTHREAD_CFLAGS=""
  14110. done
  14111. fi
  14112. # Various other checks:
  14113. if test "x$acx_pthread_ok" = xyes; then
  14114. save_LIBS="$LIBS"
  14115. LIBS="$PTHREAD_LIBS $LIBS"
  14116. save_CFLAGS="$CFLAGS"
  14117. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  14118. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  14119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  14120. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  14121. attr_name=unknown
  14122. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  14123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14124. /* end confdefs.h. */
  14125. #include <pthread.h>
  14126. int
  14127. main ()
  14128. {
  14129. int attr=$attr; return attr;
  14130. ;
  14131. return 0;
  14132. }
  14133. _ACEOF
  14134. if ac_fn_c_try_link "$LINENO"; then :
  14135. attr_name=$attr; break
  14136. fi
  14137. rm -f core conftest.err conftest.$ac_objext \
  14138. conftest$ac_exeext conftest.$ac_ext
  14139. done
  14140. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  14141. $as_echo "$attr_name" >&6; }
  14142. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  14143. cat >>confdefs.h <<_ACEOF
  14144. #define PTHREAD_CREATE_JOINABLE $attr_name
  14145. _ACEOF
  14146. fi
  14147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  14148. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  14149. flag=no
  14150. case "${host_cpu}-${host_os}" in
  14151. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  14152. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  14153. esac
  14154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  14155. $as_echo "${flag}" >&6; }
  14156. if test "x$flag" != xno; then
  14157. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  14158. fi
  14159. LIBS="$save_LIBS"
  14160. CFLAGS="$save_CFLAGS"
  14161. # More AIX lossage: must compile with xlc_r or cc_r
  14162. if test x"$GCC" != xyes; then
  14163. for ac_prog in xlc_r cc_r
  14164. do
  14165. # Extract the first word of "$ac_prog", so it can be a program name with args.
  14166. set dummy $ac_prog; ac_word=$2
  14167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14168. $as_echo_n "checking for $ac_word... " >&6; }
  14169. if ${ac_cv_prog_PTHREAD_CC+:} false; then :
  14170. $as_echo_n "(cached) " >&6
  14171. else
  14172. if test -n "$PTHREAD_CC"; then
  14173. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  14174. else
  14175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14176. for as_dir in $PATH
  14177. do
  14178. IFS=$as_save_IFS
  14179. test -z "$as_dir" && as_dir=.
  14180. for ac_exec_ext in '' $ac_executable_extensions; do
  14181. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14182. ac_cv_prog_PTHREAD_CC="$ac_prog"
  14183. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14184. break 2
  14185. fi
  14186. done
  14187. done
  14188. IFS=$as_save_IFS
  14189. fi
  14190. fi
  14191. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  14192. if test -n "$PTHREAD_CC"; then
  14193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  14194. $as_echo "$PTHREAD_CC" >&6; }
  14195. else
  14196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14197. $as_echo "no" >&6; }
  14198. fi
  14199. test -n "$PTHREAD_CC" && break
  14200. done
  14201. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  14202. else
  14203. PTHREAD_CC=$CC
  14204. fi
  14205. # The next part tries to detect GCC inconsistency with -shared on some
  14206. # architectures and systems. The problem is that in certain
  14207. # configurations, when -shared is specified, GCC "forgets" to
  14208. # internally use various flags which are still necessary.
  14209. #
  14210. # Prepare the flags
  14211. #
  14212. save_CFLAGS="$CFLAGS"
  14213. save_LIBS="$LIBS"
  14214. save_CC="$CC"
  14215. # Try with the flags determined by the earlier checks.
  14216. #
  14217. # -Wl,-z,defs forces link-time symbol resolution, so that the
  14218. # linking checks with -shared actually have any value
  14219. #
  14220. # FIXME: -fPIC is required for -shared on many architectures,
  14221. # so we specify it here, but the right way would probably be to
  14222. # properly detect whether it is actually required.
  14223. CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
  14224. LIBS="$PTHREAD_LIBS $LIBS"
  14225. CC="$PTHREAD_CC"
  14226. # In order not to create several levels of indentation, we test
  14227. # the value of "$done" until we find the cure or run out of ideas.
  14228. done="no"
  14229. # First, make sure the CFLAGS we added are actually accepted by our
  14230. # compiler. If not (and OS X's ld, for instance, does not accept -z),
  14231. # then we can't do this test.
  14232. if test x"$done" = xno; then
  14233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
  14234. $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
  14235. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14236. /* end confdefs.h. */
  14237. int
  14238. main ()
  14239. {
  14240. ;
  14241. return 0;
  14242. }
  14243. _ACEOF
  14244. if ac_fn_c_try_link "$LINENO"; then :
  14245. else
  14246. done=yes
  14247. fi
  14248. rm -f core conftest.err conftest.$ac_objext \
  14249. conftest$ac_exeext conftest.$ac_ext
  14250. if test "x$done" = xyes ; then
  14251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14252. $as_echo "no" >&6; }
  14253. else
  14254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14255. $as_echo "yes" >&6; }
  14256. fi
  14257. fi
  14258. if test x"$done" = xno; then
  14259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
  14260. $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
  14261. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14262. /* end confdefs.h. */
  14263. #include <pthread.h>
  14264. int
  14265. main ()
  14266. {
  14267. pthread_t th; pthread_join(th, 0);
  14268. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  14269. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  14270. ;
  14271. return 0;
  14272. }
  14273. _ACEOF
  14274. if ac_fn_c_try_link "$LINENO"; then :
  14275. done=yes
  14276. fi
  14277. rm -f core conftest.err conftest.$ac_objext \
  14278. conftest$ac_exeext conftest.$ac_ext
  14279. if test "x$done" = xyes; then
  14280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14281. $as_echo "yes" >&6; }
  14282. else
  14283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14284. $as_echo "no" >&6; }
  14285. fi
  14286. fi
  14287. #
  14288. # Linux gcc on some architectures such as mips/mipsel forgets
  14289. # about -lpthread
  14290. #
  14291. if test x"$done" = xno; then
  14292. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
  14293. $as_echo_n "checking whether -lpthread fixes that... " >&6; }
  14294. LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
  14295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14296. /* end confdefs.h. */
  14297. #include <pthread.h>
  14298. int
  14299. main ()
  14300. {
  14301. pthread_t th; pthread_join(th, 0);
  14302. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  14303. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  14304. ;
  14305. return 0;
  14306. }
  14307. _ACEOF
  14308. if ac_fn_c_try_link "$LINENO"; then :
  14309. done=yes
  14310. fi
  14311. rm -f core conftest.err conftest.$ac_objext \
  14312. conftest$ac_exeext conftest.$ac_ext
  14313. if test "x$done" = xyes; then
  14314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14315. $as_echo "yes" >&6; }
  14316. PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
  14317. else
  14318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14319. $as_echo "no" >&6; }
  14320. fi
  14321. fi
  14322. #
  14323. # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
  14324. #
  14325. if test x"$done" = xno; then
  14326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
  14327. $as_echo_n "checking whether -lc_r fixes that... " >&6; }
  14328. LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
  14329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14330. /* end confdefs.h. */
  14331. #include <pthread.h>
  14332. int
  14333. main ()
  14334. {
  14335. pthread_t th; pthread_join(th, 0);
  14336. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  14337. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  14338. ;
  14339. return 0;
  14340. }
  14341. _ACEOF
  14342. if ac_fn_c_try_link "$LINENO"; then :
  14343. done=yes
  14344. fi
  14345. rm -f core conftest.err conftest.$ac_objext \
  14346. conftest$ac_exeext conftest.$ac_ext
  14347. if test "x$done" = xyes; then
  14348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14349. $as_echo "yes" >&6; }
  14350. PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
  14351. else
  14352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14353. $as_echo "no" >&6; }
  14354. fi
  14355. fi
  14356. if test x"$done" = xno; then
  14357. # OK, we have run out of ideas
  14358. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
  14359. $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
  14360. # so it's not safe to assume that we may use pthreads
  14361. acx_pthread_ok=no
  14362. fi
  14363. CFLAGS="$save_CFLAGS"
  14364. LIBS="$save_LIBS"
  14365. CC="$save_CC"
  14366. else
  14367. PTHREAD_CC="$CC"
  14368. fi
  14369. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  14370. if test x"$acx_pthread_ok" = xyes; then
  14371. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  14372. :
  14373. else
  14374. acx_pthread_ok=no
  14375. fi
  14376. ac_ext=cpp
  14377. ac_cpp='$CXXCPP $CPPFLAGS'
  14378. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14379. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14380. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14381. if test x"$acx_pthread_ok" = x"yes"; then
  14382. # To make libglog depend on libpthread on Linux, we need to add
  14383. # -lpthread in addition to -pthread.
  14384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
  14385. $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
  14386. if ${ac_cv_lib_pthread_pthread_self+:} false; then :
  14387. $as_echo_n "(cached) " >&6
  14388. else
  14389. ac_check_lib_save_LIBS=$LIBS
  14390. LIBS="-lpthread $LIBS"
  14391. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14392. /* end confdefs.h. */
  14393. /* Override any GCC internal prototype to avoid an error.
  14394. Use char because int might match the return type of a GCC
  14395. builtin and then its argument prototype would still apply. */
  14396. #ifdef __cplusplus
  14397. extern "C"
  14398. #endif
  14399. char pthread_self ();
  14400. int
  14401. main ()
  14402. {
  14403. return pthread_self ();
  14404. ;
  14405. return 0;
  14406. }
  14407. _ACEOF
  14408. if ac_fn_cxx_try_link "$LINENO"; then :
  14409. ac_cv_lib_pthread_pthread_self=yes
  14410. else
  14411. ac_cv_lib_pthread_pthread_self=no
  14412. fi
  14413. rm -f core conftest.err conftest.$ac_objext \
  14414. conftest$ac_exeext conftest.$ac_ext
  14415. LIBS=$ac_check_lib_save_LIBS
  14416. fi
  14417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
  14418. $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
  14419. if test "x$ac_cv_lib_pthread_pthread_self" = xyes; then :
  14420. cat >>confdefs.h <<_ACEOF
  14421. #define HAVE_LIBPTHREAD 1
  14422. _ACEOF
  14423. LIBS="-lpthread $LIBS"
  14424. fi
  14425. fi
  14426. # Check if there is google-gflags library installed.
  14427. SAVE_CFLAGS="$CFLAGS"
  14428. SAVE_LIBS="$LIBS"
  14429. # Check whether --with-gflags was given.
  14430. if test "${with_gflags+set}" = set; then :
  14431. withval=$with_gflags; GFLAGS_CFLAGS="-I${with_gflags}/include"
  14432. GFLAGS_LIBS="-L${with_gflags}/lib -lgflags"
  14433. CFLAGS="$CFLAGS $GFLAGS_CFLAGS"
  14434. LIBS="$LIBS $GFLAGS_LIBS"
  14435. fi
  14436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgflags" >&5
  14437. $as_echo_n "checking for main in -lgflags... " >&6; }
  14438. if ${ac_cv_lib_gflags_main+:} false; then :
  14439. $as_echo_n "(cached) " >&6
  14440. else
  14441. ac_check_lib_save_LIBS=$LIBS
  14442. LIBS="-lgflags $LIBS"
  14443. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14444. /* end confdefs.h. */
  14445. int
  14446. main ()
  14447. {
  14448. return main ();
  14449. ;
  14450. return 0;
  14451. }
  14452. _ACEOF
  14453. if ac_fn_cxx_try_link "$LINENO"; then :
  14454. ac_cv_lib_gflags_main=yes
  14455. else
  14456. ac_cv_lib_gflags_main=no
  14457. fi
  14458. rm -f core conftest.err conftest.$ac_objext \
  14459. conftest$ac_exeext conftest.$ac_ext
  14460. LIBS=$ac_check_lib_save_LIBS
  14461. fi
  14462. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gflags_main" >&5
  14463. $as_echo "$ac_cv_lib_gflags_main" >&6; }
  14464. if test "x$ac_cv_lib_gflags_main" = xyes; then :
  14465. ac_cv_have_libgflags=1
  14466. else
  14467. ac_cv_have_libgflags=0
  14468. fi
  14469. if test x"$ac_cv_have_libgflags" = x"1"; then
  14470. $as_echo "#define HAVE_LIB_GFLAGS 1" >>confdefs.h
  14471. if test x"$GFLAGS_LIBS" = x""; then
  14472. GFLAGS_LIBS="-lgflags"
  14473. fi
  14474. else
  14475. GFLAGS_CFLAGS=
  14476. GFLAGS_LIBS=
  14477. fi
  14478. CFLAGS="$SAVE_CFLAGS"
  14479. LIBS="$SAVE_LIBS"
  14480. # TODO(hamaji): Use official m4 macros provided by testing libraries
  14481. # once the m4 macro of Google Mocking becomes ready.
  14482. # Check if there is Google Test library installed.
  14483. # Extract the first word of "gtest-config", so it can be a program name with args.
  14484. set dummy gtest-config; ac_word=$2
  14485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14486. $as_echo_n "checking for $ac_word... " >&6; }
  14487. if ${ac_cv_prog_GTEST_CONFIG+:} false; then :
  14488. $as_echo_n "(cached) " >&6
  14489. else
  14490. if test -n "$GTEST_CONFIG"; then
  14491. ac_cv_prog_GTEST_CONFIG="$GTEST_CONFIG" # Let the user override the test.
  14492. else
  14493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14494. for as_dir in $PATH
  14495. do
  14496. IFS=$as_save_IFS
  14497. test -z "$as_dir" && as_dir=.
  14498. for ac_exec_ext in '' $ac_executable_extensions; do
  14499. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14500. ac_cv_prog_GTEST_CONFIG=""yes""
  14501. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14502. break 2
  14503. fi
  14504. done
  14505. done
  14506. IFS=$as_save_IFS
  14507. fi
  14508. fi
  14509. GTEST_CONFIG=$ac_cv_prog_GTEST_CONFIG
  14510. if test -n "$GTEST_CONFIG"; then
  14511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTEST_CONFIG" >&5
  14512. $as_echo "$GTEST_CONFIG" >&6; }
  14513. else
  14514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14515. $as_echo "no" >&6; }
  14516. fi
  14517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgtest" >&5
  14518. $as_echo_n "checking for main in -lgtest... " >&6; }
  14519. if ${ac_cv_lib_gtest_main+:} false; then :
  14520. $as_echo_n "(cached) " >&6
  14521. else
  14522. ac_check_lib_save_LIBS=$LIBS
  14523. LIBS="-lgtest $LIBS"
  14524. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14525. /* end confdefs.h. */
  14526. int
  14527. main ()
  14528. {
  14529. return main ();
  14530. ;
  14531. return 0;
  14532. }
  14533. _ACEOF
  14534. if ac_fn_cxx_try_link "$LINENO"; then :
  14535. ac_cv_lib_gtest_main=yes
  14536. else
  14537. ac_cv_lib_gtest_main=no
  14538. fi
  14539. rm -f core conftest.err conftest.$ac_objext \
  14540. conftest$ac_exeext conftest.$ac_ext
  14541. LIBS=$ac_check_lib_save_LIBS
  14542. fi
  14543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gtest_main" >&5
  14544. $as_echo "$ac_cv_lib_gtest_main" >&6; }
  14545. if test "x$ac_cv_lib_gtest_main" = xyes; then :
  14546. have_gtest_lib="yes"
  14547. fi
  14548. if test x"$GTEST_CONFIG" = "xyes" -a x"$have_gtest_lib" = "xyes"; then
  14549. GTEST_CFLAGS=`gtest-config --cppflags --cxxflags`
  14550. GTEST_LIBS=`gtest-config --ldflags --libs`
  14551. $as_echo "#define HAVE_LIB_GTEST 1" >>confdefs.h
  14552. # Check if there is Google Mocking library installed.
  14553. # Extract the first word of "gmock-config", so it can be a program name with args.
  14554. set dummy gmock-config; ac_word=$2
  14555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14556. $as_echo_n "checking for $ac_word... " >&6; }
  14557. if ${ac_cv_prog_GMOCK_CONFIG+:} false; then :
  14558. $as_echo_n "(cached) " >&6
  14559. else
  14560. if test -n "$GMOCK_CONFIG"; then
  14561. ac_cv_prog_GMOCK_CONFIG="$GMOCK_CONFIG" # Let the user override the test.
  14562. else
  14563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14564. for as_dir in $PATH
  14565. do
  14566. IFS=$as_save_IFS
  14567. test -z "$as_dir" && as_dir=.
  14568. for ac_exec_ext in '' $ac_executable_extensions; do
  14569. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14570. ac_cv_prog_GMOCK_CONFIG=""yes""
  14571. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14572. break 2
  14573. fi
  14574. done
  14575. done
  14576. IFS=$as_save_IFS
  14577. fi
  14578. fi
  14579. GMOCK_CONFIG=$ac_cv_prog_GMOCK_CONFIG
  14580. if test -n "$GMOCK_CONFIG"; then
  14581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMOCK_CONFIG" >&5
  14582. $as_echo "$GMOCK_CONFIG" >&6; }
  14583. else
  14584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14585. $as_echo "no" >&6; }
  14586. fi
  14587. if test x"$GMOCK_CONFIG" = "xyes"; then
  14588. GMOCK_CFLAGS=`gmock-config --cppflags --cxxflags`
  14589. GMOCK_LIBS=`gmock-config --ldflags --libs`
  14590. $as_echo "#define HAVE_LIB_GMOCK 1" >>confdefs.h
  14591. else
  14592. # We don't run test cases which use Google Mocking framework.
  14593. GMOCK_CFLAGS=
  14594. GMOCK_LIBS=
  14595. fi
  14596. else
  14597. # We'll use src/googletest.h for our unittests.
  14598. GTEST_CFLAGS=
  14599. GTEST_LIBS=
  14600. fi
  14601. if test x"$GMOCK_CONFIG" = "xyes"; then
  14602. HAVE_GMOCK_TRUE=
  14603. HAVE_GMOCK_FALSE='#'
  14604. else
  14605. HAVE_GMOCK_TRUE='#'
  14606. HAVE_GMOCK_FALSE=
  14607. fi
  14608. # We want to link in libunwind if it exists
  14609. UNWIND_LIBS=
  14610. # Unfortunately, we need to check the header file in addition to the
  14611. # lib file to check if libunwind is available since libunwind-0.98
  14612. # doesn't install all necessary header files.
  14613. if test x"$ac_cv_have_libunwind_h" = x"1"; then
  14614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for backtrace in -lunwind" >&5
  14615. $as_echo_n "checking for backtrace in -lunwind... " >&6; }
  14616. if ${ac_cv_lib_unwind_backtrace+:} false; then :
  14617. $as_echo_n "(cached) " >&6
  14618. else
  14619. ac_check_lib_save_LIBS=$LIBS
  14620. LIBS="-lunwind $LIBS"
  14621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14622. /* end confdefs.h. */
  14623. /* Override any GCC internal prototype to avoid an error.
  14624. Use char because int might match the return type of a GCC
  14625. builtin and then its argument prototype would still apply. */
  14626. #ifdef __cplusplus
  14627. extern "C"
  14628. #endif
  14629. char backtrace ();
  14630. int
  14631. main ()
  14632. {
  14633. return backtrace ();
  14634. ;
  14635. return 0;
  14636. }
  14637. _ACEOF
  14638. if ac_fn_cxx_try_link "$LINENO"; then :
  14639. ac_cv_lib_unwind_backtrace=yes
  14640. else
  14641. ac_cv_lib_unwind_backtrace=no
  14642. fi
  14643. rm -f core conftest.err conftest.$ac_objext \
  14644. conftest$ac_exeext conftest.$ac_ext
  14645. LIBS=$ac_check_lib_save_LIBS
  14646. fi
  14647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_unwind_backtrace" >&5
  14648. $as_echo "$ac_cv_lib_unwind_backtrace" >&6; }
  14649. if test "x$ac_cv_lib_unwind_backtrace" = xyes; then :
  14650. UNWIND_LIBS=-lunwind
  14651. fi
  14652. fi
  14653. if test x"$UNWIND_LIBS" != x""; then
  14654. $as_echo "#define HAVE_LIB_UNWIND 1" >>confdefs.h
  14655. fi
  14656. # We'd like to use read/write locks in several places in the code.
  14657. # See if our pthreads support extends to that. Note: for linux, it
  14658. # does as long as you define _XOPEN_SOURCE appropriately.
  14659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking support for pthread_rwlock_* functions" >&5
  14660. $as_echo_n "checking support for pthread_rwlock_* functions... " >&6; }
  14661. if ${ac_cv_rwlock+:} false; then :
  14662. $as_echo_n "(cached) " >&6
  14663. else
  14664. ac_ext=c
  14665. ac_cpp='$CPP $CPPFLAGS'
  14666. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14667. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14668. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14670. /* end confdefs.h. */
  14671. #define _XOPEN_SOURCE 500
  14672. #include <pthread.h>
  14673. int
  14674. main ()
  14675. {
  14676. pthread_rwlock_t l; pthread_rwlock_init(&l, NULL);
  14677. pthread_rwlock_rdlock(&l);
  14678. return 0;
  14679. ;
  14680. return 0;
  14681. }
  14682. _ACEOF
  14683. if ac_fn_c_try_compile "$LINENO"; then :
  14684. ac_cv_rwlock=yes
  14685. else
  14686. ac_cv_rwlock=no
  14687. fi
  14688. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14689. ac_ext=cpp
  14690. ac_cpp='$CXXCPP $CPPFLAGS'
  14691. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14692. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14693. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14694. fi
  14695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rwlock" >&5
  14696. $as_echo "$ac_cv_rwlock" >&6; }
  14697. if test "$ac_cv_rwlock" = yes; then
  14698. $as_echo "#define HAVE_RWLOCK 1" >>confdefs.h
  14699. fi
  14700. # Find out what namespace 'normal' STL code lives in, and also what namespace
  14701. # the user wants our classes to be defined in
  14702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
  14703. $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
  14704. if ${ac_cv_cxx_namespaces+:} false; then :
  14705. $as_echo_n "(cached) " >&6
  14706. else
  14707. ac_ext=cpp
  14708. ac_cpp='$CXXCPP $CPPFLAGS'
  14709. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14710. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14711. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14713. /* end confdefs.h. */
  14714. namespace Outer {
  14715. namespace Inner { int i = 0; }}
  14716. int
  14717. main ()
  14718. {
  14719. using namespace Outer::Inner; return i;
  14720. ;
  14721. return 0;
  14722. }
  14723. _ACEOF
  14724. if ac_fn_cxx_try_compile "$LINENO"; then :
  14725. ac_cv_cxx_namespaces=yes
  14726. else
  14727. ac_cv_cxx_namespaces=no
  14728. fi
  14729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14730. ac_ext=cpp
  14731. ac_cpp='$CXXCPP $CPPFLAGS'
  14732. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14733. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14734. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14735. fi
  14736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
  14737. $as_echo "$ac_cv_cxx_namespaces" >&6; }
  14738. if test "$ac_cv_cxx_namespaces" = yes; then
  14739. $as_echo "#define HAVE_NAMESPACES 1" >>confdefs.h
  14740. fi
  14741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what namespace STL code is in" >&5
  14742. $as_echo_n "checking what namespace STL code is in... " >&6; }
  14743. if ${ac_cv_cxx_stl_namespace+:} false; then :
  14744. $as_echo_n "(cached) " >&6
  14745. else
  14746. ac_ext=cpp
  14747. ac_cpp='$CXXCPP $CPPFLAGS'
  14748. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14749. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14750. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14752. /* end confdefs.h. */
  14753. #include <vector>
  14754. int
  14755. main ()
  14756. {
  14757. vector<int> t; return 0;
  14758. ;
  14759. return 0;
  14760. }
  14761. _ACEOF
  14762. if ac_fn_cxx_try_compile "$LINENO"; then :
  14763. ac_cv_cxx_stl_namespace=none
  14764. fi
  14765. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14767. /* end confdefs.h. */
  14768. #include <vector>
  14769. int
  14770. main ()
  14771. {
  14772. std::vector<int> t; return 0;
  14773. ;
  14774. return 0;
  14775. }
  14776. _ACEOF
  14777. if ac_fn_cxx_try_compile "$LINENO"; then :
  14778. ac_cv_cxx_stl_namespace=std
  14779. fi
  14780. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14781. ac_ext=cpp
  14782. ac_cpp='$CXXCPP $CPPFLAGS'
  14783. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14784. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14785. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14786. fi
  14787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_stl_namespace" >&5
  14788. $as_echo "$ac_cv_cxx_stl_namespace" >&6; }
  14789. if test "$ac_cv_cxx_stl_namespace" = none; then
  14790. $as_echo "#define STL_NAMESPACE /**/" >>confdefs.h
  14791. fi
  14792. if test "$ac_cv_cxx_stl_namespace" = std; then
  14793. $as_echo "#define STL_NAMESPACE std" >>confdefs.h
  14794. fi
  14795. google_namespace_default=google
  14796. # Check whether --enable-namespace was given.
  14797. if test "${enable_namespace+set}" = set; then :
  14798. enableval=$enable_namespace; case "$enableval" in
  14799. yes) google_namespace="$google_namespace_default" ;;
  14800. no) google_namespace="" ;;
  14801. *) google_namespace="$enableval" ;;
  14802. esac
  14803. else
  14804. google_namespace="$google_namespace_default"
  14805. fi
  14806. if test -n "$google_namespace"; then
  14807. ac_google_namespace="$google_namespace"
  14808. ac_google_start_namespace="namespace $google_namespace {"
  14809. ac_google_end_namespace="}"
  14810. else
  14811. ac_google_namespace=""
  14812. ac_google_start_namespace=""
  14813. ac_google_end_namespace=""
  14814. fi
  14815. cat >>confdefs.h <<_ACEOF
  14816. #define GOOGLE_NAMESPACE $ac_google_namespace
  14817. _ACEOF
  14818. cat >>confdefs.h <<_ACEOF
  14819. #define _START_GOOGLE_NAMESPACE_ $ac_google_start_namespace
  14820. _ACEOF
  14821. cat >>confdefs.h <<_ACEOF
  14822. #define _END_GOOGLE_NAMESPACE_ $ac_google_end_namespace
  14823. _ACEOF
  14824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports using ::operator<<" >&5
  14825. $as_echo_n "checking whether compiler supports using ::operator<<... " >&6; }
  14826. if ${ac_cv_cxx_using_operator+:} false; then :
  14827. $as_echo_n "(cached) " >&6
  14828. else
  14829. ac_ext=cpp
  14830. ac_cpp='$CXXCPP $CPPFLAGS'
  14831. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14832. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14833. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14835. /* end confdefs.h. */
  14836. #include <iostream>
  14837. std::ostream& operator<<(std::ostream&, struct s);
  14838. int
  14839. main ()
  14840. {
  14841. using ::operator<<; return 0;
  14842. ;
  14843. return 0;
  14844. }
  14845. _ACEOF
  14846. if ac_fn_cxx_try_compile "$LINENO"; then :
  14847. ac_cv_cxx_using_operator=1
  14848. else
  14849. ac_cv_cxx_using_operator=0
  14850. fi
  14851. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14852. ac_ext=cpp
  14853. ac_cpp='$CXXCPP $CPPFLAGS'
  14854. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14855. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14856. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14857. fi
  14858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_using_operator" >&5
  14859. $as_echo "$ac_cv_cxx_using_operator" >&6; }
  14860. if test "$ac_cv_cxx_using_operator" = 1; then
  14861. $as_echo "#define HAVE_USING_OPERATOR 1" >>confdefs.h
  14862. fi
  14863. for ac_header in ucontext.h
  14864. do :
  14865. ac_fn_cxx_check_header_mongrel "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "$ac_includes_default"
  14866. if test "x$ac_cv_header_ucontext_h" = xyes; then :
  14867. cat >>confdefs.h <<_ACEOF
  14868. #define HAVE_UCONTEXT_H 1
  14869. _ACEOF
  14870. fi
  14871. done
  14872. for ac_header in sys/ucontext.h
  14873. do :
  14874. ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ucontext.h" "ac_cv_header_sys_ucontext_h" "$ac_includes_default"
  14875. if test "x$ac_cv_header_sys_ucontext_h" = xyes; then :
  14876. cat >>confdefs.h <<_ACEOF
  14877. #define HAVE_SYS_UCONTEXT_H 1
  14878. _ACEOF
  14879. fi
  14880. done
  14881. # ucontext on OS X 10.6 (at least)
  14882. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to access the program counter from a struct ucontext" >&5
  14883. $as_echo_n "checking how to access the program counter from a struct ucontext... " >&6; }
  14884. pc_fields=" uc_mcontext.gregs[REG_PC]" # Solaris x86 (32 + 64 bit)
  14885. pc_fields="$pc_fields uc_mcontext.gregs[REG_EIP]" # Linux (i386)
  14886. pc_fields="$pc_fields uc_mcontext.gregs[REG_RIP]" # Linux (x86_64)
  14887. pc_fields="$pc_fields uc_mcontext.sc_ip" # Linux (ia64)
  14888. pc_fields="$pc_fields uc_mcontext.uc_regs->gregs[PT_NIP]" # Linux (ppc)
  14889. pc_fields="$pc_fields uc_mcontext.gregs[R15]" # Linux (arm old [untested])
  14890. pc_fields="$pc_fields uc_mcontext.arm_pc" # Linux (arm new [untested])
  14891. pc_fields="$pc_fields uc_mcontext.mc_eip" # FreeBSD (i386)
  14892. pc_fields="$pc_fields uc_mcontext.mc_rip" # FreeBSD (x86_64 [untested])
  14893. pc_fields="$pc_fields uc_mcontext.__gregs[_REG_EIP]" # NetBSD (i386)
  14894. pc_fields="$pc_fields uc_mcontext.__gregs[_REG_RIP]" # NetBSD (x86_64)
  14895. pc_fields="$pc_fields uc_mcontext->ss.eip" # OS X (i386, <=10.4)
  14896. pc_fields="$pc_fields uc_mcontext->__ss.__eip" # OS X (i386, >=10.5)
  14897. pc_fields="$pc_fields uc_mcontext->ss.rip" # OS X (x86_64)
  14898. pc_fields="$pc_fields uc_mcontext->__ss.__rip" # OS X (>=10.5 [untested])
  14899. pc_fields="$pc_fields uc_mcontext->ss.srr0" # OS X (ppc, ppc64 [untested])
  14900. pc_fields="$pc_fields uc_mcontext->__ss.__srr0" # OS X (>=10.5 [untested])
  14901. pc_field_found=false
  14902. for pc_field in $pc_fields; do
  14903. if ! $pc_field_found; then
  14904. if test "x$ac_cv_header_sys_ucontext_h" = xyes; then
  14905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14906. /* end confdefs.h. */
  14907. #define _GNU_SOURCE 1
  14908. #include <sys/ucontext.h>
  14909. int
  14910. main ()
  14911. {
  14912. ucontext_t u; return u.$pc_field == 0;
  14913. ;
  14914. return 0;
  14915. }
  14916. _ACEOF
  14917. if ac_fn_cxx_try_compile "$LINENO"; then :
  14918. cat >>confdefs.h <<_ACEOF
  14919. #define PC_FROM_UCONTEXT $pc_field
  14920. _ACEOF
  14921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  14922. $as_echo "$pc_field" >&6; }
  14923. pc_field_found=true
  14924. fi
  14925. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14926. else
  14927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14928. /* end confdefs.h. */
  14929. #define _GNU_SOURCE 1
  14930. #include <ucontext.h>
  14931. int
  14932. main ()
  14933. {
  14934. ucontext_t u; return u.$pc_field == 0;
  14935. ;
  14936. return 0;
  14937. }
  14938. _ACEOF
  14939. if ac_fn_cxx_try_compile "$LINENO"; then :
  14940. cat >>confdefs.h <<_ACEOF
  14941. #define PC_FROM_UCONTEXT $pc_field
  14942. _ACEOF
  14943. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  14944. $as_echo "$pc_field" >&6; }
  14945. pc_field_found=true
  14946. fi
  14947. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14948. fi
  14949. fi
  14950. done
  14951. if ! $pc_field_found; then
  14952. pc_fields=" sc_eip" # OpenBSD (i386)
  14953. pc_fields="$pc_fields sc_rip" # OpenBSD (x86_64)
  14954. for pc_field in $pc_fields; do
  14955. if ! $pc_field_found; then
  14956. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14957. /* end confdefs.h. */
  14958. #include <signal.h>
  14959. int
  14960. main ()
  14961. {
  14962. ucontext_t u; return u.$pc_field == 0;
  14963. ;
  14964. return 0;
  14965. }
  14966. _ACEOF
  14967. if ac_fn_cxx_try_compile "$LINENO"; then :
  14968. cat >>confdefs.h <<_ACEOF
  14969. #define PC_FROM_UCONTEXT $pc_field
  14970. _ACEOF
  14971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pc_field" >&5
  14972. $as_echo "$pc_field" >&6; }
  14973. pc_field_found=true
  14974. fi
  14975. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14976. fi
  14977. done
  14978. fi
  14979. if ! $pc_field_found; then
  14980. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not find the PC. Will not output failed addresses..." >&5
  14981. $as_echo "$as_me: WARNING: Could not find the PC. Will not output failed addresses..." >&2;}
  14982. fi
  14983. cat >>confdefs.h <<_ACEOF
  14984. #define TEST_SRC_DIR "$srcdir"
  14985. _ACEOF
  14986. # These are what's needed by logging.h.in and raw_logging.h.in
  14987. # Write generated configuration file
  14988. ac_config_files="$ac_config_files Makefile src/glog/logging.h src/glog/raw_logging.h src/glog/vlog_is_on.h src/glog/stl_logging.h"
  14989. ac_config_files="$ac_config_files libglog.pc"
  14990. cat >confcache <<\_ACEOF
  14991. # This file is a shell script that caches the results of configure
  14992. # tests run on this system so they can be shared between configure
  14993. # scripts and configure runs, see configure's option --config-cache.
  14994. # It is not useful on other systems. If it contains results you don't
  14995. # want to keep, you may remove or edit it.
  14996. #
  14997. # config.status only pays attention to the cache file if you give it
  14998. # the --recheck option to rerun configure.
  14999. #
  15000. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15001. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15002. # following values.
  15003. _ACEOF
  15004. # The following way of writing the cache mishandles newlines in values,
  15005. # but we know of no workaround that is simple, portable, and efficient.
  15006. # So, we kill variables containing newlines.
  15007. # Ultrix sh set writes to stderr and can't be redirected directly,
  15008. # and sets the high bit in the cache file unless we assign to the vars.
  15009. (
  15010. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15011. eval ac_val=\$$ac_var
  15012. case $ac_val in #(
  15013. *${as_nl}*)
  15014. case $ac_var in #(
  15015. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15016. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15017. esac
  15018. case $ac_var in #(
  15019. _ | IFS | as_nl) ;; #(
  15020. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15021. *) { eval $ac_var=; unset $ac_var;} ;;
  15022. esac ;;
  15023. esac
  15024. done
  15025. (set) 2>&1 |
  15026. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15027. *${as_nl}ac_space=\ *)
  15028. # `set' does not quote correctly, so add quotes: double-quote
  15029. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15030. sed -n \
  15031. "s/'/'\\\\''/g;
  15032. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15033. ;; #(
  15034. *)
  15035. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15036. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15037. ;;
  15038. esac |
  15039. sort
  15040. ) |
  15041. sed '
  15042. /^ac_cv_env_/b end
  15043. t clear
  15044. :clear
  15045. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15046. t end
  15047. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15048. :end' >>confcache
  15049. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15050. if test -w "$cache_file"; then
  15051. if test "x$cache_file" != "x/dev/null"; then
  15052. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15053. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15054. if test ! -f "$cache_file" || test -h "$cache_file"; then
  15055. cat confcache >"$cache_file"
  15056. else
  15057. case $cache_file in #(
  15058. */* | ?:*)
  15059. mv -f confcache "$cache_file"$$ &&
  15060. mv -f "$cache_file"$$ "$cache_file" ;; #(
  15061. *)
  15062. mv -f confcache "$cache_file" ;;
  15063. esac
  15064. fi
  15065. fi
  15066. else
  15067. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  15068. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15069. fi
  15070. fi
  15071. rm -f confcache
  15072. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15073. # Let make expand exec_prefix.
  15074. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15075. DEFS=-DHAVE_CONFIG_H
  15076. ac_libobjs=
  15077. ac_ltlibobjs=
  15078. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15079. # 1. Remove the extension, and $U if already installed.
  15080. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15081. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15082. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15083. # will be set to the directory where LIBOBJS objects are built.
  15084. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15085. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  15086. done
  15087. LIBOBJS=$ac_libobjs
  15088. LTLIBOBJS=$ac_ltlibobjs
  15089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  15090. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  15091. if test -n "$am_sleep_pid"; then
  15092. # Hide warnings about reused PIDs.
  15093. wait $am_sleep_pid 2>/dev/null
  15094. fi
  15095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  15096. $as_echo "done" >&6; }
  15097. if test -n "$EXEEXT"; then
  15098. am__EXEEXT_TRUE=
  15099. am__EXEEXT_FALSE='#'
  15100. else
  15101. am__EXEEXT_TRUE='#'
  15102. am__EXEEXT_FALSE=
  15103. fi
  15104. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15105. as_fn_error $? "conditional \"AMDEP\" was never defined.
  15106. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15107. fi
  15108. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15109. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  15110. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15111. fi
  15112. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15113. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  15114. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15115. fi
  15116. if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
  15117. as_fn_error $? "conditional \"GCC\" was never defined.
  15118. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15119. fi
  15120. if test -z "${ENABLE_FRAME_POINTERS_TRUE}" && test -z "${ENABLE_FRAME_POINTERS_FALSE}"; then
  15121. as_fn_error $? "conditional \"ENABLE_FRAME_POINTERS\" was never defined.
  15122. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15123. fi
  15124. if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
  15125. as_fn_error $? "conditional \"X86_64\" was never defined.
  15126. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15127. fi
  15128. if test -z "${DISABLE_RTTI_TRUE}" && test -z "${DISABLE_RTTI_FALSE}"; then
  15129. as_fn_error $? "conditional \"DISABLE_RTTI\" was never defined.
  15130. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15131. fi
  15132. if test -z "${HAVE_GMOCK_TRUE}" && test -z "${HAVE_GMOCK_FALSE}"; then
  15133. as_fn_error $? "conditional \"HAVE_GMOCK\" was never defined.
  15134. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15135. fi
  15136. : "${CONFIG_STATUS=./config.status}"
  15137. ac_write_fail=0
  15138. ac_clean_files_save=$ac_clean_files
  15139. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15140. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  15141. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15142. as_write_fail=0
  15143. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  15144. #! $SHELL
  15145. # Generated by $as_me.
  15146. # Run this file to recreate the current configuration.
  15147. # Compiler output produced by configure, useful for debugging
  15148. # configure, is in config.log if it exists.
  15149. debug=false
  15150. ac_cs_recheck=false
  15151. ac_cs_silent=false
  15152. SHELL=\${CONFIG_SHELL-$SHELL}
  15153. export SHELL
  15154. _ASEOF
  15155. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  15156. ## -------------------- ##
  15157. ## M4sh Initialization. ##
  15158. ## -------------------- ##
  15159. # Be more Bourne compatible
  15160. DUALCASE=1; export DUALCASE # for MKS sh
  15161. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15162. emulate sh
  15163. NULLCMD=:
  15164. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15165. # is contrary to our usage. Disable this feature.
  15166. alias -g '${1+"$@"}'='"$@"'
  15167. setopt NO_GLOB_SUBST
  15168. else
  15169. case `(set -o) 2>/dev/null` in #(
  15170. *posix*) :
  15171. set -o posix ;; #(
  15172. *) :
  15173. ;;
  15174. esac
  15175. fi
  15176. as_nl='
  15177. '
  15178. export as_nl
  15179. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15180. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15181. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15182. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15183. # Prefer a ksh shell builtin over an external printf program on Solaris,
  15184. # but without wasting forks for bash or zsh.
  15185. if test -z "$BASH_VERSION$ZSH_VERSION" \
  15186. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15187. as_echo='print -r --'
  15188. as_echo_n='print -rn --'
  15189. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15190. as_echo='printf %s\n'
  15191. as_echo_n='printf %s'
  15192. else
  15193. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15194. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15195. as_echo_n='/usr/ucb/echo -n'
  15196. else
  15197. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15198. as_echo_n_body='eval
  15199. arg=$1;
  15200. case $arg in #(
  15201. *"$as_nl"*)
  15202. expr "X$arg" : "X\\(.*\\)$as_nl";
  15203. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15204. esac;
  15205. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15206. '
  15207. export as_echo_n_body
  15208. as_echo_n='sh -c $as_echo_n_body as_echo'
  15209. fi
  15210. export as_echo_body
  15211. as_echo='sh -c $as_echo_body as_echo'
  15212. fi
  15213. # The user is always right.
  15214. if test "${PATH_SEPARATOR+set}" != set; then
  15215. PATH_SEPARATOR=:
  15216. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15217. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15218. PATH_SEPARATOR=';'
  15219. }
  15220. fi
  15221. # IFS
  15222. # We need space, tab and new line, in precisely that order. Quoting is
  15223. # there to prevent editors from complaining about space-tab.
  15224. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15225. # splitting by setting IFS to empty value.)
  15226. IFS=" "" $as_nl"
  15227. # Find who we are. Look in the path if we contain no directory separator.
  15228. as_myself=
  15229. case $0 in #((
  15230. *[\\/]* ) as_myself=$0 ;;
  15231. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15232. for as_dir in $PATH
  15233. do
  15234. IFS=$as_save_IFS
  15235. test -z "$as_dir" && as_dir=.
  15236. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15237. done
  15238. IFS=$as_save_IFS
  15239. ;;
  15240. esac
  15241. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15242. # in which case we are not to be found in the path.
  15243. if test "x$as_myself" = x; then
  15244. as_myself=$0
  15245. fi
  15246. if test ! -f "$as_myself"; then
  15247. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15248. exit 1
  15249. fi
  15250. # Unset variables that we do not need and which cause bugs (e.g. in
  15251. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15252. # suppresses any "Segmentation fault" message there. '((' could
  15253. # trigger a bug in pdksh 5.2.14.
  15254. for as_var in BASH_ENV ENV MAIL MAILPATH
  15255. do eval test x\${$as_var+set} = xset \
  15256. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15257. done
  15258. PS1='$ '
  15259. PS2='> '
  15260. PS4='+ '
  15261. # NLS nuisances.
  15262. LC_ALL=C
  15263. export LC_ALL
  15264. LANGUAGE=C
  15265. export LANGUAGE
  15266. # CDPATH.
  15267. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15268. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  15269. # ----------------------------------------
  15270. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15271. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15272. # script with STATUS, using 1 if that was 0.
  15273. as_fn_error ()
  15274. {
  15275. as_status=$1; test $as_status -eq 0 && as_status=1
  15276. if test "$4"; then
  15277. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15278. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  15279. fi
  15280. $as_echo "$as_me: error: $2" >&2
  15281. as_fn_exit $as_status
  15282. } # as_fn_error
  15283. # as_fn_set_status STATUS
  15284. # -----------------------
  15285. # Set $? to STATUS, without forking.
  15286. as_fn_set_status ()
  15287. {
  15288. return $1
  15289. } # as_fn_set_status
  15290. # as_fn_exit STATUS
  15291. # -----------------
  15292. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15293. as_fn_exit ()
  15294. {
  15295. set +e
  15296. as_fn_set_status $1
  15297. exit $1
  15298. } # as_fn_exit
  15299. # as_fn_unset VAR
  15300. # ---------------
  15301. # Portably unset VAR.
  15302. as_fn_unset ()
  15303. {
  15304. { eval $1=; unset $1;}
  15305. }
  15306. as_unset=as_fn_unset
  15307. # as_fn_append VAR VALUE
  15308. # ----------------------
  15309. # Append the text in VALUE to the end of the definition contained in VAR. Take
  15310. # advantage of any shell optimizations that allow amortized linear growth over
  15311. # repeated appends, instead of the typical quadratic growth present in naive
  15312. # implementations.
  15313. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15314. eval 'as_fn_append ()
  15315. {
  15316. eval $1+=\$2
  15317. }'
  15318. else
  15319. as_fn_append ()
  15320. {
  15321. eval $1=\$$1\$2
  15322. }
  15323. fi # as_fn_append
  15324. # as_fn_arith ARG...
  15325. # ------------------
  15326. # Perform arithmetic evaluation on the ARGs, and store the result in the
  15327. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  15328. # must be portable across $(()) and expr.
  15329. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15330. eval 'as_fn_arith ()
  15331. {
  15332. as_val=$(( $* ))
  15333. }'
  15334. else
  15335. as_fn_arith ()
  15336. {
  15337. as_val=`expr "$@" || test $? -eq 1`
  15338. }
  15339. fi # as_fn_arith
  15340. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15341. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15342. as_expr=expr
  15343. else
  15344. as_expr=false
  15345. fi
  15346. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15347. as_basename=basename
  15348. else
  15349. as_basename=false
  15350. fi
  15351. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15352. as_dirname=dirname
  15353. else
  15354. as_dirname=false
  15355. fi
  15356. as_me=`$as_basename -- "$0" ||
  15357. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15358. X"$0" : 'X\(//\)$' \| \
  15359. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15360. $as_echo X/"$0" |
  15361. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15362. s//\1/
  15363. q
  15364. }
  15365. /^X\/\(\/\/\)$/{
  15366. s//\1/
  15367. q
  15368. }
  15369. /^X\/\(\/\).*/{
  15370. s//\1/
  15371. q
  15372. }
  15373. s/.*/./; q'`
  15374. # Avoid depending upon Character Ranges.
  15375. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15376. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15377. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15378. as_cr_digits='0123456789'
  15379. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15380. ECHO_C= ECHO_N= ECHO_T=
  15381. case `echo -n x` in #(((((
  15382. -n*)
  15383. case `echo 'xy\c'` in
  15384. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15385. xy) ECHO_C='\c';;
  15386. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15387. ECHO_T=' ';;
  15388. esac;;
  15389. *)
  15390. ECHO_N='-n';;
  15391. esac
  15392. rm -f conf$$ conf$$.exe conf$$.file
  15393. if test -d conf$$.dir; then
  15394. rm -f conf$$.dir/conf$$.file
  15395. else
  15396. rm -f conf$$.dir
  15397. mkdir conf$$.dir 2>/dev/null
  15398. fi
  15399. if (echo >conf$$.file) 2>/dev/null; then
  15400. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15401. as_ln_s='ln -s'
  15402. # ... but there are two gotchas:
  15403. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15404. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15405. # In both cases, we have to default to `cp -pR'.
  15406. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15407. as_ln_s='cp -pR'
  15408. elif ln conf$$.file conf$$ 2>/dev/null; then
  15409. as_ln_s=ln
  15410. else
  15411. as_ln_s='cp -pR'
  15412. fi
  15413. else
  15414. as_ln_s='cp -pR'
  15415. fi
  15416. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15417. rmdir conf$$.dir 2>/dev/null
  15418. # as_fn_mkdir_p
  15419. # -------------
  15420. # Create "$as_dir" as a directory, including parents if necessary.
  15421. as_fn_mkdir_p ()
  15422. {
  15423. case $as_dir in #(
  15424. -*) as_dir=./$as_dir;;
  15425. esac
  15426. test -d "$as_dir" || eval $as_mkdir_p || {
  15427. as_dirs=
  15428. while :; do
  15429. case $as_dir in #(
  15430. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15431. *) as_qdir=$as_dir;;
  15432. esac
  15433. as_dirs="'$as_qdir' $as_dirs"
  15434. as_dir=`$as_dirname -- "$as_dir" ||
  15435. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15436. X"$as_dir" : 'X\(//\)[^/]' \| \
  15437. X"$as_dir" : 'X\(//\)$' \| \
  15438. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15439. $as_echo X"$as_dir" |
  15440. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15441. s//\1/
  15442. q
  15443. }
  15444. /^X\(\/\/\)[^/].*/{
  15445. s//\1/
  15446. q
  15447. }
  15448. /^X\(\/\/\)$/{
  15449. s//\1/
  15450. q
  15451. }
  15452. /^X\(\/\).*/{
  15453. s//\1/
  15454. q
  15455. }
  15456. s/.*/./; q'`
  15457. test -d "$as_dir" && break
  15458. done
  15459. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15460. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15461. } # as_fn_mkdir_p
  15462. if mkdir -p . 2>/dev/null; then
  15463. as_mkdir_p='mkdir -p "$as_dir"'
  15464. else
  15465. test -d ./-p && rmdir ./-p
  15466. as_mkdir_p=false
  15467. fi
  15468. # as_fn_executable_p FILE
  15469. # -----------------------
  15470. # Test if FILE is an executable regular file.
  15471. as_fn_executable_p ()
  15472. {
  15473. test -f "$1" && test -x "$1"
  15474. } # as_fn_executable_p
  15475. as_test_x='test -x'
  15476. as_executable_p=as_fn_executable_p
  15477. # Sed expression to map a string onto a valid CPP name.
  15478. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15479. # Sed expression to map a string onto a valid variable name.
  15480. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15481. exec 6>&1
  15482. ## ----------------------------------- ##
  15483. ## Main body of $CONFIG_STATUS script. ##
  15484. ## ----------------------------------- ##
  15485. _ASEOF
  15486. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15487. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15488. # Save the log message, to keep $0 and so on meaningful, and to
  15489. # report actual input values of CONFIG_FILES etc. instead of their
  15490. # values after options handling.
  15491. ac_log="
  15492. This file was extended by glog $as_me 0.3.5, which was
  15493. generated by GNU Autoconf 2.69. Invocation command line was
  15494. CONFIG_FILES = $CONFIG_FILES
  15495. CONFIG_HEADERS = $CONFIG_HEADERS
  15496. CONFIG_LINKS = $CONFIG_LINKS
  15497. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15498. $ $0 $@
  15499. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15500. "
  15501. _ACEOF
  15502. case $ac_config_files in *"
  15503. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15504. esac
  15505. case $ac_config_headers in *"
  15506. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  15507. esac
  15508. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15509. # Files that config.status was made for.
  15510. config_files="$ac_config_files"
  15511. config_headers="$ac_config_headers"
  15512. config_commands="$ac_config_commands"
  15513. _ACEOF
  15514. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15515. ac_cs_usage="\
  15516. \`$as_me' instantiates files and other configuration actions
  15517. from templates according to the current configuration. Unless the files
  15518. and actions are specified as TAGs, all are instantiated by default.
  15519. Usage: $0 [OPTION]... [TAG]...
  15520. -h, --help print this help, then exit
  15521. -V, --version print version number and configuration settings, then exit
  15522. --config print configuration, then exit
  15523. -q, --quiet, --silent
  15524. do not print progress messages
  15525. -d, --debug don't remove temporary files
  15526. --recheck update $as_me by reconfiguring in the same conditions
  15527. --file=FILE[:TEMPLATE]
  15528. instantiate the configuration file FILE
  15529. --header=FILE[:TEMPLATE]
  15530. instantiate the configuration header FILE
  15531. Configuration files:
  15532. $config_files
  15533. Configuration headers:
  15534. $config_headers
  15535. Configuration commands:
  15536. $config_commands
  15537. Report bugs to <opensource@google.com>."
  15538. _ACEOF
  15539. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15540. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15541. ac_cs_version="\\
  15542. glog config.status 0.3.5
  15543. configured by $0, generated by GNU Autoconf 2.69,
  15544. with options \\"\$ac_cs_config\\"
  15545. Copyright (C) 2012 Free Software Foundation, Inc.
  15546. This config.status script is free software; the Free Software Foundation
  15547. gives unlimited permission to copy, distribute and modify it."
  15548. ac_pwd='$ac_pwd'
  15549. srcdir='$srcdir'
  15550. INSTALL='$INSTALL'
  15551. MKDIR_P='$MKDIR_P'
  15552. AWK='$AWK'
  15553. test -n "\$AWK" || AWK=awk
  15554. _ACEOF
  15555. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15556. # The default lists apply if the user does not specify any file.
  15557. ac_need_defaults=:
  15558. while test $# != 0
  15559. do
  15560. case $1 in
  15561. --*=?*)
  15562. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15563. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15564. ac_shift=:
  15565. ;;
  15566. --*=)
  15567. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15568. ac_optarg=
  15569. ac_shift=:
  15570. ;;
  15571. *)
  15572. ac_option=$1
  15573. ac_optarg=$2
  15574. ac_shift=shift
  15575. ;;
  15576. esac
  15577. case $ac_option in
  15578. # Handling of the options.
  15579. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15580. ac_cs_recheck=: ;;
  15581. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15582. $as_echo "$ac_cs_version"; exit ;;
  15583. --config | --confi | --conf | --con | --co | --c )
  15584. $as_echo "$ac_cs_config"; exit ;;
  15585. --debug | --debu | --deb | --de | --d | -d )
  15586. debug=: ;;
  15587. --file | --fil | --fi | --f )
  15588. $ac_shift
  15589. case $ac_optarg in
  15590. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15591. '') as_fn_error $? "missing file argument" ;;
  15592. esac
  15593. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15594. ac_need_defaults=false;;
  15595. --header | --heade | --head | --hea )
  15596. $ac_shift
  15597. case $ac_optarg in
  15598. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15599. esac
  15600. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  15601. ac_need_defaults=false;;
  15602. --he | --h)
  15603. # Conflict between --help and --header
  15604. as_fn_error $? "ambiguous option: \`$1'
  15605. Try \`$0 --help' for more information.";;
  15606. --help | --hel | -h )
  15607. $as_echo "$ac_cs_usage"; exit ;;
  15608. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15609. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15610. ac_cs_silent=: ;;
  15611. # This is an error.
  15612. -*) as_fn_error $? "unrecognized option: \`$1'
  15613. Try \`$0 --help' for more information." ;;
  15614. *) as_fn_append ac_config_targets " $1"
  15615. ac_need_defaults=false ;;
  15616. esac
  15617. shift
  15618. done
  15619. ac_configure_extra_args=
  15620. if $ac_cs_silent; then
  15621. exec 6>/dev/null
  15622. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15623. fi
  15624. _ACEOF
  15625. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15626. if \$ac_cs_recheck; then
  15627. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15628. shift
  15629. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15630. CONFIG_SHELL='$SHELL'
  15631. export CONFIG_SHELL
  15632. exec "\$@"
  15633. fi
  15634. _ACEOF
  15635. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15636. exec 5>>config.log
  15637. {
  15638. echo
  15639. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15640. ## Running $as_me. ##
  15641. _ASBOX
  15642. $as_echo "$ac_log"
  15643. } >&5
  15644. _ACEOF
  15645. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15646. #
  15647. # INIT-COMMANDS
  15648. #
  15649. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15650. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15651. # if CDPATH is set.
  15652. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15653. sed_quote_subst='$sed_quote_subst'
  15654. double_quote_subst='$double_quote_subst'
  15655. delay_variable_subst='$delay_variable_subst'
  15656. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15657. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15658. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15659. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15660. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15661. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15662. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15663. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15664. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  15665. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15666. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15667. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15668. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15669. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15670. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15671. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15672. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15673. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15674. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15675. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15676. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15677. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15678. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15679. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15680. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15681. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15682. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15683. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15684. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15685. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15686. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15687. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15688. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15689. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15690. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15691. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15692. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15693. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15694. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15695. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15696. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15697. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15698. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15699. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15700. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15701. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15702. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15703. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15704. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15705. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15706. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15707. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15708. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15709. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15710. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15711. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15712. 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"`'
  15713. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15714. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15715. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15716. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15717. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15718. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15719. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15720. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15721. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15722. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15723. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15724. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15725. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15726. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15727. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15728. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15729. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15730. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15731. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15732. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15733. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15734. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15735. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15736. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15737. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15738. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15739. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15740. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15741. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15742. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15743. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15744. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15745. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15746. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15747. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15748. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15749. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15750. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15751. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15752. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15753. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15754. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15755. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15756. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15757. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15758. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15759. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15760. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15761. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15762. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15763. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15764. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15765. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15766. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15767. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15768. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15769. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15770. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15771. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15772. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15773. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15774. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15775. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15776. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15777. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15778. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15779. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15780. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15781. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15782. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15783. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15784. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15785. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15786. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15787. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15788. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15789. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15790. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15791. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15792. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15793. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15794. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15795. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15796. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15797. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15798. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15799. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15800. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15801. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15802. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15803. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15804. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15805. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15806. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15807. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15808. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15809. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15810. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15811. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15812. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15813. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15814. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15815. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15816. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15817. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15818. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15819. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15820. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15821. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15822. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15823. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15824. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15825. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15826. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15827. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15828. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15829. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15830. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15831. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15832. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15833. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15834. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15835. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15836. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15837. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15838. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15839. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15840. LTCC='$LTCC'
  15841. LTCFLAGS='$LTCFLAGS'
  15842. compiler='$compiler_DEFAULT'
  15843. # A function that is used when there is no print builtin or printf.
  15844. func_fallback_echo ()
  15845. {
  15846. eval 'cat <<_LTECHO_EOF
  15847. \$1
  15848. _LTECHO_EOF'
  15849. }
  15850. # Quote evaled strings.
  15851. for var in SHELL \
  15852. ECHO \
  15853. PATH_SEPARATOR \
  15854. SED \
  15855. GREP \
  15856. EGREP \
  15857. FGREP \
  15858. LD \
  15859. NM \
  15860. LN_S \
  15861. lt_SP2NL \
  15862. lt_NL2SP \
  15863. reload_flag \
  15864. OBJDUMP \
  15865. deplibs_check_method \
  15866. file_magic_cmd \
  15867. file_magic_glob \
  15868. want_nocaseglob \
  15869. DLLTOOL \
  15870. sharedlib_from_linklib_cmd \
  15871. AR \
  15872. AR_FLAGS \
  15873. archiver_list_spec \
  15874. STRIP \
  15875. RANLIB \
  15876. CC \
  15877. CFLAGS \
  15878. compiler \
  15879. lt_cv_sys_global_symbol_pipe \
  15880. lt_cv_sys_global_symbol_to_cdecl \
  15881. lt_cv_sys_global_symbol_to_c_name_address \
  15882. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15883. nm_file_list_spec \
  15884. lt_prog_compiler_no_builtin_flag \
  15885. lt_prog_compiler_pic \
  15886. lt_prog_compiler_wl \
  15887. lt_prog_compiler_static \
  15888. lt_cv_prog_compiler_c_o \
  15889. need_locks \
  15890. MANIFEST_TOOL \
  15891. DSYMUTIL \
  15892. NMEDIT \
  15893. LIPO \
  15894. OTOOL \
  15895. OTOOL64 \
  15896. shrext_cmds \
  15897. export_dynamic_flag_spec \
  15898. whole_archive_flag_spec \
  15899. compiler_needs_object \
  15900. with_gnu_ld \
  15901. allow_undefined_flag \
  15902. no_undefined_flag \
  15903. hardcode_libdir_flag_spec \
  15904. hardcode_libdir_separator \
  15905. exclude_expsyms \
  15906. include_expsyms \
  15907. file_list_spec \
  15908. variables_saved_for_relink \
  15909. libname_spec \
  15910. library_names_spec \
  15911. soname_spec \
  15912. install_override_mode \
  15913. finish_eval \
  15914. old_striplib \
  15915. striplib \
  15916. compiler_lib_search_dirs \
  15917. predep_objects \
  15918. postdep_objects \
  15919. predeps \
  15920. postdeps \
  15921. compiler_lib_search_path \
  15922. LD_CXX \
  15923. reload_flag_CXX \
  15924. compiler_CXX \
  15925. lt_prog_compiler_no_builtin_flag_CXX \
  15926. lt_prog_compiler_pic_CXX \
  15927. lt_prog_compiler_wl_CXX \
  15928. lt_prog_compiler_static_CXX \
  15929. lt_cv_prog_compiler_c_o_CXX \
  15930. export_dynamic_flag_spec_CXX \
  15931. whole_archive_flag_spec_CXX \
  15932. compiler_needs_object_CXX \
  15933. with_gnu_ld_CXX \
  15934. allow_undefined_flag_CXX \
  15935. no_undefined_flag_CXX \
  15936. hardcode_libdir_flag_spec_CXX \
  15937. hardcode_libdir_separator_CXX \
  15938. exclude_expsyms_CXX \
  15939. include_expsyms_CXX \
  15940. file_list_spec_CXX \
  15941. compiler_lib_search_dirs_CXX \
  15942. predep_objects_CXX \
  15943. postdep_objects_CXX \
  15944. predeps_CXX \
  15945. postdeps_CXX \
  15946. compiler_lib_search_path_CXX; do
  15947. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15948. *[\\\\\\\`\\"\\\$]*)
  15949. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15950. ;;
  15951. *)
  15952. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15953. ;;
  15954. esac
  15955. done
  15956. # Double-quote double-evaled strings.
  15957. for var in reload_cmds \
  15958. old_postinstall_cmds \
  15959. old_postuninstall_cmds \
  15960. old_archive_cmds \
  15961. extract_expsyms_cmds \
  15962. old_archive_from_new_cmds \
  15963. old_archive_from_expsyms_cmds \
  15964. archive_cmds \
  15965. archive_expsym_cmds \
  15966. module_cmds \
  15967. module_expsym_cmds \
  15968. export_symbols_cmds \
  15969. prelink_cmds \
  15970. postlink_cmds \
  15971. postinstall_cmds \
  15972. postuninstall_cmds \
  15973. finish_cmds \
  15974. sys_lib_search_path_spec \
  15975. sys_lib_dlsearch_path_spec \
  15976. reload_cmds_CXX \
  15977. old_archive_cmds_CXX \
  15978. old_archive_from_new_cmds_CXX \
  15979. old_archive_from_expsyms_cmds_CXX \
  15980. archive_cmds_CXX \
  15981. archive_expsym_cmds_CXX \
  15982. module_cmds_CXX \
  15983. module_expsym_cmds_CXX \
  15984. export_symbols_cmds_CXX \
  15985. prelink_cmds_CXX \
  15986. postlink_cmds_CXX; do
  15987. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15988. *[\\\\\\\`\\"\\\$]*)
  15989. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15990. ;;
  15991. *)
  15992. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15993. ;;
  15994. esac
  15995. done
  15996. ac_aux_dir='$ac_aux_dir'
  15997. xsi_shell='$xsi_shell'
  15998. lt_shell_append='$lt_shell_append'
  15999. # See if we are running on zsh, and set the options which allow our
  16000. # commands through without removal of \ escapes INIT.
  16001. if test -n "\${ZSH_VERSION+set}" ; then
  16002. setopt NO_GLOB_SUBST
  16003. fi
  16004. PACKAGE='$PACKAGE'
  16005. VERSION='$VERSION'
  16006. TIMESTAMP='$TIMESTAMP'
  16007. RM='$RM'
  16008. ofile='$ofile'
  16009. _ACEOF
  16010. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16011. # Handling of arguments.
  16012. for ac_config_target in $ac_config_targets
  16013. do
  16014. case $ac_config_target in
  16015. "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
  16016. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16017. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16018. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16019. "src/glog/logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/logging.h" ;;
  16020. "src/glog/raw_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/raw_logging.h" ;;
  16021. "src/glog/vlog_is_on.h") CONFIG_FILES="$CONFIG_FILES src/glog/vlog_is_on.h" ;;
  16022. "src/glog/stl_logging.h") CONFIG_FILES="$CONFIG_FILES src/glog/stl_logging.h" ;;
  16023. "libglog.pc") CONFIG_FILES="$CONFIG_FILES libglog.pc" ;;
  16024. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  16025. esac
  16026. done
  16027. # If the user did not use the arguments to specify the items to instantiate,
  16028. # then the envvar interface is used. Set only those that are not.
  16029. # We use the long form for the default assignment because of an extremely
  16030. # bizarre bug on SunOS 4.1.3.
  16031. if $ac_need_defaults; then
  16032. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16033. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  16034. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16035. fi
  16036. # Have a temporary directory for convenience. Make it in the build tree
  16037. # simply because there is no reason against having it here, and in addition,
  16038. # creating and moving files from /tmp can sometimes cause problems.
  16039. # Hook for its removal unless debugging.
  16040. # Note that there is a small window in which the directory will not be cleaned:
  16041. # after its creation but before its name has been assigned to `$tmp'.
  16042. $debug ||
  16043. {
  16044. tmp= ac_tmp=
  16045. trap 'exit_status=$?
  16046. : "${ac_tmp:=$tmp}"
  16047. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  16048. ' 0
  16049. trap 'as_fn_exit 1' 1 2 13 15
  16050. }
  16051. # Create a (secure) tmp directory for tmp files.
  16052. {
  16053. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16054. test -d "$tmp"
  16055. } ||
  16056. {
  16057. tmp=./conf$$-$RANDOM
  16058. (umask 077 && mkdir "$tmp")
  16059. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  16060. ac_tmp=$tmp
  16061. # Set up the scripts for CONFIG_FILES section.
  16062. # No need to generate them if there are no CONFIG_FILES.
  16063. # This happens for instance with `./config.status config.h'.
  16064. if test -n "$CONFIG_FILES"; then
  16065. ac_cr=`echo X | tr X '\015'`
  16066. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  16067. # But we know of no other shell where ac_cr would be empty at this
  16068. # point, so we can use a bashism as a fallback.
  16069. if test "x$ac_cr" = x; then
  16070. eval ac_cr=\$\'\\r\'
  16071. fi
  16072. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16073. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16074. ac_cs_awk_cr='\\r'
  16075. else
  16076. ac_cs_awk_cr=$ac_cr
  16077. fi
  16078. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  16079. _ACEOF
  16080. {
  16081. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16082. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16083. echo "_ACEOF"
  16084. } >conf$$subs.sh ||
  16085. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16086. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  16087. ac_delim='%!_!# '
  16088. for ac_last_try in false false false false false :; do
  16089. . ./conf$$subs.sh ||
  16090. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16091. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16092. if test $ac_delim_n = $ac_delim_num; then
  16093. break
  16094. elif $ac_last_try; then
  16095. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16096. else
  16097. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16098. fi
  16099. done
  16100. rm -f conf$$subs.sh
  16101. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16102. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  16103. _ACEOF
  16104. sed -n '
  16105. h
  16106. s/^/S["/; s/!.*/"]=/
  16107. p
  16108. g
  16109. s/^[^!]*!//
  16110. :repl
  16111. t repl
  16112. s/'"$ac_delim"'$//
  16113. t delim
  16114. :nl
  16115. h
  16116. s/\(.\{148\}\)..*/\1/
  16117. t more1
  16118. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16119. p
  16120. n
  16121. b repl
  16122. :more1
  16123. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16124. p
  16125. g
  16126. s/.\{148\}//
  16127. t nl
  16128. :delim
  16129. h
  16130. s/\(.\{148\}\)..*/\1/
  16131. t more2
  16132. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16133. p
  16134. b
  16135. :more2
  16136. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16137. p
  16138. g
  16139. s/.\{148\}//
  16140. t delim
  16141. ' <conf$$subs.awk | sed '
  16142. /^[^""]/{
  16143. N
  16144. s/\n//
  16145. }
  16146. ' >>$CONFIG_STATUS || ac_write_fail=1
  16147. rm -f conf$$subs.awk
  16148. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16149. _ACAWK
  16150. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  16151. for (key in S) S_is_set[key] = 1
  16152. FS = ""
  16153. }
  16154. {
  16155. line = $ 0
  16156. nfields = split(line, field, "@")
  16157. substed = 0
  16158. len = length(field[1])
  16159. for (i = 2; i < nfields; i++) {
  16160. key = field[i]
  16161. keylen = length(key)
  16162. if (S_is_set[key]) {
  16163. value = S[key]
  16164. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16165. len += length(value) + length(field[++i])
  16166. substed = 1
  16167. } else
  16168. len += 1 + keylen
  16169. }
  16170. print line
  16171. }
  16172. _ACAWK
  16173. _ACEOF
  16174. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16175. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16176. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16177. else
  16178. cat
  16179. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  16180. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  16181. _ACEOF
  16182. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  16183. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  16184. # trailing colons and then remove the whole line if VPATH becomes empty
  16185. # (actually we leave an empty line to preserve line numbers).
  16186. if test "x$srcdir" = x.; then
  16187. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  16188. h
  16189. s///
  16190. s/^/:/
  16191. s/[ ]*$/:/
  16192. s/:\$(srcdir):/:/g
  16193. s/:\${srcdir}:/:/g
  16194. s/:@srcdir@:/:/g
  16195. s/^:*//
  16196. s/:*$//
  16197. x
  16198. s/\(=[ ]*\).*/\1/
  16199. G
  16200. s/\n//
  16201. s/^[^=]*=[ ]*$//
  16202. }'
  16203. fi
  16204. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16205. fi # test -n "$CONFIG_FILES"
  16206. # Set up the scripts for CONFIG_HEADERS section.
  16207. # No need to generate them if there are no CONFIG_HEADERS.
  16208. # This happens for instance with `./config.status Makefile'.
  16209. if test -n "$CONFIG_HEADERS"; then
  16210. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  16211. BEGIN {
  16212. _ACEOF
  16213. # Transform confdefs.h into an awk script `defines.awk', embedded as
  16214. # here-document in config.status, that substitutes the proper values into
  16215. # config.h.in to produce config.h.
  16216. # Create a delimiter string that does not exist in confdefs.h, to ease
  16217. # handling of long lines.
  16218. ac_delim='%!_!# '
  16219. for ac_last_try in false false :; do
  16220. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  16221. if test -z "$ac_tt"; then
  16222. break
  16223. elif $ac_last_try; then
  16224. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  16225. else
  16226. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16227. fi
  16228. done
  16229. # For the awk script, D is an array of macro values keyed by name,
  16230. # likewise P contains macro parameters if any. Preserve backslash
  16231. # newline sequences.
  16232. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  16233. sed -n '
  16234. s/.\{148\}/&'"$ac_delim"'/g
  16235. t rset
  16236. :rset
  16237. s/^[ ]*#[ ]*define[ ][ ]*/ /
  16238. t def
  16239. d
  16240. :def
  16241. s/\\$//
  16242. t bsnl
  16243. s/["\\]/\\&/g
  16244. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16245. D["\1"]=" \3"/p
  16246. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  16247. d
  16248. :bsnl
  16249. s/["\\]/\\&/g
  16250. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  16251. D["\1"]=" \3\\\\\\n"\\/p
  16252. t cont
  16253. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  16254. t cont
  16255. d
  16256. :cont
  16257. n
  16258. s/.\{148\}/&'"$ac_delim"'/g
  16259. t clear
  16260. :clear
  16261. s/\\$//
  16262. t bsnlc
  16263. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  16264. d
  16265. :bsnlc
  16266. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  16267. b cont
  16268. ' <confdefs.h | sed '
  16269. s/'"$ac_delim"'/"\\\
  16270. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  16271. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16272. for (key in D) D_is_set[key] = 1
  16273. FS = ""
  16274. }
  16275. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  16276. line = \$ 0
  16277. split(line, arg, " ")
  16278. if (arg[1] == "#") {
  16279. defundef = arg[2]
  16280. mac1 = arg[3]
  16281. } else {
  16282. defundef = substr(arg[1], 2)
  16283. mac1 = arg[2]
  16284. }
  16285. split(mac1, mac2, "(") #)
  16286. macro = mac2[1]
  16287. prefix = substr(line, 1, index(line, defundef) - 1)
  16288. if (D_is_set[macro]) {
  16289. # Preserve the white space surrounding the "#".
  16290. print prefix "define", macro P[macro] D[macro]
  16291. next
  16292. } else {
  16293. # Replace #undef with comments. This is necessary, for example,
  16294. # in the case of _POSIX_SOURCE, which is predefined and required
  16295. # on some systems where configure will not decide to define it.
  16296. if (defundef == "undef") {
  16297. print "/*", prefix defundef, macro, "*/"
  16298. next
  16299. }
  16300. }
  16301. }
  16302. { print }
  16303. _ACAWK
  16304. _ACEOF
  16305. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16306. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  16307. fi # test -n "$CONFIG_HEADERS"
  16308. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  16309. shift
  16310. for ac_tag
  16311. do
  16312. case $ac_tag in
  16313. :[FHLC]) ac_mode=$ac_tag; continue;;
  16314. esac
  16315. case $ac_mode$ac_tag in
  16316. :[FHL]*:*);;
  16317. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  16318. :[FH]-) ac_tag=-:-;;
  16319. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16320. esac
  16321. ac_save_IFS=$IFS
  16322. IFS=:
  16323. set x $ac_tag
  16324. IFS=$ac_save_IFS
  16325. shift
  16326. ac_file=$1
  16327. shift
  16328. case $ac_mode in
  16329. :L) ac_source=$1;;
  16330. :[FH])
  16331. ac_file_inputs=
  16332. for ac_f
  16333. do
  16334. case $ac_f in
  16335. -) ac_f="$ac_tmp/stdin";;
  16336. *) # Look for the file first in the build tree, then in the source tree
  16337. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16338. # because $ac_f cannot contain `:'.
  16339. test -f "$ac_f" ||
  16340. case $ac_f in
  16341. [\\/$]*) false;;
  16342. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16343. esac ||
  16344. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  16345. esac
  16346. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16347. as_fn_append ac_file_inputs " '$ac_f'"
  16348. done
  16349. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16350. # use $as_me), people would be surprised to read:
  16351. # /* config.h. Generated by config.status. */
  16352. configure_input='Generated from '`
  16353. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16354. `' by configure.'
  16355. if test x"$ac_file" != x-; then
  16356. configure_input="$ac_file. $configure_input"
  16357. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16358. $as_echo "$as_me: creating $ac_file" >&6;}
  16359. fi
  16360. # Neutralize special characters interpreted by sed in replacement strings.
  16361. case $configure_input in #(
  16362. *\&* | *\|* | *\\* )
  16363. ac_sed_conf_input=`$as_echo "$configure_input" |
  16364. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16365. *) ac_sed_conf_input=$configure_input;;
  16366. esac
  16367. case $ac_tag in
  16368. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  16369. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16370. esac
  16371. ;;
  16372. esac
  16373. ac_dir=`$as_dirname -- "$ac_file" ||
  16374. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16375. X"$ac_file" : 'X\(//\)[^/]' \| \
  16376. X"$ac_file" : 'X\(//\)$' \| \
  16377. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16378. $as_echo X"$ac_file" |
  16379. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16380. s//\1/
  16381. q
  16382. }
  16383. /^X\(\/\/\)[^/].*/{
  16384. s//\1/
  16385. q
  16386. }
  16387. /^X\(\/\/\)$/{
  16388. s//\1/
  16389. q
  16390. }
  16391. /^X\(\/\).*/{
  16392. s//\1/
  16393. q
  16394. }
  16395. s/.*/./; q'`
  16396. as_dir="$ac_dir"; as_fn_mkdir_p
  16397. ac_builddir=.
  16398. case "$ac_dir" in
  16399. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16400. *)
  16401. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16402. # A ".." for each directory in $ac_dir_suffix.
  16403. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16404. case $ac_top_builddir_sub in
  16405. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16406. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16407. esac ;;
  16408. esac
  16409. ac_abs_top_builddir=$ac_pwd
  16410. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16411. # for backward compatibility:
  16412. ac_top_builddir=$ac_top_build_prefix
  16413. case $srcdir in
  16414. .) # We are building in place.
  16415. ac_srcdir=.
  16416. ac_top_srcdir=$ac_top_builddir_sub
  16417. ac_abs_top_srcdir=$ac_pwd ;;
  16418. [\\/]* | ?:[\\/]* ) # Absolute name.
  16419. ac_srcdir=$srcdir$ac_dir_suffix;
  16420. ac_top_srcdir=$srcdir
  16421. ac_abs_top_srcdir=$srcdir ;;
  16422. *) # Relative name.
  16423. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16424. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16425. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16426. esac
  16427. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16428. case $ac_mode in
  16429. :F)
  16430. #
  16431. # CONFIG_FILE
  16432. #
  16433. case $INSTALL in
  16434. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16435. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16436. esac
  16437. ac_MKDIR_P=$MKDIR_P
  16438. case $MKDIR_P in
  16439. [\\/$]* | ?:[\\/]* ) ;;
  16440. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16441. esac
  16442. _ACEOF
  16443. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16444. # If the template does not know about datarootdir, expand it.
  16445. # FIXME: This hack should be removed a few years after 2.60.
  16446. ac_datarootdir_hack=; ac_datarootdir_seen=
  16447. ac_sed_dataroot='
  16448. /datarootdir/ {
  16449. p
  16450. q
  16451. }
  16452. /@datadir@/p
  16453. /@docdir@/p
  16454. /@infodir@/p
  16455. /@localedir@/p
  16456. /@mandir@/p'
  16457. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16458. *datarootdir*) ac_datarootdir_seen=yes;;
  16459. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16460. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16461. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16462. _ACEOF
  16463. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16464. ac_datarootdir_hack='
  16465. s&@datadir@&$datadir&g
  16466. s&@docdir@&$docdir&g
  16467. s&@infodir@&$infodir&g
  16468. s&@localedir@&$localedir&g
  16469. s&@mandir@&$mandir&g
  16470. s&\\\${datarootdir}&$datarootdir&g' ;;
  16471. esac
  16472. _ACEOF
  16473. # Neutralize VPATH when `$srcdir' = `.'.
  16474. # Shell code in configure.ac might set extrasub.
  16475. # FIXME: do we really want to maintain this feature?
  16476. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16477. ac_sed_extra="$ac_vpsub
  16478. $extrasub
  16479. _ACEOF
  16480. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16481. :t
  16482. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16483. s|@configure_input@|$ac_sed_conf_input|;t t
  16484. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16485. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16486. s&@srcdir@&$ac_srcdir&;t t
  16487. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16488. s&@top_srcdir@&$ac_top_srcdir&;t t
  16489. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16490. s&@builddir@&$ac_builddir&;t t
  16491. s&@abs_builddir@&$ac_abs_builddir&;t t
  16492. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16493. s&@INSTALL@&$ac_INSTALL&;t t
  16494. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16495. $ac_datarootdir_hack
  16496. "
  16497. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  16498. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16499. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16500. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  16501. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  16502. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  16503. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16504. which seems to be undefined. Please make sure it is defined" >&5
  16505. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16506. which seems to be undefined. Please make sure it is defined" >&2;}
  16507. rm -f "$ac_tmp/stdin"
  16508. case $ac_file in
  16509. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  16510. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  16511. esac \
  16512. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16513. ;;
  16514. :H)
  16515. #
  16516. # CONFIG_HEADER
  16517. #
  16518. if test x"$ac_file" != x-; then
  16519. {
  16520. $as_echo "/* $configure_input */" \
  16521. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  16522. } >"$ac_tmp/config.h" \
  16523. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16524. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  16525. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  16526. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  16527. else
  16528. rm -f "$ac_file"
  16529. mv "$ac_tmp/config.h" "$ac_file" \
  16530. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16531. fi
  16532. else
  16533. $as_echo "/* $configure_input */" \
  16534. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  16535. || as_fn_error $? "could not create -" "$LINENO" 5
  16536. fi
  16537. # Compute "$ac_file"'s index in $config_headers.
  16538. _am_arg="$ac_file"
  16539. _am_stamp_count=1
  16540. for _am_header in $config_headers :; do
  16541. case $_am_header in
  16542. $_am_arg | $_am_arg:* )
  16543. break ;;
  16544. * )
  16545. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  16546. esac
  16547. done
  16548. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  16549. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16550. X"$_am_arg" : 'X\(//\)[^/]' \| \
  16551. X"$_am_arg" : 'X\(//\)$' \| \
  16552. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  16553. $as_echo X"$_am_arg" |
  16554. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16555. s//\1/
  16556. q
  16557. }
  16558. /^X\(\/\/\)[^/].*/{
  16559. s//\1/
  16560. q
  16561. }
  16562. /^X\(\/\/\)$/{
  16563. s//\1/
  16564. q
  16565. }
  16566. /^X\(\/\).*/{
  16567. s//\1/
  16568. q
  16569. }
  16570. s/.*/./; q'`/stamp-h$_am_stamp_count
  16571. ;;
  16572. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16573. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16574. ;;
  16575. esac
  16576. case $ac_file$ac_mode in
  16577. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16578. # Older Autoconf quotes --file arguments for eval, but not when files
  16579. # are listed without --file. Let's play safe and only enable the eval
  16580. # if we detect the quoting.
  16581. case $CONFIG_FILES in
  16582. *\'*) eval set x "$CONFIG_FILES" ;;
  16583. *) set x $CONFIG_FILES ;;
  16584. esac
  16585. shift
  16586. for mf
  16587. do
  16588. # Strip MF so we end up with the name of the file.
  16589. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16590. # Check whether this is an Automake generated Makefile or not.
  16591. # We used to match only the files named 'Makefile.in', but
  16592. # some people rename them; so instead we look at the file content.
  16593. # Grep'ing the first line is not enough: some people post-process
  16594. # each Makefile.in and add a new line on top of each file to say so.
  16595. # Grep'ing the whole file is not good either: AIX grep has a line
  16596. # limit of 2048, but all sed's we know have understand at least 4000.
  16597. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16598. dirpart=`$as_dirname -- "$mf" ||
  16599. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16600. X"$mf" : 'X\(//\)[^/]' \| \
  16601. X"$mf" : 'X\(//\)$' \| \
  16602. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16603. $as_echo X"$mf" |
  16604. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16605. s//\1/
  16606. q
  16607. }
  16608. /^X\(\/\/\)[^/].*/{
  16609. s//\1/
  16610. q
  16611. }
  16612. /^X\(\/\/\)$/{
  16613. s//\1/
  16614. q
  16615. }
  16616. /^X\(\/\).*/{
  16617. s//\1/
  16618. q
  16619. }
  16620. s/.*/./; q'`
  16621. else
  16622. continue
  16623. fi
  16624. # Extract the definition of DEPDIR, am__include, and am__quote
  16625. # from the Makefile without running 'make'.
  16626. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16627. test -z "$DEPDIR" && continue
  16628. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16629. test -z "$am__include" && continue
  16630. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16631. # Find all dependency output files, they are included files with
  16632. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16633. # simplest approach to changing $(DEPDIR) to its actual value in the
  16634. # expansion.
  16635. for file in `sed -n "
  16636. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16637. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  16638. # Make sure the directory exists.
  16639. test -f "$dirpart/$file" && continue
  16640. fdir=`$as_dirname -- "$file" ||
  16641. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16642. X"$file" : 'X\(//\)[^/]' \| \
  16643. X"$file" : 'X\(//\)$' \| \
  16644. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16645. $as_echo X"$file" |
  16646. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16647. s//\1/
  16648. q
  16649. }
  16650. /^X\(\/\/\)[^/].*/{
  16651. s//\1/
  16652. q
  16653. }
  16654. /^X\(\/\/\)$/{
  16655. s//\1/
  16656. q
  16657. }
  16658. /^X\(\/\).*/{
  16659. s//\1/
  16660. q
  16661. }
  16662. s/.*/./; q'`
  16663. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16664. # echo "creating $dirpart/$file"
  16665. echo '# dummy' > "$dirpart/$file"
  16666. done
  16667. done
  16668. }
  16669. ;;
  16670. "libtool":C)
  16671. # See if we are running on zsh, and set the options which allow our
  16672. # commands through without removal of \ escapes.
  16673. if test -n "${ZSH_VERSION+set}" ; then
  16674. setopt NO_GLOB_SUBST
  16675. fi
  16676. cfgfile="${ofile}T"
  16677. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16678. $RM "$cfgfile"
  16679. cat <<_LT_EOF >> "$cfgfile"
  16680. #! $SHELL
  16681. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16682. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16683. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16684. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16685. #
  16686. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16687. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  16688. # Foundation, Inc.
  16689. # Written by Gordon Matzigkeit, 1996
  16690. #
  16691. # This file is part of GNU Libtool.
  16692. #
  16693. # GNU Libtool is free software; you can redistribute it and/or
  16694. # modify it under the terms of the GNU General Public License as
  16695. # published by the Free Software Foundation; either version 2 of
  16696. # the License, or (at your option) any later version.
  16697. #
  16698. # As a special exception to the GNU General Public License,
  16699. # if you distribute this file as part of a program or library that
  16700. # is built using GNU Libtool, you may include this file under the
  16701. # same distribution terms that you use for the rest of that program.
  16702. #
  16703. # GNU Libtool is distributed in the hope that it will be useful,
  16704. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16705. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16706. # GNU General Public License for more details.
  16707. #
  16708. # You should have received a copy of the GNU General Public License
  16709. # along with GNU Libtool; see the file COPYING. If not, a copy
  16710. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16711. # obtained by writing to the Free Software Foundation, Inc.,
  16712. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16713. # The names of the tagged configurations supported by this script.
  16714. available_tags="CXX "
  16715. # ### BEGIN LIBTOOL CONFIG
  16716. # Which release of libtool.m4 was used?
  16717. macro_version=$macro_version
  16718. macro_revision=$macro_revision
  16719. # Whether or not to build shared libraries.
  16720. build_libtool_libs=$enable_shared
  16721. # Whether or not to build static libraries.
  16722. build_old_libs=$enable_static
  16723. # What type of objects to build.
  16724. pic_mode=$pic_mode
  16725. # Whether or not to optimize for fast installation.
  16726. fast_install=$enable_fast_install
  16727. # Shell to use when invoking shell scripts.
  16728. SHELL=$lt_SHELL
  16729. # An echo program that protects backslashes.
  16730. ECHO=$lt_ECHO
  16731. # The PATH separator for the build system.
  16732. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  16733. # The host system.
  16734. host_alias=$host_alias
  16735. host=$host
  16736. host_os=$host_os
  16737. # The build system.
  16738. build_alias=$build_alias
  16739. build=$build
  16740. build_os=$build_os
  16741. # A sed program that does not truncate output.
  16742. SED=$lt_SED
  16743. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16744. Xsed="\$SED -e 1s/^X//"
  16745. # A grep program that handles long lines.
  16746. GREP=$lt_GREP
  16747. # An ERE matcher.
  16748. EGREP=$lt_EGREP
  16749. # A literal string matcher.
  16750. FGREP=$lt_FGREP
  16751. # A BSD- or MS-compatible name lister.
  16752. NM=$lt_NM
  16753. # Whether we need soft or hard links.
  16754. LN_S=$lt_LN_S
  16755. # What is the maximum length of a command?
  16756. max_cmd_len=$max_cmd_len
  16757. # Object file suffix (normally "o").
  16758. objext=$ac_objext
  16759. # Executable file suffix (normally "").
  16760. exeext=$exeext
  16761. # whether the shell understands "unset".
  16762. lt_unset=$lt_unset
  16763. # turn spaces into newlines.
  16764. SP2NL=$lt_lt_SP2NL
  16765. # turn newlines into spaces.
  16766. NL2SP=$lt_lt_NL2SP
  16767. # convert \$build file names to \$host format.
  16768. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16769. # convert \$build files to toolchain format.
  16770. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16771. # An object symbol dumper.
  16772. OBJDUMP=$lt_OBJDUMP
  16773. # Method to check whether dependent libraries are shared objects.
  16774. deplibs_check_method=$lt_deplibs_check_method
  16775. # Command to use when deplibs_check_method = "file_magic".
  16776. file_magic_cmd=$lt_file_magic_cmd
  16777. # How to find potential files when deplibs_check_method = "file_magic".
  16778. file_magic_glob=$lt_file_magic_glob
  16779. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16780. want_nocaseglob=$lt_want_nocaseglob
  16781. # DLL creation program.
  16782. DLLTOOL=$lt_DLLTOOL
  16783. # Command to associate shared and link libraries.
  16784. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16785. # The archiver.
  16786. AR=$lt_AR
  16787. # Flags to create an archive.
  16788. AR_FLAGS=$lt_AR_FLAGS
  16789. # How to feed a file listing to the archiver.
  16790. archiver_list_spec=$lt_archiver_list_spec
  16791. # A symbol stripping program.
  16792. STRIP=$lt_STRIP
  16793. # Commands used to install an old-style archive.
  16794. RANLIB=$lt_RANLIB
  16795. old_postinstall_cmds=$lt_old_postinstall_cmds
  16796. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16797. # Whether to use a lock for old archive extraction.
  16798. lock_old_archive_extraction=$lock_old_archive_extraction
  16799. # A C compiler.
  16800. LTCC=$lt_CC
  16801. # LTCC compiler flags.
  16802. LTCFLAGS=$lt_CFLAGS
  16803. # Take the output of nm and produce a listing of raw symbols and C names.
  16804. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16805. # Transform the output of nm in a proper C declaration.
  16806. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16807. # Transform the output of nm in a C name address pair.
  16808. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16809. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16810. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16811. # Specify filename containing input files for \$NM.
  16812. nm_file_list_spec=$lt_nm_file_list_spec
  16813. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16814. lt_sysroot=$lt_sysroot
  16815. # The name of the directory that contains temporary libtool files.
  16816. objdir=$objdir
  16817. # Used to examine libraries when file_magic_cmd begins with "file".
  16818. MAGIC_CMD=$MAGIC_CMD
  16819. # Must we lock files when doing compilation?
  16820. need_locks=$lt_need_locks
  16821. # Manifest tool.
  16822. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16823. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16824. DSYMUTIL=$lt_DSYMUTIL
  16825. # Tool to change global to local symbols on Mac OS X.
  16826. NMEDIT=$lt_NMEDIT
  16827. # Tool to manipulate fat objects and archives on Mac OS X.
  16828. LIPO=$lt_LIPO
  16829. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16830. OTOOL=$lt_OTOOL
  16831. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16832. OTOOL64=$lt_OTOOL64
  16833. # Old archive suffix (normally "a").
  16834. libext=$libext
  16835. # Shared library suffix (normally ".so").
  16836. shrext_cmds=$lt_shrext_cmds
  16837. # The commands to extract the exported symbol list from a shared archive.
  16838. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16839. # Variables whose values should be saved in libtool wrapper scripts and
  16840. # restored at link time.
  16841. variables_saved_for_relink=$lt_variables_saved_for_relink
  16842. # Do we need the "lib" prefix for modules?
  16843. need_lib_prefix=$need_lib_prefix
  16844. # Do we need a version for libraries?
  16845. need_version=$need_version
  16846. # Library versioning type.
  16847. version_type=$version_type
  16848. # Shared library runtime path variable.
  16849. runpath_var=$runpath_var
  16850. # Shared library path variable.
  16851. shlibpath_var=$shlibpath_var
  16852. # Is shlibpath searched before the hard-coded library search path?
  16853. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16854. # Format of library name prefix.
  16855. libname_spec=$lt_libname_spec
  16856. # List of archive names. First name is the real one, the rest are links.
  16857. # The last name is the one that the linker finds with -lNAME
  16858. library_names_spec=$lt_library_names_spec
  16859. # The coded name of the library, if different from the real name.
  16860. soname_spec=$lt_soname_spec
  16861. # Permission mode override for installation of shared libraries.
  16862. install_override_mode=$lt_install_override_mode
  16863. # Command to use after installation of a shared archive.
  16864. postinstall_cmds=$lt_postinstall_cmds
  16865. # Command to use after uninstallation of a shared archive.
  16866. postuninstall_cmds=$lt_postuninstall_cmds
  16867. # Commands used to finish a libtool library installation in a directory.
  16868. finish_cmds=$lt_finish_cmds
  16869. # As "finish_cmds", except a single script fragment to be evaled but
  16870. # not shown.
  16871. finish_eval=$lt_finish_eval
  16872. # Whether we should hardcode library paths into libraries.
  16873. hardcode_into_libs=$hardcode_into_libs
  16874. # Compile-time system search path for libraries.
  16875. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16876. # Run-time system search path for libraries.
  16877. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16878. # Whether dlopen is supported.
  16879. dlopen_support=$enable_dlopen
  16880. # Whether dlopen of programs is supported.
  16881. dlopen_self=$enable_dlopen_self
  16882. # Whether dlopen of statically linked programs is supported.
  16883. dlopen_self_static=$enable_dlopen_self_static
  16884. # Commands to strip libraries.
  16885. old_striplib=$lt_old_striplib
  16886. striplib=$lt_striplib
  16887. # The linker used to build libraries.
  16888. LD=$lt_LD
  16889. # How to create reloadable object files.
  16890. reload_flag=$lt_reload_flag
  16891. reload_cmds=$lt_reload_cmds
  16892. # Commands used to build an old-style archive.
  16893. old_archive_cmds=$lt_old_archive_cmds
  16894. # A language specific compiler.
  16895. CC=$lt_compiler
  16896. # Is the compiler the GNU compiler?
  16897. with_gcc=$GCC
  16898. # Compiler flag to turn off builtin functions.
  16899. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16900. # Additional compiler flags for building library objects.
  16901. pic_flag=$lt_lt_prog_compiler_pic
  16902. # How to pass a linker flag through the compiler.
  16903. wl=$lt_lt_prog_compiler_wl
  16904. # Compiler flag to prevent dynamic linking.
  16905. link_static_flag=$lt_lt_prog_compiler_static
  16906. # Does compiler simultaneously support -c and -o options?
  16907. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16908. # Whether or not to add -lc for building shared libraries.
  16909. build_libtool_need_lc=$archive_cmds_need_lc
  16910. # Whether or not to disallow shared libs when runtime libs are static.
  16911. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16912. # Compiler flag to allow reflexive dlopens.
  16913. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16914. # Compiler flag to generate shared objects directly from archives.
  16915. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16916. # Whether the compiler copes with passing no objects directly.
  16917. compiler_needs_object=$lt_compiler_needs_object
  16918. # Create an old-style archive from a shared archive.
  16919. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16920. # Create a temporary old-style archive to link instead of a shared archive.
  16921. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16922. # Commands used to build a shared archive.
  16923. archive_cmds=$lt_archive_cmds
  16924. archive_expsym_cmds=$lt_archive_expsym_cmds
  16925. # Commands used to build a loadable module if different from building
  16926. # a shared archive.
  16927. module_cmds=$lt_module_cmds
  16928. module_expsym_cmds=$lt_module_expsym_cmds
  16929. # Whether we are building with GNU ld or not.
  16930. with_gnu_ld=$lt_with_gnu_ld
  16931. # Flag that allows shared libraries with undefined symbols to be built.
  16932. allow_undefined_flag=$lt_allow_undefined_flag
  16933. # Flag that enforces no undefined symbols.
  16934. no_undefined_flag=$lt_no_undefined_flag
  16935. # Flag to hardcode \$libdir into a binary during linking.
  16936. # This must work even if \$libdir does not exist
  16937. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16938. # Whether we need a single "-rpath" flag with a separated argument.
  16939. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16940. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16941. # DIR into the resulting binary.
  16942. hardcode_direct=$hardcode_direct
  16943. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16944. # DIR into the resulting binary and the resulting library dependency is
  16945. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16946. # library is relocated.
  16947. hardcode_direct_absolute=$hardcode_direct_absolute
  16948. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16949. # into the resulting binary.
  16950. hardcode_minus_L=$hardcode_minus_L
  16951. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16952. # into the resulting binary.
  16953. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16954. # Set to "yes" if building a shared library automatically hardcodes DIR
  16955. # into the library and all subsequent libraries and executables linked
  16956. # against it.
  16957. hardcode_automatic=$hardcode_automatic
  16958. # Set to yes if linker adds runtime paths of dependent libraries
  16959. # to runtime path list.
  16960. inherit_rpath=$inherit_rpath
  16961. # Whether libtool must link a program against all its dependency libraries.
  16962. link_all_deplibs=$link_all_deplibs
  16963. # Set to "yes" if exported symbols are required.
  16964. always_export_symbols=$always_export_symbols
  16965. # The commands to list exported symbols.
  16966. export_symbols_cmds=$lt_export_symbols_cmds
  16967. # Symbols that should not be listed in the preloaded symbols.
  16968. exclude_expsyms=$lt_exclude_expsyms
  16969. # Symbols that must always be exported.
  16970. include_expsyms=$lt_include_expsyms
  16971. # Commands necessary for linking programs (against libraries) with templates.
  16972. prelink_cmds=$lt_prelink_cmds
  16973. # Commands necessary for finishing linking programs.
  16974. postlink_cmds=$lt_postlink_cmds
  16975. # Specify filename containing input files.
  16976. file_list_spec=$lt_file_list_spec
  16977. # How to hardcode a shared library path into an executable.
  16978. hardcode_action=$hardcode_action
  16979. # The directories searched by this compiler when creating a shared library.
  16980. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16981. # Dependencies to place before and after the objects being linked to
  16982. # create a shared library.
  16983. predep_objects=$lt_predep_objects
  16984. postdep_objects=$lt_postdep_objects
  16985. predeps=$lt_predeps
  16986. postdeps=$lt_postdeps
  16987. # The library search path used internally by the compiler when linking
  16988. # a shared library.
  16989. compiler_lib_search_path=$lt_compiler_lib_search_path
  16990. # ### END LIBTOOL CONFIG
  16991. _LT_EOF
  16992. case $host_os in
  16993. aix3*)
  16994. cat <<\_LT_EOF >> "$cfgfile"
  16995. # AIX sometimes has problems with the GCC collect2 program. For some
  16996. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16997. # vanish in a puff of smoke.
  16998. if test "X${COLLECT_NAMES+set}" != Xset; then
  16999. COLLECT_NAMES=
  17000. export COLLECT_NAMES
  17001. fi
  17002. _LT_EOF
  17003. ;;
  17004. esac
  17005. ltmain="$ac_aux_dir/ltmain.sh"
  17006. # We use sed instead of cat because bash on DJGPP gets confused if
  17007. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17008. # text mode, it properly converts lines to CR/LF. This bash problem
  17009. # is reportedly fixed, but why not run on old versions too?
  17010. sed '$q' "$ltmain" >> "$cfgfile" \
  17011. || (rm -f "$cfgfile"; exit 1)
  17012. if test x"$xsi_shell" = xyes; then
  17013. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  17014. func_dirname ()\
  17015. {\
  17016. \ case ${1} in\
  17017. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  17018. \ * ) func_dirname_result="${3}" ;;\
  17019. \ esac\
  17020. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  17021. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17022. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17023. test 0 -eq $? || _lt_function_replace_fail=:
  17024. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  17025. func_basename ()\
  17026. {\
  17027. \ func_basename_result="${1##*/}"\
  17028. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  17029. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17030. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17031. test 0 -eq $? || _lt_function_replace_fail=:
  17032. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  17033. func_dirname_and_basename ()\
  17034. {\
  17035. \ case ${1} in\
  17036. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  17037. \ * ) func_dirname_result="${3}" ;;\
  17038. \ esac\
  17039. \ func_basename_result="${1##*/}"\
  17040. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  17041. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17042. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17043. test 0 -eq $? || _lt_function_replace_fail=:
  17044. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  17045. func_stripname ()\
  17046. {\
  17047. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  17048. \ # positional parameters, so assign one to ordinary parameter first.\
  17049. \ func_stripname_result=${3}\
  17050. \ func_stripname_result=${func_stripname_result#"${1}"}\
  17051. \ func_stripname_result=${func_stripname_result%"${2}"}\
  17052. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  17053. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17054. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17055. test 0 -eq $? || _lt_function_replace_fail=:
  17056. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  17057. func_split_long_opt ()\
  17058. {\
  17059. \ func_split_long_opt_name=${1%%=*}\
  17060. \ func_split_long_opt_arg=${1#*=}\
  17061. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  17062. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17063. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17064. test 0 -eq $? || _lt_function_replace_fail=:
  17065. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  17066. func_split_short_opt ()\
  17067. {\
  17068. \ func_split_short_opt_arg=${1#??}\
  17069. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  17070. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  17071. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17072. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17073. test 0 -eq $? || _lt_function_replace_fail=:
  17074. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  17075. func_lo2o ()\
  17076. {\
  17077. \ case ${1} in\
  17078. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  17079. \ *) func_lo2o_result=${1} ;;\
  17080. \ esac\
  17081. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  17082. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17083. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17084. test 0 -eq $? || _lt_function_replace_fail=:
  17085. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  17086. func_xform ()\
  17087. {\
  17088. func_xform_result=${1%.*}.lo\
  17089. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  17090. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17091. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17092. test 0 -eq $? || _lt_function_replace_fail=:
  17093. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  17094. func_arith ()\
  17095. {\
  17096. func_arith_result=$(( $* ))\
  17097. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  17098. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17099. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17100. test 0 -eq $? || _lt_function_replace_fail=:
  17101. sed -e '/^func_len ()$/,/^} # func_len /c\
  17102. func_len ()\
  17103. {\
  17104. func_len_result=${#1}\
  17105. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  17106. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17107. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17108. test 0 -eq $? || _lt_function_replace_fail=:
  17109. fi
  17110. if test x"$lt_shell_append" = xyes; then
  17111. sed -e '/^func_append ()$/,/^} # func_append /c\
  17112. func_append ()\
  17113. {\
  17114. eval "${1}+=\\${2}"\
  17115. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  17116. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17117. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17118. test 0 -eq $? || _lt_function_replace_fail=:
  17119. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  17120. func_append_quoted ()\
  17121. {\
  17122. \ func_quote_for_eval "${2}"\
  17123. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  17124. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  17125. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17126. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17127. test 0 -eq $? || _lt_function_replace_fail=:
  17128. # Save a `func_append' function call where possible by direct use of '+='
  17129. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  17130. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17131. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17132. test 0 -eq $? || _lt_function_replace_fail=:
  17133. else
  17134. # Save a `func_append' function call even when '+=' is not available
  17135. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  17136. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17137. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17138. test 0 -eq $? || _lt_function_replace_fail=:
  17139. fi
  17140. if test x"$_lt_function_replace_fail" = x":"; then
  17141. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  17142. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  17143. fi
  17144. mv -f "$cfgfile" "$ofile" ||
  17145. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17146. chmod +x "$ofile"
  17147. cat <<_LT_EOF >> "$ofile"
  17148. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  17149. # The linker used to build libraries.
  17150. LD=$lt_LD_CXX
  17151. # How to create reloadable object files.
  17152. reload_flag=$lt_reload_flag_CXX
  17153. reload_cmds=$lt_reload_cmds_CXX
  17154. # Commands used to build an old-style archive.
  17155. old_archive_cmds=$lt_old_archive_cmds_CXX
  17156. # A language specific compiler.
  17157. CC=$lt_compiler_CXX
  17158. # Is the compiler the GNU compiler?
  17159. with_gcc=$GCC_CXX
  17160. # Compiler flag to turn off builtin functions.
  17161. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  17162. # Additional compiler flags for building library objects.
  17163. pic_flag=$lt_lt_prog_compiler_pic_CXX
  17164. # How to pass a linker flag through the compiler.
  17165. wl=$lt_lt_prog_compiler_wl_CXX
  17166. # Compiler flag to prevent dynamic linking.
  17167. link_static_flag=$lt_lt_prog_compiler_static_CXX
  17168. # Does compiler simultaneously support -c and -o options?
  17169. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  17170. # Whether or not to add -lc for building shared libraries.
  17171. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  17172. # Whether or not to disallow shared libs when runtime libs are static.
  17173. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  17174. # Compiler flag to allow reflexive dlopens.
  17175. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  17176. # Compiler flag to generate shared objects directly from archives.
  17177. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  17178. # Whether the compiler copes with passing no objects directly.
  17179. compiler_needs_object=$lt_compiler_needs_object_CXX
  17180. # Create an old-style archive from a shared archive.
  17181. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  17182. # Create a temporary old-style archive to link instead of a shared archive.
  17183. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  17184. # Commands used to build a shared archive.
  17185. archive_cmds=$lt_archive_cmds_CXX
  17186. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  17187. # Commands used to build a loadable module if different from building
  17188. # a shared archive.
  17189. module_cmds=$lt_module_cmds_CXX
  17190. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  17191. # Whether we are building with GNU ld or not.
  17192. with_gnu_ld=$lt_with_gnu_ld_CXX
  17193. # Flag that allows shared libraries with undefined symbols to be built.
  17194. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  17195. # Flag that enforces no undefined symbols.
  17196. no_undefined_flag=$lt_no_undefined_flag_CXX
  17197. # Flag to hardcode \$libdir into a binary during linking.
  17198. # This must work even if \$libdir does not exist
  17199. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  17200. # Whether we need a single "-rpath" flag with a separated argument.
  17201. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  17202. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17203. # DIR into the resulting binary.
  17204. hardcode_direct=$hardcode_direct_CXX
  17205. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17206. # DIR into the resulting binary and the resulting library dependency is
  17207. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17208. # library is relocated.
  17209. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  17210. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17211. # into the resulting binary.
  17212. hardcode_minus_L=$hardcode_minus_L_CXX
  17213. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17214. # into the resulting binary.
  17215. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  17216. # Set to "yes" if building a shared library automatically hardcodes DIR
  17217. # into the library and all subsequent libraries and executables linked
  17218. # against it.
  17219. hardcode_automatic=$hardcode_automatic_CXX
  17220. # Set to yes if linker adds runtime paths of dependent libraries
  17221. # to runtime path list.
  17222. inherit_rpath=$inherit_rpath_CXX
  17223. # Whether libtool must link a program against all its dependency libraries.
  17224. link_all_deplibs=$link_all_deplibs_CXX
  17225. # Set to "yes" if exported symbols are required.
  17226. always_export_symbols=$always_export_symbols_CXX
  17227. # The commands to list exported symbols.
  17228. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  17229. # Symbols that should not be listed in the preloaded symbols.
  17230. exclude_expsyms=$lt_exclude_expsyms_CXX
  17231. # Symbols that must always be exported.
  17232. include_expsyms=$lt_include_expsyms_CXX
  17233. # Commands necessary for linking programs (against libraries) with templates.
  17234. prelink_cmds=$lt_prelink_cmds_CXX
  17235. # Commands necessary for finishing linking programs.
  17236. postlink_cmds=$lt_postlink_cmds_CXX
  17237. # Specify filename containing input files.
  17238. file_list_spec=$lt_file_list_spec_CXX
  17239. # How to hardcode a shared library path into an executable.
  17240. hardcode_action=$hardcode_action_CXX
  17241. # The directories searched by this compiler when creating a shared library.
  17242. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  17243. # Dependencies to place before and after the objects being linked to
  17244. # create a shared library.
  17245. predep_objects=$lt_predep_objects_CXX
  17246. postdep_objects=$lt_postdep_objects_CXX
  17247. predeps=$lt_predeps_CXX
  17248. postdeps=$lt_postdeps_CXX
  17249. # The library search path used internally by the compiler when linking
  17250. # a shared library.
  17251. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  17252. # ### END LIBTOOL TAG CONFIG: CXX
  17253. _LT_EOF
  17254. ;;
  17255. esac
  17256. done # for ac_tag
  17257. as_fn_exit 0
  17258. _ACEOF
  17259. ac_clean_files=$ac_clean_files_save
  17260. test $ac_write_fail = 0 ||
  17261. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17262. # configure is writing to config.log, and then calls config.status.
  17263. # config.status does its own redirection, appending to config.log.
  17264. # Unfortunately, on DOS this fails, as config.log is still kept open
  17265. # by configure, so config.status won't be able to write to it; its
  17266. # output is simply discarded. So we exec the FD to /dev/null,
  17267. # effectively closing config.log, so it can be properly (re)opened and
  17268. # appended to by config.status. When coming back to configure, we
  17269. # need to make the FD available again.
  17270. if test "$no_create" != yes; then
  17271. ac_cs_success=:
  17272. ac_config_status_args=
  17273. test "$silent" = yes &&
  17274. ac_config_status_args="$ac_config_status_args --quiet"
  17275. exec 5>/dev/null
  17276. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17277. exec 5>>config.log
  17278. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17279. # would make configure fail if this is the last instruction.
  17280. $ac_cs_success || as_fn_exit 1
  17281. fi
  17282. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17283. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17284. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17285. fi