configure 526 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.65 for Google C++ Testing Framework 1.6.0.
  4. #
  5. # Report bugs to <[email protected]>.
  6. #
  7. #
  8. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  9. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  10. # Inc.
  11. #
  12. #
  13. # This configure script is free software; the Free Software Foundation
  14. # gives unlimited permission to copy, distribute and modify it.
  15. ## -------------------- ##
  16. ## M4sh Initialization. ##
  17. ## -------------------- ##
  18. # Be more Bourne compatible
  19. DUALCASE=1; export DUALCASE # for MKS sh
  20. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  21. emulate sh
  22. NULLCMD=:
  23. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  24. # is contrary to our usage. Disable this feature.
  25. alias -g '${1+"$@"}'='"$@"'
  26. setopt NO_GLOB_SUBST
  27. else
  28. case `(set -o) 2>/dev/null` in #(
  29. *posix*) :
  30. set -o posix ;; #(
  31. *) :
  32. ;;
  33. esac
  34. fi
  35. as_nl='
  36. '
  37. export as_nl
  38. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  39. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  40. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  42. # Prefer a ksh shell builtin over an external printf program on Solaris,
  43. # but without wasting forks for bash or zsh.
  44. if test -z "$BASH_VERSION$ZSH_VERSION" \
  45. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='print -r --'
  47. as_echo_n='print -rn --'
  48. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  49. as_echo='printf %s\n'
  50. as_echo_n='printf %s'
  51. else
  52. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  53. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  54. as_echo_n='/usr/ucb/echo -n'
  55. else
  56. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  57. as_echo_n_body='eval
  58. arg=$1;
  59. case $arg in #(
  60. *"$as_nl"*)
  61. expr "X$arg" : "X\\(.*\\)$as_nl";
  62. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  63. esac;
  64. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  65. '
  66. export as_echo_n_body
  67. as_echo_n='sh -c $as_echo_n_body as_echo'
  68. fi
  69. export as_echo_body
  70. as_echo='sh -c $as_echo_body as_echo'
  71. fi
  72. # The user is always right.
  73. if test "${PATH_SEPARATOR+set}" != set; then
  74. PATH_SEPARATOR=:
  75. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  76. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  77. PATH_SEPARATOR=';'
  78. }
  79. fi
  80. # IFS
  81. # We need space, tab and new line, in precisely that order. Quoting is
  82. # there to prevent editors from complaining about space-tab.
  83. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  84. # splitting by setting IFS to empty value.)
  85. IFS=" "" $as_nl"
  86. # Find who we are. Look in the path if we contain no directory separator.
  87. case $0 in #((
  88. *[\\/]* ) as_myself=$0 ;;
  89. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  90. for as_dir in $PATH
  91. do
  92. IFS=$as_save_IFS
  93. test -z "$as_dir" && as_dir=.
  94. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  95. done
  96. IFS=$as_save_IFS
  97. ;;
  98. esac
  99. # We did not find ourselves, most probably we were run as `sh COMMAND'
  100. # in which case we are not to be found in the path.
  101. if test "x$as_myself" = x; then
  102. as_myself=$0
  103. fi
  104. if test ! -f "$as_myself"; then
  105. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  106. exit 1
  107. fi
  108. # Unset variables that we do not need and which cause bugs (e.g. in
  109. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  110. # suppresses any "Segmentation fault" message there. '((' could
  111. # trigger a bug in pdksh 5.2.14.
  112. for as_var in BASH_ENV ENV MAIL MAILPATH
  113. do eval test x\${$as_var+set} = xset \
  114. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  115. done
  116. PS1='$ '
  117. PS2='> '
  118. PS4='+ '
  119. # NLS nuisances.
  120. LC_ALL=C
  121. export LC_ALL
  122. LANGUAGE=C
  123. export LANGUAGE
  124. # CDPATH.
  125. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  126. if test "x$CONFIG_SHELL" = x; then
  127. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  128. emulate sh
  129. NULLCMD=:
  130. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  131. # is contrary to our usage. Disable this feature.
  132. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  133. setopt NO_GLOB_SUBST
  134. else
  135. case \`(set -o) 2>/dev/null\` in #(
  136. *posix*) :
  137. set -o posix ;; #(
  138. *) :
  139. ;;
  140. esac
  141. fi
  142. "
  143. as_required="as_fn_return () { (exit \$1); }
  144. as_fn_success () { as_fn_return 0; }
  145. as_fn_failure () { as_fn_return 1; }
  146. as_fn_ret_success () { return 0; }
  147. as_fn_ret_failure () { return 1; }
  148. exitcode=0
  149. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  150. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  151. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  152. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  153. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  154. else
  155. exitcode=1; echo positional parameters were not saved.
  156. fi
  157. test x\$exitcode = x0 || exit 1"
  158. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  159. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  160. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  161. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  162. test \$(( 1 + 1 )) = 2 || exit 1"
  163. if (eval "$as_required") 2>/dev/null; then :
  164. as_have_required=yes
  165. else
  166. as_have_required=no
  167. fi
  168. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  169. else
  170. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  171. as_found=false
  172. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  173. do
  174. IFS=$as_save_IFS
  175. test -z "$as_dir" && as_dir=.
  176. as_found=:
  177. case $as_dir in #(
  178. /*)
  179. for as_base in sh bash ksh sh5; do
  180. # Try only shells that exist, to save several forks.
  181. as_shell=$as_dir/$as_base
  182. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  183. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. CONFIG_SHELL=$as_shell as_have_required=yes
  185. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  186. break 2
  187. fi
  188. fi
  189. done;;
  190. esac
  191. as_found=false
  192. done
  193. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  194. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  195. CONFIG_SHELL=$SHELL as_have_required=yes
  196. fi; }
  197. IFS=$as_save_IFS
  198. if test "x$CONFIG_SHELL" != x; then :
  199. # We cannot yet assume a decent shell, so we have to provide a
  200. # neutralization value for shells without unset; and this also
  201. # works around shells that cannot unset nonexistent variables.
  202. BASH_ENV=/dev/null
  203. ENV=/dev/null
  204. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  205. export CONFIG_SHELL
  206. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  207. fi
  208. if test x$as_have_required = xno; then :
  209. $as_echo "$0: This script requires a shell more modern than all"
  210. $as_echo "$0: the shells that I found on your system."
  211. if test x${ZSH_VERSION+set} = xset ; then
  212. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  213. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  214. else
  215. $as_echo "$0: Please tell [email protected] and
  216. $0: [email protected] about your system,
  217. $0: including any error possibly output before this
  218. $0: message. Then install a modern shell, or manually run
  219. $0: the script under such a shell if you do have one."
  220. fi
  221. exit 1
  222. fi
  223. fi
  224. fi
  225. SHELL=${CONFIG_SHELL-/bin/sh}
  226. export SHELL
  227. # Unset more variables known to interfere with behavior of common tools.
  228. CLICOLOR_FORCE= GREP_OPTIONS=
  229. unset CLICOLOR_FORCE GREP_OPTIONS
  230. ## --------------------- ##
  231. ## M4sh Shell Functions. ##
  232. ## --------------------- ##
  233. # as_fn_unset VAR
  234. # ---------------
  235. # Portably unset VAR.
  236. as_fn_unset ()
  237. {
  238. { eval $1=; unset $1;}
  239. }
  240. as_unset=as_fn_unset
  241. # as_fn_set_status STATUS
  242. # -----------------------
  243. # Set $? to STATUS, without forking.
  244. as_fn_set_status ()
  245. {
  246. return $1
  247. } # as_fn_set_status
  248. # as_fn_exit STATUS
  249. # -----------------
  250. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  251. as_fn_exit ()
  252. {
  253. set +e
  254. as_fn_set_status $1
  255. exit $1
  256. } # as_fn_exit
  257. # as_fn_mkdir_p
  258. # -------------
  259. # Create "$as_dir" as a directory, including parents if necessary.
  260. as_fn_mkdir_p ()
  261. {
  262. case $as_dir in #(
  263. -*) as_dir=./$as_dir;;
  264. esac
  265. test -d "$as_dir" || eval $as_mkdir_p || {
  266. as_dirs=
  267. while :; do
  268. case $as_dir in #(
  269. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  270. *) as_qdir=$as_dir;;
  271. esac
  272. as_dirs="'$as_qdir' $as_dirs"
  273. as_dir=`$as_dirname -- "$as_dir" ||
  274. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  275. X"$as_dir" : 'X\(//\)[^/]' \| \
  276. X"$as_dir" : 'X\(//\)$' \| \
  277. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  278. $as_echo X"$as_dir" |
  279. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  280. s//\1/
  281. q
  282. }
  283. /^X\(\/\/\)[^/].*/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)$/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\).*/{
  292. s//\1/
  293. q
  294. }
  295. s/.*/./; q'`
  296. test -d "$as_dir" && break
  297. done
  298. test -z "$as_dirs" || eval "mkdir $as_dirs"
  299. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  300. } # as_fn_mkdir_p
  301. # as_fn_append VAR VALUE
  302. # ----------------------
  303. # Append the text in VALUE to the end of the definition contained in VAR. Take
  304. # advantage of any shell optimizations that allow amortized linear growth over
  305. # repeated appends, instead of the typical quadratic growth present in naive
  306. # implementations.
  307. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  308. eval 'as_fn_append ()
  309. {
  310. eval $1+=\$2
  311. }'
  312. else
  313. as_fn_append ()
  314. {
  315. eval $1=\$$1\$2
  316. }
  317. fi # as_fn_append
  318. # as_fn_arith ARG...
  319. # ------------------
  320. # Perform arithmetic evaluation on the ARGs, and store the result in the
  321. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  322. # must be portable across $(()) and expr.
  323. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  324. eval 'as_fn_arith ()
  325. {
  326. as_val=$(( $* ))
  327. }'
  328. else
  329. as_fn_arith ()
  330. {
  331. as_val=`expr "$@" || test $? -eq 1`
  332. }
  333. fi # as_fn_arith
  334. # as_fn_error ERROR [LINENO LOG_FD]
  335. # ---------------------------------
  336. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  337. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  338. # script with status $?, using 1 if that was 0.
  339. as_fn_error ()
  340. {
  341. as_status=$?; test $as_status -eq 0 && as_status=1
  342. if test "$3"; then
  343. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  344. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  345. fi
  346. $as_echo "$as_me: error: $1" >&2
  347. as_fn_exit $as_status
  348. } # as_fn_error
  349. if expr a : '\(a\)' >/dev/null 2>&1 &&
  350. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  351. as_expr=expr
  352. else
  353. as_expr=false
  354. fi
  355. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  356. as_basename=basename
  357. else
  358. as_basename=false
  359. fi
  360. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  361. as_dirname=dirname
  362. else
  363. as_dirname=false
  364. fi
  365. as_me=`$as_basename -- "$0" ||
  366. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  367. X"$0" : 'X\(//\)$' \| \
  368. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  369. $as_echo X/"$0" |
  370. sed '/^.*\/\([^/][^/]*\)\/*$/{
  371. s//\1/
  372. q
  373. }
  374. /^X\/\(\/\/\)$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\).*/{
  379. s//\1/
  380. q
  381. }
  382. s/.*/./; q'`
  383. # Avoid depending upon Character Ranges.
  384. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  385. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  386. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  387. as_cr_digits='0123456789'
  388. as_cr_alnum=$as_cr_Letters$as_cr_digits
  389. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  390. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  391. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  392. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  393. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  394. sed -n '
  395. p
  396. /[$]LINENO/=
  397. ' <$as_myself |
  398. sed '
  399. s/[$]LINENO.*/&-/
  400. t lineno
  401. b
  402. :lineno
  403. N
  404. :loop
  405. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  406. t loop
  407. s/-\n.*//
  408. ' >$as_me.lineno &&
  409. chmod +x "$as_me.lineno" ||
  410. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  411. # Don't try to exec as it changes $[0], causing all sort of problems
  412. # (the dirname of $[0] is not the place where we might find the
  413. # original and so on. Autoconf is especially sensitive to this).
  414. . "./$as_me.lineno"
  415. # Exit status is that of the last command.
  416. exit
  417. }
  418. ECHO_C= ECHO_N= ECHO_T=
  419. case `echo -n x` in #(((((
  420. -n*)
  421. case `echo 'xy\c'` in
  422. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  423. xy) ECHO_C='\c';;
  424. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  425. ECHO_T=' ';;
  426. esac;;
  427. *)
  428. ECHO_N='-n';;
  429. esac
  430. rm -f conf$$ conf$$.exe conf$$.file
  431. if test -d conf$$.dir; then
  432. rm -f conf$$.dir/conf$$.file
  433. else
  434. rm -f conf$$.dir
  435. mkdir conf$$.dir 2>/dev/null
  436. fi
  437. if (echo >conf$$.file) 2>/dev/null; then
  438. if ln -s conf$$.file conf$$ 2>/dev/null; then
  439. as_ln_s='ln -s'
  440. # ... but there are two gotchas:
  441. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  442. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  443. # In both cases, we have to default to `cp -p'.
  444. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  445. as_ln_s='cp -p'
  446. elif ln conf$$.file conf$$ 2>/dev/null; then
  447. as_ln_s=ln
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. else
  452. as_ln_s='cp -p'
  453. fi
  454. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  455. rmdir conf$$.dir 2>/dev/null
  456. if mkdir -p . 2>/dev/null; then
  457. as_mkdir_p='mkdir -p "$as_dir"'
  458. else
  459. test -d ./-p && rmdir ./-p
  460. as_mkdir_p=false
  461. fi
  462. if test -x / >/dev/null 2>&1; then
  463. as_test_x='test -x'
  464. else
  465. if ls -dL / >/dev/null 2>&1; then
  466. as_ls_L_option=L
  467. else
  468. as_ls_L_option=
  469. fi
  470. as_test_x='
  471. eval sh -c '\''
  472. if test -d "$1"; then
  473. test -d "$1/.";
  474. else
  475. case $1 in #(
  476. -*)set "./$1";;
  477. esac;
  478. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  479. ???[sx]*):;;*)false;;esac;fi
  480. '\'' sh
  481. '
  482. fi
  483. as_executable_p=$as_test_x
  484. # Sed expression to map a string onto a valid CPP name.
  485. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  486. # Sed expression to map a string onto a valid variable name.
  487. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  488. # Check that we are running under the correct shell.
  489. SHELL=${CONFIG_SHELL-/bin/sh}
  490. case X$lt_ECHO in
  491. X*--fallback-echo)
  492. # Remove one level of quotation (which was required for Make).
  493. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  494. ;;
  495. esac
  496. ECHO=${lt_ECHO-echo}
  497. if test "X$1" = X--no-reexec; then
  498. # Discard the --no-reexec flag, and continue.
  499. shift
  500. elif test "X$1" = X--fallback-echo; then
  501. # Avoid inline document here, it may be left over
  502. :
  503. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  504. # Yippee, $ECHO works!
  505. :
  506. else
  507. # Restart under the correct shell.
  508. exec $SHELL "$0" --no-reexec ${1+"$@"}
  509. fi
  510. if test "X$1" = X--fallback-echo; then
  511. # used as fallback echo
  512. shift
  513. cat <<_LT_EOF
  514. $*
  515. _LT_EOF
  516. exit 0
  517. fi
  518. # The HP-UX ksh and POSIX shell print the target directory to stdout
  519. # if CDPATH is set.
  520. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  521. if test -z "$lt_ECHO"; then
  522. if test "X${echo_test_string+set}" != Xset; then
  523. # find a string as large as possible, as long as the shell can cope with it
  524. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  525. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  526. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  527. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  528. then
  529. break
  530. fi
  531. done
  532. fi
  533. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  534. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  535. test "X$echo_testing_string" = "X$echo_test_string"; then
  536. :
  537. else
  538. # The Solaris, AIX, and Digital Unix default echo programs unquote
  539. # backslashes. This makes it impossible to quote backslashes using
  540. # echo "$something" | sed 's/\\/\\\\/g'
  541. #
  542. # So, first we look for a working echo in the user's PATH.
  543. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  544. for dir in $PATH /usr/ucb; do
  545. IFS="$lt_save_ifs"
  546. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  547. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  548. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  549. test "X$echo_testing_string" = "X$echo_test_string"; then
  550. ECHO="$dir/echo"
  551. break
  552. fi
  553. done
  554. IFS="$lt_save_ifs"
  555. if test "X$ECHO" = Xecho; then
  556. # We didn't find a better echo, so look for alternatives.
  557. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  558. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  559. test "X$echo_testing_string" = "X$echo_test_string"; then
  560. # This shell has a builtin print -r that does the trick.
  561. ECHO='print -r'
  562. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  563. test "X$CONFIG_SHELL" != X/bin/ksh; then
  564. # If we have ksh, try running configure again with it.
  565. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  566. export ORIGINAL_CONFIG_SHELL
  567. CONFIG_SHELL=/bin/ksh
  568. export CONFIG_SHELL
  569. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  570. else
  571. # Try using printf.
  572. ECHO='printf %s\n'
  573. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  574. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  575. test "X$echo_testing_string" = "X$echo_test_string"; then
  576. # Cool, printf works
  577. :
  578. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  579. test "X$echo_testing_string" = 'X\t' &&
  580. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  581. test "X$echo_testing_string" = "X$echo_test_string"; then
  582. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  583. export CONFIG_SHELL
  584. SHELL="$CONFIG_SHELL"
  585. export SHELL
  586. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  587. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  588. test "X$echo_testing_string" = 'X\t' &&
  589. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  590. test "X$echo_testing_string" = "X$echo_test_string"; then
  591. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  592. else
  593. # maybe with a smaller string...
  594. prev=:
  595. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  596. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  597. then
  598. break
  599. fi
  600. prev="$cmd"
  601. done
  602. if test "$prev" != 'sed 50q "$0"'; then
  603. echo_test_string=`eval $prev`
  604. export echo_test_string
  605. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  606. else
  607. # Oops. We lost completely, so just stick with echo.
  608. ECHO=echo
  609. fi
  610. fi
  611. fi
  612. fi
  613. fi
  614. fi
  615. # Copy echo and quote the copy suitably for passing to libtool from
  616. # the Makefile, instead of quoting the original, which is used later.
  617. lt_ECHO=$ECHO
  618. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  619. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  620. fi
  621. test -n "$DJDIR" || exec 7<&0 </dev/null
  622. exec 6>&1
  623. # Name of the host.
  624. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  625. # so uname gets run too.
  626. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  627. #
  628. # Initializations.
  629. #
  630. ac_default_prefix=/usr/local
  631. ac_clean_files=
  632. ac_config_libobj_dir=.
  633. LIBOBJS=
  634. cross_compiling=no
  635. subdirs=
  636. MFLAGS=
  637. MAKEFLAGS=
  638. # Identity of this package.
  639. PACKAGE_NAME='Google C++ Testing Framework'
  640. PACKAGE_TARNAME='gtest'
  641. PACKAGE_VERSION='1.6.0'
  642. PACKAGE_STRING='Google C++ Testing Framework 1.6.0'
  643. PACKAGE_BUGREPORT='[email protected]'
  644. PACKAGE_URL=''
  645. ac_unique_file="./COPYING"
  646. # Factoring default headers for most tests.
  647. ac_includes_default="\
  648. #include <stdio.h>
  649. #ifdef HAVE_SYS_TYPES_H
  650. # include <sys/types.h>
  651. #endif
  652. #ifdef HAVE_SYS_STAT_H
  653. # include <sys/stat.h>
  654. #endif
  655. #ifdef STDC_HEADERS
  656. # include <stdlib.h>
  657. # include <stddef.h>
  658. #else
  659. # ifdef HAVE_STDLIB_H
  660. # include <stdlib.h>
  661. # endif
  662. #endif
  663. #ifdef HAVE_STRING_H
  664. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  665. # include <memory.h>
  666. # endif
  667. # include <string.h>
  668. #endif
  669. #ifdef HAVE_STRINGS_H
  670. # include <strings.h>
  671. #endif
  672. #ifdef HAVE_INTTYPES_H
  673. # include <inttypes.h>
  674. #endif
  675. #ifdef HAVE_STDINT_H
  676. # include <stdint.h>
  677. #endif
  678. #ifdef HAVE_UNISTD_H
  679. # include <unistd.h>
  680. #endif"
  681. ac_subst_vars='am__EXEEXT_FALSE
  682. am__EXEEXT_TRUE
  683. LTLIBOBJS
  684. LIBOBJS
  685. HAVE_PTHREADS_FALSE
  686. HAVE_PTHREADS_TRUE
  687. PTHREAD_CFLAGS
  688. PTHREAD_LIBS
  689. PTHREAD_CC
  690. acx_pthread_config
  691. HAVE_PYTHON_FALSE
  692. HAVE_PYTHON_TRUE
  693. PYTHON
  694. CXXCPP
  695. CPP
  696. OTOOL64
  697. OTOOL
  698. LIPO
  699. NMEDIT
  700. DSYMUTIL
  701. lt_ECHO
  702. RANLIB
  703. AR
  704. OBJDUMP
  705. LN_S
  706. NM
  707. ac_ct_DUMPBIN
  708. DUMPBIN
  709. LD
  710. FGREP
  711. EGREP
  712. GREP
  713. SED
  714. host_os
  715. host_vendor
  716. host_cpu
  717. host
  718. build_os
  719. build_vendor
  720. build_cpu
  721. build
  722. LIBTOOL
  723. am__fastdepCXX_FALSE
  724. am__fastdepCXX_TRUE
  725. CXXDEPMODE
  726. ac_ct_CXX
  727. CXXFLAGS
  728. CXX
  729. am__fastdepCC_FALSE
  730. am__fastdepCC_TRUE
  731. CCDEPMODE
  732. AMDEPBACKSLASH
  733. AMDEP_FALSE
  734. AMDEP_TRUE
  735. am__quote
  736. am__include
  737. DEPDIR
  738. OBJEXT
  739. EXEEXT
  740. ac_ct_CC
  741. CPPFLAGS
  742. LDFLAGS
  743. CFLAGS
  744. CC
  745. am__untar
  746. am__tar
  747. AMTAR
  748. am__leading_dot
  749. SET_MAKE
  750. AWK
  751. mkdir_p
  752. MKDIR_P
  753. INSTALL_STRIP_PROGRAM
  754. STRIP
  755. install_sh
  756. MAKEINFO
  757. AUTOHEADER
  758. AUTOMAKE
  759. AUTOCONF
  760. ACLOCAL
  761. VERSION
  762. PACKAGE
  763. CYGPATH_W
  764. am__isrc
  765. INSTALL_DATA
  766. INSTALL_SCRIPT
  767. INSTALL_PROGRAM
  768. target_alias
  769. host_alias
  770. build_alias
  771. LIBS
  772. ECHO_T
  773. ECHO_N
  774. ECHO_C
  775. DEFS
  776. mandir
  777. localedir
  778. libdir
  779. psdir
  780. pdfdir
  781. dvidir
  782. htmldir
  783. infodir
  784. docdir
  785. oldincludedir
  786. includedir
  787. localstatedir
  788. sharedstatedir
  789. sysconfdir
  790. datadir
  791. datarootdir
  792. libexecdir
  793. sbindir
  794. bindir
  795. program_transform_name
  796. prefix
  797. exec_prefix
  798. PACKAGE_URL
  799. PACKAGE_BUGREPORT
  800. PACKAGE_STRING
  801. PACKAGE_VERSION
  802. PACKAGE_TARNAME
  803. PACKAGE_NAME
  804. PATH_SEPARATOR
  805. SHELL'
  806. ac_subst_files=''
  807. ac_user_opts='
  808. enable_option_checking
  809. enable_dependency_tracking
  810. enable_shared
  811. enable_static
  812. with_pic
  813. enable_fast_install
  814. with_gnu_ld
  815. enable_libtool_lock
  816. with_pthreads
  817. '
  818. ac_precious_vars='build_alias
  819. host_alias
  820. target_alias
  821. CC
  822. CFLAGS
  823. LDFLAGS
  824. LIBS
  825. CPPFLAGS
  826. CXX
  827. CXXFLAGS
  828. CCC
  829. CPP
  830. CXXCPP'
  831. # Initialize some variables set by options.
  832. ac_init_help=
  833. ac_init_version=false
  834. ac_unrecognized_opts=
  835. ac_unrecognized_sep=
  836. # The variables have the same names as the options, with
  837. # dashes changed to underlines.
  838. cache_file=/dev/null
  839. exec_prefix=NONE
  840. no_create=
  841. no_recursion=
  842. prefix=NONE
  843. program_prefix=NONE
  844. program_suffix=NONE
  845. program_transform_name=s,x,x,
  846. silent=
  847. site=
  848. srcdir=
  849. verbose=
  850. x_includes=NONE
  851. x_libraries=NONE
  852. # Installation directory options.
  853. # These are left unexpanded so users can "make install exec_prefix=/foo"
  854. # and all the variables that are supposed to be based on exec_prefix
  855. # by default will actually change.
  856. # Use braces instead of parens because sh, perl, etc. also accept them.
  857. # (The list follows the same order as the GNU Coding Standards.)
  858. bindir='${exec_prefix}/bin'
  859. sbindir='${exec_prefix}/sbin'
  860. libexecdir='${exec_prefix}/libexec'
  861. datarootdir='${prefix}/share'
  862. datadir='${datarootdir}'
  863. sysconfdir='${prefix}/etc'
  864. sharedstatedir='${prefix}/com'
  865. localstatedir='${prefix}/var'
  866. includedir='${prefix}/include'
  867. oldincludedir='/usr/include'
  868. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  869. infodir='${datarootdir}/info'
  870. htmldir='${docdir}'
  871. dvidir='${docdir}'
  872. pdfdir='${docdir}'
  873. psdir='${docdir}'
  874. libdir='${exec_prefix}/lib'
  875. localedir='${datarootdir}/locale'
  876. mandir='${datarootdir}/man'
  877. ac_prev=
  878. ac_dashdash=
  879. for ac_option
  880. do
  881. # If the previous option needs an argument, assign it.
  882. if test -n "$ac_prev"; then
  883. eval $ac_prev=\$ac_option
  884. ac_prev=
  885. continue
  886. fi
  887. case $ac_option in
  888. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  889. *) ac_optarg=yes ;;
  890. esac
  891. # Accept the important Cygnus configure options, so we can diagnose typos.
  892. case $ac_dashdash$ac_option in
  893. --)
  894. ac_dashdash=yes ;;
  895. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  896. ac_prev=bindir ;;
  897. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  898. bindir=$ac_optarg ;;
  899. -build | --build | --buil | --bui | --bu)
  900. ac_prev=build_alias ;;
  901. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  902. build_alias=$ac_optarg ;;
  903. -cache-file | --cache-file | --cache-fil | --cache-fi \
  904. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  905. ac_prev=cache_file ;;
  906. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  907. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  908. cache_file=$ac_optarg ;;
  909. --config-cache | -C)
  910. cache_file=config.cache ;;
  911. -datadir | --datadir | --datadi | --datad)
  912. ac_prev=datadir ;;
  913. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  914. datadir=$ac_optarg ;;
  915. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  916. | --dataroo | --dataro | --datar)
  917. ac_prev=datarootdir ;;
  918. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  919. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  920. datarootdir=$ac_optarg ;;
  921. -disable-* | --disable-*)
  922. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  923. # Reject names that are not valid shell variable names.
  924. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  925. as_fn_error "invalid feature name: $ac_useropt"
  926. ac_useropt_orig=$ac_useropt
  927. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  928. case $ac_user_opts in
  929. *"
  930. "enable_$ac_useropt"
  931. "*) ;;
  932. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  933. ac_unrecognized_sep=', ';;
  934. esac
  935. eval enable_$ac_useropt=no ;;
  936. -docdir | --docdir | --docdi | --doc | --do)
  937. ac_prev=docdir ;;
  938. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  939. docdir=$ac_optarg ;;
  940. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  941. ac_prev=dvidir ;;
  942. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  943. dvidir=$ac_optarg ;;
  944. -enable-* | --enable-*)
  945. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  946. # Reject names that are not valid shell variable names.
  947. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  948. as_fn_error "invalid feature name: $ac_useropt"
  949. ac_useropt_orig=$ac_useropt
  950. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  951. case $ac_user_opts in
  952. *"
  953. "enable_$ac_useropt"
  954. "*) ;;
  955. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  956. ac_unrecognized_sep=', ';;
  957. esac
  958. eval enable_$ac_useropt=\$ac_optarg ;;
  959. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  960. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  961. | --exec | --exe | --ex)
  962. ac_prev=exec_prefix ;;
  963. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  964. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  965. | --exec=* | --exe=* | --ex=*)
  966. exec_prefix=$ac_optarg ;;
  967. -gas | --gas | --ga | --g)
  968. # Obsolete; use --with-gas.
  969. with_gas=yes ;;
  970. -help | --help | --hel | --he | -h)
  971. ac_init_help=long ;;
  972. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  973. ac_init_help=recursive ;;
  974. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  975. ac_init_help=short ;;
  976. -host | --host | --hos | --ho)
  977. ac_prev=host_alias ;;
  978. -host=* | --host=* | --hos=* | --ho=*)
  979. host_alias=$ac_optarg ;;
  980. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  981. ac_prev=htmldir ;;
  982. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  983. | --ht=*)
  984. htmldir=$ac_optarg ;;
  985. -includedir | --includedir | --includedi | --included | --include \
  986. | --includ | --inclu | --incl | --inc)
  987. ac_prev=includedir ;;
  988. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  989. | --includ=* | --inclu=* | --incl=* | --inc=*)
  990. includedir=$ac_optarg ;;
  991. -infodir | --infodir | --infodi | --infod | --info | --inf)
  992. ac_prev=infodir ;;
  993. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  994. infodir=$ac_optarg ;;
  995. -libdir | --libdir | --libdi | --libd)
  996. ac_prev=libdir ;;
  997. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  998. libdir=$ac_optarg ;;
  999. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1000. | --libexe | --libex | --libe)
  1001. ac_prev=libexecdir ;;
  1002. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1003. | --libexe=* | --libex=* | --libe=*)
  1004. libexecdir=$ac_optarg ;;
  1005. -localedir | --localedir | --localedi | --localed | --locale)
  1006. ac_prev=localedir ;;
  1007. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1008. localedir=$ac_optarg ;;
  1009. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1010. | --localstate | --localstat | --localsta | --localst | --locals)
  1011. ac_prev=localstatedir ;;
  1012. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1013. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1014. localstatedir=$ac_optarg ;;
  1015. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1016. ac_prev=mandir ;;
  1017. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1018. mandir=$ac_optarg ;;
  1019. -nfp | --nfp | --nf)
  1020. # Obsolete; use --without-fp.
  1021. with_fp=no ;;
  1022. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1023. | --no-cr | --no-c | -n)
  1024. no_create=yes ;;
  1025. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1026. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1027. no_recursion=yes ;;
  1028. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1029. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1030. | --oldin | --oldi | --old | --ol | --o)
  1031. ac_prev=oldincludedir ;;
  1032. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1033. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1034. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1035. oldincludedir=$ac_optarg ;;
  1036. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1037. ac_prev=prefix ;;
  1038. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1039. prefix=$ac_optarg ;;
  1040. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1041. | --program-pre | --program-pr | --program-p)
  1042. ac_prev=program_prefix ;;
  1043. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1044. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1045. program_prefix=$ac_optarg ;;
  1046. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1047. | --program-suf | --program-su | --program-s)
  1048. ac_prev=program_suffix ;;
  1049. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1050. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1051. program_suffix=$ac_optarg ;;
  1052. -program-transform-name | --program-transform-name \
  1053. | --program-transform-nam | --program-transform-na \
  1054. | --program-transform-n | --program-transform- \
  1055. | --program-transform | --program-transfor \
  1056. | --program-transfo | --program-transf \
  1057. | --program-trans | --program-tran \
  1058. | --progr-tra | --program-tr | --program-t)
  1059. ac_prev=program_transform_name ;;
  1060. -program-transform-name=* | --program-transform-name=* \
  1061. | --program-transform-nam=* | --program-transform-na=* \
  1062. | --program-transform-n=* | --program-transform-=* \
  1063. | --program-transform=* | --program-transfor=* \
  1064. | --program-transfo=* | --program-transf=* \
  1065. | --program-trans=* | --program-tran=* \
  1066. | --progr-tra=* | --program-tr=* | --program-t=*)
  1067. program_transform_name=$ac_optarg ;;
  1068. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1069. ac_prev=pdfdir ;;
  1070. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1071. pdfdir=$ac_optarg ;;
  1072. -psdir | --psdir | --psdi | --psd | --ps)
  1073. ac_prev=psdir ;;
  1074. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1075. psdir=$ac_optarg ;;
  1076. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1077. | -silent | --silent | --silen | --sile | --sil)
  1078. silent=yes ;;
  1079. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1080. ac_prev=sbindir ;;
  1081. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1082. | --sbi=* | --sb=*)
  1083. sbindir=$ac_optarg ;;
  1084. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1085. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1086. | --sharedst | --shareds | --shared | --share | --shar \
  1087. | --sha | --sh)
  1088. ac_prev=sharedstatedir ;;
  1089. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1090. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1091. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1092. | --sha=* | --sh=*)
  1093. sharedstatedir=$ac_optarg ;;
  1094. -site | --site | --sit)
  1095. ac_prev=site ;;
  1096. -site=* | --site=* | --sit=*)
  1097. site=$ac_optarg ;;
  1098. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1099. ac_prev=srcdir ;;
  1100. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1101. srcdir=$ac_optarg ;;
  1102. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1103. | --syscon | --sysco | --sysc | --sys | --sy)
  1104. ac_prev=sysconfdir ;;
  1105. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1106. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1107. sysconfdir=$ac_optarg ;;
  1108. -target | --target | --targe | --targ | --tar | --ta | --t)
  1109. ac_prev=target_alias ;;
  1110. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1111. target_alias=$ac_optarg ;;
  1112. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1113. verbose=yes ;;
  1114. -version | --version | --versio | --versi | --vers | -V)
  1115. ac_init_version=: ;;
  1116. -with-* | --with-*)
  1117. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1118. # Reject names that are not valid shell variable names.
  1119. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1120. as_fn_error "invalid package name: $ac_useropt"
  1121. ac_useropt_orig=$ac_useropt
  1122. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1123. case $ac_user_opts in
  1124. *"
  1125. "with_$ac_useropt"
  1126. "*) ;;
  1127. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1128. ac_unrecognized_sep=', ';;
  1129. esac
  1130. eval with_$ac_useropt=\$ac_optarg ;;
  1131. -without-* | --without-*)
  1132. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1133. # Reject names that are not valid shell variable names.
  1134. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1135. as_fn_error "invalid package name: $ac_useropt"
  1136. ac_useropt_orig=$ac_useropt
  1137. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1138. case $ac_user_opts in
  1139. *"
  1140. "with_$ac_useropt"
  1141. "*) ;;
  1142. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1143. ac_unrecognized_sep=', ';;
  1144. esac
  1145. eval with_$ac_useropt=no ;;
  1146. --x)
  1147. # Obsolete; use --with-x.
  1148. with_x=yes ;;
  1149. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1150. | --x-incl | --x-inc | --x-in | --x-i)
  1151. ac_prev=x_includes ;;
  1152. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1153. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1154. x_includes=$ac_optarg ;;
  1155. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1156. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1157. ac_prev=x_libraries ;;
  1158. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1159. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1160. x_libraries=$ac_optarg ;;
  1161. -*) as_fn_error "unrecognized option: \`$ac_option'
  1162. Try \`$0 --help' for more information."
  1163. ;;
  1164. *=*)
  1165. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1166. # Reject names that are not valid shell variable names.
  1167. case $ac_envvar in #(
  1168. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1169. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1170. esac
  1171. eval $ac_envvar=\$ac_optarg
  1172. export $ac_envvar ;;
  1173. *)
  1174. # FIXME: should be removed in autoconf 3.0.
  1175. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1176. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1177. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1178. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1179. ;;
  1180. esac
  1181. done
  1182. if test -n "$ac_prev"; then
  1183. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1184. as_fn_error "missing argument to $ac_option"
  1185. fi
  1186. if test -n "$ac_unrecognized_opts"; then
  1187. case $enable_option_checking in
  1188. no) ;;
  1189. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1190. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1191. esac
  1192. fi
  1193. # Check all directory arguments for consistency.
  1194. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1195. datadir sysconfdir sharedstatedir localstatedir includedir \
  1196. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1197. libdir localedir mandir
  1198. do
  1199. eval ac_val=\$$ac_var
  1200. # Remove trailing slashes.
  1201. case $ac_val in
  1202. */ )
  1203. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1204. eval $ac_var=\$ac_val;;
  1205. esac
  1206. # Be sure to have absolute directory names.
  1207. case $ac_val in
  1208. [\\/$]* | ?:[\\/]* ) continue;;
  1209. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1210. esac
  1211. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1212. done
  1213. # There might be people who depend on the old broken behavior: `$host'
  1214. # used to hold the argument of --host etc.
  1215. # FIXME: To remove some day.
  1216. build=$build_alias
  1217. host=$host_alias
  1218. target=$target_alias
  1219. # FIXME: To remove some day.
  1220. if test "x$host_alias" != x; then
  1221. if test "x$build_alias" = x; then
  1222. cross_compiling=maybe
  1223. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1224. If a cross compiler is detected then cross compile mode will be used." >&2
  1225. elif test "x$build_alias" != "x$host_alias"; then
  1226. cross_compiling=yes
  1227. fi
  1228. fi
  1229. ac_tool_prefix=
  1230. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1231. test "$silent" = yes && exec 6>/dev/null
  1232. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1233. ac_ls_di=`ls -di .` &&
  1234. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1235. as_fn_error "working directory cannot be determined"
  1236. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1237. as_fn_error "pwd does not report name of working directory"
  1238. # Find the source files, if location was not specified.
  1239. if test -z "$srcdir"; then
  1240. ac_srcdir_defaulted=yes
  1241. # Try the directory containing this script, then the parent directory.
  1242. ac_confdir=`$as_dirname -- "$as_myself" ||
  1243. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1244. X"$as_myself" : 'X\(//\)[^/]' \| \
  1245. X"$as_myself" : 'X\(//\)$' \| \
  1246. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1247. $as_echo X"$as_myself" |
  1248. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1249. s//\1/
  1250. q
  1251. }
  1252. /^X\(\/\/\)[^/].*/{
  1253. s//\1/
  1254. q
  1255. }
  1256. /^X\(\/\/\)$/{
  1257. s//\1/
  1258. q
  1259. }
  1260. /^X\(\/\).*/{
  1261. s//\1/
  1262. q
  1263. }
  1264. s/.*/./; q'`
  1265. srcdir=$ac_confdir
  1266. if test ! -r "$srcdir/$ac_unique_file"; then
  1267. srcdir=..
  1268. fi
  1269. else
  1270. ac_srcdir_defaulted=no
  1271. fi
  1272. if test ! -r "$srcdir/$ac_unique_file"; then
  1273. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1274. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1275. fi
  1276. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1277. ac_abs_confdir=`(
  1278. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1279. pwd)`
  1280. # When building in place, set srcdir=.
  1281. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1282. srcdir=.
  1283. fi
  1284. # Remove unnecessary trailing slashes from srcdir.
  1285. # Double slashes in file names in object file debugging info
  1286. # mess up M-x gdb in Emacs.
  1287. case $srcdir in
  1288. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1289. esac
  1290. for ac_var in $ac_precious_vars; do
  1291. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1292. eval ac_env_${ac_var}_value=\$${ac_var}
  1293. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1294. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1295. done
  1296. #
  1297. # Report the --help message.
  1298. #
  1299. if test "$ac_init_help" = "long"; then
  1300. # Omit some internal or obsolete options to make the list less imposing.
  1301. # This message is too long to be a string in the A/UX 3.1 sh.
  1302. cat <<_ACEOF
  1303. \`configure' configures Google C++ Testing Framework 1.6.0 to adapt to many kinds of systems.
  1304. Usage: $0 [OPTION]... [VAR=VALUE]...
  1305. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1306. VAR=VALUE. See below for descriptions of some of the useful variables.
  1307. Defaults for the options are specified in brackets.
  1308. Configuration:
  1309. -h, --help display this help and exit
  1310. --help=short display options specific to this package
  1311. --help=recursive display the short help of all the included packages
  1312. -V, --version display version information and exit
  1313. -q, --quiet, --silent do not print \`checking...' messages
  1314. --cache-file=FILE cache test results in FILE [disabled]
  1315. -C, --config-cache alias for \`--cache-file=config.cache'
  1316. -n, --no-create do not create output files
  1317. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1318. Installation directories:
  1319. --prefix=PREFIX install architecture-independent files in PREFIX
  1320. [$ac_default_prefix]
  1321. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1322. [PREFIX]
  1323. By default, \`make install' will install all the files in
  1324. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1325. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1326. for instance \`--prefix=\$HOME'.
  1327. For better control, use the options below.
  1328. Fine tuning of the installation directories:
  1329. --bindir=DIR user executables [EPREFIX/bin]
  1330. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1331. --libexecdir=DIR program executables [EPREFIX/libexec]
  1332. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1333. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1334. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1335. --libdir=DIR object code libraries [EPREFIX/lib]
  1336. --includedir=DIR C header files [PREFIX/include]
  1337. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1338. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1339. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1340. --infodir=DIR info documentation [DATAROOTDIR/info]
  1341. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1342. --mandir=DIR man documentation [DATAROOTDIR/man]
  1343. --docdir=DIR documentation root [DATAROOTDIR/doc/gtest]
  1344. --htmldir=DIR html documentation [DOCDIR]
  1345. --dvidir=DIR dvi documentation [DOCDIR]
  1346. --pdfdir=DIR pdf documentation [DOCDIR]
  1347. --psdir=DIR ps documentation [DOCDIR]
  1348. _ACEOF
  1349. cat <<\_ACEOF
  1350. Program names:
  1351. --program-prefix=PREFIX prepend PREFIX to installed program names
  1352. --program-suffix=SUFFIX append SUFFIX to installed program names
  1353. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1354. System types:
  1355. --build=BUILD configure for building on BUILD [guessed]
  1356. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1357. _ACEOF
  1358. fi
  1359. if test -n "$ac_init_help"; then
  1360. case $ac_init_help in
  1361. short | recursive ) echo "Configuration of Google C++ Testing Framework 1.6.0:";;
  1362. esac
  1363. cat <<\_ACEOF
  1364. Optional Features:
  1365. --disable-option-checking ignore unrecognized --enable/--with options
  1366. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1367. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1368. --disable-dependency-tracking speeds up one-time build
  1369. --enable-dependency-tracking do not reject slow dependency extractors
  1370. --enable-shared[=PKGS] build shared libraries [default=yes]
  1371. --enable-static[=PKGS] build static libraries [default=yes]
  1372. --enable-fast-install[=PKGS]
  1373. optimize for fast installation [default=yes]
  1374. --disable-libtool-lock avoid locking (might break parallel builds)
  1375. Optional Packages:
  1376. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1377. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1378. --with-pic try to use only PIC/non-PIC objects [default=use
  1379. both]
  1380. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1381. --with-pthreads use pthreads (default is yes)
  1382. Some influential environment variables:
  1383. CC C compiler command
  1384. CFLAGS C compiler flags
  1385. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1386. nonstandard directory <lib dir>
  1387. LIBS libraries to pass to the linker, e.g. -l<library>
  1388. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1389. you have headers in a nonstandard directory <include dir>
  1390. CXX C++ compiler command
  1391. CXXFLAGS C++ compiler flags
  1392. CPP C preprocessor
  1393. CXXCPP C++ preprocessor
  1394. Use these variables to override the choices made by `configure' or to help
  1395. it to find libraries and programs with nonstandard names/locations.
  1396. Report bugs to <[email protected]>.
  1397. _ACEOF
  1398. ac_status=$?
  1399. fi
  1400. if test "$ac_init_help" = "recursive"; then
  1401. # If there are subdirs, report their specific --help.
  1402. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1403. test -d "$ac_dir" ||
  1404. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1405. continue
  1406. ac_builddir=.
  1407. case "$ac_dir" in
  1408. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1409. *)
  1410. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1411. # A ".." for each directory in $ac_dir_suffix.
  1412. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1413. case $ac_top_builddir_sub in
  1414. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1415. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1416. esac ;;
  1417. esac
  1418. ac_abs_top_builddir=$ac_pwd
  1419. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1420. # for backward compatibility:
  1421. ac_top_builddir=$ac_top_build_prefix
  1422. case $srcdir in
  1423. .) # We are building in place.
  1424. ac_srcdir=.
  1425. ac_top_srcdir=$ac_top_builddir_sub
  1426. ac_abs_top_srcdir=$ac_pwd ;;
  1427. [\\/]* | ?:[\\/]* ) # Absolute name.
  1428. ac_srcdir=$srcdir$ac_dir_suffix;
  1429. ac_top_srcdir=$srcdir
  1430. ac_abs_top_srcdir=$srcdir ;;
  1431. *) # Relative name.
  1432. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1433. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1434. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1435. esac
  1436. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1437. cd "$ac_dir" || { ac_status=$?; continue; }
  1438. # Check for guested configure.
  1439. if test -f "$ac_srcdir/configure.gnu"; then
  1440. echo &&
  1441. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1442. elif test -f "$ac_srcdir/configure"; then
  1443. echo &&
  1444. $SHELL "$ac_srcdir/configure" --help=recursive
  1445. else
  1446. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1447. fi || ac_status=$?
  1448. cd "$ac_pwd" || { ac_status=$?; break; }
  1449. done
  1450. fi
  1451. test -n "$ac_init_help" && exit $ac_status
  1452. if $ac_init_version; then
  1453. cat <<\_ACEOF
  1454. Google C++ Testing Framework configure 1.6.0
  1455. generated by GNU Autoconf 2.65
  1456. Copyright (C) 2009 Free Software Foundation, Inc.
  1457. This configure script is free software; the Free Software Foundation
  1458. gives unlimited permission to copy, distribute and modify it.
  1459. _ACEOF
  1460. exit
  1461. fi
  1462. ## ------------------------ ##
  1463. ## Autoconf initialization. ##
  1464. ## ------------------------ ##
  1465. # ac_fn_c_try_compile LINENO
  1466. # --------------------------
  1467. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1468. ac_fn_c_try_compile ()
  1469. {
  1470. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1471. rm -f conftest.$ac_objext
  1472. if { { ac_try="$ac_compile"
  1473. case "(($ac_try" in
  1474. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1475. *) ac_try_echo=$ac_try;;
  1476. esac
  1477. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1478. $as_echo "$ac_try_echo"; } >&5
  1479. (eval "$ac_compile") 2>conftest.err
  1480. ac_status=$?
  1481. if test -s conftest.err; then
  1482. grep -v '^ *+' conftest.err >conftest.er1
  1483. cat conftest.er1 >&5
  1484. mv -f conftest.er1 conftest.err
  1485. fi
  1486. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1487. test $ac_status = 0; } && {
  1488. test -z "$ac_c_werror_flag" ||
  1489. test ! -s conftest.err
  1490. } && test -s conftest.$ac_objext; then :
  1491. ac_retval=0
  1492. else
  1493. $as_echo "$as_me: failed program was:" >&5
  1494. sed 's/^/| /' conftest.$ac_ext >&5
  1495. ac_retval=1
  1496. fi
  1497. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1498. as_fn_set_status $ac_retval
  1499. } # ac_fn_c_try_compile
  1500. # ac_fn_cxx_try_compile LINENO
  1501. # ----------------------------
  1502. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1503. ac_fn_cxx_try_compile ()
  1504. {
  1505. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1506. rm -f conftest.$ac_objext
  1507. if { { ac_try="$ac_compile"
  1508. case "(($ac_try" in
  1509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1510. *) ac_try_echo=$ac_try;;
  1511. esac
  1512. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1513. $as_echo "$ac_try_echo"; } >&5
  1514. (eval "$ac_compile") 2>conftest.err
  1515. ac_status=$?
  1516. if test -s conftest.err; then
  1517. grep -v '^ *+' conftest.err >conftest.er1
  1518. cat conftest.er1 >&5
  1519. mv -f conftest.er1 conftest.err
  1520. fi
  1521. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1522. test $ac_status = 0; } && {
  1523. test -z "$ac_cxx_werror_flag" ||
  1524. test ! -s conftest.err
  1525. } && test -s conftest.$ac_objext; then :
  1526. ac_retval=0
  1527. else
  1528. $as_echo "$as_me: failed program was:" >&5
  1529. sed 's/^/| /' conftest.$ac_ext >&5
  1530. ac_retval=1
  1531. fi
  1532. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1533. as_fn_set_status $ac_retval
  1534. } # ac_fn_cxx_try_compile
  1535. # ac_fn_c_try_link LINENO
  1536. # -----------------------
  1537. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1538. ac_fn_c_try_link ()
  1539. {
  1540. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1541. rm -f conftest.$ac_objext conftest$ac_exeext
  1542. if { { ac_try="$ac_link"
  1543. case "(($ac_try" in
  1544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1545. *) ac_try_echo=$ac_try;;
  1546. esac
  1547. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1548. $as_echo "$ac_try_echo"; } >&5
  1549. (eval "$ac_link") 2>conftest.err
  1550. ac_status=$?
  1551. if test -s conftest.err; then
  1552. grep -v '^ *+' conftest.err >conftest.er1
  1553. cat conftest.er1 >&5
  1554. mv -f conftest.er1 conftest.err
  1555. fi
  1556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1557. test $ac_status = 0; } && {
  1558. test -z "$ac_c_werror_flag" ||
  1559. test ! -s conftest.err
  1560. } && test -s conftest$ac_exeext && {
  1561. test "$cross_compiling" = yes ||
  1562. $as_test_x conftest$ac_exeext
  1563. }; then :
  1564. ac_retval=0
  1565. else
  1566. $as_echo "$as_me: failed program was:" >&5
  1567. sed 's/^/| /' conftest.$ac_ext >&5
  1568. ac_retval=1
  1569. fi
  1570. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1571. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1572. # interfere with the next link command; also delete a directory that is
  1573. # left behind by Apple's compiler. We do this before executing the actions.
  1574. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1575. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1576. as_fn_set_status $ac_retval
  1577. } # ac_fn_c_try_link
  1578. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1579. # -------------------------------------------------------
  1580. # Tests whether HEADER exists and can be compiled using the include files in
  1581. # INCLUDES, setting the cache variable VAR accordingly.
  1582. ac_fn_c_check_header_compile ()
  1583. {
  1584. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1586. $as_echo_n "checking for $2... " >&6; }
  1587. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1588. $as_echo_n "(cached) " >&6
  1589. else
  1590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1591. /* end confdefs.h. */
  1592. $4
  1593. #include <$2>
  1594. _ACEOF
  1595. if ac_fn_c_try_compile "$LINENO"; then :
  1596. eval "$3=yes"
  1597. else
  1598. eval "$3=no"
  1599. fi
  1600. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1601. fi
  1602. eval ac_res=\$$3
  1603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1604. $as_echo "$ac_res" >&6; }
  1605. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1606. } # ac_fn_c_check_header_compile
  1607. # ac_fn_c_try_cpp LINENO
  1608. # ----------------------
  1609. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1610. ac_fn_c_try_cpp ()
  1611. {
  1612. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1613. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1614. case "(($ac_try" in
  1615. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1616. *) ac_try_echo=$ac_try;;
  1617. esac
  1618. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1619. $as_echo "$ac_try_echo"; } >&5
  1620. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1621. ac_status=$?
  1622. if test -s conftest.err; then
  1623. grep -v '^ *+' conftest.err >conftest.er1
  1624. cat conftest.er1 >&5
  1625. mv -f conftest.er1 conftest.err
  1626. fi
  1627. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1628. test $ac_status = 0; } >/dev/null && {
  1629. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1630. test ! -s conftest.err
  1631. }; then :
  1632. ac_retval=0
  1633. else
  1634. $as_echo "$as_me: failed program was:" >&5
  1635. sed 's/^/| /' conftest.$ac_ext >&5
  1636. ac_retval=1
  1637. fi
  1638. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1639. as_fn_set_status $ac_retval
  1640. } # ac_fn_c_try_cpp
  1641. # ac_fn_c_try_run LINENO
  1642. # ----------------------
  1643. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1644. # that executables *can* be run.
  1645. ac_fn_c_try_run ()
  1646. {
  1647. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1648. if { { ac_try="$ac_link"
  1649. case "(($ac_try" in
  1650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1651. *) ac_try_echo=$ac_try;;
  1652. esac
  1653. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1654. $as_echo "$ac_try_echo"; } >&5
  1655. (eval "$ac_link") 2>&5
  1656. ac_status=$?
  1657. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1658. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1659. { { case "(($ac_try" in
  1660. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1661. *) ac_try_echo=$ac_try;;
  1662. esac
  1663. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1664. $as_echo "$ac_try_echo"; } >&5
  1665. (eval "$ac_try") 2>&5
  1666. ac_status=$?
  1667. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1668. test $ac_status = 0; }; }; then :
  1669. ac_retval=0
  1670. else
  1671. $as_echo "$as_me: program exited with status $ac_status" >&5
  1672. $as_echo "$as_me: failed program was:" >&5
  1673. sed 's/^/| /' conftest.$ac_ext >&5
  1674. ac_retval=$ac_status
  1675. fi
  1676. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1677. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1678. as_fn_set_status $ac_retval
  1679. } # ac_fn_c_try_run
  1680. # ac_fn_c_check_func LINENO FUNC VAR
  1681. # ----------------------------------
  1682. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1683. ac_fn_c_check_func ()
  1684. {
  1685. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1687. $as_echo_n "checking for $2... " >&6; }
  1688. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1689. $as_echo_n "(cached) " >&6
  1690. else
  1691. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1692. /* end confdefs.h. */
  1693. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1694. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1695. #define $2 innocuous_$2
  1696. /* System header to define __stub macros and hopefully few prototypes,
  1697. which can conflict with char $2 (); below.
  1698. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1699. <limits.h> exists even on freestanding compilers. */
  1700. #ifdef __STDC__
  1701. # include <limits.h>
  1702. #else
  1703. # include <assert.h>
  1704. #endif
  1705. #undef $2
  1706. /* Override any GCC internal prototype to avoid an error.
  1707. Use char because int might match the return type of a GCC
  1708. builtin and then its argument prototype would still apply. */
  1709. #ifdef __cplusplus
  1710. extern "C"
  1711. #endif
  1712. char $2 ();
  1713. /* The GNU C library defines this for functions which it implements
  1714. to always fail with ENOSYS. Some functions are actually named
  1715. something starting with __ and the normal name is an alias. */
  1716. #if defined __stub_$2 || defined __stub___$2
  1717. choke me
  1718. #endif
  1719. int
  1720. main ()
  1721. {
  1722. return $2 ();
  1723. ;
  1724. return 0;
  1725. }
  1726. _ACEOF
  1727. if ac_fn_c_try_link "$LINENO"; then :
  1728. eval "$3=yes"
  1729. else
  1730. eval "$3=no"
  1731. fi
  1732. rm -f core conftest.err conftest.$ac_objext \
  1733. conftest$ac_exeext conftest.$ac_ext
  1734. fi
  1735. eval ac_res=\$$3
  1736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1737. $as_echo "$ac_res" >&6; }
  1738. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1739. } # ac_fn_c_check_func
  1740. # ac_fn_cxx_try_cpp LINENO
  1741. # ------------------------
  1742. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1743. ac_fn_cxx_try_cpp ()
  1744. {
  1745. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1746. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1747. case "(($ac_try" in
  1748. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1749. *) ac_try_echo=$ac_try;;
  1750. esac
  1751. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1752. $as_echo "$ac_try_echo"; } >&5
  1753. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1754. ac_status=$?
  1755. if test -s conftest.err; then
  1756. grep -v '^ *+' conftest.err >conftest.er1
  1757. cat conftest.er1 >&5
  1758. mv -f conftest.er1 conftest.err
  1759. fi
  1760. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1761. test $ac_status = 0; } >/dev/null && {
  1762. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1763. test ! -s conftest.err
  1764. }; then :
  1765. ac_retval=0
  1766. else
  1767. $as_echo "$as_me: failed program was:" >&5
  1768. sed 's/^/| /' conftest.$ac_ext >&5
  1769. ac_retval=1
  1770. fi
  1771. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1772. as_fn_set_status $ac_retval
  1773. } # ac_fn_cxx_try_cpp
  1774. # ac_fn_cxx_try_link LINENO
  1775. # -------------------------
  1776. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1777. ac_fn_cxx_try_link ()
  1778. {
  1779. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1780. rm -f conftest.$ac_objext conftest$ac_exeext
  1781. if { { ac_try="$ac_link"
  1782. case "(($ac_try" in
  1783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1784. *) ac_try_echo=$ac_try;;
  1785. esac
  1786. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1787. $as_echo "$ac_try_echo"; } >&5
  1788. (eval "$ac_link") 2>conftest.err
  1789. ac_status=$?
  1790. if test -s conftest.err; then
  1791. grep -v '^ *+' conftest.err >conftest.er1
  1792. cat conftest.er1 >&5
  1793. mv -f conftest.er1 conftest.err
  1794. fi
  1795. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1796. test $ac_status = 0; } && {
  1797. test -z "$ac_cxx_werror_flag" ||
  1798. test ! -s conftest.err
  1799. } && test -s conftest$ac_exeext && {
  1800. test "$cross_compiling" = yes ||
  1801. $as_test_x conftest$ac_exeext
  1802. }; then :
  1803. ac_retval=0
  1804. else
  1805. $as_echo "$as_me: failed program was:" >&5
  1806. sed 's/^/| /' conftest.$ac_ext >&5
  1807. ac_retval=1
  1808. fi
  1809. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1810. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1811. # interfere with the next link command; also delete a directory that is
  1812. # left behind by Apple's compiler. We do this before executing the actions.
  1813. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1814. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1815. as_fn_set_status $ac_retval
  1816. } # ac_fn_cxx_try_link
  1817. cat >config.log <<_ACEOF
  1818. This file contains any messages produced by compilers while
  1819. running configure, to aid debugging if configure makes a mistake.
  1820. It was created by Google C++ Testing Framework $as_me 1.6.0, which was
  1821. generated by GNU Autoconf 2.65. Invocation command line was
  1822. $ $0 $@
  1823. _ACEOF
  1824. exec 5>>config.log
  1825. {
  1826. cat <<_ASUNAME
  1827. ## --------- ##
  1828. ## Platform. ##
  1829. ## --------- ##
  1830. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1831. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1832. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1833. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1834. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1835. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1836. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1837. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1838. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1839. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1840. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1841. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1842. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1843. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1844. _ASUNAME
  1845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1846. for as_dir in $PATH
  1847. do
  1848. IFS=$as_save_IFS
  1849. test -z "$as_dir" && as_dir=.
  1850. $as_echo "PATH: $as_dir"
  1851. done
  1852. IFS=$as_save_IFS
  1853. } >&5
  1854. cat >&5 <<_ACEOF
  1855. ## ----------- ##
  1856. ## Core tests. ##
  1857. ## ----------- ##
  1858. _ACEOF
  1859. # Keep a trace of the command line.
  1860. # Strip out --no-create and --no-recursion so they do not pile up.
  1861. # Strip out --silent because we don't want to record it for future runs.
  1862. # Also quote any args containing shell meta-characters.
  1863. # Make two passes to allow for proper duplicate-argument suppression.
  1864. ac_configure_args=
  1865. ac_configure_args0=
  1866. ac_configure_args1=
  1867. ac_must_keep_next=false
  1868. for ac_pass in 1 2
  1869. do
  1870. for ac_arg
  1871. do
  1872. case $ac_arg in
  1873. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1874. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1875. | -silent | --silent | --silen | --sile | --sil)
  1876. continue ;;
  1877. *\'*)
  1878. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1879. esac
  1880. case $ac_pass in
  1881. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1882. 2)
  1883. as_fn_append ac_configure_args1 " '$ac_arg'"
  1884. if test $ac_must_keep_next = true; then
  1885. ac_must_keep_next=false # Got value, back to normal.
  1886. else
  1887. case $ac_arg in
  1888. *=* | --config-cache | -C | -disable-* | --disable-* \
  1889. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1890. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1891. | -with-* | --with-* | -without-* | --without-* | --x)
  1892. case "$ac_configure_args0 " in
  1893. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1894. esac
  1895. ;;
  1896. -* ) ac_must_keep_next=true ;;
  1897. esac
  1898. fi
  1899. as_fn_append ac_configure_args " '$ac_arg'"
  1900. ;;
  1901. esac
  1902. done
  1903. done
  1904. { ac_configure_args0=; unset ac_configure_args0;}
  1905. { ac_configure_args1=; unset ac_configure_args1;}
  1906. # When interrupted or exit'd, cleanup temporary files, and complete
  1907. # config.log. We remove comments because anyway the quotes in there
  1908. # would cause problems or look ugly.
  1909. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1910. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1911. trap 'exit_status=$?
  1912. # Save into config.log some information that might help in debugging.
  1913. {
  1914. echo
  1915. cat <<\_ASBOX
  1916. ## ---------------- ##
  1917. ## Cache variables. ##
  1918. ## ---------------- ##
  1919. _ASBOX
  1920. echo
  1921. # The following way of writing the cache mishandles newlines in values,
  1922. (
  1923. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1924. eval ac_val=\$$ac_var
  1925. case $ac_val in #(
  1926. *${as_nl}*)
  1927. case $ac_var in #(
  1928. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1929. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1930. esac
  1931. case $ac_var in #(
  1932. _ | IFS | as_nl) ;; #(
  1933. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1934. *) { eval $ac_var=; unset $ac_var;} ;;
  1935. esac ;;
  1936. esac
  1937. done
  1938. (set) 2>&1 |
  1939. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1940. *${as_nl}ac_space=\ *)
  1941. sed -n \
  1942. "s/'\''/'\''\\\\'\'''\''/g;
  1943. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1944. ;; #(
  1945. *)
  1946. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1947. ;;
  1948. esac |
  1949. sort
  1950. )
  1951. echo
  1952. cat <<\_ASBOX
  1953. ## ----------------- ##
  1954. ## Output variables. ##
  1955. ## ----------------- ##
  1956. _ASBOX
  1957. echo
  1958. for ac_var in $ac_subst_vars
  1959. do
  1960. eval ac_val=\$$ac_var
  1961. case $ac_val in
  1962. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1963. esac
  1964. $as_echo "$ac_var='\''$ac_val'\''"
  1965. done | sort
  1966. echo
  1967. if test -n "$ac_subst_files"; then
  1968. cat <<\_ASBOX
  1969. ## ------------------- ##
  1970. ## File substitutions. ##
  1971. ## ------------------- ##
  1972. _ASBOX
  1973. echo
  1974. for ac_var in $ac_subst_files
  1975. do
  1976. eval ac_val=\$$ac_var
  1977. case $ac_val in
  1978. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1979. esac
  1980. $as_echo "$ac_var='\''$ac_val'\''"
  1981. done | sort
  1982. echo
  1983. fi
  1984. if test -s confdefs.h; then
  1985. cat <<\_ASBOX
  1986. ## ----------- ##
  1987. ## confdefs.h. ##
  1988. ## ----------- ##
  1989. _ASBOX
  1990. echo
  1991. cat confdefs.h
  1992. echo
  1993. fi
  1994. test "$ac_signal" != 0 &&
  1995. $as_echo "$as_me: caught signal $ac_signal"
  1996. $as_echo "$as_me: exit $exit_status"
  1997. } >&5
  1998. rm -f core *.core core.conftest.* &&
  1999. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2000. exit $exit_status
  2001. ' 0
  2002. for ac_signal in 1 2 13 15; do
  2003. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2004. done
  2005. ac_signal=0
  2006. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2007. rm -f -r conftest* confdefs.h
  2008. $as_echo "/* confdefs.h */" > confdefs.h
  2009. # Predefined preprocessor variables.
  2010. cat >>confdefs.h <<_ACEOF
  2011. #define PACKAGE_NAME "$PACKAGE_NAME"
  2012. _ACEOF
  2013. cat >>confdefs.h <<_ACEOF
  2014. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2015. _ACEOF
  2016. cat >>confdefs.h <<_ACEOF
  2017. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2018. _ACEOF
  2019. cat >>confdefs.h <<_ACEOF
  2020. #define PACKAGE_STRING "$PACKAGE_STRING"
  2021. _ACEOF
  2022. cat >>confdefs.h <<_ACEOF
  2023. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2024. _ACEOF
  2025. cat >>confdefs.h <<_ACEOF
  2026. #define PACKAGE_URL "$PACKAGE_URL"
  2027. _ACEOF
  2028. # Let the site file select an alternate cache file if it wants to.
  2029. # Prefer an explicitly selected file to automatically selected ones.
  2030. ac_site_file1=NONE
  2031. ac_site_file2=NONE
  2032. if test -n "$CONFIG_SITE"; then
  2033. ac_site_file1=$CONFIG_SITE
  2034. elif test "x$prefix" != xNONE; then
  2035. ac_site_file1=$prefix/share/config.site
  2036. ac_site_file2=$prefix/etc/config.site
  2037. else
  2038. ac_site_file1=$ac_default_prefix/share/config.site
  2039. ac_site_file2=$ac_default_prefix/etc/config.site
  2040. fi
  2041. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2042. do
  2043. test "x$ac_site_file" = xNONE && continue
  2044. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2045. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2046. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2047. sed 's/^/| /' "$ac_site_file" >&5
  2048. . "$ac_site_file"
  2049. fi
  2050. done
  2051. if test -r "$cache_file"; then
  2052. # Some versions of bash will fail to source /dev/null (special files
  2053. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2054. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2055. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2056. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2057. case $cache_file in
  2058. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2059. *) . "./$cache_file";;
  2060. esac
  2061. fi
  2062. else
  2063. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2064. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2065. >$cache_file
  2066. fi
  2067. # Check that the precious variables saved in the cache have kept the same
  2068. # value.
  2069. ac_cache_corrupted=false
  2070. for ac_var in $ac_precious_vars; do
  2071. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2072. eval ac_new_set=\$ac_env_${ac_var}_set
  2073. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2074. eval ac_new_val=\$ac_env_${ac_var}_value
  2075. case $ac_old_set,$ac_new_set in
  2076. set,)
  2077. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2078. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2079. ac_cache_corrupted=: ;;
  2080. ,set)
  2081. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2082. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2083. ac_cache_corrupted=: ;;
  2084. ,);;
  2085. *)
  2086. if test "x$ac_old_val" != "x$ac_new_val"; then
  2087. # differences in whitespace do not lead to failure.
  2088. ac_old_val_w=`echo x $ac_old_val`
  2089. ac_new_val_w=`echo x $ac_new_val`
  2090. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2091. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2092. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2093. ac_cache_corrupted=:
  2094. else
  2095. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2096. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2097. eval $ac_var=\$ac_old_val
  2098. fi
  2099. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2100. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2101. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2102. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2103. fi;;
  2104. esac
  2105. # Pass precious variables to config.status.
  2106. if test "$ac_new_set" = set; then
  2107. case $ac_new_val in
  2108. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2109. *) ac_arg=$ac_var=$ac_new_val ;;
  2110. esac
  2111. case " $ac_configure_args " in
  2112. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2113. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2114. esac
  2115. fi
  2116. done
  2117. if $ac_cache_corrupted; then
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2119. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2120. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2121. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2122. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2123. fi
  2124. ## -------------------- ##
  2125. ## Main body of script. ##
  2126. ## -------------------- ##
  2127. ac_ext=c
  2128. ac_cpp='$CPP $CPPFLAGS'
  2129. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2130. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2131. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2132. # Provide various options to initialize the Autoconf and configure processes.
  2133. ac_aux_dir=
  2134. for ac_dir in build-aux "$srcdir"/build-aux; do
  2135. for ac_t in install-sh install.sh shtool; do
  2136. if test -f "$ac_dir/$ac_t"; then
  2137. ac_aux_dir=$ac_dir
  2138. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2139. break 2
  2140. fi
  2141. done
  2142. done
  2143. if test -z "$ac_aux_dir"; then
  2144. as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
  2145. fi
  2146. # These three variables are undocumented and unsupported,
  2147. # and are intended to be withdrawn in a future Autoconf release.
  2148. # They can cause serious problems if a builder's source tree is in a directory
  2149. # whose full name contains unusual characters.
  2150. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2151. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2152. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2153. ac_config_headers="$ac_config_headers build-aux/config.h"
  2154. ac_config_files="$ac_config_files Makefile"
  2155. ac_config_files="$ac_config_files scripts/gtest-config"
  2156. # Initialize Automake with various options. We require at least v1.9, prevent
  2157. # pedantic complaints about package files, and enable various distribution
  2158. # targets.
  2159. am__api_version='1.11'
  2160. # Find a good install program. We prefer a C program (faster),
  2161. # so one script is as good as another. But avoid the broken or
  2162. # incompatible versions:
  2163. # SysV /etc/install, /usr/sbin/install
  2164. # SunOS /usr/etc/install
  2165. # IRIX /sbin/install
  2166. # AIX /bin/install
  2167. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2168. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2169. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2170. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2171. # OS/2's system install, which has a completely different semantic
  2172. # ./install, which can be erroneously created by make from ./install.sh.
  2173. # Reject install programs that cannot install multiple files.
  2174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2175. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2176. if test -z "$INSTALL"; then
  2177. if test "${ac_cv_path_install+set}" = set; then :
  2178. $as_echo_n "(cached) " >&6
  2179. else
  2180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2181. for as_dir in $PATH
  2182. do
  2183. IFS=$as_save_IFS
  2184. test -z "$as_dir" && as_dir=.
  2185. # Account for people who put trailing slashes in PATH elements.
  2186. case $as_dir/ in #((
  2187. ./ | .// | /[cC]/* | \
  2188. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2189. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2190. /usr/ucb/* ) ;;
  2191. *)
  2192. # OSF1 and SCO ODT 3.0 have their own names for install.
  2193. # Don't use installbsd from OSF since it installs stuff as root
  2194. # by default.
  2195. for ac_prog in ginstall scoinst install; do
  2196. for ac_exec_ext in '' $ac_executable_extensions; do
  2197. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2198. if test $ac_prog = install &&
  2199. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2200. # AIX install. It has an incompatible calling convention.
  2201. :
  2202. elif test $ac_prog = install &&
  2203. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2204. # program-specific install script used by HP pwplus--don't use.
  2205. :
  2206. else
  2207. rm -rf conftest.one conftest.two conftest.dir
  2208. echo one > conftest.one
  2209. echo two > conftest.two
  2210. mkdir conftest.dir
  2211. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2212. test -s conftest.one && test -s conftest.two &&
  2213. test -s conftest.dir/conftest.one &&
  2214. test -s conftest.dir/conftest.two
  2215. then
  2216. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2217. break 3
  2218. fi
  2219. fi
  2220. fi
  2221. done
  2222. done
  2223. ;;
  2224. esac
  2225. done
  2226. IFS=$as_save_IFS
  2227. rm -rf conftest.one conftest.two conftest.dir
  2228. fi
  2229. if test "${ac_cv_path_install+set}" = set; then
  2230. INSTALL=$ac_cv_path_install
  2231. else
  2232. # As a last resort, use the slow shell script. Don't cache a
  2233. # value for INSTALL within a source directory, because that will
  2234. # break other packages using the cache if that directory is
  2235. # removed, or if the value is a relative name.
  2236. INSTALL=$ac_install_sh
  2237. fi
  2238. fi
  2239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2240. $as_echo "$INSTALL" >&6; }
  2241. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2242. # It thinks the first close brace ends the variable substitution.
  2243. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2244. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2245. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2247. $as_echo_n "checking whether build environment is sane... " >&6; }
  2248. # Just in case
  2249. sleep 1
  2250. echo timestamp > conftest.file
  2251. # Reject unsafe characters in $srcdir or the absolute working directory
  2252. # name. Accept space and tab only in the latter.
  2253. am_lf='
  2254. '
  2255. case `pwd` in
  2256. *[\\\"\#\$\&\'\`$am_lf]*)
  2257. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2258. esac
  2259. case $srcdir in
  2260. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2261. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2262. esac
  2263. # Do `set' in a subshell so we don't clobber the current shell's
  2264. # arguments. Must try -L first in case configure is actually a
  2265. # symlink; some systems play weird games with the mod time of symlinks
  2266. # (eg FreeBSD returns the mod time of the symlink's containing
  2267. # directory).
  2268. if (
  2269. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2270. if test "$*" = "X"; then
  2271. # -L didn't work.
  2272. set X `ls -t "$srcdir/configure" conftest.file`
  2273. fi
  2274. rm -f conftest.file
  2275. if test "$*" != "X $srcdir/configure conftest.file" \
  2276. && test "$*" != "X conftest.file $srcdir/configure"; then
  2277. # If neither matched, then we have a broken ls. This can happen
  2278. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2279. # broken ls alias from the environment. This has actually
  2280. # happened. Such a system could not be considered "sane".
  2281. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2282. alias in your environment" "$LINENO" 5
  2283. fi
  2284. test "$2" = conftest.file
  2285. )
  2286. then
  2287. # Ok.
  2288. :
  2289. else
  2290. as_fn_error "newly created file is older than distributed files!
  2291. Check your system clock" "$LINENO" 5
  2292. fi
  2293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2294. $as_echo "yes" >&6; }
  2295. test "$program_prefix" != NONE &&
  2296. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2297. # Use a double $ so make ignores it.
  2298. test "$program_suffix" != NONE &&
  2299. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2300. # Double any \ or $.
  2301. # By default was `s,x,x', remove it if useless.
  2302. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2303. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2304. # expand $ac_aux_dir to an absolute path
  2305. am_aux_dir=`cd $ac_aux_dir && pwd`
  2306. if test x"${MISSING+set}" != xset; then
  2307. case $am_aux_dir in
  2308. *\ * | *\ *)
  2309. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2310. *)
  2311. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2312. esac
  2313. fi
  2314. # Use eval to expand $SHELL
  2315. if eval "$MISSING --run true"; then
  2316. am_missing_run="$MISSING --run "
  2317. else
  2318. am_missing_run=
  2319. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2320. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2321. fi
  2322. if test x"${install_sh}" != xset; then
  2323. case $am_aux_dir in
  2324. *\ * | *\ *)
  2325. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2326. *)
  2327. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2328. esac
  2329. fi
  2330. # Installed binaries are usually stripped using `strip' when the user
  2331. # run `make install-strip'. However `strip' might not be the right
  2332. # tool to use in cross-compilation environments, therefore Automake
  2333. # will honor the `STRIP' environment variable to overrule this program.
  2334. if test "$cross_compiling" != no; then
  2335. if test -n "$ac_tool_prefix"; then
  2336. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2337. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2339. $as_echo_n "checking for $ac_word... " >&6; }
  2340. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2341. $as_echo_n "(cached) " >&6
  2342. else
  2343. if test -n "$STRIP"; then
  2344. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2345. else
  2346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2347. for as_dir in $PATH
  2348. do
  2349. IFS=$as_save_IFS
  2350. test -z "$as_dir" && as_dir=.
  2351. for ac_exec_ext in '' $ac_executable_extensions; do
  2352. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2353. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2354. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2355. break 2
  2356. fi
  2357. done
  2358. done
  2359. IFS=$as_save_IFS
  2360. fi
  2361. fi
  2362. STRIP=$ac_cv_prog_STRIP
  2363. if test -n "$STRIP"; then
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2365. $as_echo "$STRIP" >&6; }
  2366. else
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2368. $as_echo "no" >&6; }
  2369. fi
  2370. fi
  2371. if test -z "$ac_cv_prog_STRIP"; then
  2372. ac_ct_STRIP=$STRIP
  2373. # Extract the first word of "strip", so it can be a program name with args.
  2374. set dummy strip; ac_word=$2
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2376. $as_echo_n "checking for $ac_word... " >&6; }
  2377. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2378. $as_echo_n "(cached) " >&6
  2379. else
  2380. if test -n "$ac_ct_STRIP"; then
  2381. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2382. else
  2383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2384. for as_dir in $PATH
  2385. do
  2386. IFS=$as_save_IFS
  2387. test -z "$as_dir" && as_dir=.
  2388. for ac_exec_ext in '' $ac_executable_extensions; do
  2389. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2390. ac_cv_prog_ac_ct_STRIP="strip"
  2391. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2392. break 2
  2393. fi
  2394. done
  2395. done
  2396. IFS=$as_save_IFS
  2397. fi
  2398. fi
  2399. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2400. if test -n "$ac_ct_STRIP"; then
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2402. $as_echo "$ac_ct_STRIP" >&6; }
  2403. else
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2405. $as_echo "no" >&6; }
  2406. fi
  2407. if test "x$ac_ct_STRIP" = x; then
  2408. STRIP=":"
  2409. else
  2410. case $cross_compiling:$ac_tool_warned in
  2411. yes:)
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2413. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2414. ac_tool_warned=yes ;;
  2415. esac
  2416. STRIP=$ac_ct_STRIP
  2417. fi
  2418. else
  2419. STRIP="$ac_cv_prog_STRIP"
  2420. fi
  2421. fi
  2422. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2424. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2425. if test -z "$MKDIR_P"; then
  2426. if test "${ac_cv_path_mkdir+set}" = set; then :
  2427. $as_echo_n "(cached) " >&6
  2428. else
  2429. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2430. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2431. do
  2432. IFS=$as_save_IFS
  2433. test -z "$as_dir" && as_dir=.
  2434. for ac_prog in mkdir gmkdir; do
  2435. for ac_exec_ext in '' $ac_executable_extensions; do
  2436. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2437. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2438. 'mkdir (GNU coreutils) '* | \
  2439. 'mkdir (coreutils) '* | \
  2440. 'mkdir (fileutils) '4.1*)
  2441. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2442. break 3;;
  2443. esac
  2444. done
  2445. done
  2446. done
  2447. IFS=$as_save_IFS
  2448. fi
  2449. test -d ./--version && rmdir ./--version
  2450. if test "${ac_cv_path_mkdir+set}" = set; then
  2451. MKDIR_P="$ac_cv_path_mkdir -p"
  2452. else
  2453. # As a last resort, use the slow shell script. Don't cache a
  2454. # value for MKDIR_P within a source directory, because that will
  2455. # break other packages using the cache if that directory is
  2456. # removed, or if the value is a relative name.
  2457. MKDIR_P="$ac_install_sh -d"
  2458. fi
  2459. fi
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2461. $as_echo "$MKDIR_P" >&6; }
  2462. mkdir_p="$MKDIR_P"
  2463. case $mkdir_p in
  2464. [\\/$]* | ?:[\\/]*) ;;
  2465. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2466. esac
  2467. for ac_prog in gawk mawk nawk awk
  2468. do
  2469. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2470. set dummy $ac_prog; ac_word=$2
  2471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2472. $as_echo_n "checking for $ac_word... " >&6; }
  2473. if test "${ac_cv_prog_AWK+set}" = set; then :
  2474. $as_echo_n "(cached) " >&6
  2475. else
  2476. if test -n "$AWK"; then
  2477. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2478. else
  2479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2480. for as_dir in $PATH
  2481. do
  2482. IFS=$as_save_IFS
  2483. test -z "$as_dir" && as_dir=.
  2484. for ac_exec_ext in '' $ac_executable_extensions; do
  2485. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2486. ac_cv_prog_AWK="$ac_prog"
  2487. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2488. break 2
  2489. fi
  2490. done
  2491. done
  2492. IFS=$as_save_IFS
  2493. fi
  2494. fi
  2495. AWK=$ac_cv_prog_AWK
  2496. if test -n "$AWK"; then
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2498. $as_echo "$AWK" >&6; }
  2499. else
  2500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2501. $as_echo "no" >&6; }
  2502. fi
  2503. test -n "$AWK" && break
  2504. done
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2506. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2507. set x ${MAKE-make}
  2508. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2509. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2510. $as_echo_n "(cached) " >&6
  2511. else
  2512. cat >conftest.make <<\_ACEOF
  2513. SHELL = /bin/sh
  2514. all:
  2515. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2516. _ACEOF
  2517. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2518. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2519. *@@@%%%=?*=@@@%%%*)
  2520. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2521. *)
  2522. eval ac_cv_prog_make_${ac_make}_set=no;;
  2523. esac
  2524. rm -f conftest.make
  2525. fi
  2526. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2528. $as_echo "yes" >&6; }
  2529. SET_MAKE=
  2530. else
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2532. $as_echo "no" >&6; }
  2533. SET_MAKE="MAKE=${MAKE-make}"
  2534. fi
  2535. rm -rf .tst 2>/dev/null
  2536. mkdir .tst 2>/dev/null
  2537. if test -d .tst; then
  2538. am__leading_dot=.
  2539. else
  2540. am__leading_dot=_
  2541. fi
  2542. rmdir .tst 2>/dev/null
  2543. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2544. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2545. # is not polluted with repeated "-I."
  2546. am__isrc=' -I$(srcdir)'
  2547. # test to see if srcdir already configured
  2548. if test -f $srcdir/config.status; then
  2549. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2550. fi
  2551. fi
  2552. # test whether we have cygpath
  2553. if test -z "$CYGPATH_W"; then
  2554. if (cygpath --version) >/dev/null 2>/dev/null; then
  2555. CYGPATH_W='cygpath -w'
  2556. else
  2557. CYGPATH_W=echo
  2558. fi
  2559. fi
  2560. # Define the identity of the package.
  2561. PACKAGE='gtest'
  2562. VERSION='1.6.0'
  2563. cat >>confdefs.h <<_ACEOF
  2564. #define PACKAGE "$PACKAGE"
  2565. _ACEOF
  2566. cat >>confdefs.h <<_ACEOF
  2567. #define VERSION "$VERSION"
  2568. _ACEOF
  2569. # Some tools Automake needs.
  2570. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2571. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2572. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2573. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2574. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2575. # We need awk for the "check" target. The system "awk" is bad on
  2576. # some platforms.
  2577. # Always define AMTAR for backward compatibility.
  2578. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2579. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2580. # Check for programs used in building Google Test.
  2581. ac_ext=c
  2582. ac_cpp='$CPP $CPPFLAGS'
  2583. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2584. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2585. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2586. if test -n "$ac_tool_prefix"; then
  2587. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2588. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2590. $as_echo_n "checking for $ac_word... " >&6; }
  2591. if test "${ac_cv_prog_CC+set}" = set; then :
  2592. $as_echo_n "(cached) " >&6
  2593. else
  2594. if test -n "$CC"; then
  2595. ac_cv_prog_CC="$CC" # Let the user override the test.
  2596. else
  2597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2598. for as_dir in $PATH
  2599. do
  2600. IFS=$as_save_IFS
  2601. test -z "$as_dir" && as_dir=.
  2602. for ac_exec_ext in '' $ac_executable_extensions; do
  2603. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2604. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2605. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2606. break 2
  2607. fi
  2608. done
  2609. done
  2610. IFS=$as_save_IFS
  2611. fi
  2612. fi
  2613. CC=$ac_cv_prog_CC
  2614. if test -n "$CC"; then
  2615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2616. $as_echo "$CC" >&6; }
  2617. else
  2618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2619. $as_echo "no" >&6; }
  2620. fi
  2621. fi
  2622. if test -z "$ac_cv_prog_CC"; then
  2623. ac_ct_CC=$CC
  2624. # Extract the first word of "gcc", so it can be a program name with args.
  2625. set dummy gcc; ac_word=$2
  2626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2627. $as_echo_n "checking for $ac_word... " >&6; }
  2628. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2629. $as_echo_n "(cached) " >&6
  2630. else
  2631. if test -n "$ac_ct_CC"; then
  2632. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2633. else
  2634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2635. for as_dir in $PATH
  2636. do
  2637. IFS=$as_save_IFS
  2638. test -z "$as_dir" && as_dir=.
  2639. for ac_exec_ext in '' $ac_executable_extensions; do
  2640. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2641. ac_cv_prog_ac_ct_CC="gcc"
  2642. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2643. break 2
  2644. fi
  2645. done
  2646. done
  2647. IFS=$as_save_IFS
  2648. fi
  2649. fi
  2650. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2651. if test -n "$ac_ct_CC"; then
  2652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2653. $as_echo "$ac_ct_CC" >&6; }
  2654. else
  2655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2656. $as_echo "no" >&6; }
  2657. fi
  2658. if test "x$ac_ct_CC" = x; then
  2659. CC=""
  2660. else
  2661. case $cross_compiling:$ac_tool_warned in
  2662. yes:)
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2664. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2665. ac_tool_warned=yes ;;
  2666. esac
  2667. CC=$ac_ct_CC
  2668. fi
  2669. else
  2670. CC="$ac_cv_prog_CC"
  2671. fi
  2672. if test -z "$CC"; then
  2673. if test -n "$ac_tool_prefix"; then
  2674. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2675. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2677. $as_echo_n "checking for $ac_word... " >&6; }
  2678. if test "${ac_cv_prog_CC+set}" = set; then :
  2679. $as_echo_n "(cached) " >&6
  2680. else
  2681. if test -n "$CC"; then
  2682. ac_cv_prog_CC="$CC" # Let the user override the test.
  2683. else
  2684. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2685. for as_dir in $PATH
  2686. do
  2687. IFS=$as_save_IFS
  2688. test -z "$as_dir" && as_dir=.
  2689. for ac_exec_ext in '' $ac_executable_extensions; do
  2690. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2691. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2692. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2693. break 2
  2694. fi
  2695. done
  2696. done
  2697. IFS=$as_save_IFS
  2698. fi
  2699. fi
  2700. CC=$ac_cv_prog_CC
  2701. if test -n "$CC"; then
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2703. $as_echo "$CC" >&6; }
  2704. else
  2705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2706. $as_echo "no" >&6; }
  2707. fi
  2708. fi
  2709. fi
  2710. if test -z "$CC"; then
  2711. # Extract the first word of "cc", so it can be a program name with args.
  2712. set dummy cc; ac_word=$2
  2713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2714. $as_echo_n "checking for $ac_word... " >&6; }
  2715. if test "${ac_cv_prog_CC+set}" = set; then :
  2716. $as_echo_n "(cached) " >&6
  2717. else
  2718. if test -n "$CC"; then
  2719. ac_cv_prog_CC="$CC" # Let the user override the test.
  2720. else
  2721. ac_prog_rejected=no
  2722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2723. for as_dir in $PATH
  2724. do
  2725. IFS=$as_save_IFS
  2726. test -z "$as_dir" && as_dir=.
  2727. for ac_exec_ext in '' $ac_executable_extensions; do
  2728. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2729. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2730. ac_prog_rejected=yes
  2731. continue
  2732. fi
  2733. ac_cv_prog_CC="cc"
  2734. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2735. break 2
  2736. fi
  2737. done
  2738. done
  2739. IFS=$as_save_IFS
  2740. if test $ac_prog_rejected = yes; then
  2741. # We found a bogon in the path, so make sure we never use it.
  2742. set dummy $ac_cv_prog_CC
  2743. shift
  2744. if test $# != 0; then
  2745. # We chose a different compiler from the bogus one.
  2746. # However, it has the same basename, so the bogon will be chosen
  2747. # first if we set CC to just the basename; use the full file name.
  2748. shift
  2749. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2750. fi
  2751. fi
  2752. fi
  2753. fi
  2754. CC=$ac_cv_prog_CC
  2755. if test -n "$CC"; then
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2757. $as_echo "$CC" >&6; }
  2758. else
  2759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2760. $as_echo "no" >&6; }
  2761. fi
  2762. fi
  2763. if test -z "$CC"; then
  2764. if test -n "$ac_tool_prefix"; then
  2765. for ac_prog in cl.exe
  2766. do
  2767. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2768. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2770. $as_echo_n "checking for $ac_word... " >&6; }
  2771. if test "${ac_cv_prog_CC+set}" = set; then :
  2772. $as_echo_n "(cached) " >&6
  2773. else
  2774. if test -n "$CC"; then
  2775. ac_cv_prog_CC="$CC" # Let the user override the test.
  2776. else
  2777. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2778. for as_dir in $PATH
  2779. do
  2780. IFS=$as_save_IFS
  2781. test -z "$as_dir" && as_dir=.
  2782. for ac_exec_ext in '' $ac_executable_extensions; do
  2783. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2784. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2785. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2786. break 2
  2787. fi
  2788. done
  2789. done
  2790. IFS=$as_save_IFS
  2791. fi
  2792. fi
  2793. CC=$ac_cv_prog_CC
  2794. if test -n "$CC"; then
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2796. $as_echo "$CC" >&6; }
  2797. else
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2799. $as_echo "no" >&6; }
  2800. fi
  2801. test -n "$CC" && break
  2802. done
  2803. fi
  2804. if test -z "$CC"; then
  2805. ac_ct_CC=$CC
  2806. for ac_prog in cl.exe
  2807. do
  2808. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2809. set dummy $ac_prog; ac_word=$2
  2810. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2811. $as_echo_n "checking for $ac_word... " >&6; }
  2812. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  2813. $as_echo_n "(cached) " >&6
  2814. else
  2815. if test -n "$ac_ct_CC"; then
  2816. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2817. else
  2818. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2819. for as_dir in $PATH
  2820. do
  2821. IFS=$as_save_IFS
  2822. test -z "$as_dir" && as_dir=.
  2823. for ac_exec_ext in '' $ac_executable_extensions; do
  2824. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2825. ac_cv_prog_ac_ct_CC="$ac_prog"
  2826. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2827. break 2
  2828. fi
  2829. done
  2830. done
  2831. IFS=$as_save_IFS
  2832. fi
  2833. fi
  2834. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2835. if test -n "$ac_ct_CC"; then
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2837. $as_echo "$ac_ct_CC" >&6; }
  2838. else
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2840. $as_echo "no" >&6; }
  2841. fi
  2842. test -n "$ac_ct_CC" && break
  2843. done
  2844. if test "x$ac_ct_CC" = x; then
  2845. CC=""
  2846. else
  2847. case $cross_compiling:$ac_tool_warned in
  2848. yes:)
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2850. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2851. ac_tool_warned=yes ;;
  2852. esac
  2853. CC=$ac_ct_CC
  2854. fi
  2855. fi
  2856. fi
  2857. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2858. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2859. as_fn_error "no acceptable C compiler found in \$PATH
  2860. See \`config.log' for more details." "$LINENO" 5; }
  2861. # Provide some information about the compiler.
  2862. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2863. set X $ac_compile
  2864. ac_compiler=$2
  2865. for ac_option in --version -v -V -qversion; do
  2866. { { ac_try="$ac_compiler $ac_option >&5"
  2867. case "(($ac_try" in
  2868. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2869. *) ac_try_echo=$ac_try;;
  2870. esac
  2871. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2872. $as_echo "$ac_try_echo"; } >&5
  2873. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2874. ac_status=$?
  2875. if test -s conftest.err; then
  2876. sed '10a\
  2877. ... rest of stderr output deleted ...
  2878. 10q' conftest.err >conftest.er1
  2879. cat conftest.er1 >&5
  2880. fi
  2881. rm -f conftest.er1 conftest.err
  2882. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2883. test $ac_status = 0; }
  2884. done
  2885. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2886. /* end confdefs.h. */
  2887. int
  2888. main ()
  2889. {
  2890. ;
  2891. return 0;
  2892. }
  2893. _ACEOF
  2894. ac_clean_files_save=$ac_clean_files
  2895. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2896. # Try to create an executable without -o first, disregard a.out.
  2897. # It will help us diagnose broken compilers, and finding out an intuition
  2898. # of exeext.
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2900. $as_echo_n "checking whether the C compiler works... " >&6; }
  2901. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2902. # The possible output files:
  2903. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2904. ac_rmfiles=
  2905. for ac_file in $ac_files
  2906. do
  2907. case $ac_file in
  2908. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2909. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2910. esac
  2911. done
  2912. rm -f $ac_rmfiles
  2913. if { { ac_try="$ac_link_default"
  2914. case "(($ac_try" in
  2915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2916. *) ac_try_echo=$ac_try;;
  2917. esac
  2918. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2919. $as_echo "$ac_try_echo"; } >&5
  2920. (eval "$ac_link_default") 2>&5
  2921. ac_status=$?
  2922. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2923. test $ac_status = 0; }; then :
  2924. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2925. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2926. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2927. # so that the user can short-circuit this test for compilers unknown to
  2928. # Autoconf.
  2929. for ac_file in $ac_files ''
  2930. do
  2931. test -f "$ac_file" || continue
  2932. case $ac_file in
  2933. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2934. ;;
  2935. [ab].out )
  2936. # We found the default executable, but exeext='' is most
  2937. # certainly right.
  2938. break;;
  2939. *.* )
  2940. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2941. then :; else
  2942. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2943. fi
  2944. # We set ac_cv_exeext here because the later test for it is not
  2945. # safe: cross compilers may not add the suffix if given an `-o'
  2946. # argument, so we may need to know it at that point already.
  2947. # Even if this section looks crufty: it has the advantage of
  2948. # actually working.
  2949. break;;
  2950. * )
  2951. break;;
  2952. esac
  2953. done
  2954. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2955. else
  2956. ac_file=''
  2957. fi
  2958. if test -z "$ac_file"; then :
  2959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2960. $as_echo "no" >&6; }
  2961. $as_echo "$as_me: failed program was:" >&5
  2962. sed 's/^/| /' conftest.$ac_ext >&5
  2963. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2964. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2965. { as_fn_set_status 77
  2966. as_fn_error "C compiler cannot create executables
  2967. See \`config.log' for more details." "$LINENO" 5; }; }
  2968. else
  2969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2970. $as_echo "yes" >&6; }
  2971. fi
  2972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2973. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2975. $as_echo "$ac_file" >&6; }
  2976. ac_exeext=$ac_cv_exeext
  2977. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2978. ac_clean_files=$ac_clean_files_save
  2979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2980. $as_echo_n "checking for suffix of executables... " >&6; }
  2981. if { { ac_try="$ac_link"
  2982. case "(($ac_try" in
  2983. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2984. *) ac_try_echo=$ac_try;;
  2985. esac
  2986. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2987. $as_echo "$ac_try_echo"; } >&5
  2988. (eval "$ac_link") 2>&5
  2989. ac_status=$?
  2990. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2991. test $ac_status = 0; }; then :
  2992. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2993. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2994. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2995. # `rm'.
  2996. for ac_file in conftest.exe conftest conftest.*; do
  2997. test -f "$ac_file" || continue
  2998. case $ac_file in
  2999. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3000. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3001. break;;
  3002. * ) break;;
  3003. esac
  3004. done
  3005. else
  3006. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3007. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3008. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3009. See \`config.log' for more details." "$LINENO" 5; }
  3010. fi
  3011. rm -f conftest conftest$ac_cv_exeext
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3013. $as_echo "$ac_cv_exeext" >&6; }
  3014. rm -f conftest.$ac_ext
  3015. EXEEXT=$ac_cv_exeext
  3016. ac_exeext=$EXEEXT
  3017. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3018. /* end confdefs.h. */
  3019. #include <stdio.h>
  3020. int
  3021. main ()
  3022. {
  3023. FILE *f = fopen ("conftest.out", "w");
  3024. return ferror (f) || fclose (f) != 0;
  3025. ;
  3026. return 0;
  3027. }
  3028. _ACEOF
  3029. ac_clean_files="$ac_clean_files conftest.out"
  3030. # Check that the compiler produces executables we can run. If not, either
  3031. # the compiler is broken, or we cross compile.
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3033. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3034. if test "$cross_compiling" != yes; then
  3035. { { ac_try="$ac_link"
  3036. case "(($ac_try" in
  3037. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3038. *) ac_try_echo=$ac_try;;
  3039. esac
  3040. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3041. $as_echo "$ac_try_echo"; } >&5
  3042. (eval "$ac_link") 2>&5
  3043. ac_status=$?
  3044. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3045. test $ac_status = 0; }
  3046. if { ac_try='./conftest$ac_cv_exeext'
  3047. { { case "(($ac_try" in
  3048. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3049. *) ac_try_echo=$ac_try;;
  3050. esac
  3051. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3052. $as_echo "$ac_try_echo"; } >&5
  3053. (eval "$ac_try") 2>&5
  3054. ac_status=$?
  3055. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3056. test $ac_status = 0; }; }; then
  3057. cross_compiling=no
  3058. else
  3059. if test "$cross_compiling" = maybe; then
  3060. cross_compiling=yes
  3061. else
  3062. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3063. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3064. as_fn_error "cannot run C compiled programs.
  3065. If you meant to cross compile, use \`--host'.
  3066. See \`config.log' for more details." "$LINENO" 5; }
  3067. fi
  3068. fi
  3069. fi
  3070. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3071. $as_echo "$cross_compiling" >&6; }
  3072. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3073. ac_clean_files=$ac_clean_files_save
  3074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3075. $as_echo_n "checking for suffix of object files... " >&6; }
  3076. if test "${ac_cv_objext+set}" = set; then :
  3077. $as_echo_n "(cached) " >&6
  3078. else
  3079. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3080. /* end confdefs.h. */
  3081. int
  3082. main ()
  3083. {
  3084. ;
  3085. return 0;
  3086. }
  3087. _ACEOF
  3088. rm -f conftest.o conftest.obj
  3089. if { { ac_try="$ac_compile"
  3090. case "(($ac_try" in
  3091. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3092. *) ac_try_echo=$ac_try;;
  3093. esac
  3094. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3095. $as_echo "$ac_try_echo"; } >&5
  3096. (eval "$ac_compile") 2>&5
  3097. ac_status=$?
  3098. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3099. test $ac_status = 0; }; then :
  3100. for ac_file in conftest.o conftest.obj conftest.*; do
  3101. test -f "$ac_file" || continue;
  3102. case $ac_file in
  3103. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3104. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3105. break;;
  3106. esac
  3107. done
  3108. else
  3109. $as_echo "$as_me: failed program was:" >&5
  3110. sed 's/^/| /' conftest.$ac_ext >&5
  3111. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3112. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3113. as_fn_error "cannot compute suffix of object files: cannot compile
  3114. See \`config.log' for more details." "$LINENO" 5; }
  3115. fi
  3116. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3117. fi
  3118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3119. $as_echo "$ac_cv_objext" >&6; }
  3120. OBJEXT=$ac_cv_objext
  3121. ac_objext=$OBJEXT
  3122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3123. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3124. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3125. $as_echo_n "(cached) " >&6
  3126. else
  3127. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3128. /* end confdefs.h. */
  3129. int
  3130. main ()
  3131. {
  3132. #ifndef __GNUC__
  3133. choke me
  3134. #endif
  3135. ;
  3136. return 0;
  3137. }
  3138. _ACEOF
  3139. if ac_fn_c_try_compile "$LINENO"; then :
  3140. ac_compiler_gnu=yes
  3141. else
  3142. ac_compiler_gnu=no
  3143. fi
  3144. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3145. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3146. fi
  3147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3148. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3149. if test $ac_compiler_gnu = yes; then
  3150. GCC=yes
  3151. else
  3152. GCC=
  3153. fi
  3154. ac_test_CFLAGS=${CFLAGS+set}
  3155. ac_save_CFLAGS=$CFLAGS
  3156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3157. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3158. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3159. $as_echo_n "(cached) " >&6
  3160. else
  3161. ac_save_c_werror_flag=$ac_c_werror_flag
  3162. ac_c_werror_flag=yes
  3163. ac_cv_prog_cc_g=no
  3164. CFLAGS="-g"
  3165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3166. /* end confdefs.h. */
  3167. int
  3168. main ()
  3169. {
  3170. ;
  3171. return 0;
  3172. }
  3173. _ACEOF
  3174. if ac_fn_c_try_compile "$LINENO"; then :
  3175. ac_cv_prog_cc_g=yes
  3176. else
  3177. CFLAGS=""
  3178. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3179. /* end confdefs.h. */
  3180. int
  3181. main ()
  3182. {
  3183. ;
  3184. return 0;
  3185. }
  3186. _ACEOF
  3187. if ac_fn_c_try_compile "$LINENO"; then :
  3188. else
  3189. ac_c_werror_flag=$ac_save_c_werror_flag
  3190. CFLAGS="-g"
  3191. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3192. /* end confdefs.h. */
  3193. int
  3194. main ()
  3195. {
  3196. ;
  3197. return 0;
  3198. }
  3199. _ACEOF
  3200. if ac_fn_c_try_compile "$LINENO"; then :
  3201. ac_cv_prog_cc_g=yes
  3202. fi
  3203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3204. fi
  3205. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3206. fi
  3207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3208. ac_c_werror_flag=$ac_save_c_werror_flag
  3209. fi
  3210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3211. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3212. if test "$ac_test_CFLAGS" = set; then
  3213. CFLAGS=$ac_save_CFLAGS
  3214. elif test $ac_cv_prog_cc_g = yes; then
  3215. if test "$GCC" = yes; then
  3216. CFLAGS="-g -O2"
  3217. else
  3218. CFLAGS="-g"
  3219. fi
  3220. else
  3221. if test "$GCC" = yes; then
  3222. CFLAGS="-O2"
  3223. else
  3224. CFLAGS=
  3225. fi
  3226. fi
  3227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3228. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3229. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3230. $as_echo_n "(cached) " >&6
  3231. else
  3232. ac_cv_prog_cc_c89=no
  3233. ac_save_CC=$CC
  3234. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3235. /* end confdefs.h. */
  3236. #include <stdarg.h>
  3237. #include <stdio.h>
  3238. #include <sys/types.h>
  3239. #include <sys/stat.h>
  3240. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3241. struct buf { int x; };
  3242. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3243. static char *e (p, i)
  3244. char **p;
  3245. int i;
  3246. {
  3247. return p[i];
  3248. }
  3249. static char *f (char * (*g) (char **, int), char **p, ...)
  3250. {
  3251. char *s;
  3252. va_list v;
  3253. va_start (v,p);
  3254. s = g (p, va_arg (v,int));
  3255. va_end (v);
  3256. return s;
  3257. }
  3258. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3259. function prototypes and stuff, but not '\xHH' hex character constants.
  3260. These don't provoke an error unfortunately, instead are silently treated
  3261. as 'x'. The following induces an error, until -std is added to get
  3262. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3263. array size at least. It's necessary to write '\x00'==0 to get something
  3264. that's true only with -std. */
  3265. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3266. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3267. inside strings and character constants. */
  3268. #define FOO(x) 'x'
  3269. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3270. int test (int i, double x);
  3271. struct s1 {int (*f) (int a);};
  3272. struct s2 {int (*f) (double a);};
  3273. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3274. int argc;
  3275. char **argv;
  3276. int
  3277. main ()
  3278. {
  3279. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3280. ;
  3281. return 0;
  3282. }
  3283. _ACEOF
  3284. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3285. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3286. do
  3287. CC="$ac_save_CC $ac_arg"
  3288. if ac_fn_c_try_compile "$LINENO"; then :
  3289. ac_cv_prog_cc_c89=$ac_arg
  3290. fi
  3291. rm -f core conftest.err conftest.$ac_objext
  3292. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3293. done
  3294. rm -f conftest.$ac_ext
  3295. CC=$ac_save_CC
  3296. fi
  3297. # AC_CACHE_VAL
  3298. case "x$ac_cv_prog_cc_c89" in
  3299. x)
  3300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3301. $as_echo "none needed" >&6; } ;;
  3302. xno)
  3303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3304. $as_echo "unsupported" >&6; } ;;
  3305. *)
  3306. CC="$CC $ac_cv_prog_cc_c89"
  3307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3308. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3309. esac
  3310. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3311. fi
  3312. ac_ext=c
  3313. ac_cpp='$CPP $CPPFLAGS'
  3314. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3315. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3316. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3317. DEPDIR="${am__leading_dot}deps"
  3318. ac_config_commands="$ac_config_commands depfiles"
  3319. am_make=${MAKE-make}
  3320. cat > confinc << 'END'
  3321. am__doit:
  3322. @echo this is the am__doit target
  3323. .PHONY: am__doit
  3324. END
  3325. # If we don't find an include directive, just comment out the code.
  3326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3327. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3328. am__include="#"
  3329. am__quote=
  3330. _am_result=none
  3331. # First try GNU make style include.
  3332. echo "include confinc" > confmf
  3333. # Ignore all kinds of additional output from `make'.
  3334. case `$am_make -s -f confmf 2> /dev/null` in #(
  3335. *the\ am__doit\ target*)
  3336. am__include=include
  3337. am__quote=
  3338. _am_result=GNU
  3339. ;;
  3340. esac
  3341. # Now try BSD make style include.
  3342. if test "$am__include" = "#"; then
  3343. echo '.include "confinc"' > confmf
  3344. case `$am_make -s -f confmf 2> /dev/null` in #(
  3345. *the\ am__doit\ target*)
  3346. am__include=.include
  3347. am__quote="\""
  3348. _am_result=BSD
  3349. ;;
  3350. esac
  3351. fi
  3352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3353. $as_echo "$_am_result" >&6; }
  3354. rm -f confinc confmf
  3355. # Check whether --enable-dependency-tracking was given.
  3356. if test "${enable_dependency_tracking+set}" = set; then :
  3357. enableval=$enable_dependency_tracking;
  3358. fi
  3359. if test "x$enable_dependency_tracking" != xno; then
  3360. am_depcomp="$ac_aux_dir/depcomp"
  3361. AMDEPBACKSLASH='\'
  3362. fi
  3363. if test "x$enable_dependency_tracking" != xno; then
  3364. AMDEP_TRUE=
  3365. AMDEP_FALSE='#'
  3366. else
  3367. AMDEP_TRUE='#'
  3368. AMDEP_FALSE=
  3369. fi
  3370. depcc="$CC" am_compiler_list=
  3371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3372. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3373. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  3374. $as_echo_n "(cached) " >&6
  3375. else
  3376. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3377. # We make a subdir and do the tests there. Otherwise we can end up
  3378. # making bogus files that we don't know about and never remove. For
  3379. # instance it was reported that on HP-UX the gcc test will end up
  3380. # making a dummy file named `D' -- because `-MD' means `put the output
  3381. # in D'.
  3382. mkdir conftest.dir
  3383. # Copy depcomp to subdir because otherwise we won't find it if we're
  3384. # using a relative directory.
  3385. cp "$am_depcomp" conftest.dir
  3386. cd conftest.dir
  3387. # We will build objects and dependencies in a subdirectory because
  3388. # it helps to detect inapplicable dependency modes. For instance
  3389. # both Tru64's cc and ICC support -MD to output dependencies as a
  3390. # side effect of compilation, but ICC will put the dependencies in
  3391. # the current directory while Tru64 will put them in the object
  3392. # directory.
  3393. mkdir sub
  3394. am_cv_CC_dependencies_compiler_type=none
  3395. if test "$am_compiler_list" = ""; then
  3396. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3397. fi
  3398. am__universal=false
  3399. case " $depcc " in #(
  3400. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3401. esac
  3402. for depmode in $am_compiler_list; do
  3403. # Setup a source with many dependencies, because some compilers
  3404. # like to wrap large dependency lists on column 80 (with \), and
  3405. # we should not choose a depcomp mode which is confused by this.
  3406. #
  3407. # We need to recreate these files for each test, as the compiler may
  3408. # overwrite some of them when testing with obscure command lines.
  3409. # This happens at least with the AIX C compiler.
  3410. : > sub/conftest.c
  3411. for i in 1 2 3 4 5 6; do
  3412. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3413. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3414. # Solaris 8's {/usr,}/bin/sh.
  3415. touch sub/conftst$i.h
  3416. done
  3417. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3418. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3419. # mode. It turns out that the SunPro C++ compiler does not properly
  3420. # handle `-M -o', and we need to detect this. Also, some Intel
  3421. # versions had trouble with output in subdirs
  3422. am__obj=sub/conftest.${OBJEXT-o}
  3423. am__minus_obj="-o $am__obj"
  3424. case $depmode in
  3425. gcc)
  3426. # This depmode causes a compiler race in universal mode.
  3427. test "$am__universal" = false || continue
  3428. ;;
  3429. nosideeffect)
  3430. # after this tag, mechanisms are not by side-effect, so they'll
  3431. # only be used when explicitly requested
  3432. if test "x$enable_dependency_tracking" = xyes; then
  3433. continue
  3434. else
  3435. break
  3436. fi
  3437. ;;
  3438. msvisualcpp | msvcmsys)
  3439. # This compiler won't grok `-c -o', but also, the minuso test has
  3440. # not run yet. These depmodes are late enough in the game, and
  3441. # so weak that their functioning should not be impacted.
  3442. am__obj=conftest.${OBJEXT-o}
  3443. am__minus_obj=
  3444. ;;
  3445. none) break ;;
  3446. esac
  3447. if depmode=$depmode \
  3448. source=sub/conftest.c object=$am__obj \
  3449. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3450. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3451. >/dev/null 2>conftest.err &&
  3452. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3453. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3454. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3455. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3456. # icc doesn't choke on unknown options, it will just issue warnings
  3457. # or remarks (even with -Werror). So we grep stderr for any message
  3458. # that says an option was ignored or not supported.
  3459. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3460. # icc: Command line warning: ignoring option '-M'; no argument required
  3461. # The diagnosis changed in icc 8.0:
  3462. # icc: Command line remark: option '-MP' not supported
  3463. if (grep 'ignoring option' conftest.err ||
  3464. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3465. am_cv_CC_dependencies_compiler_type=$depmode
  3466. break
  3467. fi
  3468. fi
  3469. done
  3470. cd ..
  3471. rm -rf conftest.dir
  3472. else
  3473. am_cv_CC_dependencies_compiler_type=none
  3474. fi
  3475. fi
  3476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3477. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3478. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3479. if
  3480. test "x$enable_dependency_tracking" != xno \
  3481. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3482. am__fastdepCC_TRUE=
  3483. am__fastdepCC_FALSE='#'
  3484. else
  3485. am__fastdepCC_TRUE='#'
  3486. am__fastdepCC_FALSE=
  3487. fi
  3488. ac_ext=cpp
  3489. ac_cpp='$CXXCPP $CPPFLAGS'
  3490. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3491. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3492. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3493. if test -z "$CXX"; then
  3494. if test -n "$CCC"; then
  3495. CXX=$CCC
  3496. else
  3497. if test -n "$ac_tool_prefix"; then
  3498. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3499. do
  3500. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3501. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3503. $as_echo_n "checking for $ac_word... " >&6; }
  3504. if test "${ac_cv_prog_CXX+set}" = set; then :
  3505. $as_echo_n "(cached) " >&6
  3506. else
  3507. if test -n "$CXX"; then
  3508. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3509. else
  3510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3511. for as_dir in $PATH
  3512. do
  3513. IFS=$as_save_IFS
  3514. test -z "$as_dir" && as_dir=.
  3515. for ac_exec_ext in '' $ac_executable_extensions; do
  3516. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3517. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3519. break 2
  3520. fi
  3521. done
  3522. done
  3523. IFS=$as_save_IFS
  3524. fi
  3525. fi
  3526. CXX=$ac_cv_prog_CXX
  3527. if test -n "$CXX"; then
  3528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  3529. $as_echo "$CXX" >&6; }
  3530. else
  3531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3532. $as_echo "no" >&6; }
  3533. fi
  3534. test -n "$CXX" && break
  3535. done
  3536. fi
  3537. if test -z "$CXX"; then
  3538. ac_ct_CXX=$CXX
  3539. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3540. do
  3541. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3542. set dummy $ac_prog; ac_word=$2
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3544. $as_echo_n "checking for $ac_word... " >&6; }
  3545. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  3546. $as_echo_n "(cached) " >&6
  3547. else
  3548. if test -n "$ac_ct_CXX"; then
  3549. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3550. else
  3551. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3552. for as_dir in $PATH
  3553. do
  3554. IFS=$as_save_IFS
  3555. test -z "$as_dir" && as_dir=.
  3556. for ac_exec_ext in '' $ac_executable_extensions; do
  3557. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3558. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3559. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3560. break 2
  3561. fi
  3562. done
  3563. done
  3564. IFS=$as_save_IFS
  3565. fi
  3566. fi
  3567. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3568. if test -n "$ac_ct_CXX"; then
  3569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  3570. $as_echo "$ac_ct_CXX" >&6; }
  3571. else
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3573. $as_echo "no" >&6; }
  3574. fi
  3575. test -n "$ac_ct_CXX" && break
  3576. done
  3577. if test "x$ac_ct_CXX" = x; then
  3578. CXX="g++"
  3579. else
  3580. case $cross_compiling:$ac_tool_warned in
  3581. yes:)
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3583. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3584. ac_tool_warned=yes ;;
  3585. esac
  3586. CXX=$ac_ct_CXX
  3587. fi
  3588. fi
  3589. fi
  3590. fi
  3591. # Provide some information about the compiler.
  3592. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  3593. set X $ac_compile
  3594. ac_compiler=$2
  3595. for ac_option in --version -v -V -qversion; do
  3596. { { ac_try="$ac_compiler $ac_option >&5"
  3597. case "(($ac_try" in
  3598. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3599. *) ac_try_echo=$ac_try;;
  3600. esac
  3601. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3602. $as_echo "$ac_try_echo"; } >&5
  3603. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3604. ac_status=$?
  3605. if test -s conftest.err; then
  3606. sed '10a\
  3607. ... rest of stderr output deleted ...
  3608. 10q' conftest.err >conftest.er1
  3609. cat conftest.er1 >&5
  3610. fi
  3611. rm -f conftest.er1 conftest.err
  3612. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3613. test $ac_status = 0; }
  3614. done
  3615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3616. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3617. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3618. $as_echo_n "(cached) " >&6
  3619. else
  3620. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3621. /* end confdefs.h. */
  3622. int
  3623. main ()
  3624. {
  3625. #ifndef __GNUC__
  3626. choke me
  3627. #endif
  3628. ;
  3629. return 0;
  3630. }
  3631. _ACEOF
  3632. if ac_fn_cxx_try_compile "$LINENO"; then :
  3633. ac_compiler_gnu=yes
  3634. else
  3635. ac_compiler_gnu=no
  3636. fi
  3637. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3638. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3639. fi
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3641. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3642. if test $ac_compiler_gnu = yes; then
  3643. GXX=yes
  3644. else
  3645. GXX=
  3646. fi
  3647. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3648. ac_save_CXXFLAGS=$CXXFLAGS
  3649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3650. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3651. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3652. $as_echo_n "(cached) " >&6
  3653. else
  3654. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3655. ac_cxx_werror_flag=yes
  3656. ac_cv_prog_cxx_g=no
  3657. CXXFLAGS="-g"
  3658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3659. /* end confdefs.h. */
  3660. int
  3661. main ()
  3662. {
  3663. ;
  3664. return 0;
  3665. }
  3666. _ACEOF
  3667. if ac_fn_cxx_try_compile "$LINENO"; then :
  3668. ac_cv_prog_cxx_g=yes
  3669. else
  3670. CXXFLAGS=""
  3671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3672. /* end confdefs.h. */
  3673. int
  3674. main ()
  3675. {
  3676. ;
  3677. return 0;
  3678. }
  3679. _ACEOF
  3680. if ac_fn_cxx_try_compile "$LINENO"; then :
  3681. else
  3682. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3683. CXXFLAGS="-g"
  3684. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3685. /* end confdefs.h. */
  3686. int
  3687. main ()
  3688. {
  3689. ;
  3690. return 0;
  3691. }
  3692. _ACEOF
  3693. if ac_fn_cxx_try_compile "$LINENO"; then :
  3694. ac_cv_prog_cxx_g=yes
  3695. fi
  3696. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3697. fi
  3698. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3699. fi
  3700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3701. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3702. fi
  3703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3704. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3705. if test "$ac_test_CXXFLAGS" = set; then
  3706. CXXFLAGS=$ac_save_CXXFLAGS
  3707. elif test $ac_cv_prog_cxx_g = yes; then
  3708. if test "$GXX" = yes; then
  3709. CXXFLAGS="-g -O2"
  3710. else
  3711. CXXFLAGS="-g"
  3712. fi
  3713. else
  3714. if test "$GXX" = yes; then
  3715. CXXFLAGS="-O2"
  3716. else
  3717. CXXFLAGS=
  3718. fi
  3719. fi
  3720. ac_ext=c
  3721. ac_cpp='$CPP $CPPFLAGS'
  3722. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3723. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3724. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3725. depcc="$CXX" am_compiler_list=
  3726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3727. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3728. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3729. $as_echo_n "(cached) " >&6
  3730. else
  3731. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3732. # We make a subdir and do the tests there. Otherwise we can end up
  3733. # making bogus files that we don't know about and never remove. For
  3734. # instance it was reported that on HP-UX the gcc test will end up
  3735. # making a dummy file named `D' -- because `-MD' means `put the output
  3736. # in D'.
  3737. mkdir conftest.dir
  3738. # Copy depcomp to subdir because otherwise we won't find it if we're
  3739. # using a relative directory.
  3740. cp "$am_depcomp" conftest.dir
  3741. cd conftest.dir
  3742. # We will build objects and dependencies in a subdirectory because
  3743. # it helps to detect inapplicable dependency modes. For instance
  3744. # both Tru64's cc and ICC support -MD to output dependencies as a
  3745. # side effect of compilation, but ICC will put the dependencies in
  3746. # the current directory while Tru64 will put them in the object
  3747. # directory.
  3748. mkdir sub
  3749. am_cv_CXX_dependencies_compiler_type=none
  3750. if test "$am_compiler_list" = ""; then
  3751. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3752. fi
  3753. am__universal=false
  3754. case " $depcc " in #(
  3755. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3756. esac
  3757. for depmode in $am_compiler_list; do
  3758. # Setup a source with many dependencies, because some compilers
  3759. # like to wrap large dependency lists on column 80 (with \), and
  3760. # we should not choose a depcomp mode which is confused by this.
  3761. #
  3762. # We need to recreate these files for each test, as the compiler may
  3763. # overwrite some of them when testing with obscure command lines.
  3764. # This happens at least with the AIX C compiler.
  3765. : > sub/conftest.c
  3766. for i in 1 2 3 4 5 6; do
  3767. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3768. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3769. # Solaris 8's {/usr,}/bin/sh.
  3770. touch sub/conftst$i.h
  3771. done
  3772. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3773. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3774. # mode. It turns out that the SunPro C++ compiler does not properly
  3775. # handle `-M -o', and we need to detect this. Also, some Intel
  3776. # versions had trouble with output in subdirs
  3777. am__obj=sub/conftest.${OBJEXT-o}
  3778. am__minus_obj="-o $am__obj"
  3779. case $depmode in
  3780. gcc)
  3781. # This depmode causes a compiler race in universal mode.
  3782. test "$am__universal" = false || continue
  3783. ;;
  3784. nosideeffect)
  3785. # after this tag, mechanisms are not by side-effect, so they'll
  3786. # only be used when explicitly requested
  3787. if test "x$enable_dependency_tracking" = xyes; then
  3788. continue
  3789. else
  3790. break
  3791. fi
  3792. ;;
  3793. msvisualcpp | msvcmsys)
  3794. # This compiler won't grok `-c -o', but also, the minuso test has
  3795. # not run yet. These depmodes are late enough in the game, and
  3796. # so weak that their functioning should not be impacted.
  3797. am__obj=conftest.${OBJEXT-o}
  3798. am__minus_obj=
  3799. ;;
  3800. none) break ;;
  3801. esac
  3802. if depmode=$depmode \
  3803. source=sub/conftest.c object=$am__obj \
  3804. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3805. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3806. >/dev/null 2>conftest.err &&
  3807. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3808. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3809. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3810. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3811. # icc doesn't choke on unknown options, it will just issue warnings
  3812. # or remarks (even with -Werror). So we grep stderr for any message
  3813. # that says an option was ignored or not supported.
  3814. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3815. # icc: Command line warning: ignoring option '-M'; no argument required
  3816. # The diagnosis changed in icc 8.0:
  3817. # icc: Command line remark: option '-MP' not supported
  3818. if (grep 'ignoring option' conftest.err ||
  3819. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3820. am_cv_CXX_dependencies_compiler_type=$depmode
  3821. break
  3822. fi
  3823. fi
  3824. done
  3825. cd ..
  3826. rm -rf conftest.dir
  3827. else
  3828. am_cv_CXX_dependencies_compiler_type=none
  3829. fi
  3830. fi
  3831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3832. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3833. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3834. if
  3835. test "x$enable_dependency_tracking" != xno \
  3836. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3837. am__fastdepCXX_TRUE=
  3838. am__fastdepCXX_FALSE='#'
  3839. else
  3840. am__fastdepCXX_TRUE='#'
  3841. am__fastdepCXX_FALSE=
  3842. fi
  3843. ac_ext=cpp
  3844. ac_cpp='$CXXCPP $CPPFLAGS'
  3845. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3846. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3847. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3848. case `pwd` in
  3849. *\ * | *\ *)
  3850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3851. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3852. esac
  3853. macro_version='2.2.6b'
  3854. macro_revision='1.3017'
  3855. ltmain="$ac_aux_dir/ltmain.sh"
  3856. # Make sure we can run config.sub.
  3857. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3858. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3860. $as_echo_n "checking build system type... " >&6; }
  3861. if test "${ac_cv_build+set}" = set; then :
  3862. $as_echo_n "(cached) " >&6
  3863. else
  3864. ac_build_alias=$build_alias
  3865. test "x$ac_build_alias" = x &&
  3866. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3867. test "x$ac_build_alias" = x &&
  3868. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3869. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3870. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3871. fi
  3872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3873. $as_echo "$ac_cv_build" >&6; }
  3874. case $ac_cv_build in
  3875. *-*-*) ;;
  3876. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3877. esac
  3878. build=$ac_cv_build
  3879. ac_save_IFS=$IFS; IFS='-'
  3880. set x $ac_cv_build
  3881. shift
  3882. build_cpu=$1
  3883. build_vendor=$2
  3884. shift; shift
  3885. # Remember, the first character of IFS is used to create $*,
  3886. # except with old shells:
  3887. build_os=$*
  3888. IFS=$ac_save_IFS
  3889. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3891. $as_echo_n "checking host system type... " >&6; }
  3892. if test "${ac_cv_host+set}" = set; then :
  3893. $as_echo_n "(cached) " >&6
  3894. else
  3895. if test "x$host_alias" = x; then
  3896. ac_cv_host=$ac_cv_build
  3897. else
  3898. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3899. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3900. fi
  3901. fi
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3903. $as_echo "$ac_cv_host" >&6; }
  3904. case $ac_cv_host in
  3905. *-*-*) ;;
  3906. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3907. esac
  3908. host=$ac_cv_host
  3909. ac_save_IFS=$IFS; IFS='-'
  3910. set x $ac_cv_host
  3911. shift
  3912. host_cpu=$1
  3913. host_vendor=$2
  3914. shift; shift
  3915. # Remember, the first character of IFS is used to create $*,
  3916. # except with old shells:
  3917. host_os=$*
  3918. IFS=$ac_save_IFS
  3919. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3921. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3922. if test "${ac_cv_path_SED+set}" = set; then :
  3923. $as_echo_n "(cached) " >&6
  3924. else
  3925. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3926. for ac_i in 1 2 3 4 5 6 7; do
  3927. ac_script="$ac_script$as_nl$ac_script"
  3928. done
  3929. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3930. { ac_script=; unset ac_script;}
  3931. if test -z "$SED"; then
  3932. ac_path_SED_found=false
  3933. # Loop through the user's path and test for each of PROGNAME-LIST
  3934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3935. for as_dir in $PATH
  3936. do
  3937. IFS=$as_save_IFS
  3938. test -z "$as_dir" && as_dir=.
  3939. for ac_prog in sed gsed; do
  3940. for ac_exec_ext in '' $ac_executable_extensions; do
  3941. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3942. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  3943. # Check for GNU ac_path_SED and select it if it is found.
  3944. # Check for GNU $ac_path_SED
  3945. case `"$ac_path_SED" --version 2>&1` in
  3946. *GNU*)
  3947. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3948. *)
  3949. ac_count=0
  3950. $as_echo_n 0123456789 >"conftest.in"
  3951. while :
  3952. do
  3953. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3954. mv "conftest.tmp" "conftest.in"
  3955. cp "conftest.in" "conftest.nl"
  3956. $as_echo '' >> "conftest.nl"
  3957. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3958. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3959. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3960. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3961. # Best one so far, save it but keep looking for a better one
  3962. ac_cv_path_SED="$ac_path_SED"
  3963. ac_path_SED_max=$ac_count
  3964. fi
  3965. # 10*(2^10) chars as input seems more than enough
  3966. test $ac_count -gt 10 && break
  3967. done
  3968. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3969. esac
  3970. $ac_path_SED_found && break 3
  3971. done
  3972. done
  3973. done
  3974. IFS=$as_save_IFS
  3975. if test -z "$ac_cv_path_SED"; then
  3976. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3977. fi
  3978. else
  3979. ac_cv_path_SED=$SED
  3980. fi
  3981. fi
  3982. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3983. $as_echo "$ac_cv_path_SED" >&6; }
  3984. SED="$ac_cv_path_SED"
  3985. rm -f conftest.sed
  3986. test -z "$SED" && SED=sed
  3987. Xsed="$SED -e 1s/^X//"
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3989. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3990. if test "${ac_cv_path_GREP+set}" = set; then :
  3991. $as_echo_n "(cached) " >&6
  3992. else
  3993. if test -z "$GREP"; then
  3994. ac_path_GREP_found=false
  3995. # Loop through the user's path and test for each of PROGNAME-LIST
  3996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3997. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3998. do
  3999. IFS=$as_save_IFS
  4000. test -z "$as_dir" && as_dir=.
  4001. for ac_prog in grep ggrep; do
  4002. for ac_exec_ext in '' $ac_executable_extensions; do
  4003. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4004. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4005. # Check for GNU ac_path_GREP and select it if it is found.
  4006. # Check for GNU $ac_path_GREP
  4007. case `"$ac_path_GREP" --version 2>&1` in
  4008. *GNU*)
  4009. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4010. *)
  4011. ac_count=0
  4012. $as_echo_n 0123456789 >"conftest.in"
  4013. while :
  4014. do
  4015. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4016. mv "conftest.tmp" "conftest.in"
  4017. cp "conftest.in" "conftest.nl"
  4018. $as_echo 'GREP' >> "conftest.nl"
  4019. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4020. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4021. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4022. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4023. # Best one so far, save it but keep looking for a better one
  4024. ac_cv_path_GREP="$ac_path_GREP"
  4025. ac_path_GREP_max=$ac_count
  4026. fi
  4027. # 10*(2^10) chars as input seems more than enough
  4028. test $ac_count -gt 10 && break
  4029. done
  4030. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4031. esac
  4032. $ac_path_GREP_found && break 3
  4033. done
  4034. done
  4035. done
  4036. IFS=$as_save_IFS
  4037. if test -z "$ac_cv_path_GREP"; then
  4038. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4039. fi
  4040. else
  4041. ac_cv_path_GREP=$GREP
  4042. fi
  4043. fi
  4044. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4045. $as_echo "$ac_cv_path_GREP" >&6; }
  4046. GREP="$ac_cv_path_GREP"
  4047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4048. $as_echo_n "checking for egrep... " >&6; }
  4049. if test "${ac_cv_path_EGREP+set}" = set; then :
  4050. $as_echo_n "(cached) " >&6
  4051. else
  4052. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4053. then ac_cv_path_EGREP="$GREP -E"
  4054. else
  4055. if test -z "$EGREP"; then
  4056. ac_path_EGREP_found=false
  4057. # Loop through the user's path and test for each of PROGNAME-LIST
  4058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4059. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4060. do
  4061. IFS=$as_save_IFS
  4062. test -z "$as_dir" && as_dir=.
  4063. for ac_prog in egrep; do
  4064. for ac_exec_ext in '' $ac_executable_extensions; do
  4065. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4066. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4067. # Check for GNU ac_path_EGREP and select it if it is found.
  4068. # Check for GNU $ac_path_EGREP
  4069. case `"$ac_path_EGREP" --version 2>&1` in
  4070. *GNU*)
  4071. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4072. *)
  4073. ac_count=0
  4074. $as_echo_n 0123456789 >"conftest.in"
  4075. while :
  4076. do
  4077. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4078. mv "conftest.tmp" "conftest.in"
  4079. cp "conftest.in" "conftest.nl"
  4080. $as_echo 'EGREP' >> "conftest.nl"
  4081. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4082. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4083. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4084. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4085. # Best one so far, save it but keep looking for a better one
  4086. ac_cv_path_EGREP="$ac_path_EGREP"
  4087. ac_path_EGREP_max=$ac_count
  4088. fi
  4089. # 10*(2^10) chars as input seems more than enough
  4090. test $ac_count -gt 10 && break
  4091. done
  4092. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4093. esac
  4094. $ac_path_EGREP_found && break 3
  4095. done
  4096. done
  4097. done
  4098. IFS=$as_save_IFS
  4099. if test -z "$ac_cv_path_EGREP"; then
  4100. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4101. fi
  4102. else
  4103. ac_cv_path_EGREP=$EGREP
  4104. fi
  4105. fi
  4106. fi
  4107. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4108. $as_echo "$ac_cv_path_EGREP" >&6; }
  4109. EGREP="$ac_cv_path_EGREP"
  4110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4111. $as_echo_n "checking for fgrep... " >&6; }
  4112. if test "${ac_cv_path_FGREP+set}" = set; then :
  4113. $as_echo_n "(cached) " >&6
  4114. else
  4115. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4116. then ac_cv_path_FGREP="$GREP -F"
  4117. else
  4118. if test -z "$FGREP"; then
  4119. ac_path_FGREP_found=false
  4120. # Loop through the user's path and test for each of PROGNAME-LIST
  4121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4122. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4123. do
  4124. IFS=$as_save_IFS
  4125. test -z "$as_dir" && as_dir=.
  4126. for ac_prog in fgrep; do
  4127. for ac_exec_ext in '' $ac_executable_extensions; do
  4128. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4129. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4130. # Check for GNU ac_path_FGREP and select it if it is found.
  4131. # Check for GNU $ac_path_FGREP
  4132. case `"$ac_path_FGREP" --version 2>&1` in
  4133. *GNU*)
  4134. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4135. *)
  4136. ac_count=0
  4137. $as_echo_n 0123456789 >"conftest.in"
  4138. while :
  4139. do
  4140. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4141. mv "conftest.tmp" "conftest.in"
  4142. cp "conftest.in" "conftest.nl"
  4143. $as_echo 'FGREP' >> "conftest.nl"
  4144. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4145. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4146. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4147. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4148. # Best one so far, save it but keep looking for a better one
  4149. ac_cv_path_FGREP="$ac_path_FGREP"
  4150. ac_path_FGREP_max=$ac_count
  4151. fi
  4152. # 10*(2^10) chars as input seems more than enough
  4153. test $ac_count -gt 10 && break
  4154. done
  4155. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4156. esac
  4157. $ac_path_FGREP_found && break 3
  4158. done
  4159. done
  4160. done
  4161. IFS=$as_save_IFS
  4162. if test -z "$ac_cv_path_FGREP"; then
  4163. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4164. fi
  4165. else
  4166. ac_cv_path_FGREP=$FGREP
  4167. fi
  4168. fi
  4169. fi
  4170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4171. $as_echo "$ac_cv_path_FGREP" >&6; }
  4172. FGREP="$ac_cv_path_FGREP"
  4173. test -z "$GREP" && GREP=grep
  4174. # Check whether --with-gnu-ld was given.
  4175. if test "${with_gnu_ld+set}" = set; then :
  4176. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4177. else
  4178. with_gnu_ld=no
  4179. fi
  4180. ac_prog=ld
  4181. if test "$GCC" = yes; then
  4182. # Check if gcc -print-prog-name=ld gives a path.
  4183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4184. $as_echo_n "checking for ld used by $CC... " >&6; }
  4185. case $host in
  4186. *-*-mingw*)
  4187. # gcc leaves a trailing carriage return which upsets mingw
  4188. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4189. *)
  4190. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4191. esac
  4192. case $ac_prog in
  4193. # Accept absolute paths.
  4194. [\\/]* | ?:[\\/]*)
  4195. re_direlt='/[^/][^/]*/\.\./'
  4196. # Canonicalize the pathname of ld
  4197. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4198. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4199. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4200. done
  4201. test -z "$LD" && LD="$ac_prog"
  4202. ;;
  4203. "")
  4204. # If it fails, then pretend we aren't using GCC.
  4205. ac_prog=ld
  4206. ;;
  4207. *)
  4208. # If it is relative, then search for the first ld in PATH.
  4209. with_gnu_ld=unknown
  4210. ;;
  4211. esac
  4212. elif test "$with_gnu_ld" = yes; then
  4213. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4214. $as_echo_n "checking for GNU ld... " >&6; }
  4215. else
  4216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4217. $as_echo_n "checking for non-GNU ld... " >&6; }
  4218. fi
  4219. if test "${lt_cv_path_LD+set}" = set; then :
  4220. $as_echo_n "(cached) " >&6
  4221. else
  4222. if test -z "$LD"; then
  4223. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4224. for ac_dir in $PATH; do
  4225. IFS="$lt_save_ifs"
  4226. test -z "$ac_dir" && ac_dir=.
  4227. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4228. lt_cv_path_LD="$ac_dir/$ac_prog"
  4229. # Check to see if the program is GNU ld. I'd rather use --version,
  4230. # but apparently some variants of GNU ld only accept -v.
  4231. # Break only if it was the GNU/non-GNU ld that we prefer.
  4232. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4233. *GNU* | *'with BFD'*)
  4234. test "$with_gnu_ld" != no && break
  4235. ;;
  4236. *)
  4237. test "$with_gnu_ld" != yes && break
  4238. ;;
  4239. esac
  4240. fi
  4241. done
  4242. IFS="$lt_save_ifs"
  4243. else
  4244. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4245. fi
  4246. fi
  4247. LD="$lt_cv_path_LD"
  4248. if test -n "$LD"; then
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4250. $as_echo "$LD" >&6; }
  4251. else
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4253. $as_echo "no" >&6; }
  4254. fi
  4255. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4257. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4258. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4259. $as_echo_n "(cached) " >&6
  4260. else
  4261. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4262. case `$LD -v 2>&1 </dev/null` in
  4263. *GNU* | *'with BFD'*)
  4264. lt_cv_prog_gnu_ld=yes
  4265. ;;
  4266. *)
  4267. lt_cv_prog_gnu_ld=no
  4268. ;;
  4269. esac
  4270. fi
  4271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4272. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4273. with_gnu_ld=$lt_cv_prog_gnu_ld
  4274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4275. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4276. if test "${lt_cv_path_NM+set}" = set; then :
  4277. $as_echo_n "(cached) " >&6
  4278. else
  4279. if test -n "$NM"; then
  4280. # Let the user override the test.
  4281. lt_cv_path_NM="$NM"
  4282. else
  4283. lt_nm_to_check="${ac_tool_prefix}nm"
  4284. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4285. lt_nm_to_check="$lt_nm_to_check nm"
  4286. fi
  4287. for lt_tmp_nm in $lt_nm_to_check; do
  4288. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4289. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4290. IFS="$lt_save_ifs"
  4291. test -z "$ac_dir" && ac_dir=.
  4292. tmp_nm="$ac_dir/$lt_tmp_nm"
  4293. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4294. # Check to see if the nm accepts a BSD-compat flag.
  4295. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4296. # nm: unknown option "B" ignored
  4297. # Tru64's nm complains that /dev/null is an invalid object file
  4298. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4299. */dev/null* | *'Invalid file or object type'*)
  4300. lt_cv_path_NM="$tmp_nm -B"
  4301. break
  4302. ;;
  4303. *)
  4304. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4305. */dev/null*)
  4306. lt_cv_path_NM="$tmp_nm -p"
  4307. break
  4308. ;;
  4309. *)
  4310. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4311. continue # so that we can try to find one that supports BSD flags
  4312. ;;
  4313. esac
  4314. ;;
  4315. esac
  4316. fi
  4317. done
  4318. IFS="$lt_save_ifs"
  4319. done
  4320. : ${lt_cv_path_NM=no}
  4321. fi
  4322. fi
  4323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4324. $as_echo "$lt_cv_path_NM" >&6; }
  4325. if test "$lt_cv_path_NM" != "no"; then
  4326. NM="$lt_cv_path_NM"
  4327. else
  4328. # Didn't find any BSD compatible name lister, look for dumpbin.
  4329. if test -n "$ac_tool_prefix"; then
  4330. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4331. do
  4332. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4333. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4334. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4335. $as_echo_n "checking for $ac_word... " >&6; }
  4336. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4337. $as_echo_n "(cached) " >&6
  4338. else
  4339. if test -n "$DUMPBIN"; then
  4340. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4341. else
  4342. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4343. for as_dir in $PATH
  4344. do
  4345. IFS=$as_save_IFS
  4346. test -z "$as_dir" && as_dir=.
  4347. for ac_exec_ext in '' $ac_executable_extensions; do
  4348. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4349. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4350. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4351. break 2
  4352. fi
  4353. done
  4354. done
  4355. IFS=$as_save_IFS
  4356. fi
  4357. fi
  4358. DUMPBIN=$ac_cv_prog_DUMPBIN
  4359. if test -n "$DUMPBIN"; then
  4360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4361. $as_echo "$DUMPBIN" >&6; }
  4362. else
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4364. $as_echo "no" >&6; }
  4365. fi
  4366. test -n "$DUMPBIN" && break
  4367. done
  4368. fi
  4369. if test -z "$DUMPBIN"; then
  4370. ac_ct_DUMPBIN=$DUMPBIN
  4371. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4372. do
  4373. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4374. set dummy $ac_prog; ac_word=$2
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4376. $as_echo_n "checking for $ac_word... " >&6; }
  4377. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4378. $as_echo_n "(cached) " >&6
  4379. else
  4380. if test -n "$ac_ct_DUMPBIN"; then
  4381. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4382. else
  4383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4384. for as_dir in $PATH
  4385. do
  4386. IFS=$as_save_IFS
  4387. test -z "$as_dir" && as_dir=.
  4388. for ac_exec_ext in '' $ac_executable_extensions; do
  4389. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4390. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4391. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4392. break 2
  4393. fi
  4394. done
  4395. done
  4396. IFS=$as_save_IFS
  4397. fi
  4398. fi
  4399. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4400. if test -n "$ac_ct_DUMPBIN"; then
  4401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4402. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4403. else
  4404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4405. $as_echo "no" >&6; }
  4406. fi
  4407. test -n "$ac_ct_DUMPBIN" && break
  4408. done
  4409. if test "x$ac_ct_DUMPBIN" = x; then
  4410. DUMPBIN=":"
  4411. else
  4412. case $cross_compiling:$ac_tool_warned in
  4413. yes:)
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4415. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4416. ac_tool_warned=yes ;;
  4417. esac
  4418. DUMPBIN=$ac_ct_DUMPBIN
  4419. fi
  4420. fi
  4421. if test "$DUMPBIN" != ":"; then
  4422. NM="$DUMPBIN"
  4423. fi
  4424. fi
  4425. test -z "$NM" && NM=nm
  4426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4427. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4428. if test "${lt_cv_nm_interface+set}" = set; then :
  4429. $as_echo_n "(cached) " >&6
  4430. else
  4431. lt_cv_nm_interface="BSD nm"
  4432. echo "int some_variable = 0;" > conftest.$ac_ext
  4433. (eval echo "\"\$as_me:4924: $ac_compile\"" >&5)
  4434. (eval "$ac_compile" 2>conftest.err)
  4435. cat conftest.err >&5
  4436. (eval echo "\"\$as_me:4927: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4437. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4438. cat conftest.err >&5
  4439. (eval echo "\"\$as_me:4930: output\"" >&5)
  4440. cat conftest.out >&5
  4441. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4442. lt_cv_nm_interface="MS dumpbin"
  4443. fi
  4444. rm -f conftest*
  4445. fi
  4446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4447. $as_echo "$lt_cv_nm_interface" >&6; }
  4448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4449. $as_echo_n "checking whether ln -s works... " >&6; }
  4450. LN_S=$as_ln_s
  4451. if test "$LN_S" = "ln -s"; then
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4453. $as_echo "yes" >&6; }
  4454. else
  4455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4456. $as_echo "no, using $LN_S" >&6; }
  4457. fi
  4458. # find the maximum length of command line arguments
  4459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4460. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4461. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4462. $as_echo_n "(cached) " >&6
  4463. else
  4464. i=0
  4465. teststring="ABCD"
  4466. case $build_os in
  4467. msdosdjgpp*)
  4468. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4469. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4470. # during glob expansion). Even if it were fixed, the result of this
  4471. # check would be larger than it should be.
  4472. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4473. ;;
  4474. gnu*)
  4475. # Under GNU Hurd, this test is not required because there is
  4476. # no limit to the length of command line arguments.
  4477. # Libtool will interpret -1 as no limit whatsoever
  4478. lt_cv_sys_max_cmd_len=-1;
  4479. ;;
  4480. cygwin* | mingw* | cegcc*)
  4481. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4482. # about 5 minutes as the teststring grows exponentially.
  4483. # Worse, since 9x/ME are not pre-emptively multitasking,
  4484. # you end up with a "frozen" computer, even though with patience
  4485. # the test eventually succeeds (with a max line length of 256k).
  4486. # Instead, let's just punt: use the minimum linelength reported by
  4487. # all of the supported platforms: 8192 (on NT/2K/XP).
  4488. lt_cv_sys_max_cmd_len=8192;
  4489. ;;
  4490. amigaos*)
  4491. # On AmigaOS with pdksh, this test takes hours, literally.
  4492. # So we just punt and use a minimum line length of 8192.
  4493. lt_cv_sys_max_cmd_len=8192;
  4494. ;;
  4495. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4496. # This has been around since 386BSD, at least. Likely further.
  4497. if test -x /sbin/sysctl; then
  4498. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4499. elif test -x /usr/sbin/sysctl; then
  4500. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4501. else
  4502. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4503. fi
  4504. # And add a safety zone
  4505. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4506. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4507. ;;
  4508. interix*)
  4509. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4510. lt_cv_sys_max_cmd_len=196608
  4511. ;;
  4512. osf*)
  4513. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4514. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4515. # nice to cause kernel panics so lets avoid the loop below.
  4516. # First set a reasonable default.
  4517. lt_cv_sys_max_cmd_len=16384
  4518. #
  4519. if test -x /sbin/sysconfig; then
  4520. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4521. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4522. esac
  4523. fi
  4524. ;;
  4525. sco3.2v5*)
  4526. lt_cv_sys_max_cmd_len=102400
  4527. ;;
  4528. sysv5* | sco5v6* | sysv4.2uw2*)
  4529. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4530. if test -n "$kargmax"; then
  4531. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4532. else
  4533. lt_cv_sys_max_cmd_len=32768
  4534. fi
  4535. ;;
  4536. *)
  4537. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4538. if test -n "$lt_cv_sys_max_cmd_len"; then
  4539. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4540. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4541. else
  4542. # Make teststring a little bigger before we do anything with it.
  4543. # a 1K string should be a reasonable start.
  4544. for i in 1 2 3 4 5 6 7 8 ; do
  4545. teststring=$teststring$teststring
  4546. done
  4547. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4548. # If test is not a shell built-in, we'll probably end up computing a
  4549. # maximum length that is only half of the actual maximum length, but
  4550. # we can't tell.
  4551. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4552. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4553. test $i != 17 # 1/2 MB should be enough
  4554. do
  4555. i=`expr $i + 1`
  4556. teststring=$teststring$teststring
  4557. done
  4558. # Only check the string length outside the loop.
  4559. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4560. teststring=
  4561. # Add a significant safety factor because C++ compilers can tack on
  4562. # massive amounts of additional arguments before passing them to the
  4563. # linker. It appears as though 1/2 is a usable value.
  4564. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4565. fi
  4566. ;;
  4567. esac
  4568. fi
  4569. if test -n $lt_cv_sys_max_cmd_len ; then
  4570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4571. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4572. else
  4573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4574. $as_echo "none" >&6; }
  4575. fi
  4576. max_cmd_len=$lt_cv_sys_max_cmd_len
  4577. : ${CP="cp -f"}
  4578. : ${MV="mv -f"}
  4579. : ${RM="rm -f"}
  4580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4581. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4582. # Try some XSI features
  4583. xsi_shell=no
  4584. ( _lt_dummy="a/b/c"
  4585. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4586. = c,a/b,, \
  4587. && eval 'test $(( 1 + 1 )) -eq 2 \
  4588. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4589. && xsi_shell=yes
  4590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4591. $as_echo "$xsi_shell" >&6; }
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4593. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4594. lt_shell_append=no
  4595. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4596. >/dev/null 2>&1 \
  4597. && lt_shell_append=yes
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4599. $as_echo "$lt_shell_append" >&6; }
  4600. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4601. lt_unset=unset
  4602. else
  4603. lt_unset=false
  4604. fi
  4605. # test EBCDIC or ASCII
  4606. case `echo X|tr X '\101'` in
  4607. A) # ASCII based system
  4608. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4609. lt_SP2NL='tr \040 \012'
  4610. lt_NL2SP='tr \015\012 \040\040'
  4611. ;;
  4612. *) # EBCDIC based system
  4613. lt_SP2NL='tr \100 \n'
  4614. lt_NL2SP='tr \r\n \100\100'
  4615. ;;
  4616. esac
  4617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4618. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4619. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4620. $as_echo_n "(cached) " >&6
  4621. else
  4622. lt_cv_ld_reload_flag='-r'
  4623. fi
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4625. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4626. reload_flag=$lt_cv_ld_reload_flag
  4627. case $reload_flag in
  4628. "" | " "*) ;;
  4629. *) reload_flag=" $reload_flag" ;;
  4630. esac
  4631. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4632. case $host_os in
  4633. darwin*)
  4634. if test "$GCC" = yes; then
  4635. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4636. else
  4637. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4638. fi
  4639. ;;
  4640. esac
  4641. if test -n "$ac_tool_prefix"; then
  4642. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4643. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4645. $as_echo_n "checking for $ac_word... " >&6; }
  4646. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4647. $as_echo_n "(cached) " >&6
  4648. else
  4649. if test -n "$OBJDUMP"; then
  4650. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4651. else
  4652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4653. for as_dir in $PATH
  4654. do
  4655. IFS=$as_save_IFS
  4656. test -z "$as_dir" && as_dir=.
  4657. for ac_exec_ext in '' $ac_executable_extensions; do
  4658. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4659. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4661. break 2
  4662. fi
  4663. done
  4664. done
  4665. IFS=$as_save_IFS
  4666. fi
  4667. fi
  4668. OBJDUMP=$ac_cv_prog_OBJDUMP
  4669. if test -n "$OBJDUMP"; then
  4670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4671. $as_echo "$OBJDUMP" >&6; }
  4672. else
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4674. $as_echo "no" >&6; }
  4675. fi
  4676. fi
  4677. if test -z "$ac_cv_prog_OBJDUMP"; then
  4678. ac_ct_OBJDUMP=$OBJDUMP
  4679. # Extract the first word of "objdump", so it can be a program name with args.
  4680. set dummy objdump; ac_word=$2
  4681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4682. $as_echo_n "checking for $ac_word... " >&6; }
  4683. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4684. $as_echo_n "(cached) " >&6
  4685. else
  4686. if test -n "$ac_ct_OBJDUMP"; then
  4687. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4688. else
  4689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4690. for as_dir in $PATH
  4691. do
  4692. IFS=$as_save_IFS
  4693. test -z "$as_dir" && as_dir=.
  4694. for ac_exec_ext in '' $ac_executable_extensions; do
  4695. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4696. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4698. break 2
  4699. fi
  4700. done
  4701. done
  4702. IFS=$as_save_IFS
  4703. fi
  4704. fi
  4705. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4706. if test -n "$ac_ct_OBJDUMP"; then
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4708. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4709. else
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4711. $as_echo "no" >&6; }
  4712. fi
  4713. if test "x$ac_ct_OBJDUMP" = x; then
  4714. OBJDUMP="false"
  4715. else
  4716. case $cross_compiling:$ac_tool_warned in
  4717. yes:)
  4718. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4719. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4720. ac_tool_warned=yes ;;
  4721. esac
  4722. OBJDUMP=$ac_ct_OBJDUMP
  4723. fi
  4724. else
  4725. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4726. fi
  4727. test -z "$OBJDUMP" && OBJDUMP=objdump
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4729. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4730. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4731. $as_echo_n "(cached) " >&6
  4732. else
  4733. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4734. lt_cv_file_magic_test_file=
  4735. lt_cv_deplibs_check_method='unknown'
  4736. # Need to set the preceding variable on all platforms that support
  4737. # interlibrary dependencies.
  4738. # 'none' -- dependencies not supported.
  4739. # `unknown' -- same as none, but documents that we really don't know.
  4740. # 'pass_all' -- all dependencies passed with no checks.
  4741. # 'test_compile' -- check by making test program.
  4742. # 'file_magic [[regex]]' -- check by looking for files in library path
  4743. # which responds to the $file_magic_cmd with a given extended regex.
  4744. # If you have `file' or equivalent on your system and you're not sure
  4745. # whether `pass_all' will *always* work, you probably want this one.
  4746. case $host_os in
  4747. aix[4-9]*)
  4748. lt_cv_deplibs_check_method=pass_all
  4749. ;;
  4750. beos*)
  4751. lt_cv_deplibs_check_method=pass_all
  4752. ;;
  4753. bsdi[45]*)
  4754. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4755. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4756. lt_cv_file_magic_test_file=/shlib/libc.so
  4757. ;;
  4758. cygwin*)
  4759. # func_win32_libid is a shell function defined in ltmain.sh
  4760. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4761. lt_cv_file_magic_cmd='func_win32_libid'
  4762. ;;
  4763. mingw* | pw32*)
  4764. # Base MSYS/MinGW do not provide the 'file' command needed by
  4765. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4766. # unless we find 'file', for example because we are cross-compiling.
  4767. if ( file / ) >/dev/null 2>&1; then
  4768. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4769. lt_cv_file_magic_cmd='func_win32_libid'
  4770. else
  4771. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4772. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4773. fi
  4774. ;;
  4775. cegcc)
  4776. # use the weaker test based on 'objdump'. See mingw*.
  4777. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4778. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4779. ;;
  4780. darwin* | rhapsody*)
  4781. lt_cv_deplibs_check_method=pass_all
  4782. ;;
  4783. freebsd* | dragonfly*)
  4784. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4785. case $host_cpu in
  4786. i*86 )
  4787. # Not sure whether the presence of OpenBSD here was a mistake.
  4788. # Let's accept both of them until this is cleared up.
  4789. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4790. lt_cv_file_magic_cmd=/usr/bin/file
  4791. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4792. ;;
  4793. esac
  4794. else
  4795. lt_cv_deplibs_check_method=pass_all
  4796. fi
  4797. ;;
  4798. gnu*)
  4799. lt_cv_deplibs_check_method=pass_all
  4800. ;;
  4801. hpux10.20* | hpux11*)
  4802. lt_cv_file_magic_cmd=/usr/bin/file
  4803. case $host_cpu in
  4804. ia64*)
  4805. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4806. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4807. ;;
  4808. hppa*64*)
  4809. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  4810. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4811. ;;
  4812. *)
  4813. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  4814. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4815. ;;
  4816. esac
  4817. ;;
  4818. interix[3-9]*)
  4819. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4820. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4821. ;;
  4822. irix5* | irix6* | nonstopux*)
  4823. case $LD in
  4824. *-32|*"-32 ") libmagic=32-bit;;
  4825. *-n32|*"-n32 ") libmagic=N32;;
  4826. *-64|*"-64 ") libmagic=64-bit;;
  4827. *) libmagic=never-match;;
  4828. esac
  4829. lt_cv_deplibs_check_method=pass_all
  4830. ;;
  4831. # This must be Linux ELF.
  4832. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4833. lt_cv_deplibs_check_method=pass_all
  4834. ;;
  4835. netbsd* | netbsdelf*-gnu)
  4836. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4837. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4838. else
  4839. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4840. fi
  4841. ;;
  4842. newos6*)
  4843. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4844. lt_cv_file_magic_cmd=/usr/bin/file
  4845. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4846. ;;
  4847. *nto* | *qnx*)
  4848. lt_cv_deplibs_check_method=pass_all
  4849. ;;
  4850. openbsd*)
  4851. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4852. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4853. else
  4854. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4855. fi
  4856. ;;
  4857. osf3* | osf4* | osf5*)
  4858. lt_cv_deplibs_check_method=pass_all
  4859. ;;
  4860. rdos*)
  4861. lt_cv_deplibs_check_method=pass_all
  4862. ;;
  4863. solaris*)
  4864. lt_cv_deplibs_check_method=pass_all
  4865. ;;
  4866. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4867. lt_cv_deplibs_check_method=pass_all
  4868. ;;
  4869. sysv4 | sysv4.3*)
  4870. case $host_vendor in
  4871. motorola)
  4872. 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]'
  4873. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4874. ;;
  4875. ncr)
  4876. lt_cv_deplibs_check_method=pass_all
  4877. ;;
  4878. sequent)
  4879. lt_cv_file_magic_cmd='/bin/file'
  4880. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4881. ;;
  4882. sni)
  4883. lt_cv_file_magic_cmd='/bin/file'
  4884. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4885. lt_cv_file_magic_test_file=/lib/libc.so
  4886. ;;
  4887. siemens)
  4888. lt_cv_deplibs_check_method=pass_all
  4889. ;;
  4890. pc)
  4891. lt_cv_deplibs_check_method=pass_all
  4892. ;;
  4893. esac
  4894. ;;
  4895. tpf*)
  4896. lt_cv_deplibs_check_method=pass_all
  4897. ;;
  4898. esac
  4899. fi
  4900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4901. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4902. file_magic_cmd=$lt_cv_file_magic_cmd
  4903. deplibs_check_method=$lt_cv_deplibs_check_method
  4904. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4905. if test -n "$ac_tool_prefix"; then
  4906. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4907. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4909. $as_echo_n "checking for $ac_word... " >&6; }
  4910. if test "${ac_cv_prog_AR+set}" = set; then :
  4911. $as_echo_n "(cached) " >&6
  4912. else
  4913. if test -n "$AR"; then
  4914. ac_cv_prog_AR="$AR" # Let the user override the test.
  4915. else
  4916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4917. for as_dir in $PATH
  4918. do
  4919. IFS=$as_save_IFS
  4920. test -z "$as_dir" && as_dir=.
  4921. for ac_exec_ext in '' $ac_executable_extensions; do
  4922. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4923. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4924. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4925. break 2
  4926. fi
  4927. done
  4928. done
  4929. IFS=$as_save_IFS
  4930. fi
  4931. fi
  4932. AR=$ac_cv_prog_AR
  4933. if test -n "$AR"; then
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4935. $as_echo "$AR" >&6; }
  4936. else
  4937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4938. $as_echo "no" >&6; }
  4939. fi
  4940. fi
  4941. if test -z "$ac_cv_prog_AR"; then
  4942. ac_ct_AR=$AR
  4943. # Extract the first word of "ar", so it can be a program name with args.
  4944. set dummy ar; ac_word=$2
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4946. $as_echo_n "checking for $ac_word... " >&6; }
  4947. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  4948. $as_echo_n "(cached) " >&6
  4949. else
  4950. if test -n "$ac_ct_AR"; then
  4951. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4952. else
  4953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4954. for as_dir in $PATH
  4955. do
  4956. IFS=$as_save_IFS
  4957. test -z "$as_dir" && as_dir=.
  4958. for ac_exec_ext in '' $ac_executable_extensions; do
  4959. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4960. ac_cv_prog_ac_ct_AR="ar"
  4961. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4962. break 2
  4963. fi
  4964. done
  4965. done
  4966. IFS=$as_save_IFS
  4967. fi
  4968. fi
  4969. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4970. if test -n "$ac_ct_AR"; then
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4972. $as_echo "$ac_ct_AR" >&6; }
  4973. else
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4975. $as_echo "no" >&6; }
  4976. fi
  4977. if test "x$ac_ct_AR" = x; then
  4978. AR="false"
  4979. else
  4980. case $cross_compiling:$ac_tool_warned in
  4981. yes:)
  4982. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4983. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4984. ac_tool_warned=yes ;;
  4985. esac
  4986. AR=$ac_ct_AR
  4987. fi
  4988. else
  4989. AR="$ac_cv_prog_AR"
  4990. fi
  4991. test -z "$AR" && AR=ar
  4992. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4993. if test -n "$ac_tool_prefix"; then
  4994. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4995. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4997. $as_echo_n "checking for $ac_word... " >&6; }
  4998. if test "${ac_cv_prog_STRIP+set}" = set; then :
  4999. $as_echo_n "(cached) " >&6
  5000. else
  5001. if test -n "$STRIP"; then
  5002. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5003. else
  5004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5005. for as_dir in $PATH
  5006. do
  5007. IFS=$as_save_IFS
  5008. test -z "$as_dir" && as_dir=.
  5009. for ac_exec_ext in '' $ac_executable_extensions; do
  5010. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5011. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5012. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5013. break 2
  5014. fi
  5015. done
  5016. done
  5017. IFS=$as_save_IFS
  5018. fi
  5019. fi
  5020. STRIP=$ac_cv_prog_STRIP
  5021. if test -n "$STRIP"; then
  5022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5023. $as_echo "$STRIP" >&6; }
  5024. else
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5026. $as_echo "no" >&6; }
  5027. fi
  5028. fi
  5029. if test -z "$ac_cv_prog_STRIP"; then
  5030. ac_ct_STRIP=$STRIP
  5031. # Extract the first word of "strip", so it can be a program name with args.
  5032. set dummy strip; ac_word=$2
  5033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5034. $as_echo_n "checking for $ac_word... " >&6; }
  5035. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5036. $as_echo_n "(cached) " >&6
  5037. else
  5038. if test -n "$ac_ct_STRIP"; then
  5039. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5040. else
  5041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5042. for as_dir in $PATH
  5043. do
  5044. IFS=$as_save_IFS
  5045. test -z "$as_dir" && as_dir=.
  5046. for ac_exec_ext in '' $ac_executable_extensions; do
  5047. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5048. ac_cv_prog_ac_ct_STRIP="strip"
  5049. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5050. break 2
  5051. fi
  5052. done
  5053. done
  5054. IFS=$as_save_IFS
  5055. fi
  5056. fi
  5057. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5058. if test -n "$ac_ct_STRIP"; then
  5059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5060. $as_echo "$ac_ct_STRIP" >&6; }
  5061. else
  5062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5063. $as_echo "no" >&6; }
  5064. fi
  5065. if test "x$ac_ct_STRIP" = x; then
  5066. STRIP=":"
  5067. else
  5068. case $cross_compiling:$ac_tool_warned in
  5069. yes:)
  5070. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5071. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5072. ac_tool_warned=yes ;;
  5073. esac
  5074. STRIP=$ac_ct_STRIP
  5075. fi
  5076. else
  5077. STRIP="$ac_cv_prog_STRIP"
  5078. fi
  5079. test -z "$STRIP" && STRIP=:
  5080. if test -n "$ac_tool_prefix"; then
  5081. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5082. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5084. $as_echo_n "checking for $ac_word... " >&6; }
  5085. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5086. $as_echo_n "(cached) " >&6
  5087. else
  5088. if test -n "$RANLIB"; then
  5089. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5090. else
  5091. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5092. for as_dir in $PATH
  5093. do
  5094. IFS=$as_save_IFS
  5095. test -z "$as_dir" && as_dir=.
  5096. for ac_exec_ext in '' $ac_executable_extensions; do
  5097. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5098. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5099. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5100. break 2
  5101. fi
  5102. done
  5103. done
  5104. IFS=$as_save_IFS
  5105. fi
  5106. fi
  5107. RANLIB=$ac_cv_prog_RANLIB
  5108. if test -n "$RANLIB"; then
  5109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5110. $as_echo "$RANLIB" >&6; }
  5111. else
  5112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5113. $as_echo "no" >&6; }
  5114. fi
  5115. fi
  5116. if test -z "$ac_cv_prog_RANLIB"; then
  5117. ac_ct_RANLIB=$RANLIB
  5118. # Extract the first word of "ranlib", so it can be a program name with args.
  5119. set dummy ranlib; ac_word=$2
  5120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5121. $as_echo_n "checking for $ac_word... " >&6; }
  5122. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5123. $as_echo_n "(cached) " >&6
  5124. else
  5125. if test -n "$ac_ct_RANLIB"; then
  5126. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5127. else
  5128. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5129. for as_dir in $PATH
  5130. do
  5131. IFS=$as_save_IFS
  5132. test -z "$as_dir" && as_dir=.
  5133. for ac_exec_ext in '' $ac_executable_extensions; do
  5134. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5135. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5136. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5137. break 2
  5138. fi
  5139. done
  5140. done
  5141. IFS=$as_save_IFS
  5142. fi
  5143. fi
  5144. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5145. if test -n "$ac_ct_RANLIB"; then
  5146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5147. $as_echo "$ac_ct_RANLIB" >&6; }
  5148. else
  5149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5150. $as_echo "no" >&6; }
  5151. fi
  5152. if test "x$ac_ct_RANLIB" = x; then
  5153. RANLIB=":"
  5154. else
  5155. case $cross_compiling:$ac_tool_warned in
  5156. yes:)
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5158. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5159. ac_tool_warned=yes ;;
  5160. esac
  5161. RANLIB=$ac_ct_RANLIB
  5162. fi
  5163. else
  5164. RANLIB="$ac_cv_prog_RANLIB"
  5165. fi
  5166. test -z "$RANLIB" && RANLIB=:
  5167. # Determine commands to create old-style static archives.
  5168. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5169. old_postinstall_cmds='chmod 644 $oldlib'
  5170. old_postuninstall_cmds=
  5171. if test -n "$RANLIB"; then
  5172. case $host_os in
  5173. openbsd*)
  5174. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5175. ;;
  5176. *)
  5177. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5178. ;;
  5179. esac
  5180. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5181. fi
  5182. # If no C compiler was specified, use CC.
  5183. LTCC=${LTCC-"$CC"}
  5184. # If no C compiler flags were specified, use CFLAGS.
  5185. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5186. # Allow CC to be a program name with arguments.
  5187. compiler=$CC
  5188. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5190. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5191. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5192. $as_echo_n "(cached) " >&6
  5193. else
  5194. # These are sane defaults that work on at least a few old systems.
  5195. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5196. # Character class describing NM global symbol codes.
  5197. symcode='[BCDEGRST]'
  5198. # Regexp to match symbols that can be accessed directly from C.
  5199. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5200. # Define system-specific variables.
  5201. case $host_os in
  5202. aix*)
  5203. symcode='[BCDT]'
  5204. ;;
  5205. cygwin* | mingw* | pw32* | cegcc*)
  5206. symcode='[ABCDGISTW]'
  5207. ;;
  5208. hpux*)
  5209. if test "$host_cpu" = ia64; then
  5210. symcode='[ABCDEGRST]'
  5211. fi
  5212. ;;
  5213. irix* | nonstopux*)
  5214. symcode='[BCDEGRST]'
  5215. ;;
  5216. osf*)
  5217. symcode='[BCDEGQRST]'
  5218. ;;
  5219. solaris*)
  5220. symcode='[BDRT]'
  5221. ;;
  5222. sco3.2v5*)
  5223. symcode='[DT]'
  5224. ;;
  5225. sysv4.2uw2*)
  5226. symcode='[DT]'
  5227. ;;
  5228. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5229. symcode='[ABDT]'
  5230. ;;
  5231. sysv4)
  5232. symcode='[DFNSTU]'
  5233. ;;
  5234. esac
  5235. # If we're using GNU nm, then use its standard symbol codes.
  5236. case `$NM -V 2>&1` in
  5237. *GNU* | *'with BFD'*)
  5238. symcode='[ABCDGIRSTW]' ;;
  5239. esac
  5240. # Transform an extracted symbol line into a proper C declaration.
  5241. # Some systems (esp. on ia64) link data and code symbols differently,
  5242. # so use this general approach.
  5243. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5244. # Transform an extracted symbol line into symbol name and symbol address
  5245. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5246. 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'"
  5247. # Handle CRLF in mingw tool chain
  5248. opt_cr=
  5249. case $build_os in
  5250. mingw*)
  5251. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5252. ;;
  5253. esac
  5254. # Try without a prefix underscore, then with it.
  5255. for ac_symprfx in "" "_"; do
  5256. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5257. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5258. # Write the raw and C identifiers.
  5259. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5260. # Fake it for dumpbin and say T for any non-static function
  5261. # and D for any global variable.
  5262. # Also find C++ and __fastcall symbols from MSVC++,
  5263. # which start with @ or ?.
  5264. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5265. " {last_section=section; section=\$ 3};"\
  5266. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5267. " \$ 0!~/External *\|/{next};"\
  5268. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5269. " {if(hide[section]) next};"\
  5270. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5271. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5272. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5273. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5274. " ' prfx=^$ac_symprfx"
  5275. else
  5276. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5277. fi
  5278. # Check to see that the pipe works correctly.
  5279. pipe_works=no
  5280. rm -f conftest*
  5281. cat > conftest.$ac_ext <<_LT_EOF
  5282. #ifdef __cplusplus
  5283. extern "C" {
  5284. #endif
  5285. char nm_test_var;
  5286. void nm_test_func(void);
  5287. void nm_test_func(void){}
  5288. #ifdef __cplusplus
  5289. }
  5290. #endif
  5291. int main(){nm_test_var='a';nm_test_func();return(0);}
  5292. _LT_EOF
  5293. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5294. (eval $ac_compile) 2>&5
  5295. ac_status=$?
  5296. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5297. test $ac_status = 0; }; then
  5298. # Now try to grab the symbols.
  5299. nlist=conftest.nm
  5300. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5301. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5302. ac_status=$?
  5303. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5304. test $ac_status = 0; } && test -s "$nlist"; then
  5305. # Try sorting and uniquifying the output.
  5306. if sort "$nlist" | uniq > "$nlist"T; then
  5307. mv -f "$nlist"T "$nlist"
  5308. else
  5309. rm -f "$nlist"T
  5310. fi
  5311. # Make sure that we snagged all the symbols we need.
  5312. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5313. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5314. cat <<_LT_EOF > conftest.$ac_ext
  5315. #ifdef __cplusplus
  5316. extern "C" {
  5317. #endif
  5318. _LT_EOF
  5319. # Now generate the symbol file.
  5320. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5321. cat <<_LT_EOF >> conftest.$ac_ext
  5322. /* The mapping between symbol names and symbols. */
  5323. const struct {
  5324. const char *name;
  5325. void *address;
  5326. }
  5327. lt__PROGRAM__LTX_preloaded_symbols[] =
  5328. {
  5329. { "@PROGRAM@", (void *) 0 },
  5330. _LT_EOF
  5331. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5332. cat <<\_LT_EOF >> conftest.$ac_ext
  5333. {0, (void *) 0}
  5334. };
  5335. /* This works around a problem in FreeBSD linker */
  5336. #ifdef FREEBSD_WORKAROUND
  5337. static const void *lt_preloaded_setup() {
  5338. return lt__PROGRAM__LTX_preloaded_symbols;
  5339. }
  5340. #endif
  5341. #ifdef __cplusplus
  5342. }
  5343. #endif
  5344. _LT_EOF
  5345. # Now try linking the two files.
  5346. mv conftest.$ac_objext conftstm.$ac_objext
  5347. lt_save_LIBS="$LIBS"
  5348. lt_save_CFLAGS="$CFLAGS"
  5349. LIBS="conftstm.$ac_objext"
  5350. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5351. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5352. (eval $ac_link) 2>&5
  5353. ac_status=$?
  5354. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5355. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5356. pipe_works=yes
  5357. fi
  5358. LIBS="$lt_save_LIBS"
  5359. CFLAGS="$lt_save_CFLAGS"
  5360. else
  5361. echo "cannot find nm_test_func in $nlist" >&5
  5362. fi
  5363. else
  5364. echo "cannot find nm_test_var in $nlist" >&5
  5365. fi
  5366. else
  5367. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5368. fi
  5369. else
  5370. echo "$progname: failed program was:" >&5
  5371. cat conftest.$ac_ext >&5
  5372. fi
  5373. rm -rf conftest* conftst*
  5374. # Do not use the global_symbol_pipe unless it works.
  5375. if test "$pipe_works" = yes; then
  5376. break
  5377. else
  5378. lt_cv_sys_global_symbol_pipe=
  5379. fi
  5380. done
  5381. fi
  5382. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5383. lt_cv_sys_global_symbol_to_cdecl=
  5384. fi
  5385. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5387. $as_echo "failed" >&6; }
  5388. else
  5389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5390. $as_echo "ok" >&6; }
  5391. fi
  5392. # Check whether --enable-libtool-lock was given.
  5393. if test "${enable_libtool_lock+set}" = set; then :
  5394. enableval=$enable_libtool_lock;
  5395. fi
  5396. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5397. # Some flags need to be propagated to the compiler or linker for good
  5398. # libtool support.
  5399. case $host in
  5400. ia64-*-hpux*)
  5401. # Find out which ABI we are using.
  5402. echo 'int i;' > conftest.$ac_ext
  5403. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5404. (eval $ac_compile) 2>&5
  5405. ac_status=$?
  5406. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5407. test $ac_status = 0; }; then
  5408. case `/usr/bin/file conftest.$ac_objext` in
  5409. *ELF-32*)
  5410. HPUX_IA64_MODE="32"
  5411. ;;
  5412. *ELF-64*)
  5413. HPUX_IA64_MODE="64"
  5414. ;;
  5415. esac
  5416. fi
  5417. rm -rf conftest*
  5418. ;;
  5419. *-*-irix6*)
  5420. # Find out which ABI we are using.
  5421. echo '#line 6136 "configure"' > conftest.$ac_ext
  5422. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5423. (eval $ac_compile) 2>&5
  5424. ac_status=$?
  5425. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5426. test $ac_status = 0; }; then
  5427. if test "$lt_cv_prog_gnu_ld" = yes; then
  5428. case `/usr/bin/file conftest.$ac_objext` in
  5429. *32-bit*)
  5430. LD="${LD-ld} -melf32bsmip"
  5431. ;;
  5432. *N32*)
  5433. LD="${LD-ld} -melf32bmipn32"
  5434. ;;
  5435. *64-bit*)
  5436. LD="${LD-ld} -melf64bmip"
  5437. ;;
  5438. esac
  5439. else
  5440. case `/usr/bin/file conftest.$ac_objext` in
  5441. *32-bit*)
  5442. LD="${LD-ld} -32"
  5443. ;;
  5444. *N32*)
  5445. LD="${LD-ld} -n32"
  5446. ;;
  5447. *64-bit*)
  5448. LD="${LD-ld} -64"
  5449. ;;
  5450. esac
  5451. fi
  5452. fi
  5453. rm -rf conftest*
  5454. ;;
  5455. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5456. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5457. # Find out which ABI we are using.
  5458. echo 'int i;' > conftest.$ac_ext
  5459. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5460. (eval $ac_compile) 2>&5
  5461. ac_status=$?
  5462. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5463. test $ac_status = 0; }; then
  5464. case `/usr/bin/file conftest.o` in
  5465. *32-bit*)
  5466. case $host in
  5467. x86_64-*kfreebsd*-gnu)
  5468. LD="${LD-ld} -m elf_i386_fbsd"
  5469. ;;
  5470. x86_64-*linux*)
  5471. LD="${LD-ld} -m elf_i386"
  5472. ;;
  5473. ppc64-*linux*|powerpc64-*linux*)
  5474. LD="${LD-ld} -m elf32ppclinux"
  5475. ;;
  5476. s390x-*linux*)
  5477. LD="${LD-ld} -m elf_s390"
  5478. ;;
  5479. sparc64-*linux*)
  5480. LD="${LD-ld} -m elf32_sparc"
  5481. ;;
  5482. esac
  5483. ;;
  5484. *64-bit*)
  5485. case $host in
  5486. x86_64-*kfreebsd*-gnu)
  5487. LD="${LD-ld} -m elf_x86_64_fbsd"
  5488. ;;
  5489. x86_64-*linux*)
  5490. LD="${LD-ld} -m elf_x86_64"
  5491. ;;
  5492. ppc*-*linux*|powerpc*-*linux*)
  5493. LD="${LD-ld} -m elf64ppc"
  5494. ;;
  5495. s390*-*linux*|s390*-*tpf*)
  5496. LD="${LD-ld} -m elf64_s390"
  5497. ;;
  5498. sparc*-*linux*)
  5499. LD="${LD-ld} -m elf64_sparc"
  5500. ;;
  5501. esac
  5502. ;;
  5503. esac
  5504. fi
  5505. rm -rf conftest*
  5506. ;;
  5507. *-*-sco3.2v5*)
  5508. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5509. SAVE_CFLAGS="$CFLAGS"
  5510. CFLAGS="$CFLAGS -belf"
  5511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5512. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5513. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5514. $as_echo_n "(cached) " >&6
  5515. else
  5516. ac_ext=c
  5517. ac_cpp='$CPP $CPPFLAGS'
  5518. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5519. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5520. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5521. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5522. /* end confdefs.h. */
  5523. int
  5524. main ()
  5525. {
  5526. ;
  5527. return 0;
  5528. }
  5529. _ACEOF
  5530. if ac_fn_c_try_link "$LINENO"; then :
  5531. lt_cv_cc_needs_belf=yes
  5532. else
  5533. lt_cv_cc_needs_belf=no
  5534. fi
  5535. rm -f core conftest.err conftest.$ac_objext \
  5536. conftest$ac_exeext conftest.$ac_ext
  5537. ac_ext=c
  5538. ac_cpp='$CPP $CPPFLAGS'
  5539. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5540. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5541. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5542. fi
  5543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5544. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5545. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5546. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5547. CFLAGS="$SAVE_CFLAGS"
  5548. fi
  5549. ;;
  5550. sparc*-*solaris*)
  5551. # Find out which ABI we are using.
  5552. echo 'int i;' > conftest.$ac_ext
  5553. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5554. (eval $ac_compile) 2>&5
  5555. ac_status=$?
  5556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5557. test $ac_status = 0; }; then
  5558. case `/usr/bin/file conftest.o` in
  5559. *64-bit*)
  5560. case $lt_cv_prog_gnu_ld in
  5561. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5562. *)
  5563. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5564. LD="${LD-ld} -64"
  5565. fi
  5566. ;;
  5567. esac
  5568. ;;
  5569. esac
  5570. fi
  5571. rm -rf conftest*
  5572. ;;
  5573. esac
  5574. need_locks="$enable_libtool_lock"
  5575. case $host_os in
  5576. rhapsody* | darwin*)
  5577. if test -n "$ac_tool_prefix"; then
  5578. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5579. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5581. $as_echo_n "checking for $ac_word... " >&6; }
  5582. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5583. $as_echo_n "(cached) " >&6
  5584. else
  5585. if test -n "$DSYMUTIL"; then
  5586. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5587. else
  5588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5589. for as_dir in $PATH
  5590. do
  5591. IFS=$as_save_IFS
  5592. test -z "$as_dir" && as_dir=.
  5593. for ac_exec_ext in '' $ac_executable_extensions; do
  5594. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5595. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5597. break 2
  5598. fi
  5599. done
  5600. done
  5601. IFS=$as_save_IFS
  5602. fi
  5603. fi
  5604. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5605. if test -n "$DSYMUTIL"; then
  5606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5607. $as_echo "$DSYMUTIL" >&6; }
  5608. else
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5610. $as_echo "no" >&6; }
  5611. fi
  5612. fi
  5613. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5614. ac_ct_DSYMUTIL=$DSYMUTIL
  5615. # Extract the first word of "dsymutil", so it can be a program name with args.
  5616. set dummy dsymutil; ac_word=$2
  5617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5618. $as_echo_n "checking for $ac_word... " >&6; }
  5619. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5620. $as_echo_n "(cached) " >&6
  5621. else
  5622. if test -n "$ac_ct_DSYMUTIL"; then
  5623. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5624. else
  5625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5626. for as_dir in $PATH
  5627. do
  5628. IFS=$as_save_IFS
  5629. test -z "$as_dir" && as_dir=.
  5630. for ac_exec_ext in '' $ac_executable_extensions; do
  5631. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5632. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5634. break 2
  5635. fi
  5636. done
  5637. done
  5638. IFS=$as_save_IFS
  5639. fi
  5640. fi
  5641. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5642. if test -n "$ac_ct_DSYMUTIL"; then
  5643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5644. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5645. else
  5646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5647. $as_echo "no" >&6; }
  5648. fi
  5649. if test "x$ac_ct_DSYMUTIL" = x; then
  5650. DSYMUTIL=":"
  5651. else
  5652. case $cross_compiling:$ac_tool_warned in
  5653. yes:)
  5654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5655. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5656. ac_tool_warned=yes ;;
  5657. esac
  5658. DSYMUTIL=$ac_ct_DSYMUTIL
  5659. fi
  5660. else
  5661. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5662. fi
  5663. if test -n "$ac_tool_prefix"; then
  5664. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5665. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5667. $as_echo_n "checking for $ac_word... " >&6; }
  5668. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5669. $as_echo_n "(cached) " >&6
  5670. else
  5671. if test -n "$NMEDIT"; then
  5672. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5673. else
  5674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5675. for as_dir in $PATH
  5676. do
  5677. IFS=$as_save_IFS
  5678. test -z "$as_dir" && as_dir=.
  5679. for ac_exec_ext in '' $ac_executable_extensions; do
  5680. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5681. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5682. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5683. break 2
  5684. fi
  5685. done
  5686. done
  5687. IFS=$as_save_IFS
  5688. fi
  5689. fi
  5690. NMEDIT=$ac_cv_prog_NMEDIT
  5691. if test -n "$NMEDIT"; then
  5692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5693. $as_echo "$NMEDIT" >&6; }
  5694. else
  5695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5696. $as_echo "no" >&6; }
  5697. fi
  5698. fi
  5699. if test -z "$ac_cv_prog_NMEDIT"; then
  5700. ac_ct_NMEDIT=$NMEDIT
  5701. # Extract the first word of "nmedit", so it can be a program name with args.
  5702. set dummy nmedit; ac_word=$2
  5703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5704. $as_echo_n "checking for $ac_word... " >&6; }
  5705. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5706. $as_echo_n "(cached) " >&6
  5707. else
  5708. if test -n "$ac_ct_NMEDIT"; then
  5709. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5710. else
  5711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5712. for as_dir in $PATH
  5713. do
  5714. IFS=$as_save_IFS
  5715. test -z "$as_dir" && as_dir=.
  5716. for ac_exec_ext in '' $ac_executable_extensions; do
  5717. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5718. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5719. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5720. break 2
  5721. fi
  5722. done
  5723. done
  5724. IFS=$as_save_IFS
  5725. fi
  5726. fi
  5727. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5728. if test -n "$ac_ct_NMEDIT"; then
  5729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5730. $as_echo "$ac_ct_NMEDIT" >&6; }
  5731. else
  5732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5733. $as_echo "no" >&6; }
  5734. fi
  5735. if test "x$ac_ct_NMEDIT" = x; then
  5736. NMEDIT=":"
  5737. else
  5738. case $cross_compiling:$ac_tool_warned in
  5739. yes:)
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5741. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5742. ac_tool_warned=yes ;;
  5743. esac
  5744. NMEDIT=$ac_ct_NMEDIT
  5745. fi
  5746. else
  5747. NMEDIT="$ac_cv_prog_NMEDIT"
  5748. fi
  5749. if test -n "$ac_tool_prefix"; then
  5750. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5751. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5753. $as_echo_n "checking for $ac_word... " >&6; }
  5754. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5755. $as_echo_n "(cached) " >&6
  5756. else
  5757. if test -n "$LIPO"; then
  5758. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5759. else
  5760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5761. for as_dir in $PATH
  5762. do
  5763. IFS=$as_save_IFS
  5764. test -z "$as_dir" && as_dir=.
  5765. for ac_exec_ext in '' $ac_executable_extensions; do
  5766. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5767. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5769. break 2
  5770. fi
  5771. done
  5772. done
  5773. IFS=$as_save_IFS
  5774. fi
  5775. fi
  5776. LIPO=$ac_cv_prog_LIPO
  5777. if test -n "$LIPO"; then
  5778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5779. $as_echo "$LIPO" >&6; }
  5780. else
  5781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5782. $as_echo "no" >&6; }
  5783. fi
  5784. fi
  5785. if test -z "$ac_cv_prog_LIPO"; then
  5786. ac_ct_LIPO=$LIPO
  5787. # Extract the first word of "lipo", so it can be a program name with args.
  5788. set dummy lipo; ac_word=$2
  5789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5790. $as_echo_n "checking for $ac_word... " >&6; }
  5791. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  5792. $as_echo_n "(cached) " >&6
  5793. else
  5794. if test -n "$ac_ct_LIPO"; then
  5795. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5796. else
  5797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5798. for as_dir in $PATH
  5799. do
  5800. IFS=$as_save_IFS
  5801. test -z "$as_dir" && as_dir=.
  5802. for ac_exec_ext in '' $ac_executable_extensions; do
  5803. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5804. ac_cv_prog_ac_ct_LIPO="lipo"
  5805. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5806. break 2
  5807. fi
  5808. done
  5809. done
  5810. IFS=$as_save_IFS
  5811. fi
  5812. fi
  5813. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5814. if test -n "$ac_ct_LIPO"; then
  5815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5816. $as_echo "$ac_ct_LIPO" >&6; }
  5817. else
  5818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5819. $as_echo "no" >&6; }
  5820. fi
  5821. if test "x$ac_ct_LIPO" = x; then
  5822. LIPO=":"
  5823. else
  5824. case $cross_compiling:$ac_tool_warned in
  5825. yes:)
  5826. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5827. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5828. ac_tool_warned=yes ;;
  5829. esac
  5830. LIPO=$ac_ct_LIPO
  5831. fi
  5832. else
  5833. LIPO="$ac_cv_prog_LIPO"
  5834. fi
  5835. if test -n "$ac_tool_prefix"; then
  5836. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5837. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5839. $as_echo_n "checking for $ac_word... " >&6; }
  5840. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  5841. $as_echo_n "(cached) " >&6
  5842. else
  5843. if test -n "$OTOOL"; then
  5844. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5845. else
  5846. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5847. for as_dir in $PATH
  5848. do
  5849. IFS=$as_save_IFS
  5850. test -z "$as_dir" && as_dir=.
  5851. for ac_exec_ext in '' $ac_executable_extensions; do
  5852. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5853. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5854. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5855. break 2
  5856. fi
  5857. done
  5858. done
  5859. IFS=$as_save_IFS
  5860. fi
  5861. fi
  5862. OTOOL=$ac_cv_prog_OTOOL
  5863. if test -n "$OTOOL"; then
  5864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5865. $as_echo "$OTOOL" >&6; }
  5866. else
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5868. $as_echo "no" >&6; }
  5869. fi
  5870. fi
  5871. if test -z "$ac_cv_prog_OTOOL"; then
  5872. ac_ct_OTOOL=$OTOOL
  5873. # Extract the first word of "otool", so it can be a program name with args.
  5874. set dummy otool; ac_word=$2
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5876. $as_echo_n "checking for $ac_word... " >&6; }
  5877. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  5878. $as_echo_n "(cached) " >&6
  5879. else
  5880. if test -n "$ac_ct_OTOOL"; then
  5881. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5882. else
  5883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5884. for as_dir in $PATH
  5885. do
  5886. IFS=$as_save_IFS
  5887. test -z "$as_dir" && as_dir=.
  5888. for ac_exec_ext in '' $ac_executable_extensions; do
  5889. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5890. ac_cv_prog_ac_ct_OTOOL="otool"
  5891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5892. break 2
  5893. fi
  5894. done
  5895. done
  5896. IFS=$as_save_IFS
  5897. fi
  5898. fi
  5899. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5900. if test -n "$ac_ct_OTOOL"; then
  5901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5902. $as_echo "$ac_ct_OTOOL" >&6; }
  5903. else
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5905. $as_echo "no" >&6; }
  5906. fi
  5907. if test "x$ac_ct_OTOOL" = x; then
  5908. OTOOL=":"
  5909. else
  5910. case $cross_compiling:$ac_tool_warned in
  5911. yes:)
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5913. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5914. ac_tool_warned=yes ;;
  5915. esac
  5916. OTOOL=$ac_ct_OTOOL
  5917. fi
  5918. else
  5919. OTOOL="$ac_cv_prog_OTOOL"
  5920. fi
  5921. if test -n "$ac_tool_prefix"; then
  5922. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5923. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5925. $as_echo_n "checking for $ac_word... " >&6; }
  5926. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  5927. $as_echo_n "(cached) " >&6
  5928. else
  5929. if test -n "$OTOOL64"; then
  5930. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5931. else
  5932. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5933. for as_dir in $PATH
  5934. do
  5935. IFS=$as_save_IFS
  5936. test -z "$as_dir" && as_dir=.
  5937. for ac_exec_ext in '' $ac_executable_extensions; do
  5938. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5939. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5940. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5941. break 2
  5942. fi
  5943. done
  5944. done
  5945. IFS=$as_save_IFS
  5946. fi
  5947. fi
  5948. OTOOL64=$ac_cv_prog_OTOOL64
  5949. if test -n "$OTOOL64"; then
  5950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5951. $as_echo "$OTOOL64" >&6; }
  5952. else
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5954. $as_echo "no" >&6; }
  5955. fi
  5956. fi
  5957. if test -z "$ac_cv_prog_OTOOL64"; then
  5958. ac_ct_OTOOL64=$OTOOL64
  5959. # Extract the first word of "otool64", so it can be a program name with args.
  5960. set dummy otool64; ac_word=$2
  5961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5962. $as_echo_n "checking for $ac_word... " >&6; }
  5963. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  5964. $as_echo_n "(cached) " >&6
  5965. else
  5966. if test -n "$ac_ct_OTOOL64"; then
  5967. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5968. else
  5969. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5970. for as_dir in $PATH
  5971. do
  5972. IFS=$as_save_IFS
  5973. test -z "$as_dir" && as_dir=.
  5974. for ac_exec_ext in '' $ac_executable_extensions; do
  5975. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5976. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5977. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5978. break 2
  5979. fi
  5980. done
  5981. done
  5982. IFS=$as_save_IFS
  5983. fi
  5984. fi
  5985. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5986. if test -n "$ac_ct_OTOOL64"; then
  5987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5988. $as_echo "$ac_ct_OTOOL64" >&6; }
  5989. else
  5990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5991. $as_echo "no" >&6; }
  5992. fi
  5993. if test "x$ac_ct_OTOOL64" = x; then
  5994. OTOOL64=":"
  5995. else
  5996. case $cross_compiling:$ac_tool_warned in
  5997. yes:)
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5999. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6000. ac_tool_warned=yes ;;
  6001. esac
  6002. OTOOL64=$ac_ct_OTOOL64
  6003. fi
  6004. else
  6005. OTOOL64="$ac_cv_prog_OTOOL64"
  6006. fi
  6007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6008. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6009. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6010. $as_echo_n "(cached) " >&6
  6011. else
  6012. lt_cv_apple_cc_single_mod=no
  6013. if test -z "${LT_MULTI_MODULE}"; then
  6014. # By default we will add the -single_module flag. You can override
  6015. # by either setting the environment variable LT_MULTI_MODULE
  6016. # non-empty at configure time, or by adding -multi_module to the
  6017. # link flags.
  6018. rm -rf libconftest.dylib*
  6019. echo "int foo(void){return 1;}" > conftest.c
  6020. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6021. -dynamiclib -Wl,-single_module conftest.c" >&5
  6022. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6023. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6024. _lt_result=$?
  6025. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6026. lt_cv_apple_cc_single_mod=yes
  6027. else
  6028. cat conftest.err >&5
  6029. fi
  6030. rm -rf libconftest.dylib*
  6031. rm -f conftest.*
  6032. fi
  6033. fi
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6035. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6037. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6038. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6039. $as_echo_n "(cached) " >&6
  6040. else
  6041. lt_cv_ld_exported_symbols_list=no
  6042. save_LDFLAGS=$LDFLAGS
  6043. echo "_main" > conftest.sym
  6044. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6046. /* end confdefs.h. */
  6047. int
  6048. main ()
  6049. {
  6050. ;
  6051. return 0;
  6052. }
  6053. _ACEOF
  6054. if ac_fn_c_try_link "$LINENO"; then :
  6055. lt_cv_ld_exported_symbols_list=yes
  6056. else
  6057. lt_cv_ld_exported_symbols_list=no
  6058. fi
  6059. rm -f core conftest.err conftest.$ac_objext \
  6060. conftest$ac_exeext conftest.$ac_ext
  6061. LDFLAGS="$save_LDFLAGS"
  6062. fi
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6064. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6065. case $host_os in
  6066. rhapsody* | darwin1.[012])
  6067. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6068. darwin1.*)
  6069. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6070. darwin*) # darwin 5.x on
  6071. # if running on 10.5 or later, the deployment target defaults
  6072. # to the OS version, if on x86, and 10.4, the deployment
  6073. # target defaults to 10.4. Don't you love it?
  6074. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6075. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6076. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6077. 10.[012]*)
  6078. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6079. 10.*)
  6080. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6081. esac
  6082. ;;
  6083. esac
  6084. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6085. _lt_dar_single_mod='$single_module'
  6086. fi
  6087. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6088. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6089. else
  6090. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6091. fi
  6092. if test "$DSYMUTIL" != ":"; then
  6093. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6094. else
  6095. _lt_dsymutil=
  6096. fi
  6097. ;;
  6098. esac
  6099. ac_ext=c
  6100. ac_cpp='$CPP $CPPFLAGS'
  6101. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6102. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6103. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6105. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6106. # On Suns, sometimes $CPP names a directory.
  6107. if test -n "$CPP" && test -d "$CPP"; then
  6108. CPP=
  6109. fi
  6110. if test -z "$CPP"; then
  6111. if test "${ac_cv_prog_CPP+set}" = set; then :
  6112. $as_echo_n "(cached) " >&6
  6113. else
  6114. # Double quotes because CPP needs to be expanded
  6115. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6116. do
  6117. ac_preproc_ok=false
  6118. for ac_c_preproc_warn_flag in '' yes
  6119. do
  6120. # Use a header file that comes with gcc, so configuring glibc
  6121. # with a fresh cross-compiler works.
  6122. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6123. # <limits.h> exists even on freestanding compilers.
  6124. # On the NeXT, cc -E runs the code through the compiler's parser,
  6125. # not just through cpp. "Syntax error" is here to catch this case.
  6126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6127. /* end confdefs.h. */
  6128. #ifdef __STDC__
  6129. # include <limits.h>
  6130. #else
  6131. # include <assert.h>
  6132. #endif
  6133. Syntax error
  6134. _ACEOF
  6135. if ac_fn_c_try_cpp "$LINENO"; then :
  6136. else
  6137. # Broken: fails on valid input.
  6138. continue
  6139. fi
  6140. rm -f conftest.err conftest.$ac_ext
  6141. # OK, works on sane cases. Now check whether nonexistent headers
  6142. # can be detected and how.
  6143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6144. /* end confdefs.h. */
  6145. #include <ac_nonexistent.h>
  6146. _ACEOF
  6147. if ac_fn_c_try_cpp "$LINENO"; then :
  6148. # Broken: success on invalid input.
  6149. continue
  6150. else
  6151. # Passes both tests.
  6152. ac_preproc_ok=:
  6153. break
  6154. fi
  6155. rm -f conftest.err conftest.$ac_ext
  6156. done
  6157. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6158. rm -f conftest.err conftest.$ac_ext
  6159. if $ac_preproc_ok; then :
  6160. break
  6161. fi
  6162. done
  6163. ac_cv_prog_CPP=$CPP
  6164. fi
  6165. CPP=$ac_cv_prog_CPP
  6166. else
  6167. ac_cv_prog_CPP=$CPP
  6168. fi
  6169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6170. $as_echo "$CPP" >&6; }
  6171. ac_preproc_ok=false
  6172. for ac_c_preproc_warn_flag in '' yes
  6173. do
  6174. # Use a header file that comes with gcc, so configuring glibc
  6175. # with a fresh cross-compiler works.
  6176. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6177. # <limits.h> exists even on freestanding compilers.
  6178. # On the NeXT, cc -E runs the code through the compiler's parser,
  6179. # not just through cpp. "Syntax error" is here to catch this case.
  6180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6181. /* end confdefs.h. */
  6182. #ifdef __STDC__
  6183. # include <limits.h>
  6184. #else
  6185. # include <assert.h>
  6186. #endif
  6187. Syntax error
  6188. _ACEOF
  6189. if ac_fn_c_try_cpp "$LINENO"; then :
  6190. else
  6191. # Broken: fails on valid input.
  6192. continue
  6193. fi
  6194. rm -f conftest.err conftest.$ac_ext
  6195. # OK, works on sane cases. Now check whether nonexistent headers
  6196. # can be detected and how.
  6197. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6198. /* end confdefs.h. */
  6199. #include <ac_nonexistent.h>
  6200. _ACEOF
  6201. if ac_fn_c_try_cpp "$LINENO"; then :
  6202. # Broken: success on invalid input.
  6203. continue
  6204. else
  6205. # Passes both tests.
  6206. ac_preproc_ok=:
  6207. break
  6208. fi
  6209. rm -f conftest.err conftest.$ac_ext
  6210. done
  6211. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6212. rm -f conftest.err conftest.$ac_ext
  6213. if $ac_preproc_ok; then :
  6214. else
  6215. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6216. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6217. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6218. See \`config.log' for more details." "$LINENO" 5; }
  6219. fi
  6220. ac_ext=c
  6221. ac_cpp='$CPP $CPPFLAGS'
  6222. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6223. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6224. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6226. $as_echo_n "checking for ANSI C header files... " >&6; }
  6227. if test "${ac_cv_header_stdc+set}" = set; then :
  6228. $as_echo_n "(cached) " >&6
  6229. else
  6230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6231. /* end confdefs.h. */
  6232. #include <stdlib.h>
  6233. #include <stdarg.h>
  6234. #include <string.h>
  6235. #include <float.h>
  6236. int
  6237. main ()
  6238. {
  6239. ;
  6240. return 0;
  6241. }
  6242. _ACEOF
  6243. if ac_fn_c_try_compile "$LINENO"; then :
  6244. ac_cv_header_stdc=yes
  6245. else
  6246. ac_cv_header_stdc=no
  6247. fi
  6248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6249. if test $ac_cv_header_stdc = yes; then
  6250. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6252. /* end confdefs.h. */
  6253. #include <string.h>
  6254. _ACEOF
  6255. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6256. $EGREP "memchr" >/dev/null 2>&1; then :
  6257. else
  6258. ac_cv_header_stdc=no
  6259. fi
  6260. rm -f conftest*
  6261. fi
  6262. if test $ac_cv_header_stdc = yes; then
  6263. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6264. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6265. /* end confdefs.h. */
  6266. #include <stdlib.h>
  6267. _ACEOF
  6268. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6269. $EGREP "free" >/dev/null 2>&1; then :
  6270. else
  6271. ac_cv_header_stdc=no
  6272. fi
  6273. rm -f conftest*
  6274. fi
  6275. if test $ac_cv_header_stdc = yes; then
  6276. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6277. if test "$cross_compiling" = yes; then :
  6278. :
  6279. else
  6280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6281. /* end confdefs.h. */
  6282. #include <ctype.h>
  6283. #include <stdlib.h>
  6284. #if ((' ' & 0x0FF) == 0x020)
  6285. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6286. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6287. #else
  6288. # define ISLOWER(c) \
  6289. (('a' <= (c) && (c) <= 'i') \
  6290. || ('j' <= (c) && (c) <= 'r') \
  6291. || ('s' <= (c) && (c) <= 'z'))
  6292. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6293. #endif
  6294. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6295. int
  6296. main ()
  6297. {
  6298. int i;
  6299. for (i = 0; i < 256; i++)
  6300. if (XOR (islower (i), ISLOWER (i))
  6301. || toupper (i) != TOUPPER (i))
  6302. return 2;
  6303. return 0;
  6304. }
  6305. _ACEOF
  6306. if ac_fn_c_try_run "$LINENO"; then :
  6307. else
  6308. ac_cv_header_stdc=no
  6309. fi
  6310. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6311. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6312. fi
  6313. fi
  6314. fi
  6315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6316. $as_echo "$ac_cv_header_stdc" >&6; }
  6317. if test $ac_cv_header_stdc = yes; then
  6318. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6319. fi
  6320. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6321. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6322. inttypes.h stdint.h unistd.h
  6323. do :
  6324. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6325. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6326. "
  6327. eval as_val=\$$as_ac_Header
  6328. if test "x$as_val" = x""yes; then :
  6329. cat >>confdefs.h <<_ACEOF
  6330. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6331. _ACEOF
  6332. fi
  6333. done
  6334. for ac_header in dlfcn.h
  6335. do :
  6336. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6337. "
  6338. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6339. cat >>confdefs.h <<_ACEOF
  6340. #define HAVE_DLFCN_H 1
  6341. _ACEOF
  6342. fi
  6343. done
  6344. ac_ext=cpp
  6345. ac_cpp='$CXXCPP $CPPFLAGS'
  6346. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6347. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6348. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6349. if test -z "$CXX"; then
  6350. if test -n "$CCC"; then
  6351. CXX=$CCC
  6352. else
  6353. if test -n "$ac_tool_prefix"; then
  6354. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6355. do
  6356. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6357. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6358. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6359. $as_echo_n "checking for $ac_word... " >&6; }
  6360. if test "${ac_cv_prog_CXX+set}" = set; then :
  6361. $as_echo_n "(cached) " >&6
  6362. else
  6363. if test -n "$CXX"; then
  6364. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6365. else
  6366. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6367. for as_dir in $PATH
  6368. do
  6369. IFS=$as_save_IFS
  6370. test -z "$as_dir" && as_dir=.
  6371. for ac_exec_ext in '' $ac_executable_extensions; do
  6372. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6373. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6374. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6375. break 2
  6376. fi
  6377. done
  6378. done
  6379. IFS=$as_save_IFS
  6380. fi
  6381. fi
  6382. CXX=$ac_cv_prog_CXX
  6383. if test -n "$CXX"; then
  6384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  6385. $as_echo "$CXX" >&6; }
  6386. else
  6387. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6388. $as_echo "no" >&6; }
  6389. fi
  6390. test -n "$CXX" && break
  6391. done
  6392. fi
  6393. if test -z "$CXX"; then
  6394. ac_ct_CXX=$CXX
  6395. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6396. do
  6397. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6398. set dummy $ac_prog; ac_word=$2
  6399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6400. $as_echo_n "checking for $ac_word... " >&6; }
  6401. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  6402. $as_echo_n "(cached) " >&6
  6403. else
  6404. if test -n "$ac_ct_CXX"; then
  6405. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6406. else
  6407. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6408. for as_dir in $PATH
  6409. do
  6410. IFS=$as_save_IFS
  6411. test -z "$as_dir" && as_dir=.
  6412. for ac_exec_ext in '' $ac_executable_extensions; do
  6413. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6414. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6415. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6416. break 2
  6417. fi
  6418. done
  6419. done
  6420. IFS=$as_save_IFS
  6421. fi
  6422. fi
  6423. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6424. if test -n "$ac_ct_CXX"; then
  6425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  6426. $as_echo "$ac_ct_CXX" >&6; }
  6427. else
  6428. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6429. $as_echo "no" >&6; }
  6430. fi
  6431. test -n "$ac_ct_CXX" && break
  6432. done
  6433. if test "x$ac_ct_CXX" = x; then
  6434. CXX="g++"
  6435. else
  6436. case $cross_compiling:$ac_tool_warned in
  6437. yes:)
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6439. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6440. ac_tool_warned=yes ;;
  6441. esac
  6442. CXX=$ac_ct_CXX
  6443. fi
  6444. fi
  6445. fi
  6446. fi
  6447. # Provide some information about the compiler.
  6448. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  6449. set X $ac_compile
  6450. ac_compiler=$2
  6451. for ac_option in --version -v -V -qversion; do
  6452. { { ac_try="$ac_compiler $ac_option >&5"
  6453. case "(($ac_try" in
  6454. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6455. *) ac_try_echo=$ac_try;;
  6456. esac
  6457. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6458. $as_echo "$ac_try_echo"; } >&5
  6459. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6460. ac_status=$?
  6461. if test -s conftest.err; then
  6462. sed '10a\
  6463. ... rest of stderr output deleted ...
  6464. 10q' conftest.err >conftest.er1
  6465. cat conftest.er1 >&5
  6466. fi
  6467. rm -f conftest.er1 conftest.err
  6468. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6469. test $ac_status = 0; }
  6470. done
  6471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  6472. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6473. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  6474. $as_echo_n "(cached) " >&6
  6475. else
  6476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6477. /* end confdefs.h. */
  6478. int
  6479. main ()
  6480. {
  6481. #ifndef __GNUC__
  6482. choke me
  6483. #endif
  6484. ;
  6485. return 0;
  6486. }
  6487. _ACEOF
  6488. if ac_fn_cxx_try_compile "$LINENO"; then :
  6489. ac_compiler_gnu=yes
  6490. else
  6491. ac_compiler_gnu=no
  6492. fi
  6493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6494. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6495. fi
  6496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  6497. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6498. if test $ac_compiler_gnu = yes; then
  6499. GXX=yes
  6500. else
  6501. GXX=
  6502. fi
  6503. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6504. ac_save_CXXFLAGS=$CXXFLAGS
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  6506. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6507. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  6508. $as_echo_n "(cached) " >&6
  6509. else
  6510. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6511. ac_cxx_werror_flag=yes
  6512. ac_cv_prog_cxx_g=no
  6513. CXXFLAGS="-g"
  6514. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6515. /* end confdefs.h. */
  6516. int
  6517. main ()
  6518. {
  6519. ;
  6520. return 0;
  6521. }
  6522. _ACEOF
  6523. if ac_fn_cxx_try_compile "$LINENO"; then :
  6524. ac_cv_prog_cxx_g=yes
  6525. else
  6526. CXXFLAGS=""
  6527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6528. /* end confdefs.h. */
  6529. int
  6530. main ()
  6531. {
  6532. ;
  6533. return 0;
  6534. }
  6535. _ACEOF
  6536. if ac_fn_cxx_try_compile "$LINENO"; then :
  6537. else
  6538. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6539. CXXFLAGS="-g"
  6540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6541. /* end confdefs.h. */
  6542. int
  6543. main ()
  6544. {
  6545. ;
  6546. return 0;
  6547. }
  6548. _ACEOF
  6549. if ac_fn_cxx_try_compile "$LINENO"; then :
  6550. ac_cv_prog_cxx_g=yes
  6551. fi
  6552. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6553. fi
  6554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6555. fi
  6556. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6557. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6558. fi
  6559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  6560. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6561. if test "$ac_test_CXXFLAGS" = set; then
  6562. CXXFLAGS=$ac_save_CXXFLAGS
  6563. elif test $ac_cv_prog_cxx_g = yes; then
  6564. if test "$GXX" = yes; then
  6565. CXXFLAGS="-g -O2"
  6566. else
  6567. CXXFLAGS="-g"
  6568. fi
  6569. else
  6570. if test "$GXX" = yes; then
  6571. CXXFLAGS="-O2"
  6572. else
  6573. CXXFLAGS=
  6574. fi
  6575. fi
  6576. ac_ext=cpp
  6577. ac_cpp='$CXXCPP $CPPFLAGS'
  6578. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6579. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6580. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6581. depcc="$CXX" am_compiler_list=
  6582. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6583. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6584. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  6585. $as_echo_n "(cached) " >&6
  6586. else
  6587. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6588. # We make a subdir and do the tests there. Otherwise we can end up
  6589. # making bogus files that we don't know about and never remove. For
  6590. # instance it was reported that on HP-UX the gcc test will end up
  6591. # making a dummy file named `D' -- because `-MD' means `put the output
  6592. # in D'.
  6593. mkdir conftest.dir
  6594. # Copy depcomp to subdir because otherwise we won't find it if we're
  6595. # using a relative directory.
  6596. cp "$am_depcomp" conftest.dir
  6597. cd conftest.dir
  6598. # We will build objects and dependencies in a subdirectory because
  6599. # it helps to detect inapplicable dependency modes. For instance
  6600. # both Tru64's cc and ICC support -MD to output dependencies as a
  6601. # side effect of compilation, but ICC will put the dependencies in
  6602. # the current directory while Tru64 will put them in the object
  6603. # directory.
  6604. mkdir sub
  6605. am_cv_CXX_dependencies_compiler_type=none
  6606. if test "$am_compiler_list" = ""; then
  6607. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6608. fi
  6609. am__universal=false
  6610. case " $depcc " in #(
  6611. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6612. esac
  6613. for depmode in $am_compiler_list; do
  6614. # Setup a source with many dependencies, because some compilers
  6615. # like to wrap large dependency lists on column 80 (with \), and
  6616. # we should not choose a depcomp mode which is confused by this.
  6617. #
  6618. # We need to recreate these files for each test, as the compiler may
  6619. # overwrite some of them when testing with obscure command lines.
  6620. # This happens at least with the AIX C compiler.
  6621. : > sub/conftest.c
  6622. for i in 1 2 3 4 5 6; do
  6623. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6624. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6625. # Solaris 8's {/usr,}/bin/sh.
  6626. touch sub/conftst$i.h
  6627. done
  6628. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6629. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6630. # mode. It turns out that the SunPro C++ compiler does not properly
  6631. # handle `-M -o', and we need to detect this. Also, some Intel
  6632. # versions had trouble with output in subdirs
  6633. am__obj=sub/conftest.${OBJEXT-o}
  6634. am__minus_obj="-o $am__obj"
  6635. case $depmode in
  6636. gcc)
  6637. # This depmode causes a compiler race in universal mode.
  6638. test "$am__universal" = false || continue
  6639. ;;
  6640. nosideeffect)
  6641. # after this tag, mechanisms are not by side-effect, so they'll
  6642. # only be used when explicitly requested
  6643. if test "x$enable_dependency_tracking" = xyes; then
  6644. continue
  6645. else
  6646. break
  6647. fi
  6648. ;;
  6649. msvisualcpp | msvcmsys)
  6650. # This compiler won't grok `-c -o', but also, the minuso test has
  6651. # not run yet. These depmodes are late enough in the game, and
  6652. # so weak that their functioning should not be impacted.
  6653. am__obj=conftest.${OBJEXT-o}
  6654. am__minus_obj=
  6655. ;;
  6656. none) break ;;
  6657. esac
  6658. if depmode=$depmode \
  6659. source=sub/conftest.c object=$am__obj \
  6660. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6661. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6662. >/dev/null 2>conftest.err &&
  6663. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6664. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6665. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6666. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6667. # icc doesn't choke on unknown options, it will just issue warnings
  6668. # or remarks (even with -Werror). So we grep stderr for any message
  6669. # that says an option was ignored or not supported.
  6670. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6671. # icc: Command line warning: ignoring option '-M'; no argument required
  6672. # The diagnosis changed in icc 8.0:
  6673. # icc: Command line remark: option '-MP' not supported
  6674. if (grep 'ignoring option' conftest.err ||
  6675. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6676. am_cv_CXX_dependencies_compiler_type=$depmode
  6677. break
  6678. fi
  6679. fi
  6680. done
  6681. cd ..
  6682. rm -rf conftest.dir
  6683. else
  6684. am_cv_CXX_dependencies_compiler_type=none
  6685. fi
  6686. fi
  6687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  6688. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  6689. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  6690. if
  6691. test "x$enable_dependency_tracking" != xno \
  6692. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  6693. am__fastdepCXX_TRUE=
  6694. am__fastdepCXX_FALSE='#'
  6695. else
  6696. am__fastdepCXX_TRUE='#'
  6697. am__fastdepCXX_FALSE=
  6698. fi
  6699. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6700. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6701. (test "X$CXX" != "Xg++"))) ; then
  6702. ac_ext=cpp
  6703. ac_cpp='$CXXCPP $CPPFLAGS'
  6704. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6705. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6706. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  6708. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  6709. if test -z "$CXXCPP"; then
  6710. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  6711. $as_echo_n "(cached) " >&6
  6712. else
  6713. # Double quotes because CXXCPP needs to be expanded
  6714. for CXXCPP in "$CXX -E" "/lib/cpp"
  6715. do
  6716. ac_preproc_ok=false
  6717. for ac_cxx_preproc_warn_flag in '' yes
  6718. do
  6719. # Use a header file that comes with gcc, so configuring glibc
  6720. # with a fresh cross-compiler works.
  6721. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6722. # <limits.h> exists even on freestanding compilers.
  6723. # On the NeXT, cc -E runs the code through the compiler's parser,
  6724. # not just through cpp. "Syntax error" is here to catch this case.
  6725. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6726. /* end confdefs.h. */
  6727. #ifdef __STDC__
  6728. # include <limits.h>
  6729. #else
  6730. # include <assert.h>
  6731. #endif
  6732. Syntax error
  6733. _ACEOF
  6734. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6735. else
  6736. # Broken: fails on valid input.
  6737. continue
  6738. fi
  6739. rm -f conftest.err conftest.$ac_ext
  6740. # OK, works on sane cases. Now check whether nonexistent headers
  6741. # can be detected and how.
  6742. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6743. /* end confdefs.h. */
  6744. #include <ac_nonexistent.h>
  6745. _ACEOF
  6746. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6747. # Broken: success on invalid input.
  6748. continue
  6749. else
  6750. # Passes both tests.
  6751. ac_preproc_ok=:
  6752. break
  6753. fi
  6754. rm -f conftest.err conftest.$ac_ext
  6755. done
  6756. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6757. rm -f conftest.err conftest.$ac_ext
  6758. if $ac_preproc_ok; then :
  6759. break
  6760. fi
  6761. done
  6762. ac_cv_prog_CXXCPP=$CXXCPP
  6763. fi
  6764. CXXCPP=$ac_cv_prog_CXXCPP
  6765. else
  6766. ac_cv_prog_CXXCPP=$CXXCPP
  6767. fi
  6768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  6769. $as_echo "$CXXCPP" >&6; }
  6770. ac_preproc_ok=false
  6771. for ac_cxx_preproc_warn_flag in '' yes
  6772. do
  6773. # Use a header file that comes with gcc, so configuring glibc
  6774. # with a fresh cross-compiler works.
  6775. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6776. # <limits.h> exists even on freestanding compilers.
  6777. # On the NeXT, cc -E runs the code through the compiler's parser,
  6778. # not just through cpp. "Syntax error" is here to catch this case.
  6779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6780. /* end confdefs.h. */
  6781. #ifdef __STDC__
  6782. # include <limits.h>
  6783. #else
  6784. # include <assert.h>
  6785. #endif
  6786. Syntax error
  6787. _ACEOF
  6788. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6789. else
  6790. # Broken: fails on valid input.
  6791. continue
  6792. fi
  6793. rm -f conftest.err conftest.$ac_ext
  6794. # OK, works on sane cases. Now check whether nonexistent headers
  6795. # can be detected and how.
  6796. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6797. /* end confdefs.h. */
  6798. #include <ac_nonexistent.h>
  6799. _ACEOF
  6800. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6801. # Broken: success on invalid input.
  6802. continue
  6803. else
  6804. # Passes both tests.
  6805. ac_preproc_ok=:
  6806. break
  6807. fi
  6808. rm -f conftest.err conftest.$ac_ext
  6809. done
  6810. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6811. rm -f conftest.err conftest.$ac_ext
  6812. if $ac_preproc_ok; then :
  6813. else
  6814. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6815. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6816. _lt_caught_CXX_error=yes; }
  6817. fi
  6818. ac_ext=cpp
  6819. ac_cpp='$CXXCPP $CPPFLAGS'
  6820. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6821. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6822. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6823. else
  6824. _lt_caught_CXX_error=yes
  6825. fi
  6826. # Set options
  6827. enable_dlopen=no
  6828. enable_win32_dll=no
  6829. # Check whether --enable-shared was given.
  6830. if test "${enable_shared+set}" = set; then :
  6831. enableval=$enable_shared; p=${PACKAGE-default}
  6832. case $enableval in
  6833. yes) enable_shared=yes ;;
  6834. no) enable_shared=no ;;
  6835. *)
  6836. enable_shared=no
  6837. # Look at the argument we got. We use all the common list separators.
  6838. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6839. for pkg in $enableval; do
  6840. IFS="$lt_save_ifs"
  6841. if test "X$pkg" = "X$p"; then
  6842. enable_shared=yes
  6843. fi
  6844. done
  6845. IFS="$lt_save_ifs"
  6846. ;;
  6847. esac
  6848. else
  6849. enable_shared=yes
  6850. fi
  6851. # Check whether --enable-static was given.
  6852. if test "${enable_static+set}" = set; then :
  6853. enableval=$enable_static; p=${PACKAGE-default}
  6854. case $enableval in
  6855. yes) enable_static=yes ;;
  6856. no) enable_static=no ;;
  6857. *)
  6858. enable_static=no
  6859. # Look at the argument we got. We use all the common list separators.
  6860. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6861. for pkg in $enableval; do
  6862. IFS="$lt_save_ifs"
  6863. if test "X$pkg" = "X$p"; then
  6864. enable_static=yes
  6865. fi
  6866. done
  6867. IFS="$lt_save_ifs"
  6868. ;;
  6869. esac
  6870. else
  6871. enable_static=yes
  6872. fi
  6873. # Check whether --with-pic was given.
  6874. if test "${with_pic+set}" = set; then :
  6875. withval=$with_pic; pic_mode="$withval"
  6876. else
  6877. pic_mode=default
  6878. fi
  6879. test -z "$pic_mode" && pic_mode=default
  6880. # Check whether --enable-fast-install was given.
  6881. if test "${enable_fast_install+set}" = set; then :
  6882. enableval=$enable_fast_install; p=${PACKAGE-default}
  6883. case $enableval in
  6884. yes) enable_fast_install=yes ;;
  6885. no) enable_fast_install=no ;;
  6886. *)
  6887. enable_fast_install=no
  6888. # Look at the argument we got. We use all the common list separators.
  6889. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6890. for pkg in $enableval; do
  6891. IFS="$lt_save_ifs"
  6892. if test "X$pkg" = "X$p"; then
  6893. enable_fast_install=yes
  6894. fi
  6895. done
  6896. IFS="$lt_save_ifs"
  6897. ;;
  6898. esac
  6899. else
  6900. enable_fast_install=yes
  6901. fi
  6902. # This can be used to rebuild libtool when needed
  6903. LIBTOOL_DEPS="$ltmain"
  6904. # Always use our own libtool.
  6905. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6906. test -z "$LN_S" && LN_S="ln -s"
  6907. if test -n "${ZSH_VERSION+set}" ; then
  6908. setopt NO_GLOB_SUBST
  6909. fi
  6910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6911. $as_echo_n "checking for objdir... " >&6; }
  6912. if test "${lt_cv_objdir+set}" = set; then :
  6913. $as_echo_n "(cached) " >&6
  6914. else
  6915. rm -f .libs 2>/dev/null
  6916. mkdir .libs 2>/dev/null
  6917. if test -d .libs; then
  6918. lt_cv_objdir=.libs
  6919. else
  6920. # MS-DOS does not allow filenames that begin with a dot.
  6921. lt_cv_objdir=_libs
  6922. fi
  6923. rmdir .libs 2>/dev/null
  6924. fi
  6925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6926. $as_echo "$lt_cv_objdir" >&6; }
  6927. objdir=$lt_cv_objdir
  6928. cat >>confdefs.h <<_ACEOF
  6929. #define LT_OBJDIR "$lt_cv_objdir/"
  6930. _ACEOF
  6931. case $host_os in
  6932. aix3*)
  6933. # AIX sometimes has problems with the GCC collect2 program. For some
  6934. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6935. # vanish in a puff of smoke.
  6936. if test "X${COLLECT_NAMES+set}" != Xset; then
  6937. COLLECT_NAMES=
  6938. export COLLECT_NAMES
  6939. fi
  6940. ;;
  6941. esac
  6942. # Sed substitution that helps us do robust quoting. It backslashifies
  6943. # metacharacters that are still active within double-quoted strings.
  6944. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  6945. # Same as above, but do not quote variable references.
  6946. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  6947. # Sed substitution to delay expansion of an escaped shell variable in a
  6948. # double_quote_subst'ed string.
  6949. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  6950. # Sed substitution to delay expansion of an escaped single quote.
  6951. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  6952. # Sed substitution to avoid accidental globbing in evaled expressions
  6953. no_glob_subst='s/\*/\\\*/g'
  6954. # Global variables:
  6955. ofile=libtool
  6956. can_build_shared=yes
  6957. # All known linkers require a `.a' archive for static linking (except MSVC,
  6958. # which needs '.lib').
  6959. libext=a
  6960. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6961. old_CC="$CC"
  6962. old_CFLAGS="$CFLAGS"
  6963. # Set sane defaults for various variables
  6964. test -z "$CC" && CC=cc
  6965. test -z "$LTCC" && LTCC=$CC
  6966. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6967. test -z "$LD" && LD=ld
  6968. test -z "$ac_objext" && ac_objext=o
  6969. for cc_temp in $compiler""; do
  6970. case $cc_temp in
  6971. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6972. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6973. \-*) ;;
  6974. *) break;;
  6975. esac
  6976. done
  6977. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  6978. # Only perform the check for file, if the check method requires it
  6979. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6980. case $deplibs_check_method in
  6981. file_magic*)
  6982. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6984. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6985. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  6986. $as_echo_n "(cached) " >&6
  6987. else
  6988. case $MAGIC_CMD in
  6989. [\\/*] | ?:[\\/]*)
  6990. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6991. ;;
  6992. *)
  6993. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6994. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6995. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6996. for ac_dir in $ac_dummy; do
  6997. IFS="$lt_save_ifs"
  6998. test -z "$ac_dir" && ac_dir=.
  6999. if test -f $ac_dir/${ac_tool_prefix}file; then
  7000. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7001. if test -n "$file_magic_test_file"; then
  7002. case $deplibs_check_method in
  7003. "file_magic "*)
  7004. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7005. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7006. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7007. $EGREP "$file_magic_regex" > /dev/null; then
  7008. :
  7009. else
  7010. cat <<_LT_EOF 1>&2
  7011. *** Warning: the command libtool uses to detect shared libraries,
  7012. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7013. *** The result is that libtool may fail to recognize shared libraries
  7014. *** as such. This will affect the creation of libtool libraries that
  7015. *** depend on shared libraries, but programs linked with such libtool
  7016. *** libraries will work regardless of this problem. Nevertheless, you
  7017. *** may want to report the problem to your system manager and/or to
  7018. *** [email protected]
  7019. _LT_EOF
  7020. fi ;;
  7021. esac
  7022. fi
  7023. break
  7024. fi
  7025. done
  7026. IFS="$lt_save_ifs"
  7027. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7028. ;;
  7029. esac
  7030. fi
  7031. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7032. if test -n "$MAGIC_CMD"; then
  7033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7034. $as_echo "$MAGIC_CMD" >&6; }
  7035. else
  7036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7037. $as_echo "no" >&6; }
  7038. fi
  7039. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7040. if test -n "$ac_tool_prefix"; then
  7041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7042. $as_echo_n "checking for file... " >&6; }
  7043. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7044. $as_echo_n "(cached) " >&6
  7045. else
  7046. case $MAGIC_CMD in
  7047. [\\/*] | ?:[\\/]*)
  7048. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7049. ;;
  7050. *)
  7051. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7052. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7053. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7054. for ac_dir in $ac_dummy; do
  7055. IFS="$lt_save_ifs"
  7056. test -z "$ac_dir" && ac_dir=.
  7057. if test -f $ac_dir/file; then
  7058. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7059. if test -n "$file_magic_test_file"; then
  7060. case $deplibs_check_method in
  7061. "file_magic "*)
  7062. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7063. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7064. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7065. $EGREP "$file_magic_regex" > /dev/null; then
  7066. :
  7067. else
  7068. cat <<_LT_EOF 1>&2
  7069. *** Warning: the command libtool uses to detect shared libraries,
  7070. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7071. *** The result is that libtool may fail to recognize shared libraries
  7072. *** as such. This will affect the creation of libtool libraries that
  7073. *** depend on shared libraries, but programs linked with such libtool
  7074. *** libraries will work regardless of this problem. Nevertheless, you
  7075. *** may want to report the problem to your system manager and/or to
  7076. *** [email protected]
  7077. _LT_EOF
  7078. fi ;;
  7079. esac
  7080. fi
  7081. break
  7082. fi
  7083. done
  7084. IFS="$lt_save_ifs"
  7085. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7086. ;;
  7087. esac
  7088. fi
  7089. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7090. if test -n "$MAGIC_CMD"; then
  7091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7092. $as_echo "$MAGIC_CMD" >&6; }
  7093. else
  7094. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7095. $as_echo "no" >&6; }
  7096. fi
  7097. else
  7098. MAGIC_CMD=:
  7099. fi
  7100. fi
  7101. fi
  7102. ;;
  7103. esac
  7104. # Use C for the default configuration in the libtool script
  7105. lt_save_CC="$CC"
  7106. ac_ext=c
  7107. ac_cpp='$CPP $CPPFLAGS'
  7108. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7109. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7110. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7111. # Source file extension for C test sources.
  7112. ac_ext=c
  7113. # Object file extension for compiled C test sources.
  7114. objext=o
  7115. objext=$objext
  7116. # Code to be used in simple compile tests
  7117. lt_simple_compile_test_code="int some_variable = 0;"
  7118. # Code to be used in simple link tests
  7119. lt_simple_link_test_code='int main(){return(0);}'
  7120. # If no C compiler was specified, use CC.
  7121. LTCC=${LTCC-"$CC"}
  7122. # If no C compiler flags were specified, use CFLAGS.
  7123. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7124. # Allow CC to be a program name with arguments.
  7125. compiler=$CC
  7126. # Save the default compiler, since it gets overwritten when the other
  7127. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7128. compiler_DEFAULT=$CC
  7129. # save warnings/boilerplate of simple test code
  7130. ac_outfile=conftest.$ac_objext
  7131. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7132. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7133. _lt_compiler_boilerplate=`cat conftest.err`
  7134. $RM conftest*
  7135. ac_outfile=conftest.$ac_objext
  7136. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7137. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7138. _lt_linker_boilerplate=`cat conftest.err`
  7139. $RM -r conftest*
  7140. ## CAVEAT EMPTOR:
  7141. ## There is no encapsulation within the following macros, do not change
  7142. ## the running order or otherwise move them around unless you know exactly
  7143. ## what you are doing...
  7144. if test -n "$compiler"; then
  7145. lt_prog_compiler_no_builtin_flag=
  7146. if test "$GCC" = yes; then
  7147. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7148. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7149. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7150. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7151. $as_echo_n "(cached) " >&6
  7152. else
  7153. lt_cv_prog_compiler_rtti_exceptions=no
  7154. ac_outfile=conftest.$ac_objext
  7155. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7156. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7157. # Insert the option either (1) after the last *FLAGS variable, or
  7158. # (2) before a word containing "conftest.", or (3) at the end.
  7159. # Note that $ac_compile itself does not contain backslashes and begins
  7160. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7161. # The option is referenced via a variable to avoid confusing sed.
  7162. lt_compile=`echo "$ac_compile" | $SED \
  7163. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7164. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7165. -e 's:$: $lt_compiler_flag:'`
  7166. (eval echo "\"\$as_me:8193: $lt_compile\"" >&5)
  7167. (eval "$lt_compile" 2>conftest.err)
  7168. ac_status=$?
  7169. cat conftest.err >&5
  7170. echo "$as_me:8197: \$? = $ac_status" >&5
  7171. if (exit $ac_status) && test -s "$ac_outfile"; then
  7172. # The compiler can only warn and ignore the option if not recognized
  7173. # So say no if there are warnings other than the usual output.
  7174. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7175. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7176. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7177. lt_cv_prog_compiler_rtti_exceptions=yes
  7178. fi
  7179. fi
  7180. $RM conftest*
  7181. fi
  7182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7183. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7184. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7185. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7186. else
  7187. :
  7188. fi
  7189. fi
  7190. lt_prog_compiler_wl=
  7191. lt_prog_compiler_pic=
  7192. lt_prog_compiler_static=
  7193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7194. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7195. if test "$GCC" = yes; then
  7196. lt_prog_compiler_wl='-Wl,'
  7197. lt_prog_compiler_static='-static'
  7198. case $host_os in
  7199. aix*)
  7200. # All AIX code is PIC.
  7201. if test "$host_cpu" = ia64; then
  7202. # AIX 5 now supports IA64 processor
  7203. lt_prog_compiler_static='-Bstatic'
  7204. fi
  7205. ;;
  7206. amigaos*)
  7207. case $host_cpu in
  7208. powerpc)
  7209. # see comment about AmigaOS4 .so support
  7210. lt_prog_compiler_pic='-fPIC'
  7211. ;;
  7212. m68k)
  7213. # FIXME: we need at least 68020 code to build shared libraries, but
  7214. # adding the `-m68020' flag to GCC prevents building anything better,
  7215. # like `-m68040'.
  7216. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7217. ;;
  7218. esac
  7219. ;;
  7220. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7221. # PIC is the default for these OSes.
  7222. ;;
  7223. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7224. # This hack is so that the source file can tell whether it is being
  7225. # built for inclusion in a dll (and should export symbols for example).
  7226. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7227. # (--disable-auto-import) libraries
  7228. lt_prog_compiler_pic='-DDLL_EXPORT'
  7229. ;;
  7230. darwin* | rhapsody*)
  7231. # PIC is the default on this platform
  7232. # Common symbols not allowed in MH_DYLIB files
  7233. lt_prog_compiler_pic='-fno-common'
  7234. ;;
  7235. hpux*)
  7236. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7237. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7238. # sets the default TLS model and affects inlining.
  7239. case $host_cpu in
  7240. hppa*64*)
  7241. # +Z the default
  7242. ;;
  7243. *)
  7244. lt_prog_compiler_pic='-fPIC'
  7245. ;;
  7246. esac
  7247. ;;
  7248. interix[3-9]*)
  7249. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7250. # Instead, we relocate shared libraries at runtime.
  7251. ;;
  7252. msdosdjgpp*)
  7253. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7254. # on systems that don't support them.
  7255. lt_prog_compiler_can_build_shared=no
  7256. enable_shared=no
  7257. ;;
  7258. *nto* | *qnx*)
  7259. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7260. # it will coredump.
  7261. lt_prog_compiler_pic='-fPIC -shared'
  7262. ;;
  7263. sysv4*MP*)
  7264. if test -d /usr/nec; then
  7265. lt_prog_compiler_pic=-Kconform_pic
  7266. fi
  7267. ;;
  7268. *)
  7269. lt_prog_compiler_pic='-fPIC'
  7270. ;;
  7271. esac
  7272. else
  7273. # PORTME Check for flag to pass linker flags through the system compiler.
  7274. case $host_os in
  7275. aix*)
  7276. lt_prog_compiler_wl='-Wl,'
  7277. if test "$host_cpu" = ia64; then
  7278. # AIX 5 now supports IA64 processor
  7279. lt_prog_compiler_static='-Bstatic'
  7280. else
  7281. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7282. fi
  7283. ;;
  7284. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7285. # This hack is so that the source file can tell whether it is being
  7286. # built for inclusion in a dll (and should export symbols for example).
  7287. lt_prog_compiler_pic='-DDLL_EXPORT'
  7288. ;;
  7289. hpux9* | hpux10* | hpux11*)
  7290. lt_prog_compiler_wl='-Wl,'
  7291. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7292. # not for PA HP-UX.
  7293. case $host_cpu in
  7294. hppa*64*|ia64*)
  7295. # +Z the default
  7296. ;;
  7297. *)
  7298. lt_prog_compiler_pic='+Z'
  7299. ;;
  7300. esac
  7301. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7302. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7303. ;;
  7304. irix5* | irix6* | nonstopux*)
  7305. lt_prog_compiler_wl='-Wl,'
  7306. # PIC (with -KPIC) is the default.
  7307. lt_prog_compiler_static='-non_shared'
  7308. ;;
  7309. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7310. case $cc_basename in
  7311. # old Intel for x86_64 which still supported -KPIC.
  7312. ecc*)
  7313. lt_prog_compiler_wl='-Wl,'
  7314. lt_prog_compiler_pic='-KPIC'
  7315. lt_prog_compiler_static='-static'
  7316. ;;
  7317. # icc used to be incompatible with GCC.
  7318. # ICC 10 doesn't accept -KPIC any more.
  7319. icc* | ifort*)
  7320. lt_prog_compiler_wl='-Wl,'
  7321. lt_prog_compiler_pic='-fPIC'
  7322. lt_prog_compiler_static='-static'
  7323. ;;
  7324. # Lahey Fortran 8.1.
  7325. lf95*)
  7326. lt_prog_compiler_wl='-Wl,'
  7327. lt_prog_compiler_pic='--shared'
  7328. lt_prog_compiler_static='--static'
  7329. ;;
  7330. pgcc* | pgf77* | pgf90* | pgf95*)
  7331. # Portland Group compilers (*not* the Pentium gcc compiler,
  7332. # which looks to be a dead project)
  7333. lt_prog_compiler_wl='-Wl,'
  7334. lt_prog_compiler_pic='-fpic'
  7335. lt_prog_compiler_static='-Bstatic'
  7336. ;;
  7337. ccc*)
  7338. lt_prog_compiler_wl='-Wl,'
  7339. # All Alpha code is PIC.
  7340. lt_prog_compiler_static='-non_shared'
  7341. ;;
  7342. xl*)
  7343. # IBM XL C 8.0/Fortran 10.1 on PPC
  7344. lt_prog_compiler_wl='-Wl,'
  7345. lt_prog_compiler_pic='-qpic'
  7346. lt_prog_compiler_static='-qstaticlink'
  7347. ;;
  7348. *)
  7349. case `$CC -V 2>&1 | sed 5q` in
  7350. *Sun\ C*)
  7351. # Sun C 5.9
  7352. lt_prog_compiler_pic='-KPIC'
  7353. lt_prog_compiler_static='-Bstatic'
  7354. lt_prog_compiler_wl='-Wl,'
  7355. ;;
  7356. *Sun\ F*)
  7357. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7358. lt_prog_compiler_pic='-KPIC'
  7359. lt_prog_compiler_static='-Bstatic'
  7360. lt_prog_compiler_wl=''
  7361. ;;
  7362. esac
  7363. ;;
  7364. esac
  7365. ;;
  7366. newsos6)
  7367. lt_prog_compiler_pic='-KPIC'
  7368. lt_prog_compiler_static='-Bstatic'
  7369. ;;
  7370. *nto* | *qnx*)
  7371. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7372. # it will coredump.
  7373. lt_prog_compiler_pic='-fPIC -shared'
  7374. ;;
  7375. osf3* | osf4* | osf5*)
  7376. lt_prog_compiler_wl='-Wl,'
  7377. # All OSF/1 code is PIC.
  7378. lt_prog_compiler_static='-non_shared'
  7379. ;;
  7380. rdos*)
  7381. lt_prog_compiler_static='-non_shared'
  7382. ;;
  7383. solaris*)
  7384. lt_prog_compiler_pic='-KPIC'
  7385. lt_prog_compiler_static='-Bstatic'
  7386. case $cc_basename in
  7387. f77* | f90* | f95*)
  7388. lt_prog_compiler_wl='-Qoption ld ';;
  7389. *)
  7390. lt_prog_compiler_wl='-Wl,';;
  7391. esac
  7392. ;;
  7393. sunos4*)
  7394. lt_prog_compiler_wl='-Qoption ld '
  7395. lt_prog_compiler_pic='-PIC'
  7396. lt_prog_compiler_static='-Bstatic'
  7397. ;;
  7398. sysv4 | sysv4.2uw2* | sysv4.3*)
  7399. lt_prog_compiler_wl='-Wl,'
  7400. lt_prog_compiler_pic='-KPIC'
  7401. lt_prog_compiler_static='-Bstatic'
  7402. ;;
  7403. sysv4*MP*)
  7404. if test -d /usr/nec ;then
  7405. lt_prog_compiler_pic='-Kconform_pic'
  7406. lt_prog_compiler_static='-Bstatic'
  7407. fi
  7408. ;;
  7409. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7410. lt_prog_compiler_wl='-Wl,'
  7411. lt_prog_compiler_pic='-KPIC'
  7412. lt_prog_compiler_static='-Bstatic'
  7413. ;;
  7414. unicos*)
  7415. lt_prog_compiler_wl='-Wl,'
  7416. lt_prog_compiler_can_build_shared=no
  7417. ;;
  7418. uts4*)
  7419. lt_prog_compiler_pic='-pic'
  7420. lt_prog_compiler_static='-Bstatic'
  7421. ;;
  7422. *)
  7423. lt_prog_compiler_can_build_shared=no
  7424. ;;
  7425. esac
  7426. fi
  7427. case $host_os in
  7428. # For platforms which do not support PIC, -DPIC is meaningless:
  7429. *djgpp*)
  7430. lt_prog_compiler_pic=
  7431. ;;
  7432. *)
  7433. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7434. ;;
  7435. esac
  7436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7437. $as_echo "$lt_prog_compiler_pic" >&6; }
  7438. #
  7439. # Check to make sure the PIC flag actually works.
  7440. #
  7441. if test -n "$lt_prog_compiler_pic"; then
  7442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7443. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7444. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7445. $as_echo_n "(cached) " >&6
  7446. else
  7447. lt_cv_prog_compiler_pic_works=no
  7448. ac_outfile=conftest.$ac_objext
  7449. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7450. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7451. # Insert the option either (1) after the last *FLAGS variable, or
  7452. # (2) before a word containing "conftest.", or (3) at the end.
  7453. # Note that $ac_compile itself does not contain backslashes and begins
  7454. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7455. # The option is referenced via a variable to avoid confusing sed.
  7456. lt_compile=`echo "$ac_compile" | $SED \
  7457. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7458. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7459. -e 's:$: $lt_compiler_flag:'`
  7460. (eval echo "\"\$as_me:8532: $lt_compile\"" >&5)
  7461. (eval "$lt_compile" 2>conftest.err)
  7462. ac_status=$?
  7463. cat conftest.err >&5
  7464. echo "$as_me:8536: \$? = $ac_status" >&5
  7465. if (exit $ac_status) && test -s "$ac_outfile"; then
  7466. # The compiler can only warn and ignore the option if not recognized
  7467. # So say no if there are warnings other than the usual output.
  7468. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7469. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7470. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7471. lt_cv_prog_compiler_pic_works=yes
  7472. fi
  7473. fi
  7474. $RM conftest*
  7475. fi
  7476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7477. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7478. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7479. case $lt_prog_compiler_pic in
  7480. "" | " "*) ;;
  7481. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7482. esac
  7483. else
  7484. lt_prog_compiler_pic=
  7485. lt_prog_compiler_can_build_shared=no
  7486. fi
  7487. fi
  7488. #
  7489. # Check to make sure the static flag actually works.
  7490. #
  7491. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7492. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7493. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7494. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7495. $as_echo_n "(cached) " >&6
  7496. else
  7497. lt_cv_prog_compiler_static_works=no
  7498. save_LDFLAGS="$LDFLAGS"
  7499. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7500. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7501. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7502. # The linker can only warn and ignore the option if not recognized
  7503. # So say no if there are warnings
  7504. if test -s conftest.err; then
  7505. # Append any errors to the config.log.
  7506. cat conftest.err 1>&5
  7507. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7508. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7509. if diff conftest.exp conftest.er2 >/dev/null; then
  7510. lt_cv_prog_compiler_static_works=yes
  7511. fi
  7512. else
  7513. lt_cv_prog_compiler_static_works=yes
  7514. fi
  7515. fi
  7516. $RM -r conftest*
  7517. LDFLAGS="$save_LDFLAGS"
  7518. fi
  7519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7520. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7521. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7522. :
  7523. else
  7524. lt_prog_compiler_static=
  7525. fi
  7526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7527. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7528. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7529. $as_echo_n "(cached) " >&6
  7530. else
  7531. lt_cv_prog_compiler_c_o=no
  7532. $RM -r conftest 2>/dev/null
  7533. mkdir conftest
  7534. cd conftest
  7535. mkdir out
  7536. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7537. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7538. # Insert the option either (1) after the last *FLAGS variable, or
  7539. # (2) before a word containing "conftest.", or (3) at the end.
  7540. # Note that $ac_compile itself does not contain backslashes and begins
  7541. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7542. lt_compile=`echo "$ac_compile" | $SED \
  7543. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7544. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7545. -e 's:$: $lt_compiler_flag:'`
  7546. (eval echo "\"\$as_me:8637: $lt_compile\"" >&5)
  7547. (eval "$lt_compile" 2>out/conftest.err)
  7548. ac_status=$?
  7549. cat out/conftest.err >&5
  7550. echo "$as_me:8641: \$? = $ac_status" >&5
  7551. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7552. then
  7553. # The compiler can only warn and ignore the option if not recognized
  7554. # So say no if there are warnings
  7555. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7556. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7557. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7558. lt_cv_prog_compiler_c_o=yes
  7559. fi
  7560. fi
  7561. chmod u+w . 2>&5
  7562. $RM conftest*
  7563. # SGI C++ compiler will create directory out/ii_files/ for
  7564. # template instantiation
  7565. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7566. $RM out/* && rmdir out
  7567. cd ..
  7568. $RM -r conftest
  7569. $RM conftest*
  7570. fi
  7571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7572. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7574. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7575. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7576. $as_echo_n "(cached) " >&6
  7577. else
  7578. lt_cv_prog_compiler_c_o=no
  7579. $RM -r conftest 2>/dev/null
  7580. mkdir conftest
  7581. cd conftest
  7582. mkdir out
  7583. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7584. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7585. # Insert the option either (1) after the last *FLAGS variable, or
  7586. # (2) before a word containing "conftest.", or (3) at the end.
  7587. # Note that $ac_compile itself does not contain backslashes and begins
  7588. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7589. lt_compile=`echo "$ac_compile" | $SED \
  7590. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7591. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7592. -e 's:$: $lt_compiler_flag:'`
  7593. (eval echo "\"\$as_me:8692: $lt_compile\"" >&5)
  7594. (eval "$lt_compile" 2>out/conftest.err)
  7595. ac_status=$?
  7596. cat out/conftest.err >&5
  7597. echo "$as_me:8696: \$? = $ac_status" >&5
  7598. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7599. then
  7600. # The compiler can only warn and ignore the option if not recognized
  7601. # So say no if there are warnings
  7602. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7603. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7604. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7605. lt_cv_prog_compiler_c_o=yes
  7606. fi
  7607. fi
  7608. chmod u+w . 2>&5
  7609. $RM conftest*
  7610. # SGI C++ compiler will create directory out/ii_files/ for
  7611. # template instantiation
  7612. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7613. $RM out/* && rmdir out
  7614. cd ..
  7615. $RM -r conftest
  7616. $RM conftest*
  7617. fi
  7618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7619. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7620. hard_links="nottested"
  7621. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7622. # do not overwrite the value of need_locks provided by the user
  7623. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7624. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7625. hard_links=yes
  7626. $RM conftest*
  7627. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7628. touch conftest.a
  7629. ln conftest.a conftest.b 2>&5 || hard_links=no
  7630. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7632. $as_echo "$hard_links" >&6; }
  7633. if test "$hard_links" = no; then
  7634. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7635. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7636. need_locks=warn
  7637. fi
  7638. else
  7639. need_locks=no
  7640. fi
  7641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7642. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7643. runpath_var=
  7644. allow_undefined_flag=
  7645. always_export_symbols=no
  7646. archive_cmds=
  7647. archive_expsym_cmds=
  7648. compiler_needs_object=no
  7649. enable_shared_with_static_runtimes=no
  7650. export_dynamic_flag_spec=
  7651. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7652. hardcode_automatic=no
  7653. hardcode_direct=no
  7654. hardcode_direct_absolute=no
  7655. hardcode_libdir_flag_spec=
  7656. hardcode_libdir_flag_spec_ld=
  7657. hardcode_libdir_separator=
  7658. hardcode_minus_L=no
  7659. hardcode_shlibpath_var=unsupported
  7660. inherit_rpath=no
  7661. link_all_deplibs=unknown
  7662. module_cmds=
  7663. module_expsym_cmds=
  7664. old_archive_from_new_cmds=
  7665. old_archive_from_expsyms_cmds=
  7666. thread_safe_flag_spec=
  7667. whole_archive_flag_spec=
  7668. # include_expsyms should be a list of space-separated symbols to be *always*
  7669. # included in the symbol list
  7670. include_expsyms=
  7671. # exclude_expsyms can be an extended regexp of symbols to exclude
  7672. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7673. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7674. # as well as any symbol that contains `d'.
  7675. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7676. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7677. # platforms (ab)use it in PIC code, but their linkers get confused if
  7678. # the symbol is explicitly referenced. Since portable code cannot
  7679. # rely on this symbol name, it's probably fine to never include it in
  7680. # preloaded symbol tables.
  7681. # Exclude shared library initialization/finalization symbols.
  7682. extract_expsyms_cmds=
  7683. case $host_os in
  7684. cygwin* | mingw* | pw32* | cegcc*)
  7685. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7686. # When not using gcc, we currently assume that we are using
  7687. # Microsoft Visual C++.
  7688. if test "$GCC" != yes; then
  7689. with_gnu_ld=no
  7690. fi
  7691. ;;
  7692. interix*)
  7693. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7694. with_gnu_ld=yes
  7695. ;;
  7696. openbsd*)
  7697. with_gnu_ld=no
  7698. ;;
  7699. linux* | k*bsd*-gnu)
  7700. link_all_deplibs=no
  7701. ;;
  7702. esac
  7703. ld_shlibs=yes
  7704. if test "$with_gnu_ld" = yes; then
  7705. # If archive_cmds runs LD, not CC, wlarc should be empty
  7706. wlarc='${wl}'
  7707. # Set some defaults for GNU ld with shared library support. These
  7708. # are reset later if shared libraries are not supported. Putting them
  7709. # here allows them to be overridden if necessary.
  7710. runpath_var=LD_RUN_PATH
  7711. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7712. export_dynamic_flag_spec='${wl}--export-dynamic'
  7713. # ancient GNU ld didn't support --whole-archive et. al.
  7714. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7715. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7716. else
  7717. whole_archive_flag_spec=
  7718. fi
  7719. supports_anon_versioning=no
  7720. case `$LD -v 2>&1` in
  7721. *GNU\ gold*) supports_anon_versioning=yes ;;
  7722. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7723. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7724. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7725. *\ 2.11.*) ;; # other 2.11 versions
  7726. *) supports_anon_versioning=yes ;;
  7727. esac
  7728. # See if GNU ld supports shared libraries.
  7729. case $host_os in
  7730. aix[3-9]*)
  7731. # On AIX/PPC, the GNU linker is very broken
  7732. if test "$host_cpu" != ia64; then
  7733. ld_shlibs=no
  7734. cat <<_LT_EOF 1>&2
  7735. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7736. *** to be unable to reliably create shared libraries on AIX.
  7737. *** Therefore, libtool is disabling shared libraries support. If you
  7738. *** really care for shared libraries, you may want to modify your PATH
  7739. *** so that a non-GNU linker is found, and then restart.
  7740. _LT_EOF
  7741. fi
  7742. ;;
  7743. amigaos*)
  7744. case $host_cpu in
  7745. powerpc)
  7746. # see comment about AmigaOS4 .so support
  7747. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7748. archive_expsym_cmds=''
  7749. ;;
  7750. m68k)
  7751. 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)'
  7752. hardcode_libdir_flag_spec='-L$libdir'
  7753. hardcode_minus_L=yes
  7754. ;;
  7755. esac
  7756. ;;
  7757. beos*)
  7758. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7759. allow_undefined_flag=unsupported
  7760. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7761. # support --undefined. This deserves some investigation. FIXME
  7762. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7763. else
  7764. ld_shlibs=no
  7765. fi
  7766. ;;
  7767. cygwin* | mingw* | pw32* | cegcc*)
  7768. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7769. # as there is no search path for DLLs.
  7770. hardcode_libdir_flag_spec='-L$libdir'
  7771. allow_undefined_flag=unsupported
  7772. always_export_symbols=no
  7773. enable_shared_with_static_runtimes=yes
  7774. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7775. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7776. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7777. # If the export-symbols file already is a .def file (1st line
  7778. # is EXPORTS), use it as is; otherwise, prepend...
  7779. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7780. cp $export_symbols $output_objdir/$soname.def;
  7781. else
  7782. echo EXPORTS > $output_objdir/$soname.def;
  7783. cat $export_symbols >> $output_objdir/$soname.def;
  7784. fi~
  7785. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7786. else
  7787. ld_shlibs=no
  7788. fi
  7789. ;;
  7790. interix[3-9]*)
  7791. hardcode_direct=no
  7792. hardcode_shlibpath_var=no
  7793. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7794. export_dynamic_flag_spec='${wl}-E'
  7795. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7796. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7797. # default) and relocated if they conflict, which is a slow very memory
  7798. # consuming and fragmenting process. To avoid this, we pick a random,
  7799. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7800. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7801. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7802. 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'
  7803. ;;
  7804. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7805. tmp_diet=no
  7806. if test "$host_os" = linux-dietlibc; then
  7807. case $cc_basename in
  7808. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7809. esac
  7810. fi
  7811. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7812. && test "$tmp_diet" = no
  7813. then
  7814. tmp_addflag=
  7815. tmp_sharedflag='-shared'
  7816. case $cc_basename,$host_cpu in
  7817. pgcc*) # Portland Group C compiler
  7818. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7819. tmp_addflag=' $pic_flag'
  7820. ;;
  7821. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7822. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7823. tmp_addflag=' $pic_flag -Mnomain' ;;
  7824. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7825. tmp_addflag=' -i_dynamic' ;;
  7826. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7827. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7828. ifc* | ifort*) # Intel Fortran compiler
  7829. tmp_addflag=' -nofor_main' ;;
  7830. lf95*) # Lahey Fortran 8.1
  7831. whole_archive_flag_spec=
  7832. tmp_sharedflag='--shared' ;;
  7833. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7834. tmp_sharedflag='-qmkshrobj'
  7835. tmp_addflag= ;;
  7836. esac
  7837. case `$CC -V 2>&1 | sed 5q` in
  7838. *Sun\ C*) # Sun C 5.9
  7839. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7840. compiler_needs_object=yes
  7841. tmp_sharedflag='-G' ;;
  7842. *Sun\ F*) # Sun Fortran 8.3
  7843. tmp_sharedflag='-G' ;;
  7844. esac
  7845. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7846. if test "x$supports_anon_versioning" = xyes; then
  7847. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7848. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7849. echo "local: *; };" >> $output_objdir/$libname.ver~
  7850. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7851. fi
  7852. case $cc_basename in
  7853. xlf*)
  7854. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7855. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7856. hardcode_libdir_flag_spec=
  7857. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7858. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7859. if test "x$supports_anon_versioning" = xyes; then
  7860. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7861. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7862. echo "local: *; };" >> $output_objdir/$libname.ver~
  7863. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7864. fi
  7865. ;;
  7866. esac
  7867. else
  7868. ld_shlibs=no
  7869. fi
  7870. ;;
  7871. netbsd* | netbsdelf*-gnu)
  7872. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7873. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7874. wlarc=
  7875. else
  7876. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7877. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7878. fi
  7879. ;;
  7880. solaris*)
  7881. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7882. ld_shlibs=no
  7883. cat <<_LT_EOF 1>&2
  7884. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7885. *** create shared libraries on Solaris systems. Therefore, libtool
  7886. *** is disabling shared libraries support. We urge you to upgrade GNU
  7887. *** binutils to release 2.9.1 or newer. Another option is to modify
  7888. *** your PATH or compiler configuration so that the native linker is
  7889. *** used, and then restart.
  7890. _LT_EOF
  7891. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7892. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7893. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7894. else
  7895. ld_shlibs=no
  7896. fi
  7897. ;;
  7898. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7899. case `$LD -v 2>&1` in
  7900. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7901. ld_shlibs=no
  7902. cat <<_LT_EOF 1>&2
  7903. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7904. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7905. *** is disabling shared libraries support. We urge you to upgrade GNU
  7906. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7907. *** your PATH or compiler configuration so that the native linker is
  7908. *** used, and then restart.
  7909. _LT_EOF
  7910. ;;
  7911. *)
  7912. # For security reasons, it is highly recommended that you always
  7913. # use absolute paths for naming shared libraries, and exclude the
  7914. # DT_RUNPATH tag from executables and libraries. But doing so
  7915. # requires that you compile everything twice, which is a pain.
  7916. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7917. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7918. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7919. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7920. else
  7921. ld_shlibs=no
  7922. fi
  7923. ;;
  7924. esac
  7925. ;;
  7926. sunos4*)
  7927. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7928. wlarc=
  7929. hardcode_direct=yes
  7930. hardcode_shlibpath_var=no
  7931. ;;
  7932. *)
  7933. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7934. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7935. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7936. else
  7937. ld_shlibs=no
  7938. fi
  7939. ;;
  7940. esac
  7941. if test "$ld_shlibs" = no; then
  7942. runpath_var=
  7943. hardcode_libdir_flag_spec=
  7944. export_dynamic_flag_spec=
  7945. whole_archive_flag_spec=
  7946. fi
  7947. else
  7948. # PORTME fill in a description of your system's linker (not GNU ld)
  7949. case $host_os in
  7950. aix3*)
  7951. allow_undefined_flag=unsupported
  7952. always_export_symbols=yes
  7953. 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'
  7954. # Note: this linker hardcodes the directories in LIBPATH if there
  7955. # are no directories specified by -L.
  7956. hardcode_minus_L=yes
  7957. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7958. # Neither direct hardcoding nor static linking is supported with a
  7959. # broken collect2.
  7960. hardcode_direct=unsupported
  7961. fi
  7962. ;;
  7963. aix[4-9]*)
  7964. if test "$host_cpu" = ia64; then
  7965. # On IA64, the linker does run time linking by default, so we don't
  7966. # have to do anything special.
  7967. aix_use_runtimelinking=no
  7968. exp_sym_flag='-Bexport'
  7969. no_entry_flag=""
  7970. else
  7971. # If we're using GNU nm, then we don't want the "-C" option.
  7972. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7973. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7974. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7975. else
  7976. 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'
  7977. fi
  7978. aix_use_runtimelinking=no
  7979. # Test if we are trying to use run time linking or normal
  7980. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7981. # need to do runtime linking.
  7982. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7983. for ld_flag in $LDFLAGS; do
  7984. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7985. aix_use_runtimelinking=yes
  7986. break
  7987. fi
  7988. done
  7989. ;;
  7990. esac
  7991. exp_sym_flag='-bexport'
  7992. no_entry_flag='-bnoentry'
  7993. fi
  7994. # When large executables or shared objects are built, AIX ld can
  7995. # have problems creating the table of contents. If linking a library
  7996. # or program results in "error TOC overflow" add -mminimal-toc to
  7997. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7998. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7999. archive_cmds=''
  8000. hardcode_direct=yes
  8001. hardcode_direct_absolute=yes
  8002. hardcode_libdir_separator=':'
  8003. link_all_deplibs=yes
  8004. file_list_spec='${wl}-f,'
  8005. if test "$GCC" = yes; then
  8006. case $host_os in aix4.[012]|aix4.[012].*)
  8007. # We only want to do this on AIX 4.2 and lower, the check
  8008. # below for broken collect2 doesn't work under 4.3+
  8009. collect2name=`${CC} -print-prog-name=collect2`
  8010. if test -f "$collect2name" &&
  8011. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8012. then
  8013. # We have reworked collect2
  8014. :
  8015. else
  8016. # We have old collect2
  8017. hardcode_direct=unsupported
  8018. # It fails to find uninstalled libraries when the uninstalled
  8019. # path is not listed in the libpath. Setting hardcode_minus_L
  8020. # to unsupported forces relinking
  8021. hardcode_minus_L=yes
  8022. hardcode_libdir_flag_spec='-L$libdir'
  8023. hardcode_libdir_separator=
  8024. fi
  8025. ;;
  8026. esac
  8027. shared_flag='-shared'
  8028. if test "$aix_use_runtimelinking" = yes; then
  8029. shared_flag="$shared_flag "'${wl}-G'
  8030. fi
  8031. link_all_deplibs=no
  8032. else
  8033. # not using gcc
  8034. if test "$host_cpu" = ia64; then
  8035. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8036. # chokes on -Wl,-G. The following line is correct:
  8037. shared_flag='-G'
  8038. else
  8039. if test "$aix_use_runtimelinking" = yes; then
  8040. shared_flag='${wl}-G'
  8041. else
  8042. shared_flag='${wl}-bM:SRE'
  8043. fi
  8044. fi
  8045. fi
  8046. export_dynamic_flag_spec='${wl}-bexpall'
  8047. # It seems that -bexpall does not export symbols beginning with
  8048. # underscore (_), so it is better to generate a list of symbols to export.
  8049. always_export_symbols=yes
  8050. if test "$aix_use_runtimelinking" = yes; then
  8051. # Warning - without using the other runtime loading flags (-brtl),
  8052. # -berok will link without error, but may produce a broken library.
  8053. allow_undefined_flag='-berok'
  8054. # Determine the default libpath from the value encoded in an
  8055. # empty executable.
  8056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8057. /* end confdefs.h. */
  8058. int
  8059. main ()
  8060. {
  8061. ;
  8062. return 0;
  8063. }
  8064. _ACEOF
  8065. if ac_fn_c_try_link "$LINENO"; then :
  8066. lt_aix_libpath_sed='
  8067. /Import File Strings/,/^$/ {
  8068. /^0/ {
  8069. s/^0 *\(.*\)$/\1/
  8070. p
  8071. }
  8072. }'
  8073. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8074. # Check for a 64-bit object if we didn't find anything.
  8075. if test -z "$aix_libpath"; then
  8076. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8077. fi
  8078. fi
  8079. rm -f core conftest.err conftest.$ac_objext \
  8080. conftest$ac_exeext conftest.$ac_ext
  8081. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8082. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8083. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8084. else
  8085. if test "$host_cpu" = ia64; then
  8086. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8087. allow_undefined_flag="-z nodefs"
  8088. 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"
  8089. else
  8090. # Determine the default libpath from the value encoded in an
  8091. # empty executable.
  8092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8093. /* end confdefs.h. */
  8094. int
  8095. main ()
  8096. {
  8097. ;
  8098. return 0;
  8099. }
  8100. _ACEOF
  8101. if ac_fn_c_try_link "$LINENO"; then :
  8102. lt_aix_libpath_sed='
  8103. /Import File Strings/,/^$/ {
  8104. /^0/ {
  8105. s/^0 *\(.*\)$/\1/
  8106. p
  8107. }
  8108. }'
  8109. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8110. # Check for a 64-bit object if we didn't find anything.
  8111. if test -z "$aix_libpath"; then
  8112. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8113. fi
  8114. fi
  8115. rm -f core conftest.err conftest.$ac_objext \
  8116. conftest$ac_exeext conftest.$ac_ext
  8117. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8118. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8119. # Warning - without using the other run time loading flags,
  8120. # -berok will link without error, but may produce a broken library.
  8121. no_undefined_flag=' ${wl}-bernotok'
  8122. allow_undefined_flag=' ${wl}-berok'
  8123. # Exported symbols can be pulled into shared objects from archives
  8124. whole_archive_flag_spec='$convenience'
  8125. archive_cmds_need_lc=yes
  8126. # This is similar to how AIX traditionally builds its shared libraries.
  8127. 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'
  8128. fi
  8129. fi
  8130. ;;
  8131. amigaos*)
  8132. case $host_cpu in
  8133. powerpc)
  8134. # see comment about AmigaOS4 .so support
  8135. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8136. archive_expsym_cmds=''
  8137. ;;
  8138. m68k)
  8139. 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)'
  8140. hardcode_libdir_flag_spec='-L$libdir'
  8141. hardcode_minus_L=yes
  8142. ;;
  8143. esac
  8144. ;;
  8145. bsdi[45]*)
  8146. export_dynamic_flag_spec=-rdynamic
  8147. ;;
  8148. cygwin* | mingw* | pw32* | cegcc*)
  8149. # When not using gcc, we currently assume that we are using
  8150. # Microsoft Visual C++.
  8151. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8152. # no search path for DLLs.
  8153. hardcode_libdir_flag_spec=' '
  8154. allow_undefined_flag=unsupported
  8155. # Tell ltmain to make .lib files, not .a files.
  8156. libext=lib
  8157. # Tell ltmain to make .dll files, not .so files.
  8158. shrext_cmds=".dll"
  8159. # FIXME: Setting linknames here is a bad hack.
  8160. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8161. # The linker will automatically build a .lib file if we build a DLL.
  8162. old_archive_from_new_cmds='true'
  8163. # FIXME: Should let the user specify the lib program.
  8164. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8165. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8166. enable_shared_with_static_runtimes=yes
  8167. ;;
  8168. darwin* | rhapsody*)
  8169. archive_cmds_need_lc=no
  8170. hardcode_direct=no
  8171. hardcode_automatic=yes
  8172. hardcode_shlibpath_var=unsupported
  8173. whole_archive_flag_spec=''
  8174. link_all_deplibs=yes
  8175. allow_undefined_flag="$_lt_dar_allow_undefined"
  8176. case $cc_basename in
  8177. ifort*) _lt_dar_can_shared=yes ;;
  8178. *) _lt_dar_can_shared=$GCC ;;
  8179. esac
  8180. if test "$_lt_dar_can_shared" = "yes"; then
  8181. output_verbose_link_cmd=echo
  8182. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8183. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8184. 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}"
  8185. 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}"
  8186. else
  8187. ld_shlibs=no
  8188. fi
  8189. ;;
  8190. dgux*)
  8191. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8192. hardcode_libdir_flag_spec='-L$libdir'
  8193. hardcode_shlibpath_var=no
  8194. ;;
  8195. freebsd1*)
  8196. ld_shlibs=no
  8197. ;;
  8198. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8199. # support. Future versions do this automatically, but an explicit c++rt0.o
  8200. # does not break anything, and helps significantly (at the cost of a little
  8201. # extra space).
  8202. freebsd2.2*)
  8203. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8204. hardcode_libdir_flag_spec='-R$libdir'
  8205. hardcode_direct=yes
  8206. hardcode_shlibpath_var=no
  8207. ;;
  8208. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8209. freebsd2*)
  8210. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8211. hardcode_direct=yes
  8212. hardcode_minus_L=yes
  8213. hardcode_shlibpath_var=no
  8214. ;;
  8215. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8216. freebsd* | dragonfly*)
  8217. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8218. hardcode_libdir_flag_spec='-R$libdir'
  8219. hardcode_direct=yes
  8220. hardcode_shlibpath_var=no
  8221. ;;
  8222. hpux9*)
  8223. if test "$GCC" = yes; then
  8224. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8225. else
  8226. 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'
  8227. fi
  8228. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8229. hardcode_libdir_separator=:
  8230. hardcode_direct=yes
  8231. # hardcode_minus_L: Not really in the search PATH,
  8232. # but as the default location of the library.
  8233. hardcode_minus_L=yes
  8234. export_dynamic_flag_spec='${wl}-E'
  8235. ;;
  8236. hpux10*)
  8237. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8238. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8239. else
  8240. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8241. fi
  8242. if test "$with_gnu_ld" = no; then
  8243. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8244. hardcode_libdir_flag_spec_ld='+b $libdir'
  8245. hardcode_libdir_separator=:
  8246. hardcode_direct=yes
  8247. hardcode_direct_absolute=yes
  8248. export_dynamic_flag_spec='${wl}-E'
  8249. # hardcode_minus_L: Not really in the search PATH,
  8250. # but as the default location of the library.
  8251. hardcode_minus_L=yes
  8252. fi
  8253. ;;
  8254. hpux11*)
  8255. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8256. case $host_cpu in
  8257. hppa*64*)
  8258. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8259. ;;
  8260. ia64*)
  8261. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8262. ;;
  8263. *)
  8264. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8265. ;;
  8266. esac
  8267. else
  8268. case $host_cpu in
  8269. hppa*64*)
  8270. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8271. ;;
  8272. ia64*)
  8273. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8274. ;;
  8275. *)
  8276. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8277. ;;
  8278. esac
  8279. fi
  8280. if test "$with_gnu_ld" = no; then
  8281. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8282. hardcode_libdir_separator=:
  8283. case $host_cpu in
  8284. hppa*64*|ia64*)
  8285. hardcode_direct=no
  8286. hardcode_shlibpath_var=no
  8287. ;;
  8288. *)
  8289. hardcode_direct=yes
  8290. hardcode_direct_absolute=yes
  8291. export_dynamic_flag_spec='${wl}-E'
  8292. # hardcode_minus_L: Not really in the search PATH,
  8293. # but as the default location of the library.
  8294. hardcode_minus_L=yes
  8295. ;;
  8296. esac
  8297. fi
  8298. ;;
  8299. irix5* | irix6* | nonstopux*)
  8300. if test "$GCC" = yes; then
  8301. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8302. # Try to use the -exported_symbol ld option, if it does not
  8303. # work, assume that -exports_file does not work either and
  8304. # implicitly export all symbols.
  8305. save_LDFLAGS="$LDFLAGS"
  8306. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8307. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8308. /* end confdefs.h. */
  8309. int foo(void) {}
  8310. _ACEOF
  8311. if ac_fn_c_try_link "$LINENO"; then :
  8312. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8313. fi
  8314. rm -f core conftest.err conftest.$ac_objext \
  8315. conftest$ac_exeext conftest.$ac_ext
  8316. LDFLAGS="$save_LDFLAGS"
  8317. else
  8318. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8319. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8320. fi
  8321. archive_cmds_need_lc='no'
  8322. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8323. hardcode_libdir_separator=:
  8324. inherit_rpath=yes
  8325. link_all_deplibs=yes
  8326. ;;
  8327. netbsd* | netbsdelf*-gnu)
  8328. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8329. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8330. else
  8331. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8332. fi
  8333. hardcode_libdir_flag_spec='-R$libdir'
  8334. hardcode_direct=yes
  8335. hardcode_shlibpath_var=no
  8336. ;;
  8337. newsos6)
  8338. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8339. hardcode_direct=yes
  8340. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8341. hardcode_libdir_separator=:
  8342. hardcode_shlibpath_var=no
  8343. ;;
  8344. *nto* | *qnx*)
  8345. ;;
  8346. openbsd*)
  8347. if test -f /usr/libexec/ld.so; then
  8348. hardcode_direct=yes
  8349. hardcode_shlibpath_var=no
  8350. hardcode_direct_absolute=yes
  8351. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8352. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8353. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8354. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8355. export_dynamic_flag_spec='${wl}-E'
  8356. else
  8357. case $host_os in
  8358. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8359. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8360. hardcode_libdir_flag_spec='-R$libdir'
  8361. ;;
  8362. *)
  8363. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8364. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8365. ;;
  8366. esac
  8367. fi
  8368. else
  8369. ld_shlibs=no
  8370. fi
  8371. ;;
  8372. os2*)
  8373. hardcode_libdir_flag_spec='-L$libdir'
  8374. hardcode_minus_L=yes
  8375. allow_undefined_flag=unsupported
  8376. 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'
  8377. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8378. ;;
  8379. osf3*)
  8380. if test "$GCC" = yes; then
  8381. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8382. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8383. else
  8384. allow_undefined_flag=' -expect_unresolved \*'
  8385. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8386. fi
  8387. archive_cmds_need_lc='no'
  8388. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8389. hardcode_libdir_separator=:
  8390. ;;
  8391. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8392. if test "$GCC" = yes; then
  8393. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8394. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8395. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8396. else
  8397. allow_undefined_flag=' -expect_unresolved \*'
  8398. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8399. 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~
  8400. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8401. # Both c and cxx compiler support -rpath directly
  8402. hardcode_libdir_flag_spec='-rpath $libdir'
  8403. fi
  8404. archive_cmds_need_lc='no'
  8405. hardcode_libdir_separator=:
  8406. ;;
  8407. solaris*)
  8408. no_undefined_flag=' -z defs'
  8409. if test "$GCC" = yes; then
  8410. wlarc='${wl}'
  8411. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8412. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8413. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8414. else
  8415. case `$CC -V 2>&1` in
  8416. *"Compilers 5.0"*)
  8417. wlarc=''
  8418. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8419. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8420. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8421. ;;
  8422. *)
  8423. wlarc='${wl}'
  8424. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8425. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8426. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8427. ;;
  8428. esac
  8429. fi
  8430. hardcode_libdir_flag_spec='-R$libdir'
  8431. hardcode_shlibpath_var=no
  8432. case $host_os in
  8433. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8434. *)
  8435. # The compiler driver will combine and reorder linker options,
  8436. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8437. # but is careful enough not to reorder.
  8438. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8439. if test "$GCC" = yes; then
  8440. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8441. else
  8442. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8443. fi
  8444. ;;
  8445. esac
  8446. link_all_deplibs=yes
  8447. ;;
  8448. sunos4*)
  8449. if test "x$host_vendor" = xsequent; then
  8450. # Use $CC to link under sequent, because it throws in some extra .o
  8451. # files that make .init and .fini sections work.
  8452. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8453. else
  8454. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8455. fi
  8456. hardcode_libdir_flag_spec='-L$libdir'
  8457. hardcode_direct=yes
  8458. hardcode_minus_L=yes
  8459. hardcode_shlibpath_var=no
  8460. ;;
  8461. sysv4)
  8462. case $host_vendor in
  8463. sni)
  8464. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8465. hardcode_direct=yes # is this really true???
  8466. ;;
  8467. siemens)
  8468. ## LD is ld it makes a PLAMLIB
  8469. ## CC just makes a GrossModule.
  8470. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8471. reload_cmds='$CC -r -o $output$reload_objs'
  8472. hardcode_direct=no
  8473. ;;
  8474. motorola)
  8475. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8476. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8477. ;;
  8478. esac
  8479. runpath_var='LD_RUN_PATH'
  8480. hardcode_shlibpath_var=no
  8481. ;;
  8482. sysv4.3*)
  8483. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8484. hardcode_shlibpath_var=no
  8485. export_dynamic_flag_spec='-Bexport'
  8486. ;;
  8487. sysv4*MP*)
  8488. if test -d /usr/nec; then
  8489. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8490. hardcode_shlibpath_var=no
  8491. runpath_var=LD_RUN_PATH
  8492. hardcode_runpath_var=yes
  8493. ld_shlibs=yes
  8494. fi
  8495. ;;
  8496. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8497. no_undefined_flag='${wl}-z,text'
  8498. archive_cmds_need_lc=no
  8499. hardcode_shlibpath_var=no
  8500. runpath_var='LD_RUN_PATH'
  8501. if test "$GCC" = yes; then
  8502. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8503. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8504. else
  8505. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8506. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8507. fi
  8508. ;;
  8509. sysv5* | sco3.2v5* | sco5v6*)
  8510. # Note: We can NOT use -z defs as we might desire, because we do not
  8511. # link with -lc, and that would cause any symbols used from libc to
  8512. # always be unresolved, which means just about no library would
  8513. # ever link correctly. If we're not using GNU ld we use -z text
  8514. # though, which does catch some bad symbols but isn't as heavy-handed
  8515. # as -z defs.
  8516. no_undefined_flag='${wl}-z,text'
  8517. allow_undefined_flag='${wl}-z,nodefs'
  8518. archive_cmds_need_lc=no
  8519. hardcode_shlibpath_var=no
  8520. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8521. hardcode_libdir_separator=':'
  8522. link_all_deplibs=yes
  8523. export_dynamic_flag_spec='${wl}-Bexport'
  8524. runpath_var='LD_RUN_PATH'
  8525. if test "$GCC" = yes; then
  8526. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8527. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8528. else
  8529. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8530. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8531. fi
  8532. ;;
  8533. uts4*)
  8534. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8535. hardcode_libdir_flag_spec='-L$libdir'
  8536. hardcode_shlibpath_var=no
  8537. ;;
  8538. *)
  8539. ld_shlibs=no
  8540. ;;
  8541. esac
  8542. if test x$host_vendor = xsni; then
  8543. case $host in
  8544. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8545. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8546. ;;
  8547. esac
  8548. fi
  8549. fi
  8550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8551. $as_echo "$ld_shlibs" >&6; }
  8552. test "$ld_shlibs" = no && can_build_shared=no
  8553. with_gnu_ld=$with_gnu_ld
  8554. #
  8555. # Do we need to explicitly link libc?
  8556. #
  8557. case "x$archive_cmds_need_lc" in
  8558. x|xyes)
  8559. # Assume -lc should be added
  8560. archive_cmds_need_lc=yes
  8561. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8562. case $archive_cmds in
  8563. *'~'*)
  8564. # FIXME: we may have to deal with multi-command sequences.
  8565. ;;
  8566. '$CC '*)
  8567. # Test whether the compiler implicitly links with -lc since on some
  8568. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8569. # to ld, don't add -lc before -lgcc.
  8570. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8571. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8572. $RM conftest*
  8573. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8574. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8575. (eval $ac_compile) 2>&5
  8576. ac_status=$?
  8577. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8578. test $ac_status = 0; } 2>conftest.err; then
  8579. soname=conftest
  8580. lib=conftest
  8581. libobjs=conftest.$ac_objext
  8582. deplibs=
  8583. wl=$lt_prog_compiler_wl
  8584. pic_flag=$lt_prog_compiler_pic
  8585. compiler_flags=-v
  8586. linker_flags=-v
  8587. verstring=
  8588. output_objdir=.
  8589. libname=conftest
  8590. lt_save_allow_undefined_flag=$allow_undefined_flag
  8591. allow_undefined_flag=
  8592. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8593. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8594. ac_status=$?
  8595. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8596. test $ac_status = 0; }
  8597. then
  8598. archive_cmds_need_lc=no
  8599. else
  8600. archive_cmds_need_lc=yes
  8601. fi
  8602. allow_undefined_flag=$lt_save_allow_undefined_flag
  8603. else
  8604. cat conftest.err 1>&5
  8605. fi
  8606. $RM conftest*
  8607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8608. $as_echo "$archive_cmds_need_lc" >&6; }
  8609. ;;
  8610. esac
  8611. fi
  8612. ;;
  8613. esac
  8614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8615. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8616. if test "$GCC" = yes; then
  8617. case $host_os in
  8618. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8619. *) lt_awk_arg="/^libraries:/" ;;
  8620. esac
  8621. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8622. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8623. # if the path contains ";" then we assume it to be the separator
  8624. # otherwise default to the standard path separator (i.e. ":") - it is
  8625. # assumed that no part of a normal pathname contains ";" but that should
  8626. # okay in the real world where ";" in dirpaths is itself problematic.
  8627. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8628. else
  8629. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8630. fi
  8631. # Ok, now we have the path, separated by spaces, we can step through it
  8632. # and add multilib dir if necessary.
  8633. lt_tmp_lt_search_path_spec=
  8634. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8635. for lt_sys_path in $lt_search_path_spec; do
  8636. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8637. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8638. else
  8639. test -d "$lt_sys_path" && \
  8640. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8641. fi
  8642. done
  8643. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8644. BEGIN {RS=" "; FS="/|\n";} {
  8645. lt_foo="";
  8646. lt_count=0;
  8647. for (lt_i = NF; lt_i > 0; lt_i--) {
  8648. if ($lt_i != "" && $lt_i != ".") {
  8649. if ($lt_i == "..") {
  8650. lt_count++;
  8651. } else {
  8652. if (lt_count == 0) {
  8653. lt_foo="/" $lt_i lt_foo;
  8654. } else {
  8655. lt_count--;
  8656. }
  8657. }
  8658. }
  8659. }
  8660. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8661. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8662. }'`
  8663. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8664. else
  8665. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8666. fi
  8667. library_names_spec=
  8668. libname_spec='lib$name'
  8669. soname_spec=
  8670. shrext_cmds=".so"
  8671. postinstall_cmds=
  8672. postuninstall_cmds=
  8673. finish_cmds=
  8674. finish_eval=
  8675. shlibpath_var=
  8676. shlibpath_overrides_runpath=unknown
  8677. version_type=none
  8678. dynamic_linker="$host_os ld.so"
  8679. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8680. need_lib_prefix=unknown
  8681. hardcode_into_libs=no
  8682. # when you set need_version to no, make sure it does not cause -set_version
  8683. # flags to be left without arguments
  8684. need_version=unknown
  8685. case $host_os in
  8686. aix3*)
  8687. version_type=linux
  8688. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8689. shlibpath_var=LIBPATH
  8690. # AIX 3 has no versioning support, so we append a major version to the name.
  8691. soname_spec='${libname}${release}${shared_ext}$major'
  8692. ;;
  8693. aix[4-9]*)
  8694. version_type=linux
  8695. need_lib_prefix=no
  8696. need_version=no
  8697. hardcode_into_libs=yes
  8698. if test "$host_cpu" = ia64; then
  8699. # AIX 5 supports IA64
  8700. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8701. shlibpath_var=LD_LIBRARY_PATH
  8702. else
  8703. # With GCC up to 2.95.x, collect2 would create an import file
  8704. # for dependence libraries. The import file would start with
  8705. # the line `#! .'. This would cause the generated library to
  8706. # depend on `.', always an invalid library. This was fixed in
  8707. # development snapshots of GCC prior to 3.0.
  8708. case $host_os in
  8709. aix4 | aix4.[01] | aix4.[01].*)
  8710. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8711. echo ' yes '
  8712. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8713. :
  8714. else
  8715. can_build_shared=no
  8716. fi
  8717. ;;
  8718. esac
  8719. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8720. # soname into executable. Probably we can add versioning support to
  8721. # collect2, so additional links can be useful in future.
  8722. if test "$aix_use_runtimelinking" = yes; then
  8723. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8724. # instead of lib<name>.a to let people know that these are not
  8725. # typical AIX shared libraries.
  8726. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8727. else
  8728. # We preserve .a as extension for shared libraries through AIX4.2
  8729. # and later when we are not doing run time linking.
  8730. library_names_spec='${libname}${release}.a $libname.a'
  8731. soname_spec='${libname}${release}${shared_ext}$major'
  8732. fi
  8733. shlibpath_var=LIBPATH
  8734. fi
  8735. ;;
  8736. amigaos*)
  8737. case $host_cpu in
  8738. powerpc)
  8739. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8740. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8741. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8742. ;;
  8743. m68k)
  8744. library_names_spec='$libname.ixlibrary $libname.a'
  8745. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8746. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  8747. ;;
  8748. esac
  8749. ;;
  8750. beos*)
  8751. library_names_spec='${libname}${shared_ext}'
  8752. dynamic_linker="$host_os ld.so"
  8753. shlibpath_var=LIBRARY_PATH
  8754. ;;
  8755. bsdi[45]*)
  8756. version_type=linux
  8757. need_version=no
  8758. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8759. soname_spec='${libname}${release}${shared_ext}$major'
  8760. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8761. shlibpath_var=LD_LIBRARY_PATH
  8762. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8763. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8764. # the default ld.so.conf also contains /usr/contrib/lib and
  8765. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8766. # libtool to hard-code these into programs
  8767. ;;
  8768. cygwin* | mingw* | pw32* | cegcc*)
  8769. version_type=windows
  8770. shrext_cmds=".dll"
  8771. need_version=no
  8772. need_lib_prefix=no
  8773. case $GCC,$host_os in
  8774. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8775. library_names_spec='$libname.dll.a'
  8776. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8777. postinstall_cmds='base_file=`basename \${file}`~
  8778. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8779. dldir=$destdir/`dirname \$dlpath`~
  8780. test -d \$dldir || mkdir -p \$dldir~
  8781. $install_prog $dir/$dlname \$dldir/$dlname~
  8782. chmod a+x \$dldir/$dlname~
  8783. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8784. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8785. fi'
  8786. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8787. dlpath=$dir/\$dldll~
  8788. $RM \$dlpath'
  8789. shlibpath_overrides_runpath=yes
  8790. case $host_os in
  8791. cygwin*)
  8792. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8793. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8794. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8795. ;;
  8796. mingw* | cegcc*)
  8797. # MinGW DLLs use traditional 'lib' prefix
  8798. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8799. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8800. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8801. # It is most probably a Windows format PATH printed by
  8802. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8803. # path with ; separators, and with drive letters. We can handle the
  8804. # drive letters (cygwin fileutils understands them), so leave them,
  8805. # especially as we might pass files found there to a mingw objdump,
  8806. # which wouldn't understand a cygwinified path. Ahh.
  8807. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8808. else
  8809. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8810. fi
  8811. ;;
  8812. pw32*)
  8813. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8814. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8815. ;;
  8816. esac
  8817. ;;
  8818. *)
  8819. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8820. ;;
  8821. esac
  8822. dynamic_linker='Win32 ld.exe'
  8823. # FIXME: first we should search . and the directory the executable is in
  8824. shlibpath_var=PATH
  8825. ;;
  8826. darwin* | rhapsody*)
  8827. dynamic_linker="$host_os dyld"
  8828. version_type=darwin
  8829. need_lib_prefix=no
  8830. need_version=no
  8831. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8832. soname_spec='${libname}${release}${major}$shared_ext'
  8833. shlibpath_overrides_runpath=yes
  8834. shlibpath_var=DYLD_LIBRARY_PATH
  8835. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8836. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8837. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8838. ;;
  8839. dgux*)
  8840. version_type=linux
  8841. need_lib_prefix=no
  8842. need_version=no
  8843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8844. soname_spec='${libname}${release}${shared_ext}$major'
  8845. shlibpath_var=LD_LIBRARY_PATH
  8846. ;;
  8847. freebsd1*)
  8848. dynamic_linker=no
  8849. ;;
  8850. freebsd* | dragonfly*)
  8851. # DragonFly does not have aout. When/if they implement a new
  8852. # versioning mechanism, adjust this.
  8853. if test -x /usr/bin/objformat; then
  8854. objformat=`/usr/bin/objformat`
  8855. else
  8856. case $host_os in
  8857. freebsd[123]*) objformat=aout ;;
  8858. *) objformat=elf ;;
  8859. esac
  8860. fi
  8861. version_type=freebsd-$objformat
  8862. case $version_type in
  8863. freebsd-elf*)
  8864. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8865. need_version=no
  8866. need_lib_prefix=no
  8867. ;;
  8868. freebsd-*)
  8869. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8870. need_version=yes
  8871. ;;
  8872. esac
  8873. shlibpath_var=LD_LIBRARY_PATH
  8874. case $host_os in
  8875. freebsd2*)
  8876. shlibpath_overrides_runpath=yes
  8877. ;;
  8878. freebsd3.[01]* | freebsdelf3.[01]*)
  8879. shlibpath_overrides_runpath=yes
  8880. hardcode_into_libs=yes
  8881. ;;
  8882. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8883. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8884. shlibpath_overrides_runpath=no
  8885. hardcode_into_libs=yes
  8886. ;;
  8887. *) # from 4.6 on, and DragonFly
  8888. shlibpath_overrides_runpath=yes
  8889. hardcode_into_libs=yes
  8890. ;;
  8891. esac
  8892. ;;
  8893. gnu*)
  8894. version_type=linux
  8895. need_lib_prefix=no
  8896. need_version=no
  8897. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8898. soname_spec='${libname}${release}${shared_ext}$major'
  8899. shlibpath_var=LD_LIBRARY_PATH
  8900. hardcode_into_libs=yes
  8901. ;;
  8902. hpux9* | hpux10* | hpux11*)
  8903. # Give a soname corresponding to the major version so that dld.sl refuses to
  8904. # link against other versions.
  8905. version_type=sunos
  8906. need_lib_prefix=no
  8907. need_version=no
  8908. case $host_cpu in
  8909. ia64*)
  8910. shrext_cmds='.so'
  8911. hardcode_into_libs=yes
  8912. dynamic_linker="$host_os dld.so"
  8913. shlibpath_var=LD_LIBRARY_PATH
  8914. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8915. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8916. soname_spec='${libname}${release}${shared_ext}$major'
  8917. if test "X$HPUX_IA64_MODE" = X32; then
  8918. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8919. else
  8920. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8921. fi
  8922. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8923. ;;
  8924. hppa*64*)
  8925. shrext_cmds='.sl'
  8926. hardcode_into_libs=yes
  8927. dynamic_linker="$host_os dld.sl"
  8928. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8929. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8930. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8931. soname_spec='${libname}${release}${shared_ext}$major'
  8932. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8933. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8934. ;;
  8935. *)
  8936. shrext_cmds='.sl'
  8937. dynamic_linker="$host_os dld.sl"
  8938. shlibpath_var=SHLIB_PATH
  8939. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8940. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8941. soname_spec='${libname}${release}${shared_ext}$major'
  8942. ;;
  8943. esac
  8944. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  8945. postinstall_cmds='chmod 555 $lib'
  8946. ;;
  8947. interix[3-9]*)
  8948. version_type=linux
  8949. need_lib_prefix=no
  8950. need_version=no
  8951. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8952. soname_spec='${libname}${release}${shared_ext}$major'
  8953. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8954. shlibpath_var=LD_LIBRARY_PATH
  8955. shlibpath_overrides_runpath=no
  8956. hardcode_into_libs=yes
  8957. ;;
  8958. irix5* | irix6* | nonstopux*)
  8959. case $host_os in
  8960. nonstopux*) version_type=nonstopux ;;
  8961. *)
  8962. if test "$lt_cv_prog_gnu_ld" = yes; then
  8963. version_type=linux
  8964. else
  8965. version_type=irix
  8966. fi ;;
  8967. esac
  8968. need_lib_prefix=no
  8969. need_version=no
  8970. soname_spec='${libname}${release}${shared_ext}$major'
  8971. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8972. case $host_os in
  8973. irix5* | nonstopux*)
  8974. libsuff= shlibsuff=
  8975. ;;
  8976. *)
  8977. case $LD in # libtool.m4 will add one of these switches to LD
  8978. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8979. libsuff= shlibsuff= libmagic=32-bit;;
  8980. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8981. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8982. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8983. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8984. *) libsuff= shlibsuff= libmagic=never-match;;
  8985. esac
  8986. ;;
  8987. esac
  8988. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8989. shlibpath_overrides_runpath=no
  8990. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8991. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8992. hardcode_into_libs=yes
  8993. ;;
  8994. # No shared lib support for Linux oldld, aout, or coff.
  8995. linux*oldld* | linux*aout* | linux*coff*)
  8996. dynamic_linker=no
  8997. ;;
  8998. # This must be Linux ELF.
  8999. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9000. version_type=linux
  9001. need_lib_prefix=no
  9002. need_version=no
  9003. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9004. soname_spec='${libname}${release}${shared_ext}$major'
  9005. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9006. shlibpath_var=LD_LIBRARY_PATH
  9007. shlibpath_overrides_runpath=no
  9008. # Some binutils ld are patched to set DT_RUNPATH
  9009. save_LDFLAGS=$LDFLAGS
  9010. save_libdir=$libdir
  9011. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9012. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9014. /* end confdefs.h. */
  9015. int
  9016. main ()
  9017. {
  9018. ;
  9019. return 0;
  9020. }
  9021. _ACEOF
  9022. if ac_fn_c_try_link "$LINENO"; then :
  9023. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9024. shlibpath_overrides_runpath=yes
  9025. fi
  9026. fi
  9027. rm -f core conftest.err conftest.$ac_objext \
  9028. conftest$ac_exeext conftest.$ac_ext
  9029. LDFLAGS=$save_LDFLAGS
  9030. libdir=$save_libdir
  9031. # This implies no fast_install, which is unacceptable.
  9032. # Some rework will be needed to allow for fast_install
  9033. # before this can be enabled.
  9034. hardcode_into_libs=yes
  9035. # Append ld.so.conf contents to the search path
  9036. if test -f /etc/ld.so.conf; then
  9037. 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;/^$/d' | tr '\n' ' '`
  9038. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9039. fi
  9040. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9041. # powerpc, because MkLinux only supported shared libraries with the
  9042. # GNU dynamic linker. Since this was broken with cross compilers,
  9043. # most powerpc-linux boxes support dynamic linking these days and
  9044. # people can always --disable-shared, the test was removed, and we
  9045. # assume the GNU/Linux dynamic linker is in use.
  9046. dynamic_linker='GNU/Linux ld.so'
  9047. ;;
  9048. netbsdelf*-gnu)
  9049. version_type=linux
  9050. need_lib_prefix=no
  9051. need_version=no
  9052. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9053. soname_spec='${libname}${release}${shared_ext}$major'
  9054. shlibpath_var=LD_LIBRARY_PATH
  9055. shlibpath_overrides_runpath=no
  9056. hardcode_into_libs=yes
  9057. dynamic_linker='NetBSD ld.elf_so'
  9058. ;;
  9059. netbsd*)
  9060. version_type=sunos
  9061. need_lib_prefix=no
  9062. need_version=no
  9063. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9065. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9066. dynamic_linker='NetBSD (a.out) ld.so'
  9067. else
  9068. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9069. soname_spec='${libname}${release}${shared_ext}$major'
  9070. dynamic_linker='NetBSD ld.elf_so'
  9071. fi
  9072. shlibpath_var=LD_LIBRARY_PATH
  9073. shlibpath_overrides_runpath=yes
  9074. hardcode_into_libs=yes
  9075. ;;
  9076. newsos6)
  9077. version_type=linux
  9078. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9079. shlibpath_var=LD_LIBRARY_PATH
  9080. shlibpath_overrides_runpath=yes
  9081. ;;
  9082. *nto* | *qnx*)
  9083. version_type=qnx
  9084. need_lib_prefix=no
  9085. need_version=no
  9086. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9087. soname_spec='${libname}${release}${shared_ext}$major'
  9088. shlibpath_var=LD_LIBRARY_PATH
  9089. shlibpath_overrides_runpath=no
  9090. hardcode_into_libs=yes
  9091. dynamic_linker='ldqnx.so'
  9092. ;;
  9093. openbsd*)
  9094. version_type=sunos
  9095. sys_lib_dlsearch_path_spec="/usr/lib"
  9096. need_lib_prefix=no
  9097. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9098. case $host_os in
  9099. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9100. *) need_version=no ;;
  9101. esac
  9102. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9103. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9104. shlibpath_var=LD_LIBRARY_PATH
  9105. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9106. case $host_os in
  9107. openbsd2.[89] | openbsd2.[89].*)
  9108. shlibpath_overrides_runpath=no
  9109. ;;
  9110. *)
  9111. shlibpath_overrides_runpath=yes
  9112. ;;
  9113. esac
  9114. else
  9115. shlibpath_overrides_runpath=yes
  9116. fi
  9117. ;;
  9118. os2*)
  9119. libname_spec='$name'
  9120. shrext_cmds=".dll"
  9121. need_lib_prefix=no
  9122. library_names_spec='$libname${shared_ext} $libname.a'
  9123. dynamic_linker='OS/2 ld.exe'
  9124. shlibpath_var=LIBPATH
  9125. ;;
  9126. osf3* | osf4* | osf5*)
  9127. version_type=osf
  9128. need_lib_prefix=no
  9129. need_version=no
  9130. soname_spec='${libname}${release}${shared_ext}$major'
  9131. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9132. shlibpath_var=LD_LIBRARY_PATH
  9133. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9134. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9135. ;;
  9136. rdos*)
  9137. dynamic_linker=no
  9138. ;;
  9139. solaris*)
  9140. version_type=linux
  9141. need_lib_prefix=no
  9142. need_version=no
  9143. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9144. soname_spec='${libname}${release}${shared_ext}$major'
  9145. shlibpath_var=LD_LIBRARY_PATH
  9146. shlibpath_overrides_runpath=yes
  9147. hardcode_into_libs=yes
  9148. # ldd complains unless libraries are executable
  9149. postinstall_cmds='chmod +x $lib'
  9150. ;;
  9151. sunos4*)
  9152. version_type=sunos
  9153. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9154. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9155. shlibpath_var=LD_LIBRARY_PATH
  9156. shlibpath_overrides_runpath=yes
  9157. if test "$with_gnu_ld" = yes; then
  9158. need_lib_prefix=no
  9159. fi
  9160. need_version=yes
  9161. ;;
  9162. sysv4 | sysv4.3*)
  9163. version_type=linux
  9164. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9165. soname_spec='${libname}${release}${shared_ext}$major'
  9166. shlibpath_var=LD_LIBRARY_PATH
  9167. case $host_vendor in
  9168. sni)
  9169. shlibpath_overrides_runpath=no
  9170. need_lib_prefix=no
  9171. runpath_var=LD_RUN_PATH
  9172. ;;
  9173. siemens)
  9174. need_lib_prefix=no
  9175. ;;
  9176. motorola)
  9177. need_lib_prefix=no
  9178. need_version=no
  9179. shlibpath_overrides_runpath=no
  9180. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9181. ;;
  9182. esac
  9183. ;;
  9184. sysv4*MP*)
  9185. if test -d /usr/nec ;then
  9186. version_type=linux
  9187. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9188. soname_spec='$libname${shared_ext}.$major'
  9189. shlibpath_var=LD_LIBRARY_PATH
  9190. fi
  9191. ;;
  9192. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9193. version_type=freebsd-elf
  9194. need_lib_prefix=no
  9195. need_version=no
  9196. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9197. soname_spec='${libname}${release}${shared_ext}$major'
  9198. shlibpath_var=LD_LIBRARY_PATH
  9199. shlibpath_overrides_runpath=yes
  9200. hardcode_into_libs=yes
  9201. if test "$with_gnu_ld" = yes; then
  9202. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9203. else
  9204. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9205. case $host_os in
  9206. sco3.2v5*)
  9207. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9208. ;;
  9209. esac
  9210. fi
  9211. sys_lib_dlsearch_path_spec='/usr/lib'
  9212. ;;
  9213. tpf*)
  9214. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9215. version_type=linux
  9216. need_lib_prefix=no
  9217. need_version=no
  9218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9219. shlibpath_var=LD_LIBRARY_PATH
  9220. shlibpath_overrides_runpath=no
  9221. hardcode_into_libs=yes
  9222. ;;
  9223. uts4*)
  9224. version_type=linux
  9225. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9226. soname_spec='${libname}${release}${shared_ext}$major'
  9227. shlibpath_var=LD_LIBRARY_PATH
  9228. ;;
  9229. *)
  9230. dynamic_linker=no
  9231. ;;
  9232. esac
  9233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9234. $as_echo "$dynamic_linker" >&6; }
  9235. test "$dynamic_linker" = no && can_build_shared=no
  9236. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9237. if test "$GCC" = yes; then
  9238. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9239. fi
  9240. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9241. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9242. fi
  9243. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9244. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9245. fi
  9246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9247. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9248. hardcode_action=
  9249. if test -n "$hardcode_libdir_flag_spec" ||
  9250. test -n "$runpath_var" ||
  9251. test "X$hardcode_automatic" = "Xyes" ; then
  9252. # We can hardcode non-existent directories.
  9253. if test "$hardcode_direct" != no &&
  9254. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9255. # have to relink, otherwise we might link with an installed library
  9256. # when we should be linking with a yet-to-be-installed one
  9257. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9258. test "$hardcode_minus_L" != no; then
  9259. # Linking always hardcodes the temporary library directory.
  9260. hardcode_action=relink
  9261. else
  9262. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9263. hardcode_action=immediate
  9264. fi
  9265. else
  9266. # We cannot hardcode anything, or else we can only hardcode existing
  9267. # directories.
  9268. hardcode_action=unsupported
  9269. fi
  9270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9271. $as_echo "$hardcode_action" >&6; }
  9272. if test "$hardcode_action" = relink ||
  9273. test "$inherit_rpath" = yes; then
  9274. # Fast installation is not supported
  9275. enable_fast_install=no
  9276. elif test "$shlibpath_overrides_runpath" = yes ||
  9277. test "$enable_shared" = no; then
  9278. # Fast installation is not necessary
  9279. enable_fast_install=needless
  9280. fi
  9281. if test "x$enable_dlopen" != xyes; then
  9282. enable_dlopen=unknown
  9283. enable_dlopen_self=unknown
  9284. enable_dlopen_self_static=unknown
  9285. else
  9286. lt_cv_dlopen=no
  9287. lt_cv_dlopen_libs=
  9288. case $host_os in
  9289. beos*)
  9290. lt_cv_dlopen="load_add_on"
  9291. lt_cv_dlopen_libs=
  9292. lt_cv_dlopen_self=yes
  9293. ;;
  9294. mingw* | pw32* | cegcc*)
  9295. lt_cv_dlopen="LoadLibrary"
  9296. lt_cv_dlopen_libs=
  9297. ;;
  9298. cygwin*)
  9299. lt_cv_dlopen="dlopen"
  9300. lt_cv_dlopen_libs=
  9301. ;;
  9302. darwin*)
  9303. # if libdl is installed we need to link against it
  9304. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9305. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9306. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9307. $as_echo_n "(cached) " >&6
  9308. else
  9309. ac_check_lib_save_LIBS=$LIBS
  9310. LIBS="-ldl $LIBS"
  9311. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9312. /* end confdefs.h. */
  9313. /* Override any GCC internal prototype to avoid an error.
  9314. Use char because int might match the return type of a GCC
  9315. builtin and then its argument prototype would still apply. */
  9316. #ifdef __cplusplus
  9317. extern "C"
  9318. #endif
  9319. char dlopen ();
  9320. int
  9321. main ()
  9322. {
  9323. return dlopen ();
  9324. ;
  9325. return 0;
  9326. }
  9327. _ACEOF
  9328. if ac_fn_c_try_link "$LINENO"; then :
  9329. ac_cv_lib_dl_dlopen=yes
  9330. else
  9331. ac_cv_lib_dl_dlopen=no
  9332. fi
  9333. rm -f core conftest.err conftest.$ac_objext \
  9334. conftest$ac_exeext conftest.$ac_ext
  9335. LIBS=$ac_check_lib_save_LIBS
  9336. fi
  9337. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9338. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9339. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9340. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9341. else
  9342. lt_cv_dlopen="dyld"
  9343. lt_cv_dlopen_libs=
  9344. lt_cv_dlopen_self=yes
  9345. fi
  9346. ;;
  9347. *)
  9348. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9349. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9350. lt_cv_dlopen="shl_load"
  9351. else
  9352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9353. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9354. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9355. $as_echo_n "(cached) " >&6
  9356. else
  9357. ac_check_lib_save_LIBS=$LIBS
  9358. LIBS="-ldld $LIBS"
  9359. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9360. /* end confdefs.h. */
  9361. /* Override any GCC internal prototype to avoid an error.
  9362. Use char because int might match the return type of a GCC
  9363. builtin and then its argument prototype would still apply. */
  9364. #ifdef __cplusplus
  9365. extern "C"
  9366. #endif
  9367. char shl_load ();
  9368. int
  9369. main ()
  9370. {
  9371. return shl_load ();
  9372. ;
  9373. return 0;
  9374. }
  9375. _ACEOF
  9376. if ac_fn_c_try_link "$LINENO"; then :
  9377. ac_cv_lib_dld_shl_load=yes
  9378. else
  9379. ac_cv_lib_dld_shl_load=no
  9380. fi
  9381. rm -f core conftest.err conftest.$ac_objext \
  9382. conftest$ac_exeext conftest.$ac_ext
  9383. LIBS=$ac_check_lib_save_LIBS
  9384. fi
  9385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9386. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9387. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9388. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9389. else
  9390. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9391. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9392. lt_cv_dlopen="dlopen"
  9393. else
  9394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9395. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9396. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9397. $as_echo_n "(cached) " >&6
  9398. else
  9399. ac_check_lib_save_LIBS=$LIBS
  9400. LIBS="-ldl $LIBS"
  9401. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9402. /* end confdefs.h. */
  9403. /* Override any GCC internal prototype to avoid an error.
  9404. Use char because int might match the return type of a GCC
  9405. builtin and then its argument prototype would still apply. */
  9406. #ifdef __cplusplus
  9407. extern "C"
  9408. #endif
  9409. char dlopen ();
  9410. int
  9411. main ()
  9412. {
  9413. return dlopen ();
  9414. ;
  9415. return 0;
  9416. }
  9417. _ACEOF
  9418. if ac_fn_c_try_link "$LINENO"; then :
  9419. ac_cv_lib_dl_dlopen=yes
  9420. else
  9421. ac_cv_lib_dl_dlopen=no
  9422. fi
  9423. rm -f core conftest.err conftest.$ac_objext \
  9424. conftest$ac_exeext conftest.$ac_ext
  9425. LIBS=$ac_check_lib_save_LIBS
  9426. fi
  9427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9428. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9429. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9430. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9431. else
  9432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9433. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9434. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9435. $as_echo_n "(cached) " >&6
  9436. else
  9437. ac_check_lib_save_LIBS=$LIBS
  9438. LIBS="-lsvld $LIBS"
  9439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9440. /* end confdefs.h. */
  9441. /* Override any GCC internal prototype to avoid an error.
  9442. Use char because int might match the return type of a GCC
  9443. builtin and then its argument prototype would still apply. */
  9444. #ifdef __cplusplus
  9445. extern "C"
  9446. #endif
  9447. char dlopen ();
  9448. int
  9449. main ()
  9450. {
  9451. return dlopen ();
  9452. ;
  9453. return 0;
  9454. }
  9455. _ACEOF
  9456. if ac_fn_c_try_link "$LINENO"; then :
  9457. ac_cv_lib_svld_dlopen=yes
  9458. else
  9459. ac_cv_lib_svld_dlopen=no
  9460. fi
  9461. rm -f core conftest.err conftest.$ac_objext \
  9462. conftest$ac_exeext conftest.$ac_ext
  9463. LIBS=$ac_check_lib_save_LIBS
  9464. fi
  9465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9466. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9467. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9468. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9469. else
  9470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9471. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9472. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9473. $as_echo_n "(cached) " >&6
  9474. else
  9475. ac_check_lib_save_LIBS=$LIBS
  9476. LIBS="-ldld $LIBS"
  9477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9478. /* end confdefs.h. */
  9479. /* Override any GCC internal prototype to avoid an error.
  9480. Use char because int might match the return type of a GCC
  9481. builtin and then its argument prototype would still apply. */
  9482. #ifdef __cplusplus
  9483. extern "C"
  9484. #endif
  9485. char dld_link ();
  9486. int
  9487. main ()
  9488. {
  9489. return dld_link ();
  9490. ;
  9491. return 0;
  9492. }
  9493. _ACEOF
  9494. if ac_fn_c_try_link "$LINENO"; then :
  9495. ac_cv_lib_dld_dld_link=yes
  9496. else
  9497. ac_cv_lib_dld_dld_link=no
  9498. fi
  9499. rm -f core conftest.err conftest.$ac_objext \
  9500. conftest$ac_exeext conftest.$ac_ext
  9501. LIBS=$ac_check_lib_save_LIBS
  9502. fi
  9503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9504. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9505. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9506. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9507. fi
  9508. fi
  9509. fi
  9510. fi
  9511. fi
  9512. fi
  9513. ;;
  9514. esac
  9515. if test "x$lt_cv_dlopen" != xno; then
  9516. enable_dlopen=yes
  9517. else
  9518. enable_dlopen=no
  9519. fi
  9520. case $lt_cv_dlopen in
  9521. dlopen)
  9522. save_CPPFLAGS="$CPPFLAGS"
  9523. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9524. save_LDFLAGS="$LDFLAGS"
  9525. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9526. save_LIBS="$LIBS"
  9527. LIBS="$lt_cv_dlopen_libs $LIBS"
  9528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9529. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9530. if test "${lt_cv_dlopen_self+set}" = set; then :
  9531. $as_echo_n "(cached) " >&6
  9532. else
  9533. if test "$cross_compiling" = yes; then :
  9534. lt_cv_dlopen_self=cross
  9535. else
  9536. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9537. lt_status=$lt_dlunknown
  9538. cat > conftest.$ac_ext <<_LT_EOF
  9539. #line 11076 "configure"
  9540. #include "confdefs.h"
  9541. #if HAVE_DLFCN_H
  9542. #include <dlfcn.h>
  9543. #endif
  9544. #include <stdio.h>
  9545. #ifdef RTLD_GLOBAL
  9546. # define LT_DLGLOBAL RTLD_GLOBAL
  9547. #else
  9548. # ifdef DL_GLOBAL
  9549. # define LT_DLGLOBAL DL_GLOBAL
  9550. # else
  9551. # define LT_DLGLOBAL 0
  9552. # endif
  9553. #endif
  9554. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9555. find out it does not work in some platform. */
  9556. #ifndef LT_DLLAZY_OR_NOW
  9557. # ifdef RTLD_LAZY
  9558. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9559. # else
  9560. # ifdef DL_LAZY
  9561. # define LT_DLLAZY_OR_NOW DL_LAZY
  9562. # else
  9563. # ifdef RTLD_NOW
  9564. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9565. # else
  9566. # ifdef DL_NOW
  9567. # define LT_DLLAZY_OR_NOW DL_NOW
  9568. # else
  9569. # define LT_DLLAZY_OR_NOW 0
  9570. # endif
  9571. # endif
  9572. # endif
  9573. # endif
  9574. #endif
  9575. void fnord() { int i=42;}
  9576. int main ()
  9577. {
  9578. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9579. int status = $lt_dlunknown;
  9580. if (self)
  9581. {
  9582. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9583. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9584. /* dlclose (self); */
  9585. }
  9586. else
  9587. puts (dlerror ());
  9588. return status;
  9589. }
  9590. _LT_EOF
  9591. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9592. (eval $ac_link) 2>&5
  9593. ac_status=$?
  9594. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9595. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9596. (./conftest; exit; ) >&5 2>/dev/null
  9597. lt_status=$?
  9598. case x$lt_status in
  9599. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9600. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9601. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9602. esac
  9603. else :
  9604. # compilation failed
  9605. lt_cv_dlopen_self=no
  9606. fi
  9607. fi
  9608. rm -fr conftest*
  9609. fi
  9610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9611. $as_echo "$lt_cv_dlopen_self" >&6; }
  9612. if test "x$lt_cv_dlopen_self" = xyes; then
  9613. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9615. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9616. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9617. $as_echo_n "(cached) " >&6
  9618. else
  9619. if test "$cross_compiling" = yes; then :
  9620. lt_cv_dlopen_self_static=cross
  9621. else
  9622. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9623. lt_status=$lt_dlunknown
  9624. cat > conftest.$ac_ext <<_LT_EOF
  9625. #line 11172 "configure"
  9626. #include "confdefs.h"
  9627. #if HAVE_DLFCN_H
  9628. #include <dlfcn.h>
  9629. #endif
  9630. #include <stdio.h>
  9631. #ifdef RTLD_GLOBAL
  9632. # define LT_DLGLOBAL RTLD_GLOBAL
  9633. #else
  9634. # ifdef DL_GLOBAL
  9635. # define LT_DLGLOBAL DL_GLOBAL
  9636. # else
  9637. # define LT_DLGLOBAL 0
  9638. # endif
  9639. #endif
  9640. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9641. find out it does not work in some platform. */
  9642. #ifndef LT_DLLAZY_OR_NOW
  9643. # ifdef RTLD_LAZY
  9644. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9645. # else
  9646. # ifdef DL_LAZY
  9647. # define LT_DLLAZY_OR_NOW DL_LAZY
  9648. # else
  9649. # ifdef RTLD_NOW
  9650. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9651. # else
  9652. # ifdef DL_NOW
  9653. # define LT_DLLAZY_OR_NOW DL_NOW
  9654. # else
  9655. # define LT_DLLAZY_OR_NOW 0
  9656. # endif
  9657. # endif
  9658. # endif
  9659. # endif
  9660. #endif
  9661. void fnord() { int i=42;}
  9662. int main ()
  9663. {
  9664. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9665. int status = $lt_dlunknown;
  9666. if (self)
  9667. {
  9668. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9669. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9670. /* dlclose (self); */
  9671. }
  9672. else
  9673. puts (dlerror ());
  9674. return status;
  9675. }
  9676. _LT_EOF
  9677. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9678. (eval $ac_link) 2>&5
  9679. ac_status=$?
  9680. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9681. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9682. (./conftest; exit; ) >&5 2>/dev/null
  9683. lt_status=$?
  9684. case x$lt_status in
  9685. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9686. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9687. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9688. esac
  9689. else :
  9690. # compilation failed
  9691. lt_cv_dlopen_self_static=no
  9692. fi
  9693. fi
  9694. rm -fr conftest*
  9695. fi
  9696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9697. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9698. fi
  9699. CPPFLAGS="$save_CPPFLAGS"
  9700. LDFLAGS="$save_LDFLAGS"
  9701. LIBS="$save_LIBS"
  9702. ;;
  9703. esac
  9704. case $lt_cv_dlopen_self in
  9705. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9706. *) enable_dlopen_self=unknown ;;
  9707. esac
  9708. case $lt_cv_dlopen_self_static in
  9709. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9710. *) enable_dlopen_self_static=unknown ;;
  9711. esac
  9712. fi
  9713. striplib=
  9714. old_striplib=
  9715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9716. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9717. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9718. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9719. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9720. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9721. $as_echo "yes" >&6; }
  9722. else
  9723. # FIXME - insert some real tests, host_os isn't really good enough
  9724. case $host_os in
  9725. darwin*)
  9726. if test -n "$STRIP" ; then
  9727. striplib="$STRIP -x"
  9728. old_striplib="$STRIP -S"
  9729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9730. $as_echo "yes" >&6; }
  9731. else
  9732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9733. $as_echo "no" >&6; }
  9734. fi
  9735. ;;
  9736. *)
  9737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9738. $as_echo "no" >&6; }
  9739. ;;
  9740. esac
  9741. fi
  9742. # Report which library types will actually be built
  9743. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9744. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9746. $as_echo "$can_build_shared" >&6; }
  9747. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9748. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9749. test "$can_build_shared" = "no" && enable_shared=no
  9750. # On AIX, shared libraries and static libraries use the same namespace, and
  9751. # are all built from PIC.
  9752. case $host_os in
  9753. aix3*)
  9754. test "$enable_shared" = yes && enable_static=no
  9755. if test -n "$RANLIB"; then
  9756. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9757. postinstall_cmds='$RANLIB $lib'
  9758. fi
  9759. ;;
  9760. aix[4-9]*)
  9761. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9762. test "$enable_shared" = yes && enable_static=no
  9763. fi
  9764. ;;
  9765. esac
  9766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9767. $as_echo "$enable_shared" >&6; }
  9768. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9769. $as_echo_n "checking whether to build static libraries... " >&6; }
  9770. # Make sure either enable_shared or enable_static is yes.
  9771. test "$enable_shared" = yes || enable_static=yes
  9772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9773. $as_echo "$enable_static" >&6; }
  9774. fi
  9775. ac_ext=cpp
  9776. ac_cpp='$CXXCPP $CPPFLAGS'
  9777. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9778. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9779. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9780. CC="$lt_save_CC"
  9781. ac_ext=cpp
  9782. ac_cpp='$CXXCPP $CPPFLAGS'
  9783. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9784. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9785. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9786. archive_cmds_need_lc_CXX=no
  9787. allow_undefined_flag_CXX=
  9788. always_export_symbols_CXX=no
  9789. archive_expsym_cmds_CXX=
  9790. compiler_needs_object_CXX=no
  9791. export_dynamic_flag_spec_CXX=
  9792. hardcode_direct_CXX=no
  9793. hardcode_direct_absolute_CXX=no
  9794. hardcode_libdir_flag_spec_CXX=
  9795. hardcode_libdir_flag_spec_ld_CXX=
  9796. hardcode_libdir_separator_CXX=
  9797. hardcode_minus_L_CXX=no
  9798. hardcode_shlibpath_var_CXX=unsupported
  9799. hardcode_automatic_CXX=no
  9800. inherit_rpath_CXX=no
  9801. module_cmds_CXX=
  9802. module_expsym_cmds_CXX=
  9803. link_all_deplibs_CXX=unknown
  9804. old_archive_cmds_CXX=$old_archive_cmds
  9805. no_undefined_flag_CXX=
  9806. whole_archive_flag_spec_CXX=
  9807. enable_shared_with_static_runtimes_CXX=no
  9808. # Source file extension for C++ test sources.
  9809. ac_ext=cpp
  9810. # Object file extension for compiled C++ test sources.
  9811. objext=o
  9812. objext_CXX=$objext
  9813. # No sense in running all these tests if we already determined that
  9814. # the CXX compiler isn't working. Some variables (like enable_shared)
  9815. # are currently assumed to apply to all compilers on this platform,
  9816. # and will be corrupted by setting them based on a non-working compiler.
  9817. if test "$_lt_caught_CXX_error" != yes; then
  9818. # Code to be used in simple compile tests
  9819. lt_simple_compile_test_code="int some_variable = 0;"
  9820. # Code to be used in simple link tests
  9821. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9822. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9823. # If no C compiler was specified, use CC.
  9824. LTCC=${LTCC-"$CC"}
  9825. # If no C compiler flags were specified, use CFLAGS.
  9826. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  9827. # Allow CC to be a program name with arguments.
  9828. compiler=$CC
  9829. # save warnings/boilerplate of simple test code
  9830. ac_outfile=conftest.$ac_objext
  9831. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  9832. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9833. _lt_compiler_boilerplate=`cat conftest.err`
  9834. $RM conftest*
  9835. ac_outfile=conftest.$ac_objext
  9836. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  9837. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  9838. _lt_linker_boilerplate=`cat conftest.err`
  9839. $RM -r conftest*
  9840. # Allow CC to be a program name with arguments.
  9841. lt_save_CC=$CC
  9842. lt_save_LD=$LD
  9843. lt_save_GCC=$GCC
  9844. GCC=$GXX
  9845. lt_save_with_gnu_ld=$with_gnu_ld
  9846. lt_save_path_LD=$lt_cv_path_LD
  9847. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9848. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9849. else
  9850. $as_unset lt_cv_prog_gnu_ld
  9851. fi
  9852. if test -n "${lt_cv_path_LDCXX+set}"; then
  9853. lt_cv_path_LD=$lt_cv_path_LDCXX
  9854. else
  9855. $as_unset lt_cv_path_LD
  9856. fi
  9857. test -z "${LDCXX+set}" || LD=$LDCXX
  9858. CC=${CXX-"c++"}
  9859. compiler=$CC
  9860. compiler_CXX=$CC
  9861. for cc_temp in $compiler""; do
  9862. case $cc_temp in
  9863. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  9864. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  9865. \-*) ;;
  9866. *) break;;
  9867. esac
  9868. done
  9869. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  9870. if test -n "$compiler"; then
  9871. # We don't want -fno-exception when compiling C++ code, so set the
  9872. # no_builtin_flag separately
  9873. if test "$GXX" = yes; then
  9874. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  9875. else
  9876. lt_prog_compiler_no_builtin_flag_CXX=
  9877. fi
  9878. if test "$GXX" = yes; then
  9879. # Set up default GNU C++ configuration
  9880. # Check whether --with-gnu-ld was given.
  9881. if test "${with_gnu_ld+set}" = set; then :
  9882. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9883. else
  9884. with_gnu_ld=no
  9885. fi
  9886. ac_prog=ld
  9887. if test "$GCC" = yes; then
  9888. # Check if gcc -print-prog-name=ld gives a path.
  9889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  9890. $as_echo_n "checking for ld used by $CC... " >&6; }
  9891. case $host in
  9892. *-*-mingw*)
  9893. # gcc leaves a trailing carriage return which upsets mingw
  9894. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9895. *)
  9896. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9897. esac
  9898. case $ac_prog in
  9899. # Accept absolute paths.
  9900. [\\/]* | ?:[\\/]*)
  9901. re_direlt='/[^/][^/]*/\.\./'
  9902. # Canonicalize the pathname of ld
  9903. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  9904. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  9905. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  9906. done
  9907. test -z "$LD" && LD="$ac_prog"
  9908. ;;
  9909. "")
  9910. # If it fails, then pretend we aren't using GCC.
  9911. ac_prog=ld
  9912. ;;
  9913. *)
  9914. # If it is relative, then search for the first ld in PATH.
  9915. with_gnu_ld=unknown
  9916. ;;
  9917. esac
  9918. elif test "$with_gnu_ld" = yes; then
  9919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  9920. $as_echo_n "checking for GNU ld... " >&6; }
  9921. else
  9922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  9923. $as_echo_n "checking for non-GNU ld... " >&6; }
  9924. fi
  9925. if test "${lt_cv_path_LD+set}" = set; then :
  9926. $as_echo_n "(cached) " >&6
  9927. else
  9928. if test -z "$LD"; then
  9929. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9930. for ac_dir in $PATH; do
  9931. IFS="$lt_save_ifs"
  9932. test -z "$ac_dir" && ac_dir=.
  9933. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9934. lt_cv_path_LD="$ac_dir/$ac_prog"
  9935. # Check to see if the program is GNU ld. I'd rather use --version,
  9936. # but apparently some variants of GNU ld only accept -v.
  9937. # Break only if it was the GNU/non-GNU ld that we prefer.
  9938. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9939. *GNU* | *'with BFD'*)
  9940. test "$with_gnu_ld" != no && break
  9941. ;;
  9942. *)
  9943. test "$with_gnu_ld" != yes && break
  9944. ;;
  9945. esac
  9946. fi
  9947. done
  9948. IFS="$lt_save_ifs"
  9949. else
  9950. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9951. fi
  9952. fi
  9953. LD="$lt_cv_path_LD"
  9954. if test -n "$LD"; then
  9955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  9956. $as_echo "$LD" >&6; }
  9957. else
  9958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9959. $as_echo "no" >&6; }
  9960. fi
  9961. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  9962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  9963. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  9964. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  9965. $as_echo_n "(cached) " >&6
  9966. else
  9967. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9968. case `$LD -v 2>&1 </dev/null` in
  9969. *GNU* | *'with BFD'*)
  9970. lt_cv_prog_gnu_ld=yes
  9971. ;;
  9972. *)
  9973. lt_cv_prog_gnu_ld=no
  9974. ;;
  9975. esac
  9976. fi
  9977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  9978. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  9979. with_gnu_ld=$lt_cv_prog_gnu_ld
  9980. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9981. # archiving commands below assume that GNU ld is being used.
  9982. if test "$with_gnu_ld" = yes; then
  9983. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9984. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9985. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  9986. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  9987. # If archive_cmds runs LD, not CC, wlarc should be empty
  9988. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9989. # investigate it a little bit more. (MM)
  9990. wlarc='${wl}'
  9991. # ancient GNU ld didn't support --whole-archive et. al.
  9992. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9993. $GREP 'no-whole-archive' > /dev/null; then
  9994. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9995. else
  9996. whole_archive_flag_spec_CXX=
  9997. fi
  9998. else
  9999. with_gnu_ld=no
  10000. wlarc=
  10001. # A generic and very simple default shared library creation
  10002. # command for GNU C++ for the case where it uses the native
  10003. # linker, instead of GNU ld. If possible, this setting should
  10004. # overridden to take advantage of the native linker features on
  10005. # the platform it is being used on.
  10006. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10007. fi
  10008. # Commands to make compiler produce verbose output that lists
  10009. # what "hidden" libraries, object files and flags are used when
  10010. # linking a shared library.
  10011. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10012. else
  10013. GXX=no
  10014. with_gnu_ld=no
  10015. wlarc=
  10016. fi
  10017. # PORTME: fill in a description of your system's C++ link characteristics
  10018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10019. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10020. ld_shlibs_CXX=yes
  10021. case $host_os in
  10022. aix3*)
  10023. # FIXME: insert proper C++ library support
  10024. ld_shlibs_CXX=no
  10025. ;;
  10026. aix[4-9]*)
  10027. if test "$host_cpu" = ia64; then
  10028. # On IA64, the linker does run time linking by default, so we don't
  10029. # have to do anything special.
  10030. aix_use_runtimelinking=no
  10031. exp_sym_flag='-Bexport'
  10032. no_entry_flag=""
  10033. else
  10034. aix_use_runtimelinking=no
  10035. # Test if we are trying to use run time linking or normal
  10036. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10037. # need to do runtime linking.
  10038. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10039. for ld_flag in $LDFLAGS; do
  10040. case $ld_flag in
  10041. *-brtl*)
  10042. aix_use_runtimelinking=yes
  10043. break
  10044. ;;
  10045. esac
  10046. done
  10047. ;;
  10048. esac
  10049. exp_sym_flag='-bexport'
  10050. no_entry_flag='-bnoentry'
  10051. fi
  10052. # When large executables or shared objects are built, AIX ld can
  10053. # have problems creating the table of contents. If linking a library
  10054. # or program results in "error TOC overflow" add -mminimal-toc to
  10055. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10056. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10057. archive_cmds_CXX=''
  10058. hardcode_direct_CXX=yes
  10059. hardcode_direct_absolute_CXX=yes
  10060. hardcode_libdir_separator_CXX=':'
  10061. link_all_deplibs_CXX=yes
  10062. file_list_spec_CXX='${wl}-f,'
  10063. if test "$GXX" = yes; then
  10064. case $host_os in aix4.[012]|aix4.[012].*)
  10065. # We only want to do this on AIX 4.2 and lower, the check
  10066. # below for broken collect2 doesn't work under 4.3+
  10067. collect2name=`${CC} -print-prog-name=collect2`
  10068. if test -f "$collect2name" &&
  10069. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10070. then
  10071. # We have reworked collect2
  10072. :
  10073. else
  10074. # We have old collect2
  10075. hardcode_direct_CXX=unsupported
  10076. # It fails to find uninstalled libraries when the uninstalled
  10077. # path is not listed in the libpath. Setting hardcode_minus_L
  10078. # to unsupported forces relinking
  10079. hardcode_minus_L_CXX=yes
  10080. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10081. hardcode_libdir_separator_CXX=
  10082. fi
  10083. esac
  10084. shared_flag='-shared'
  10085. if test "$aix_use_runtimelinking" = yes; then
  10086. shared_flag="$shared_flag "'${wl}-G'
  10087. fi
  10088. else
  10089. # not using gcc
  10090. if test "$host_cpu" = ia64; then
  10091. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10092. # chokes on -Wl,-G. The following line is correct:
  10093. shared_flag='-G'
  10094. else
  10095. if test "$aix_use_runtimelinking" = yes; then
  10096. shared_flag='${wl}-G'
  10097. else
  10098. shared_flag='${wl}-bM:SRE'
  10099. fi
  10100. fi
  10101. fi
  10102. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10103. # It seems that -bexpall does not export symbols beginning with
  10104. # underscore (_), so it is better to generate a list of symbols to
  10105. # export.
  10106. always_export_symbols_CXX=yes
  10107. if test "$aix_use_runtimelinking" = yes; then
  10108. # Warning - without using the other runtime loading flags (-brtl),
  10109. # -berok will link without error, but may produce a broken library.
  10110. allow_undefined_flag_CXX='-berok'
  10111. # Determine the default libpath from the value encoded in an empty
  10112. # executable.
  10113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10114. /* end confdefs.h. */
  10115. int
  10116. main ()
  10117. {
  10118. ;
  10119. return 0;
  10120. }
  10121. _ACEOF
  10122. if ac_fn_cxx_try_link "$LINENO"; then :
  10123. lt_aix_libpath_sed='
  10124. /Import File Strings/,/^$/ {
  10125. /^0/ {
  10126. s/^0 *\(.*\)$/\1/
  10127. p
  10128. }
  10129. }'
  10130. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10131. # Check for a 64-bit object if we didn't find anything.
  10132. if test -z "$aix_libpath"; then
  10133. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10134. fi
  10135. fi
  10136. rm -f core conftest.err conftest.$ac_objext \
  10137. conftest$ac_exeext conftest.$ac_ext
  10138. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10139. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10140. 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10141. else
  10142. if test "$host_cpu" = ia64; then
  10143. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10144. allow_undefined_flag_CXX="-z nodefs"
  10145. 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"
  10146. else
  10147. # Determine the default libpath from the value encoded in an
  10148. # empty executable.
  10149. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10150. /* end confdefs.h. */
  10151. int
  10152. main ()
  10153. {
  10154. ;
  10155. return 0;
  10156. }
  10157. _ACEOF
  10158. if ac_fn_cxx_try_link "$LINENO"; then :
  10159. lt_aix_libpath_sed='
  10160. /Import File Strings/,/^$/ {
  10161. /^0/ {
  10162. s/^0 *\(.*\)$/\1/
  10163. p
  10164. }
  10165. }'
  10166. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10167. # Check for a 64-bit object if we didn't find anything.
  10168. if test -z "$aix_libpath"; then
  10169. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10170. fi
  10171. fi
  10172. rm -f core conftest.err conftest.$ac_objext \
  10173. conftest$ac_exeext conftest.$ac_ext
  10174. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10175. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10176. # Warning - without using the other run time loading flags,
  10177. # -berok will link without error, but may produce a broken library.
  10178. no_undefined_flag_CXX=' ${wl}-bernotok'
  10179. allow_undefined_flag_CXX=' ${wl}-berok'
  10180. # Exported symbols can be pulled into shared objects from archives
  10181. whole_archive_flag_spec_CXX='$convenience'
  10182. archive_cmds_need_lc_CXX=yes
  10183. # This is similar to how AIX traditionally builds its shared
  10184. # libraries.
  10185. 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'
  10186. fi
  10187. fi
  10188. ;;
  10189. beos*)
  10190. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10191. allow_undefined_flag_CXX=unsupported
  10192. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10193. # support --undefined. This deserves some investigation. FIXME
  10194. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10195. else
  10196. ld_shlibs_CXX=no
  10197. fi
  10198. ;;
  10199. chorus*)
  10200. case $cc_basename in
  10201. *)
  10202. # FIXME: insert proper C++ library support
  10203. ld_shlibs_CXX=no
  10204. ;;
  10205. esac
  10206. ;;
  10207. cygwin* | mingw* | pw32* | cegcc*)
  10208. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10209. # as there is no search path for DLLs.
  10210. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10211. allow_undefined_flag_CXX=unsupported
  10212. always_export_symbols_CXX=no
  10213. enable_shared_with_static_runtimes_CXX=yes
  10214. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10215. 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'
  10216. # If the export-symbols file already is a .def file (1st line
  10217. # is EXPORTS), use it as is; otherwise, prepend...
  10218. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10219. cp $export_symbols $output_objdir/$soname.def;
  10220. else
  10221. echo EXPORTS > $output_objdir/$soname.def;
  10222. cat $export_symbols >> $output_objdir/$soname.def;
  10223. fi~
  10224. $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'
  10225. else
  10226. ld_shlibs_CXX=no
  10227. fi
  10228. ;;
  10229. darwin* | rhapsody*)
  10230. archive_cmds_need_lc_CXX=no
  10231. hardcode_direct_CXX=no
  10232. hardcode_automatic_CXX=yes
  10233. hardcode_shlibpath_var_CXX=unsupported
  10234. whole_archive_flag_spec_CXX=''
  10235. link_all_deplibs_CXX=yes
  10236. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10237. case $cc_basename in
  10238. ifort*) _lt_dar_can_shared=yes ;;
  10239. *) _lt_dar_can_shared=$GCC ;;
  10240. esac
  10241. if test "$_lt_dar_can_shared" = "yes"; then
  10242. output_verbose_link_cmd=echo
  10243. 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}"
  10244. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10245. 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}"
  10246. 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}"
  10247. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10248. 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}"
  10249. 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}"
  10250. fi
  10251. else
  10252. ld_shlibs_CXX=no
  10253. fi
  10254. ;;
  10255. dgux*)
  10256. case $cc_basename in
  10257. ec++*)
  10258. # FIXME: insert proper C++ library support
  10259. ld_shlibs_CXX=no
  10260. ;;
  10261. ghcx*)
  10262. # Green Hills C++ Compiler
  10263. # FIXME: insert proper C++ library support
  10264. ld_shlibs_CXX=no
  10265. ;;
  10266. *)
  10267. # FIXME: insert proper C++ library support
  10268. ld_shlibs_CXX=no
  10269. ;;
  10270. esac
  10271. ;;
  10272. freebsd[12]*)
  10273. # C++ shared libraries reported to be fairly broken before
  10274. # switch to ELF
  10275. ld_shlibs_CXX=no
  10276. ;;
  10277. freebsd-elf*)
  10278. archive_cmds_need_lc_CXX=no
  10279. ;;
  10280. freebsd* | dragonfly*)
  10281. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10282. # conventions
  10283. ld_shlibs_CXX=yes
  10284. ;;
  10285. gnu*)
  10286. ;;
  10287. hpux9*)
  10288. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10289. hardcode_libdir_separator_CXX=:
  10290. export_dynamic_flag_spec_CXX='${wl}-E'
  10291. hardcode_direct_CXX=yes
  10292. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10293. # but as the default
  10294. # location of the library.
  10295. case $cc_basename in
  10296. CC*)
  10297. # FIXME: insert proper C++ library support
  10298. ld_shlibs_CXX=no
  10299. ;;
  10300. aCC*)
  10301. 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'
  10302. # Commands to make compiler produce verbose output that lists
  10303. # what "hidden" libraries, object files and flags are used when
  10304. # linking a shared library.
  10305. #
  10306. # There doesn't appear to be a way to prevent this compiler from
  10307. # explicitly linking system object files so we need to strip them
  10308. # from the output so that they don't get included in the library
  10309. # dependencies.
  10310. 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; $ECHO "X$list" | $Xsed'
  10311. ;;
  10312. *)
  10313. if test "$GXX" = yes; then
  10314. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
  10315. else
  10316. # FIXME: insert proper C++ library support
  10317. ld_shlibs_CXX=no
  10318. fi
  10319. ;;
  10320. esac
  10321. ;;
  10322. hpux10*|hpux11*)
  10323. if test $with_gnu_ld = no; then
  10324. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10325. hardcode_libdir_separator_CXX=:
  10326. case $host_cpu in
  10327. hppa*64*|ia64*)
  10328. ;;
  10329. *)
  10330. export_dynamic_flag_spec_CXX='${wl}-E'
  10331. ;;
  10332. esac
  10333. fi
  10334. case $host_cpu in
  10335. hppa*64*|ia64*)
  10336. hardcode_direct_CXX=no
  10337. hardcode_shlibpath_var_CXX=no
  10338. ;;
  10339. *)
  10340. hardcode_direct_CXX=yes
  10341. hardcode_direct_absolute_CXX=yes
  10342. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10343. # but as the default
  10344. # location of the library.
  10345. ;;
  10346. esac
  10347. case $cc_basename in
  10348. CC*)
  10349. # FIXME: insert proper C++ library support
  10350. ld_shlibs_CXX=no
  10351. ;;
  10352. aCC*)
  10353. case $host_cpu in
  10354. hppa*64*)
  10355. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10356. ;;
  10357. ia64*)
  10358. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10359. ;;
  10360. *)
  10361. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10362. ;;
  10363. esac
  10364. # Commands to make compiler produce verbose output that lists
  10365. # what "hidden" libraries, object files and flags are used when
  10366. # linking a shared library.
  10367. #
  10368. # There doesn't appear to be a way to prevent this compiler from
  10369. # explicitly linking system object files so we need to strip them
  10370. # from the output so that they don't get included in the library
  10371. # dependencies.
  10372. 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; $ECHO "X$list" | $Xsed'
  10373. ;;
  10374. *)
  10375. if test "$GXX" = yes; then
  10376. if test $with_gnu_ld = no; then
  10377. case $host_cpu in
  10378. hppa*64*)
  10379. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10380. ;;
  10381. ia64*)
  10382. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10383. ;;
  10384. *)
  10385. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10386. ;;
  10387. esac
  10388. fi
  10389. else
  10390. # FIXME: insert proper C++ library support
  10391. ld_shlibs_CXX=no
  10392. fi
  10393. ;;
  10394. esac
  10395. ;;
  10396. interix[3-9]*)
  10397. hardcode_direct_CXX=no
  10398. hardcode_shlibpath_var_CXX=no
  10399. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10400. export_dynamic_flag_spec_CXX='${wl}-E'
  10401. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10402. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10403. # default) and relocated if they conflict, which is a slow very memory
  10404. # consuming and fragmenting process. To avoid this, we pick a random,
  10405. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10406. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10407. 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'
  10408. 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'
  10409. ;;
  10410. irix5* | irix6*)
  10411. case $cc_basename in
  10412. CC*)
  10413. # SGI C++
  10414. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10415. # Archives containing C++ object files must be created using
  10416. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10417. # necessary to make sure instantiated templates are included
  10418. # in the archive.
  10419. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10420. ;;
  10421. *)
  10422. if test "$GXX" = yes; then
  10423. if test "$with_gnu_ld" = no; then
  10424. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10425. else
  10426. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  10427. fi
  10428. fi
  10429. link_all_deplibs_CXX=yes
  10430. ;;
  10431. esac
  10432. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10433. hardcode_libdir_separator_CXX=:
  10434. inherit_rpath_CXX=yes
  10435. ;;
  10436. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10437. case $cc_basename in
  10438. KCC*)
  10439. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10440. # KCC will only create a shared library if the output file
  10441. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10442. # to its proper name (with version) after linking.
  10443. 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'
  10444. 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'
  10445. # Commands to make compiler produce verbose output that lists
  10446. # what "hidden" libraries, object files and flags are used when
  10447. # linking a shared library.
  10448. #
  10449. # There doesn't appear to be a way to prevent this compiler from
  10450. # explicitly linking system object files so we need to strip them
  10451. # from the output so that they don't get included in the library
  10452. # dependencies.
  10453. 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; $ECHO "X$list" | $Xsed'
  10454. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10455. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10456. # Archives containing C++ object files must be created using
  10457. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10458. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10459. ;;
  10460. icpc* | ecpc* )
  10461. # Intel C++
  10462. with_gnu_ld=yes
  10463. # version 8.0 and above of icpc choke on multiply defined symbols
  10464. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10465. # earlier do not add the objects themselves.
  10466. case `$CC -V 2>&1` in
  10467. *"Version 7."*)
  10468. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10469. 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'
  10470. ;;
  10471. *) # Version 8.0 or newer
  10472. tmp_idyn=
  10473. case $host_cpu in
  10474. ia64*) tmp_idyn=' -i_dynamic';;
  10475. esac
  10476. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10477. 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'
  10478. ;;
  10479. esac
  10480. archive_cmds_need_lc_CXX=no
  10481. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10482. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10483. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10484. ;;
  10485. pgCC* | pgcpp*)
  10486. # Portland Group C++ compiler
  10487. case `$CC -V` in
  10488. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  10489. prelink_cmds_CXX='tpldir=Template.dir~
  10490. rm -rf $tpldir~
  10491. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10492. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10493. old_archive_cmds_CXX='tpldir=Template.dir~
  10494. rm -rf $tpldir~
  10495. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10496. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10497. $RANLIB $oldlib'
  10498. archive_cmds_CXX='tpldir=Template.dir~
  10499. rm -rf $tpldir~
  10500. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10501. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10502. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10503. rm -rf $tpldir~
  10504. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10505. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10506. ;;
  10507. *) # Version 6 will use weak symbols
  10508. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10509. 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'
  10510. ;;
  10511. esac
  10512. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10513. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10514. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10515. ;;
  10516. cxx*)
  10517. # Compaq C++
  10518. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10519. 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'
  10520. runpath_var=LD_RUN_PATH
  10521. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10522. hardcode_libdir_separator_CXX=:
  10523. # Commands to make compiler produce verbose output that lists
  10524. # what "hidden" libraries, object files and flags are used when
  10525. # linking a shared library.
  10526. #
  10527. # There doesn't appear to be a way to prevent this compiler from
  10528. # explicitly linking system object files so we need to strip them
  10529. # from the output so that they don't get included in the library
  10530. # dependencies.
  10531. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10532. ;;
  10533. xl*)
  10534. # IBM XL 8.0 on PPC, with GNU ld
  10535. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10536. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10537. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10538. if test "x$supports_anon_versioning" = xyes; then
  10539. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10540. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10541. echo "local: *; };" >> $output_objdir/$libname.ver~
  10542. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10543. fi
  10544. ;;
  10545. *)
  10546. case `$CC -V 2>&1 | sed 5q` in
  10547. *Sun\ C*)
  10548. # Sun C++ 5.9
  10549. no_undefined_flag_CXX=' -zdefs'
  10550. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10551. 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'
  10552. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10553. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10554. compiler_needs_object_CXX=yes
  10555. # Not sure whether something based on
  10556. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10557. # would be better.
  10558. output_verbose_link_cmd='echo'
  10559. # Archives containing C++ object files must be created using
  10560. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10561. # necessary to make sure instantiated templates are included
  10562. # in the archive.
  10563. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10564. ;;
  10565. esac
  10566. ;;
  10567. esac
  10568. ;;
  10569. lynxos*)
  10570. # FIXME: insert proper C++ library support
  10571. ld_shlibs_CXX=no
  10572. ;;
  10573. m88k*)
  10574. # FIXME: insert proper C++ library support
  10575. ld_shlibs_CXX=no
  10576. ;;
  10577. mvs*)
  10578. case $cc_basename in
  10579. cxx*)
  10580. # FIXME: insert proper C++ library support
  10581. ld_shlibs_CXX=no
  10582. ;;
  10583. *)
  10584. # FIXME: insert proper C++ library support
  10585. ld_shlibs_CXX=no
  10586. ;;
  10587. esac
  10588. ;;
  10589. netbsd*)
  10590. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10591. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10592. wlarc=
  10593. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10594. hardcode_direct_CXX=yes
  10595. hardcode_shlibpath_var_CXX=no
  10596. fi
  10597. # Workaround some broken pre-1.5 toolchains
  10598. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10599. ;;
  10600. *nto* | *qnx*)
  10601. ld_shlibs_CXX=yes
  10602. ;;
  10603. openbsd2*)
  10604. # C++ shared libraries are fairly broken
  10605. ld_shlibs_CXX=no
  10606. ;;
  10607. openbsd*)
  10608. if test -f /usr/libexec/ld.so; then
  10609. hardcode_direct_CXX=yes
  10610. hardcode_shlibpath_var_CXX=no
  10611. hardcode_direct_absolute_CXX=yes
  10612. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10613. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10614. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10615. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10616. export_dynamic_flag_spec_CXX='${wl}-E'
  10617. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10618. fi
  10619. output_verbose_link_cmd=echo
  10620. else
  10621. ld_shlibs_CXX=no
  10622. fi
  10623. ;;
  10624. osf3* | osf4* | osf5*)
  10625. case $cc_basename in
  10626. KCC*)
  10627. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10628. # KCC will only create a shared library if the output file
  10629. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10630. # to its proper name (with version) after linking.
  10631. 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'
  10632. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10633. hardcode_libdir_separator_CXX=:
  10634. # Archives containing C++ object files must be created using
  10635. # the KAI C++ compiler.
  10636. case $host in
  10637. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10638. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10639. esac
  10640. ;;
  10641. RCC*)
  10642. # Rational C++ 2.4.1
  10643. # FIXME: insert proper C++ library support
  10644. ld_shlibs_CXX=no
  10645. ;;
  10646. cxx*)
  10647. case $host in
  10648. osf3*)
  10649. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10650. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10651. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10652. ;;
  10653. *)
  10654. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10655. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10656. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10657. echo "-hidden">> $lib.exp~
  10658. $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  10659. $RM $lib.exp'
  10660. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10661. ;;
  10662. esac
  10663. hardcode_libdir_separator_CXX=:
  10664. # Commands to make compiler produce verbose output that lists
  10665. # what "hidden" libraries, object files and flags are used when
  10666. # linking a shared library.
  10667. #
  10668. # There doesn't appear to be a way to prevent this compiler from
  10669. # explicitly linking system object files so we need to strip them
  10670. # from the output so that they don't get included in the library
  10671. # dependencies.
  10672. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10673. ;;
  10674. *)
  10675. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10676. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10677. case $host in
  10678. osf3*)
  10679. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10680. ;;
  10681. *)
  10682. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10683. ;;
  10684. esac
  10685. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10686. hardcode_libdir_separator_CXX=:
  10687. # Commands to make compiler produce verbose output that lists
  10688. # what "hidden" libraries, object files and flags are used when
  10689. # linking a shared library.
  10690. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10691. else
  10692. # FIXME: insert proper C++ library support
  10693. ld_shlibs_CXX=no
  10694. fi
  10695. ;;
  10696. esac
  10697. ;;
  10698. psos*)
  10699. # FIXME: insert proper C++ library support
  10700. ld_shlibs_CXX=no
  10701. ;;
  10702. sunos4*)
  10703. case $cc_basename in
  10704. CC*)
  10705. # Sun C++ 4.x
  10706. # FIXME: insert proper C++ library support
  10707. ld_shlibs_CXX=no
  10708. ;;
  10709. lcc*)
  10710. # Lucid
  10711. # FIXME: insert proper C++ library support
  10712. ld_shlibs_CXX=no
  10713. ;;
  10714. *)
  10715. # FIXME: insert proper C++ library support
  10716. ld_shlibs_CXX=no
  10717. ;;
  10718. esac
  10719. ;;
  10720. solaris*)
  10721. case $cc_basename in
  10722. CC*)
  10723. # Sun C++ 4.2, 5.x and Centerline C++
  10724. archive_cmds_need_lc_CXX=yes
  10725. no_undefined_flag_CXX=' -zdefs'
  10726. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10727. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10728. $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'
  10729. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10730. hardcode_shlibpath_var_CXX=no
  10731. case $host_os in
  10732. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10733. *)
  10734. # The compiler driver will combine and reorder linker options,
  10735. # but understands `-z linker_flag'.
  10736. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10737. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10738. ;;
  10739. esac
  10740. link_all_deplibs_CXX=yes
  10741. output_verbose_link_cmd='echo'
  10742. # Archives containing C++ object files must be created using
  10743. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10744. # necessary to make sure instantiated templates are included
  10745. # in the archive.
  10746. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10747. ;;
  10748. gcx*)
  10749. # Green Hills C++ Compiler
  10750. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10751. # The C++ compiler must be used to create the archive.
  10752. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10753. ;;
  10754. *)
  10755. # GNU C++ compiler with Solaris linker
  10756. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10757. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10758. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10759. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10760. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10761. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10762. # Commands to make compiler produce verbose output that lists
  10763. # what "hidden" libraries, object files and flags are used when
  10764. # linking a shared library.
  10765. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10766. else
  10767. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10768. # platform.
  10769. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10770. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10771. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10772. # Commands to make compiler produce verbose output that lists
  10773. # what "hidden" libraries, object files and flags are used when
  10774. # linking a shared library.
  10775. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10776. fi
  10777. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10778. case $host_os in
  10779. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10780. *)
  10781. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10782. ;;
  10783. esac
  10784. fi
  10785. ;;
  10786. esac
  10787. ;;
  10788. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10789. no_undefined_flag_CXX='${wl}-z,text'
  10790. archive_cmds_need_lc_CXX=no
  10791. hardcode_shlibpath_var_CXX=no
  10792. runpath_var='LD_RUN_PATH'
  10793. case $cc_basename in
  10794. CC*)
  10795. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10796. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10797. ;;
  10798. *)
  10799. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10800. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10801. ;;
  10802. esac
  10803. ;;
  10804. sysv5* | sco3.2v5* | sco5v6*)
  10805. # Note: We can NOT use -z defs as we might desire, because we do not
  10806. # link with -lc, and that would cause any symbols used from libc to
  10807. # always be unresolved, which means just about no library would
  10808. # ever link correctly. If we're not using GNU ld we use -z text
  10809. # though, which does catch some bad symbols but isn't as heavy-handed
  10810. # as -z defs.
  10811. no_undefined_flag_CXX='${wl}-z,text'
  10812. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10813. archive_cmds_need_lc_CXX=no
  10814. hardcode_shlibpath_var_CXX=no
  10815. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  10816. hardcode_libdir_separator_CXX=':'
  10817. link_all_deplibs_CXX=yes
  10818. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10819. runpath_var='LD_RUN_PATH'
  10820. case $cc_basename in
  10821. CC*)
  10822. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10823. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10824. ;;
  10825. *)
  10826. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10827. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10828. ;;
  10829. esac
  10830. ;;
  10831. tandem*)
  10832. case $cc_basename in
  10833. NCC*)
  10834. # NonStop-UX NCC 3.20
  10835. # FIXME: insert proper C++ library support
  10836. ld_shlibs_CXX=no
  10837. ;;
  10838. *)
  10839. # FIXME: insert proper C++ library support
  10840. ld_shlibs_CXX=no
  10841. ;;
  10842. esac
  10843. ;;
  10844. vxworks*)
  10845. # FIXME: insert proper C++ library support
  10846. ld_shlibs_CXX=no
  10847. ;;
  10848. *)
  10849. # FIXME: insert proper C++ library support
  10850. ld_shlibs_CXX=no
  10851. ;;
  10852. esac
  10853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  10854. $as_echo "$ld_shlibs_CXX" >&6; }
  10855. test "$ld_shlibs_CXX" = no && can_build_shared=no
  10856. GCC_CXX="$GXX"
  10857. LD_CXX="$LD"
  10858. ## CAVEAT EMPTOR:
  10859. ## There is no encapsulation within the following macros, do not change
  10860. ## the running order or otherwise move them around unless you know exactly
  10861. ## what you are doing...
  10862. # Dependencies to place before and after the object being linked:
  10863. predep_objects_CXX=
  10864. postdep_objects_CXX=
  10865. predeps_CXX=
  10866. postdeps_CXX=
  10867. compiler_lib_search_path_CXX=
  10868. cat > conftest.$ac_ext <<_LT_EOF
  10869. class Foo
  10870. {
  10871. public:
  10872. Foo (void) { a = 0; }
  10873. private:
  10874. int a;
  10875. };
  10876. _LT_EOF
  10877. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10878. (eval $ac_compile) 2>&5
  10879. ac_status=$?
  10880. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10881. test $ac_status = 0; }; then
  10882. # Parse the compiler output and extract the necessary
  10883. # objects, libraries and library flags.
  10884. # Sentinel used to keep track of whether or not we are before
  10885. # the conftest object file.
  10886. pre_test_object_deps_done=no
  10887. for p in `eval "$output_verbose_link_cmd"`; do
  10888. case $p in
  10889. -L* | -R* | -l*)
  10890. # Some compilers place space between "-{L,R}" and the path.
  10891. # Remove the space.
  10892. if test $p = "-L" ||
  10893. test $p = "-R"; then
  10894. prev=$p
  10895. continue
  10896. else
  10897. prev=
  10898. fi
  10899. if test "$pre_test_object_deps_done" = no; then
  10900. case $p in
  10901. -L* | -R*)
  10902. # Internal compiler library paths should come after those
  10903. # provided the user. The postdeps already come after the
  10904. # user supplied libs so there is no need to process them.
  10905. if test -z "$compiler_lib_search_path_CXX"; then
  10906. compiler_lib_search_path_CXX="${prev}${p}"
  10907. else
  10908. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  10909. fi
  10910. ;;
  10911. # The "-l" case would never come before the object being
  10912. # linked, so don't bother handling this case.
  10913. esac
  10914. else
  10915. if test -z "$postdeps_CXX"; then
  10916. postdeps_CXX="${prev}${p}"
  10917. else
  10918. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  10919. fi
  10920. fi
  10921. ;;
  10922. *.$objext)
  10923. # This assumes that the test object file only shows up
  10924. # once in the compiler output.
  10925. if test "$p" = "conftest.$objext"; then
  10926. pre_test_object_deps_done=yes
  10927. continue
  10928. fi
  10929. if test "$pre_test_object_deps_done" = no; then
  10930. if test -z "$predep_objects_CXX"; then
  10931. predep_objects_CXX="$p"
  10932. else
  10933. predep_objects_CXX="$predep_objects_CXX $p"
  10934. fi
  10935. else
  10936. if test -z "$postdep_objects_CXX"; then
  10937. postdep_objects_CXX="$p"
  10938. else
  10939. postdep_objects_CXX="$postdep_objects_CXX $p"
  10940. fi
  10941. fi
  10942. ;;
  10943. *) ;; # Ignore the rest.
  10944. esac
  10945. done
  10946. # Clean up.
  10947. rm -f a.out a.exe
  10948. else
  10949. echo "libtool.m4: error: problem compiling CXX test program"
  10950. fi
  10951. $RM -f confest.$objext
  10952. # PORTME: override above test on systems where it is broken
  10953. case $host_os in
  10954. interix[3-9]*)
  10955. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10956. # hack all around it, let's just trust "g++" to DTRT.
  10957. predep_objects_CXX=
  10958. postdep_objects_CXX=
  10959. postdeps_CXX=
  10960. ;;
  10961. linux*)
  10962. case `$CC -V 2>&1 | sed 5q` in
  10963. *Sun\ C*)
  10964. # Sun C++ 5.9
  10965. # The more standards-conforming stlport4 library is
  10966. # incompatible with the Cstd library. Avoid specifying
  10967. # it if it's in CXXFLAGS. Ignore libCrun as
  10968. # -library=stlport4 depends on it.
  10969. case " $CXX $CXXFLAGS " in
  10970. *" -library=stlport4 "*)
  10971. solaris_use_stlport4=yes
  10972. ;;
  10973. esac
  10974. if test "$solaris_use_stlport4" != yes; then
  10975. postdeps_CXX='-library=Cstd -library=Crun'
  10976. fi
  10977. ;;
  10978. esac
  10979. ;;
  10980. solaris*)
  10981. case $cc_basename in
  10982. CC*)
  10983. # The more standards-conforming stlport4 library is
  10984. # incompatible with the Cstd library. Avoid specifying
  10985. # it if it's in CXXFLAGS. Ignore libCrun as
  10986. # -library=stlport4 depends on it.
  10987. case " $CXX $CXXFLAGS " in
  10988. *" -library=stlport4 "*)
  10989. solaris_use_stlport4=yes
  10990. ;;
  10991. esac
  10992. # Adding this requires a known-good setup of shared libraries for
  10993. # Sun compiler versions before 5.6, else PIC objects from an old
  10994. # archive will be linked into the output, leading to subtle bugs.
  10995. if test "$solaris_use_stlport4" != yes; then
  10996. postdeps_CXX='-library=Cstd -library=Crun'
  10997. fi
  10998. ;;
  10999. esac
  11000. ;;
  11001. esac
  11002. case " $postdeps_CXX " in
  11003. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11004. esac
  11005. compiler_lib_search_dirs_CXX=
  11006. if test -n "${compiler_lib_search_path_CXX}"; then
  11007. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11008. fi
  11009. lt_prog_compiler_wl_CXX=
  11010. lt_prog_compiler_pic_CXX=
  11011. lt_prog_compiler_static_CXX=
  11012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11013. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11014. # C++ specific cases for pic, static, wl, etc.
  11015. if test "$GXX" = yes; then
  11016. lt_prog_compiler_wl_CXX='-Wl,'
  11017. lt_prog_compiler_static_CXX='-static'
  11018. case $host_os in
  11019. aix*)
  11020. # All AIX code is PIC.
  11021. if test "$host_cpu" = ia64; then
  11022. # AIX 5 now supports IA64 processor
  11023. lt_prog_compiler_static_CXX='-Bstatic'
  11024. fi
  11025. ;;
  11026. amigaos*)
  11027. case $host_cpu in
  11028. powerpc)
  11029. # see comment about AmigaOS4 .so support
  11030. lt_prog_compiler_pic_CXX='-fPIC'
  11031. ;;
  11032. m68k)
  11033. # FIXME: we need at least 68020 code to build shared libraries, but
  11034. # adding the `-m68020' flag to GCC prevents building anything better,
  11035. # like `-m68040'.
  11036. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11037. ;;
  11038. esac
  11039. ;;
  11040. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11041. # PIC is the default for these OSes.
  11042. ;;
  11043. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11044. # This hack is so that the source file can tell whether it is being
  11045. # built for inclusion in a dll (and should export symbols for example).
  11046. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11047. # (--disable-auto-import) libraries
  11048. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11049. ;;
  11050. darwin* | rhapsody*)
  11051. # PIC is the default on this platform
  11052. # Common symbols not allowed in MH_DYLIB files
  11053. lt_prog_compiler_pic_CXX='-fno-common'
  11054. ;;
  11055. *djgpp*)
  11056. # DJGPP does not support shared libraries at all
  11057. lt_prog_compiler_pic_CXX=
  11058. ;;
  11059. interix[3-9]*)
  11060. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11061. # Instead, we relocate shared libraries at runtime.
  11062. ;;
  11063. sysv4*MP*)
  11064. if test -d /usr/nec; then
  11065. lt_prog_compiler_pic_CXX=-Kconform_pic
  11066. fi
  11067. ;;
  11068. hpux*)
  11069. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11070. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11071. # sets the default TLS model and affects inlining.
  11072. case $host_cpu in
  11073. hppa*64*)
  11074. ;;
  11075. *)
  11076. lt_prog_compiler_pic_CXX='-fPIC'
  11077. ;;
  11078. esac
  11079. ;;
  11080. *qnx* | *nto*)
  11081. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11082. # it will coredump.
  11083. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11084. ;;
  11085. *)
  11086. lt_prog_compiler_pic_CXX='-fPIC'
  11087. ;;
  11088. esac
  11089. else
  11090. case $host_os in
  11091. aix[4-9]*)
  11092. # All AIX code is PIC.
  11093. if test "$host_cpu" = ia64; then
  11094. # AIX 5 now supports IA64 processor
  11095. lt_prog_compiler_static_CXX='-Bstatic'
  11096. else
  11097. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11098. fi
  11099. ;;
  11100. chorus*)
  11101. case $cc_basename in
  11102. cxch68*)
  11103. # Green Hills C++ Compiler
  11104. # _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"
  11105. ;;
  11106. esac
  11107. ;;
  11108. dgux*)
  11109. case $cc_basename in
  11110. ec++*)
  11111. lt_prog_compiler_pic_CXX='-KPIC'
  11112. ;;
  11113. ghcx*)
  11114. # Green Hills C++ Compiler
  11115. lt_prog_compiler_pic_CXX='-pic'
  11116. ;;
  11117. *)
  11118. ;;
  11119. esac
  11120. ;;
  11121. freebsd* | dragonfly*)
  11122. # FreeBSD uses GNU C++
  11123. ;;
  11124. hpux9* | hpux10* | hpux11*)
  11125. case $cc_basename in
  11126. CC*)
  11127. lt_prog_compiler_wl_CXX='-Wl,'
  11128. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11129. if test "$host_cpu" != ia64; then
  11130. lt_prog_compiler_pic_CXX='+Z'
  11131. fi
  11132. ;;
  11133. aCC*)
  11134. lt_prog_compiler_wl_CXX='-Wl,'
  11135. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11136. case $host_cpu in
  11137. hppa*64*|ia64*)
  11138. # +Z the default
  11139. ;;
  11140. *)
  11141. lt_prog_compiler_pic_CXX='+Z'
  11142. ;;
  11143. esac
  11144. ;;
  11145. *)
  11146. ;;
  11147. esac
  11148. ;;
  11149. interix*)
  11150. # This is c89, which is MS Visual C++ (no shared libs)
  11151. # Anyone wants to do a port?
  11152. ;;
  11153. irix5* | irix6* | nonstopux*)
  11154. case $cc_basename in
  11155. CC*)
  11156. lt_prog_compiler_wl_CXX='-Wl,'
  11157. lt_prog_compiler_static_CXX='-non_shared'
  11158. # CC pic flag -KPIC is the default.
  11159. ;;
  11160. *)
  11161. ;;
  11162. esac
  11163. ;;
  11164. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11165. case $cc_basename in
  11166. KCC*)
  11167. # KAI C++ Compiler
  11168. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11169. lt_prog_compiler_pic_CXX='-fPIC'
  11170. ;;
  11171. ecpc* )
  11172. # old Intel C++ for x86_64 which still supported -KPIC.
  11173. lt_prog_compiler_wl_CXX='-Wl,'
  11174. lt_prog_compiler_pic_CXX='-KPIC'
  11175. lt_prog_compiler_static_CXX='-static'
  11176. ;;
  11177. icpc* )
  11178. # Intel C++, used to be incompatible with GCC.
  11179. # ICC 10 doesn't accept -KPIC any more.
  11180. lt_prog_compiler_wl_CXX='-Wl,'
  11181. lt_prog_compiler_pic_CXX='-fPIC'
  11182. lt_prog_compiler_static_CXX='-static'
  11183. ;;
  11184. pgCC* | pgcpp*)
  11185. # Portland Group C++ compiler
  11186. lt_prog_compiler_wl_CXX='-Wl,'
  11187. lt_prog_compiler_pic_CXX='-fpic'
  11188. lt_prog_compiler_static_CXX='-Bstatic'
  11189. ;;
  11190. cxx*)
  11191. # Compaq C++
  11192. # Make sure the PIC flag is empty. It appears that all Alpha
  11193. # Linux and Compaq Tru64 Unix objects are PIC.
  11194. lt_prog_compiler_pic_CXX=
  11195. lt_prog_compiler_static_CXX='-non_shared'
  11196. ;;
  11197. xlc* | xlC*)
  11198. # IBM XL 8.0 on PPC
  11199. lt_prog_compiler_wl_CXX='-Wl,'
  11200. lt_prog_compiler_pic_CXX='-qpic'
  11201. lt_prog_compiler_static_CXX='-qstaticlink'
  11202. ;;
  11203. *)
  11204. case `$CC -V 2>&1 | sed 5q` in
  11205. *Sun\ C*)
  11206. # Sun C++ 5.9
  11207. lt_prog_compiler_pic_CXX='-KPIC'
  11208. lt_prog_compiler_static_CXX='-Bstatic'
  11209. lt_prog_compiler_wl_CXX='-Qoption ld '
  11210. ;;
  11211. esac
  11212. ;;
  11213. esac
  11214. ;;
  11215. lynxos*)
  11216. ;;
  11217. m88k*)
  11218. ;;
  11219. mvs*)
  11220. case $cc_basename in
  11221. cxx*)
  11222. lt_prog_compiler_pic_CXX='-W c,exportall'
  11223. ;;
  11224. *)
  11225. ;;
  11226. esac
  11227. ;;
  11228. netbsd* | netbsdelf*-gnu)
  11229. ;;
  11230. *qnx* | *nto*)
  11231. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11232. # it will coredump.
  11233. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11234. ;;
  11235. osf3* | osf4* | osf5*)
  11236. case $cc_basename in
  11237. KCC*)
  11238. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11239. ;;
  11240. RCC*)
  11241. # Rational C++ 2.4.1
  11242. lt_prog_compiler_pic_CXX='-pic'
  11243. ;;
  11244. cxx*)
  11245. # Digital/Compaq C++
  11246. lt_prog_compiler_wl_CXX='-Wl,'
  11247. # Make sure the PIC flag is empty. It appears that all Alpha
  11248. # Linux and Compaq Tru64 Unix objects are PIC.
  11249. lt_prog_compiler_pic_CXX=
  11250. lt_prog_compiler_static_CXX='-non_shared'
  11251. ;;
  11252. *)
  11253. ;;
  11254. esac
  11255. ;;
  11256. psos*)
  11257. ;;
  11258. solaris*)
  11259. case $cc_basename in
  11260. CC*)
  11261. # Sun C++ 4.2, 5.x and Centerline C++
  11262. lt_prog_compiler_pic_CXX='-KPIC'
  11263. lt_prog_compiler_static_CXX='-Bstatic'
  11264. lt_prog_compiler_wl_CXX='-Qoption ld '
  11265. ;;
  11266. gcx*)
  11267. # Green Hills C++ Compiler
  11268. lt_prog_compiler_pic_CXX='-PIC'
  11269. ;;
  11270. *)
  11271. ;;
  11272. esac
  11273. ;;
  11274. sunos4*)
  11275. case $cc_basename in
  11276. CC*)
  11277. # Sun C++ 4.x
  11278. lt_prog_compiler_pic_CXX='-pic'
  11279. lt_prog_compiler_static_CXX='-Bstatic'
  11280. ;;
  11281. lcc*)
  11282. # Lucid
  11283. lt_prog_compiler_pic_CXX='-pic'
  11284. ;;
  11285. *)
  11286. ;;
  11287. esac
  11288. ;;
  11289. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11290. case $cc_basename in
  11291. CC*)
  11292. lt_prog_compiler_wl_CXX='-Wl,'
  11293. lt_prog_compiler_pic_CXX='-KPIC'
  11294. lt_prog_compiler_static_CXX='-Bstatic'
  11295. ;;
  11296. esac
  11297. ;;
  11298. tandem*)
  11299. case $cc_basename in
  11300. NCC*)
  11301. # NonStop-UX NCC 3.20
  11302. lt_prog_compiler_pic_CXX='-KPIC'
  11303. ;;
  11304. *)
  11305. ;;
  11306. esac
  11307. ;;
  11308. vxworks*)
  11309. ;;
  11310. *)
  11311. lt_prog_compiler_can_build_shared_CXX=no
  11312. ;;
  11313. esac
  11314. fi
  11315. case $host_os in
  11316. # For platforms which do not support PIC, -DPIC is meaningless:
  11317. *djgpp*)
  11318. lt_prog_compiler_pic_CXX=
  11319. ;;
  11320. *)
  11321. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11322. ;;
  11323. esac
  11324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11325. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11326. #
  11327. # Check to make sure the PIC flag actually works.
  11328. #
  11329. if test -n "$lt_prog_compiler_pic_CXX"; then
  11330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11331. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11332. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11333. $as_echo_n "(cached) " >&6
  11334. else
  11335. lt_cv_prog_compiler_pic_works_CXX=no
  11336. ac_outfile=conftest.$ac_objext
  11337. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11338. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11339. # Insert the option either (1) after the last *FLAGS variable, or
  11340. # (2) before a word containing "conftest.", or (3) at the end.
  11341. # Note that $ac_compile itself does not contain backslashes and begins
  11342. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11343. # The option is referenced via a variable to avoid confusing sed.
  11344. lt_compile=`echo "$ac_compile" | $SED \
  11345. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11346. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11347. -e 's:$: $lt_compiler_flag:'`
  11348. (eval echo "\"\$as_me:13128: $lt_compile\"" >&5)
  11349. (eval "$lt_compile" 2>conftest.err)
  11350. ac_status=$?
  11351. cat conftest.err >&5
  11352. echo "$as_me:13132: \$? = $ac_status" >&5
  11353. if (exit $ac_status) && test -s "$ac_outfile"; then
  11354. # The compiler can only warn and ignore the option if not recognized
  11355. # So say no if there are warnings other than the usual output.
  11356. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11357. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11358. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11359. lt_cv_prog_compiler_pic_works_CXX=yes
  11360. fi
  11361. fi
  11362. $RM conftest*
  11363. fi
  11364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11365. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11366. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11367. case $lt_prog_compiler_pic_CXX in
  11368. "" | " "*) ;;
  11369. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11370. esac
  11371. else
  11372. lt_prog_compiler_pic_CXX=
  11373. lt_prog_compiler_can_build_shared_CXX=no
  11374. fi
  11375. fi
  11376. #
  11377. # Check to make sure the static flag actually works.
  11378. #
  11379. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11381. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11382. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11383. $as_echo_n "(cached) " >&6
  11384. else
  11385. lt_cv_prog_compiler_static_works_CXX=no
  11386. save_LDFLAGS="$LDFLAGS"
  11387. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11388. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11389. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11390. # The linker can only warn and ignore the option if not recognized
  11391. # So say no if there are warnings
  11392. if test -s conftest.err; then
  11393. # Append any errors to the config.log.
  11394. cat conftest.err 1>&5
  11395. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11396. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11397. if diff conftest.exp conftest.er2 >/dev/null; then
  11398. lt_cv_prog_compiler_static_works_CXX=yes
  11399. fi
  11400. else
  11401. lt_cv_prog_compiler_static_works_CXX=yes
  11402. fi
  11403. fi
  11404. $RM -r conftest*
  11405. LDFLAGS="$save_LDFLAGS"
  11406. fi
  11407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11408. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11409. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11410. :
  11411. else
  11412. lt_prog_compiler_static_CXX=
  11413. fi
  11414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11415. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11416. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11417. $as_echo_n "(cached) " >&6
  11418. else
  11419. lt_cv_prog_compiler_c_o_CXX=no
  11420. $RM -r conftest 2>/dev/null
  11421. mkdir conftest
  11422. cd conftest
  11423. mkdir out
  11424. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11425. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11426. # Insert the option either (1) after the last *FLAGS variable, or
  11427. # (2) before a word containing "conftest.", or (3) at the end.
  11428. # Note that $ac_compile itself does not contain backslashes and begins
  11429. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11430. lt_compile=`echo "$ac_compile" | $SED \
  11431. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11432. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11433. -e 's:$: $lt_compiler_flag:'`
  11434. (eval echo "\"\$as_me:13227: $lt_compile\"" >&5)
  11435. (eval "$lt_compile" 2>out/conftest.err)
  11436. ac_status=$?
  11437. cat out/conftest.err >&5
  11438. echo "$as_me:13231: \$? = $ac_status" >&5
  11439. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11440. then
  11441. # The compiler can only warn and ignore the option if not recognized
  11442. # So say no if there are warnings
  11443. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11444. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11445. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11446. lt_cv_prog_compiler_c_o_CXX=yes
  11447. fi
  11448. fi
  11449. chmod u+w . 2>&5
  11450. $RM conftest*
  11451. # SGI C++ compiler will create directory out/ii_files/ for
  11452. # template instantiation
  11453. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11454. $RM out/* && rmdir out
  11455. cd ..
  11456. $RM -r conftest
  11457. $RM conftest*
  11458. fi
  11459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11460. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11462. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11463. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11464. $as_echo_n "(cached) " >&6
  11465. else
  11466. lt_cv_prog_compiler_c_o_CXX=no
  11467. $RM -r conftest 2>/dev/null
  11468. mkdir conftest
  11469. cd conftest
  11470. mkdir out
  11471. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11472. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11473. # Insert the option either (1) after the last *FLAGS variable, or
  11474. # (2) before a word containing "conftest.", or (3) at the end.
  11475. # Note that $ac_compile itself does not contain backslashes and begins
  11476. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11477. lt_compile=`echo "$ac_compile" | $SED \
  11478. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11479. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11480. -e 's:$: $lt_compiler_flag:'`
  11481. (eval echo "\"\$as_me:13279: $lt_compile\"" >&5)
  11482. (eval "$lt_compile" 2>out/conftest.err)
  11483. ac_status=$?
  11484. cat out/conftest.err >&5
  11485. echo "$as_me:13283: \$? = $ac_status" >&5
  11486. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11487. then
  11488. # The compiler can only warn and ignore the option if not recognized
  11489. # So say no if there are warnings
  11490. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11491. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11492. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11493. lt_cv_prog_compiler_c_o_CXX=yes
  11494. fi
  11495. fi
  11496. chmod u+w . 2>&5
  11497. $RM conftest*
  11498. # SGI C++ compiler will create directory out/ii_files/ for
  11499. # template instantiation
  11500. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11501. $RM out/* && rmdir out
  11502. cd ..
  11503. $RM -r conftest
  11504. $RM conftest*
  11505. fi
  11506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11507. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11508. hard_links="nottested"
  11509. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11510. # do not overwrite the value of need_locks provided by the user
  11511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11512. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11513. hard_links=yes
  11514. $RM conftest*
  11515. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11516. touch conftest.a
  11517. ln conftest.a conftest.b 2>&5 || hard_links=no
  11518. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11520. $as_echo "$hard_links" >&6; }
  11521. if test "$hard_links" = no; then
  11522. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11523. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11524. need_locks=warn
  11525. fi
  11526. else
  11527. need_locks=no
  11528. fi
  11529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11530. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11531. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11532. case $host_os in
  11533. aix[4-9]*)
  11534. # If we're using GNU nm, then we don't want the "-C" option.
  11535. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11536. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11537. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11538. else
  11539. 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'
  11540. fi
  11541. ;;
  11542. pw32*)
  11543. export_symbols_cmds_CXX="$ltdll_cmds"
  11544. ;;
  11545. cygwin* | mingw* | cegcc*)
  11546. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  11547. ;;
  11548. linux* | k*bsd*-gnu)
  11549. link_all_deplibs_CXX=no
  11550. ;;
  11551. *)
  11552. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11553. ;;
  11554. esac
  11555. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11557. $as_echo "$ld_shlibs_CXX" >&6; }
  11558. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11559. with_gnu_ld_CXX=$with_gnu_ld
  11560. #
  11561. # Do we need to explicitly link libc?
  11562. #
  11563. case "x$archive_cmds_need_lc_CXX" in
  11564. x|xyes)
  11565. # Assume -lc should be added
  11566. archive_cmds_need_lc_CXX=yes
  11567. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11568. case $archive_cmds_CXX in
  11569. *'~'*)
  11570. # FIXME: we may have to deal with multi-command sequences.
  11571. ;;
  11572. '$CC '*)
  11573. # Test whether the compiler implicitly links with -lc since on some
  11574. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11575. # to ld, don't add -lc before -lgcc.
  11576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11577. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11578. $RM conftest*
  11579. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11580. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11581. (eval $ac_compile) 2>&5
  11582. ac_status=$?
  11583. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11584. test $ac_status = 0; } 2>conftest.err; then
  11585. soname=conftest
  11586. lib=conftest
  11587. libobjs=conftest.$ac_objext
  11588. deplibs=
  11589. wl=$lt_prog_compiler_wl_CXX
  11590. pic_flag=$lt_prog_compiler_pic_CXX
  11591. compiler_flags=-v
  11592. linker_flags=-v
  11593. verstring=
  11594. output_objdir=.
  11595. libname=conftest
  11596. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11597. allow_undefined_flag_CXX=
  11598. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11599. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11600. ac_status=$?
  11601. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11602. test $ac_status = 0; }
  11603. then
  11604. archive_cmds_need_lc_CXX=no
  11605. else
  11606. archive_cmds_need_lc_CXX=yes
  11607. fi
  11608. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11609. else
  11610. cat conftest.err 1>&5
  11611. fi
  11612. $RM conftest*
  11613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  11614. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  11615. ;;
  11616. esac
  11617. fi
  11618. ;;
  11619. esac
  11620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11621. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11622. library_names_spec=
  11623. libname_spec='lib$name'
  11624. soname_spec=
  11625. shrext_cmds=".so"
  11626. postinstall_cmds=
  11627. postuninstall_cmds=
  11628. finish_cmds=
  11629. finish_eval=
  11630. shlibpath_var=
  11631. shlibpath_overrides_runpath=unknown
  11632. version_type=none
  11633. dynamic_linker="$host_os ld.so"
  11634. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11635. need_lib_prefix=unknown
  11636. hardcode_into_libs=no
  11637. # when you set need_version to no, make sure it does not cause -set_version
  11638. # flags to be left without arguments
  11639. need_version=unknown
  11640. case $host_os in
  11641. aix3*)
  11642. version_type=linux
  11643. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11644. shlibpath_var=LIBPATH
  11645. # AIX 3 has no versioning support, so we append a major version to the name.
  11646. soname_spec='${libname}${release}${shared_ext}$major'
  11647. ;;
  11648. aix[4-9]*)
  11649. version_type=linux
  11650. need_lib_prefix=no
  11651. need_version=no
  11652. hardcode_into_libs=yes
  11653. if test "$host_cpu" = ia64; then
  11654. # AIX 5 supports IA64
  11655. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11656. shlibpath_var=LD_LIBRARY_PATH
  11657. else
  11658. # With GCC up to 2.95.x, collect2 would create an import file
  11659. # for dependence libraries. The import file would start with
  11660. # the line `#! .'. This would cause the generated library to
  11661. # depend on `.', always an invalid library. This was fixed in
  11662. # development snapshots of GCC prior to 3.0.
  11663. case $host_os in
  11664. aix4 | aix4.[01] | aix4.[01].*)
  11665. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11666. echo ' yes '
  11667. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11668. :
  11669. else
  11670. can_build_shared=no
  11671. fi
  11672. ;;
  11673. esac
  11674. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11675. # soname into executable. Probably we can add versioning support to
  11676. # collect2, so additional links can be useful in future.
  11677. if test "$aix_use_runtimelinking" = yes; then
  11678. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11679. # instead of lib<name>.a to let people know that these are not
  11680. # typical AIX shared libraries.
  11681. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11682. else
  11683. # We preserve .a as extension for shared libraries through AIX4.2
  11684. # and later when we are not doing run time linking.
  11685. library_names_spec='${libname}${release}.a $libname.a'
  11686. soname_spec='${libname}${release}${shared_ext}$major'
  11687. fi
  11688. shlibpath_var=LIBPATH
  11689. fi
  11690. ;;
  11691. amigaos*)
  11692. case $host_cpu in
  11693. powerpc)
  11694. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11695. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11696. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11697. ;;
  11698. m68k)
  11699. library_names_spec='$libname.ixlibrary $libname.a'
  11700. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11701. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
  11702. ;;
  11703. esac
  11704. ;;
  11705. beos*)
  11706. library_names_spec='${libname}${shared_ext}'
  11707. dynamic_linker="$host_os ld.so"
  11708. shlibpath_var=LIBRARY_PATH
  11709. ;;
  11710. bsdi[45]*)
  11711. version_type=linux
  11712. need_version=no
  11713. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11714. soname_spec='${libname}${release}${shared_ext}$major'
  11715. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11716. shlibpath_var=LD_LIBRARY_PATH
  11717. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11718. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11719. # the default ld.so.conf also contains /usr/contrib/lib and
  11720. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11721. # libtool to hard-code these into programs
  11722. ;;
  11723. cygwin* | mingw* | pw32* | cegcc*)
  11724. version_type=windows
  11725. shrext_cmds=".dll"
  11726. need_version=no
  11727. need_lib_prefix=no
  11728. case $GCC,$host_os in
  11729. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11730. library_names_spec='$libname.dll.a'
  11731. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11732. postinstall_cmds='base_file=`basename \${file}`~
  11733. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11734. dldir=$destdir/`dirname \$dlpath`~
  11735. test -d \$dldir || mkdir -p \$dldir~
  11736. $install_prog $dir/$dlname \$dldir/$dlname~
  11737. chmod a+x \$dldir/$dlname~
  11738. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11739. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11740. fi'
  11741. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11742. dlpath=$dir/\$dldll~
  11743. $RM \$dlpath'
  11744. shlibpath_overrides_runpath=yes
  11745. case $host_os in
  11746. cygwin*)
  11747. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11748. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11749. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11750. ;;
  11751. mingw* | cegcc*)
  11752. # MinGW DLLs use traditional 'lib' prefix
  11753. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11754. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11755. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11756. # It is most probably a Windows format PATH printed by
  11757. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11758. # path with ; separators, and with drive letters. We can handle the
  11759. # drive letters (cygwin fileutils understands them), so leave them,
  11760. # especially as we might pass files found there to a mingw objdump,
  11761. # which wouldn't understand a cygwinified path. Ahh.
  11762. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11763. else
  11764. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11765. fi
  11766. ;;
  11767. pw32*)
  11768. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11769. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11770. ;;
  11771. esac
  11772. ;;
  11773. *)
  11774. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11775. ;;
  11776. esac
  11777. dynamic_linker='Win32 ld.exe'
  11778. # FIXME: first we should search . and the directory the executable is in
  11779. shlibpath_var=PATH
  11780. ;;
  11781. darwin* | rhapsody*)
  11782. dynamic_linker="$host_os dyld"
  11783. version_type=darwin
  11784. need_lib_prefix=no
  11785. need_version=no
  11786. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11787. soname_spec='${libname}${release}${major}$shared_ext'
  11788. shlibpath_overrides_runpath=yes
  11789. shlibpath_var=DYLD_LIBRARY_PATH
  11790. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11791. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11792. ;;
  11793. dgux*)
  11794. version_type=linux
  11795. need_lib_prefix=no
  11796. need_version=no
  11797. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11798. soname_spec='${libname}${release}${shared_ext}$major'
  11799. shlibpath_var=LD_LIBRARY_PATH
  11800. ;;
  11801. freebsd1*)
  11802. dynamic_linker=no
  11803. ;;
  11804. freebsd* | dragonfly*)
  11805. # DragonFly does not have aout. When/if they implement a new
  11806. # versioning mechanism, adjust this.
  11807. if test -x /usr/bin/objformat; then
  11808. objformat=`/usr/bin/objformat`
  11809. else
  11810. case $host_os in
  11811. freebsd[123]*) objformat=aout ;;
  11812. *) objformat=elf ;;
  11813. esac
  11814. fi
  11815. version_type=freebsd-$objformat
  11816. case $version_type in
  11817. freebsd-elf*)
  11818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11819. need_version=no
  11820. need_lib_prefix=no
  11821. ;;
  11822. freebsd-*)
  11823. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11824. need_version=yes
  11825. ;;
  11826. esac
  11827. shlibpath_var=LD_LIBRARY_PATH
  11828. case $host_os in
  11829. freebsd2*)
  11830. shlibpath_overrides_runpath=yes
  11831. ;;
  11832. freebsd3.[01]* | freebsdelf3.[01]*)
  11833. shlibpath_overrides_runpath=yes
  11834. hardcode_into_libs=yes
  11835. ;;
  11836. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  11837. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  11838. shlibpath_overrides_runpath=no
  11839. hardcode_into_libs=yes
  11840. ;;
  11841. *) # from 4.6 on, and DragonFly
  11842. shlibpath_overrides_runpath=yes
  11843. hardcode_into_libs=yes
  11844. ;;
  11845. esac
  11846. ;;
  11847. gnu*)
  11848. version_type=linux
  11849. need_lib_prefix=no
  11850. need_version=no
  11851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  11852. soname_spec='${libname}${release}${shared_ext}$major'
  11853. shlibpath_var=LD_LIBRARY_PATH
  11854. hardcode_into_libs=yes
  11855. ;;
  11856. hpux9* | hpux10* | hpux11*)
  11857. # Give a soname corresponding to the major version so that dld.sl refuses to
  11858. # link against other versions.
  11859. version_type=sunos
  11860. need_lib_prefix=no
  11861. need_version=no
  11862. case $host_cpu in
  11863. ia64*)
  11864. shrext_cmds='.so'
  11865. hardcode_into_libs=yes
  11866. dynamic_linker="$host_os dld.so"
  11867. shlibpath_var=LD_LIBRARY_PATH
  11868. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11869. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11870. soname_spec='${libname}${release}${shared_ext}$major'
  11871. if test "X$HPUX_IA64_MODE" = X32; then
  11872. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  11873. else
  11874. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  11875. fi
  11876. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11877. ;;
  11878. hppa*64*)
  11879. shrext_cmds='.sl'
  11880. hardcode_into_libs=yes
  11881. dynamic_linker="$host_os dld.sl"
  11882. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  11883. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  11884. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11885. soname_spec='${libname}${release}${shared_ext}$major'
  11886. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  11887. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  11888. ;;
  11889. *)
  11890. shrext_cmds='.sl'
  11891. dynamic_linker="$host_os dld.sl"
  11892. shlibpath_var=SHLIB_PATH
  11893. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  11894. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11895. soname_spec='${libname}${release}${shared_ext}$major'
  11896. ;;
  11897. esac
  11898. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  11899. postinstall_cmds='chmod 555 $lib'
  11900. ;;
  11901. interix[3-9]*)
  11902. version_type=linux
  11903. need_lib_prefix=no
  11904. need_version=no
  11905. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  11906. soname_spec='${libname}${release}${shared_ext}$major'
  11907. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  11908. shlibpath_var=LD_LIBRARY_PATH
  11909. shlibpath_overrides_runpath=no
  11910. hardcode_into_libs=yes
  11911. ;;
  11912. irix5* | irix6* | nonstopux*)
  11913. case $host_os in
  11914. nonstopux*) version_type=nonstopux ;;
  11915. *)
  11916. if test "$lt_cv_prog_gnu_ld" = yes; then
  11917. version_type=linux
  11918. else
  11919. version_type=irix
  11920. fi ;;
  11921. esac
  11922. need_lib_prefix=no
  11923. need_version=no
  11924. soname_spec='${libname}${release}${shared_ext}$major'
  11925. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  11926. case $host_os in
  11927. irix5* | nonstopux*)
  11928. libsuff= shlibsuff=
  11929. ;;
  11930. *)
  11931. case $LD in # libtool.m4 will add one of these switches to LD
  11932. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  11933. libsuff= shlibsuff= libmagic=32-bit;;
  11934. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  11935. libsuff=32 shlibsuff=N32 libmagic=N32;;
  11936. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  11937. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  11938. *) libsuff= shlibsuff= libmagic=never-match;;
  11939. esac
  11940. ;;
  11941. esac
  11942. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  11943. shlibpath_overrides_runpath=no
  11944. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  11945. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  11946. hardcode_into_libs=yes
  11947. ;;
  11948. # No shared lib support for Linux oldld, aout, or coff.
  11949. linux*oldld* | linux*aout* | linux*coff*)
  11950. dynamic_linker=no
  11951. ;;
  11952. # This must be Linux ELF.
  11953. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11954. version_type=linux
  11955. need_lib_prefix=no
  11956. need_version=no
  11957. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11958. soname_spec='${libname}${release}${shared_ext}$major'
  11959. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  11960. shlibpath_var=LD_LIBRARY_PATH
  11961. shlibpath_overrides_runpath=no
  11962. # Some binutils ld are patched to set DT_RUNPATH
  11963. save_LDFLAGS=$LDFLAGS
  11964. save_libdir=$libdir
  11965. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  11966. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  11967. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11968. /* end confdefs.h. */
  11969. int
  11970. main ()
  11971. {
  11972. ;
  11973. return 0;
  11974. }
  11975. _ACEOF
  11976. if ac_fn_cxx_try_link "$LINENO"; then :
  11977. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  11978. shlibpath_overrides_runpath=yes
  11979. fi
  11980. fi
  11981. rm -f core conftest.err conftest.$ac_objext \
  11982. conftest$ac_exeext conftest.$ac_ext
  11983. LDFLAGS=$save_LDFLAGS
  11984. libdir=$save_libdir
  11985. # This implies no fast_install, which is unacceptable.
  11986. # Some rework will be needed to allow for fast_install
  11987. # before this can be enabled.
  11988. hardcode_into_libs=yes
  11989. # Append ld.so.conf contents to the search path
  11990. if test -f /etc/ld.so.conf; then
  11991. 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;/^$/d' | tr '\n' ' '`
  11992. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  11993. fi
  11994. # We used to test for /lib/ld.so.1 and disable shared libraries on
  11995. # powerpc, because MkLinux only supported shared libraries with the
  11996. # GNU dynamic linker. Since this was broken with cross compilers,
  11997. # most powerpc-linux boxes support dynamic linking these days and
  11998. # people can always --disable-shared, the test was removed, and we
  11999. # assume the GNU/Linux dynamic linker is in use.
  12000. dynamic_linker='GNU/Linux ld.so'
  12001. ;;
  12002. netbsdelf*-gnu)
  12003. version_type=linux
  12004. need_lib_prefix=no
  12005. need_version=no
  12006. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12007. soname_spec='${libname}${release}${shared_ext}$major'
  12008. shlibpath_var=LD_LIBRARY_PATH
  12009. shlibpath_overrides_runpath=no
  12010. hardcode_into_libs=yes
  12011. dynamic_linker='NetBSD ld.elf_so'
  12012. ;;
  12013. netbsd*)
  12014. version_type=sunos
  12015. need_lib_prefix=no
  12016. need_version=no
  12017. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12019. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12020. dynamic_linker='NetBSD (a.out) ld.so'
  12021. else
  12022. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12023. soname_spec='${libname}${release}${shared_ext}$major'
  12024. dynamic_linker='NetBSD ld.elf_so'
  12025. fi
  12026. shlibpath_var=LD_LIBRARY_PATH
  12027. shlibpath_overrides_runpath=yes
  12028. hardcode_into_libs=yes
  12029. ;;
  12030. newsos6)
  12031. version_type=linux
  12032. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12033. shlibpath_var=LD_LIBRARY_PATH
  12034. shlibpath_overrides_runpath=yes
  12035. ;;
  12036. *nto* | *qnx*)
  12037. version_type=qnx
  12038. need_lib_prefix=no
  12039. need_version=no
  12040. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12041. soname_spec='${libname}${release}${shared_ext}$major'
  12042. shlibpath_var=LD_LIBRARY_PATH
  12043. shlibpath_overrides_runpath=no
  12044. hardcode_into_libs=yes
  12045. dynamic_linker='ldqnx.so'
  12046. ;;
  12047. openbsd*)
  12048. version_type=sunos
  12049. sys_lib_dlsearch_path_spec="/usr/lib"
  12050. need_lib_prefix=no
  12051. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12052. case $host_os in
  12053. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12054. *) need_version=no ;;
  12055. esac
  12056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12057. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12058. shlibpath_var=LD_LIBRARY_PATH
  12059. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12060. case $host_os in
  12061. openbsd2.[89] | openbsd2.[89].*)
  12062. shlibpath_overrides_runpath=no
  12063. ;;
  12064. *)
  12065. shlibpath_overrides_runpath=yes
  12066. ;;
  12067. esac
  12068. else
  12069. shlibpath_overrides_runpath=yes
  12070. fi
  12071. ;;
  12072. os2*)
  12073. libname_spec='$name'
  12074. shrext_cmds=".dll"
  12075. need_lib_prefix=no
  12076. library_names_spec='$libname${shared_ext} $libname.a'
  12077. dynamic_linker='OS/2 ld.exe'
  12078. shlibpath_var=LIBPATH
  12079. ;;
  12080. osf3* | osf4* | osf5*)
  12081. version_type=osf
  12082. need_lib_prefix=no
  12083. need_version=no
  12084. soname_spec='${libname}${release}${shared_ext}$major'
  12085. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12086. shlibpath_var=LD_LIBRARY_PATH
  12087. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12088. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12089. ;;
  12090. rdos*)
  12091. dynamic_linker=no
  12092. ;;
  12093. solaris*)
  12094. version_type=linux
  12095. need_lib_prefix=no
  12096. need_version=no
  12097. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12098. soname_spec='${libname}${release}${shared_ext}$major'
  12099. shlibpath_var=LD_LIBRARY_PATH
  12100. shlibpath_overrides_runpath=yes
  12101. hardcode_into_libs=yes
  12102. # ldd complains unless libraries are executable
  12103. postinstall_cmds='chmod +x $lib'
  12104. ;;
  12105. sunos4*)
  12106. version_type=sunos
  12107. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12108. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12109. shlibpath_var=LD_LIBRARY_PATH
  12110. shlibpath_overrides_runpath=yes
  12111. if test "$with_gnu_ld" = yes; then
  12112. need_lib_prefix=no
  12113. fi
  12114. need_version=yes
  12115. ;;
  12116. sysv4 | sysv4.3*)
  12117. version_type=linux
  12118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12119. soname_spec='${libname}${release}${shared_ext}$major'
  12120. shlibpath_var=LD_LIBRARY_PATH
  12121. case $host_vendor in
  12122. sni)
  12123. shlibpath_overrides_runpath=no
  12124. need_lib_prefix=no
  12125. runpath_var=LD_RUN_PATH
  12126. ;;
  12127. siemens)
  12128. need_lib_prefix=no
  12129. ;;
  12130. motorola)
  12131. need_lib_prefix=no
  12132. need_version=no
  12133. shlibpath_overrides_runpath=no
  12134. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12135. ;;
  12136. esac
  12137. ;;
  12138. sysv4*MP*)
  12139. if test -d /usr/nec ;then
  12140. version_type=linux
  12141. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12142. soname_spec='$libname${shared_ext}.$major'
  12143. shlibpath_var=LD_LIBRARY_PATH
  12144. fi
  12145. ;;
  12146. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12147. version_type=freebsd-elf
  12148. need_lib_prefix=no
  12149. need_version=no
  12150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12151. soname_spec='${libname}${release}${shared_ext}$major'
  12152. shlibpath_var=LD_LIBRARY_PATH
  12153. shlibpath_overrides_runpath=yes
  12154. hardcode_into_libs=yes
  12155. if test "$with_gnu_ld" = yes; then
  12156. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12157. else
  12158. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12159. case $host_os in
  12160. sco3.2v5*)
  12161. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12162. ;;
  12163. esac
  12164. fi
  12165. sys_lib_dlsearch_path_spec='/usr/lib'
  12166. ;;
  12167. tpf*)
  12168. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12169. version_type=linux
  12170. need_lib_prefix=no
  12171. need_version=no
  12172. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12173. shlibpath_var=LD_LIBRARY_PATH
  12174. shlibpath_overrides_runpath=no
  12175. hardcode_into_libs=yes
  12176. ;;
  12177. uts4*)
  12178. version_type=linux
  12179. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12180. soname_spec='${libname}${release}${shared_ext}$major'
  12181. shlibpath_var=LD_LIBRARY_PATH
  12182. ;;
  12183. *)
  12184. dynamic_linker=no
  12185. ;;
  12186. esac
  12187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12188. $as_echo "$dynamic_linker" >&6; }
  12189. test "$dynamic_linker" = no && can_build_shared=no
  12190. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12191. if test "$GCC" = yes; then
  12192. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12193. fi
  12194. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12195. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12196. fi
  12197. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12198. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12199. fi
  12200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12201. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12202. hardcode_action_CXX=
  12203. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12204. test -n "$runpath_var_CXX" ||
  12205. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12206. # We can hardcode non-existent directories.
  12207. if test "$hardcode_direct_CXX" != no &&
  12208. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12209. # have to relink, otherwise we might link with an installed library
  12210. # when we should be linking with a yet-to-be-installed one
  12211. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12212. test "$hardcode_minus_L_CXX" != no; then
  12213. # Linking always hardcodes the temporary library directory.
  12214. hardcode_action_CXX=relink
  12215. else
  12216. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12217. hardcode_action_CXX=immediate
  12218. fi
  12219. else
  12220. # We cannot hardcode anything, or else we can only hardcode existing
  12221. # directories.
  12222. hardcode_action_CXX=unsupported
  12223. fi
  12224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12225. $as_echo "$hardcode_action_CXX" >&6; }
  12226. if test "$hardcode_action_CXX" = relink ||
  12227. test "$inherit_rpath_CXX" = yes; then
  12228. # Fast installation is not supported
  12229. enable_fast_install=no
  12230. elif test "$shlibpath_overrides_runpath" = yes ||
  12231. test "$enable_shared" = no; then
  12232. # Fast installation is not necessary
  12233. enable_fast_install=needless
  12234. fi
  12235. fi # test -n "$compiler"
  12236. CC=$lt_save_CC
  12237. LDCXX=$LD
  12238. LD=$lt_save_LD
  12239. GCC=$lt_save_GCC
  12240. with_gnu_ld=$lt_save_with_gnu_ld
  12241. lt_cv_path_LDCXX=$lt_cv_path_LD
  12242. lt_cv_path_LD=$lt_save_path_LD
  12243. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12244. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12245. fi # test "$_lt_caught_CXX_error" != yes
  12246. ac_ext=cpp
  12247. ac_cpp='$CXXCPP $CPPFLAGS'
  12248. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12249. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12250. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12251. ac_config_commands="$ac_config_commands libtool"
  12252. # Only expand once:
  12253. # TODO([email protected]): Currently we aren't running the Python tests
  12254. # against the interpreter detected by AM_PATH_PYTHON, and so we condition
  12255. # HAVE_PYTHON by requiring "python" to be in the PATH, and that interpreter's
  12256. # version to be >= 2.3. This will allow the scripts to use a "/usr/bin/env"
  12257. # hashbang.
  12258. PYTHON= # We *do not* allow the user to specify a python interpreter
  12259. # Extract the first word of "python", so it can be a program name with args.
  12260. set dummy python; ac_word=$2
  12261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12262. $as_echo_n "checking for $ac_word... " >&6; }
  12263. if test "${ac_cv_path_PYTHON+set}" = set; then :
  12264. $as_echo_n "(cached) " >&6
  12265. else
  12266. case $PYTHON in
  12267. [\\/]* | ?:[\\/]*)
  12268. ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  12269. ;;
  12270. *)
  12271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12272. for as_dir in $PATH
  12273. do
  12274. IFS=$as_save_IFS
  12275. test -z "$as_dir" && as_dir=.
  12276. for ac_exec_ext in '' $ac_executable_extensions; do
  12277. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12278. ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
  12279. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12280. break 2
  12281. fi
  12282. done
  12283. done
  12284. IFS=$as_save_IFS
  12285. test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=":"
  12286. ;;
  12287. esac
  12288. fi
  12289. PYTHON=$ac_cv_path_PYTHON
  12290. if test -n "$PYTHON"; then
  12291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
  12292. $as_echo "$PYTHON" >&6; }
  12293. else
  12294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12295. $as_echo "no" >&6; }
  12296. fi
  12297. if test "$PYTHON" != ":"; then :
  12298. prog="import sys
  12299. # split strings by '.' and convert to numeric. Append some zeros
  12300. # because we need at least 4 digits for the hex conversion.
  12301. # map returns an iterator in Python 3.0 and a list in 2.x
  12302. minver = list(map(int, '2.3'.split('.'))) + [0, 0, 0]
  12303. minverhex = 0
  12304. # xrange is not present in Python 3.0 and range returns an iterator
  12305. for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
  12306. sys.exit(sys.hexversion < minverhex)"
  12307. if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
  12308. ($PYTHON -c "$prog") >&5 2>&5
  12309. ac_status=$?
  12310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12311. (exit $ac_status); }; then :
  12312. :
  12313. else
  12314. PYTHON=":"
  12315. fi
  12316. fi
  12317. if test "$PYTHON" != ":"; then
  12318. HAVE_PYTHON_TRUE=
  12319. HAVE_PYTHON_FALSE='#'
  12320. else
  12321. HAVE_PYTHON_TRUE='#'
  12322. HAVE_PYTHON_FALSE=
  12323. fi
  12324. # Configure pthreads.
  12325. # Check whether --with-pthreads was given.
  12326. if test "${with_pthreads+set}" = set; then :
  12327. withval=$with_pthreads; with_pthreads=$withval
  12328. else
  12329. with_pthreads=check
  12330. fi
  12331. have_pthreads=no
  12332. if test "x$with_pthreads" != "xno"; then :
  12333. ac_ext=c
  12334. ac_cpp='$CPP $CPPFLAGS'
  12335. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12336. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12337. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12338. acx_pthread_ok=no
  12339. # We used to check for pthread.h first, but this fails if pthread.h
  12340. # requires special compiler flags (e.g. on True64 or Sequent).
  12341. # It gets checked for in the link test anyway.
  12342. # First of all, check if the user has set any of the PTHREAD_LIBS,
  12343. # etcetera environment variables, and if threads linking works using
  12344. # them:
  12345. if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
  12346. save_CFLAGS="$CFLAGS"
  12347. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  12348. save_LIBS="$LIBS"
  12349. LIBS="$PTHREAD_LIBS $LIBS"
  12350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
  12351. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
  12352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12353. /* end confdefs.h. */
  12354. /* Override any GCC internal prototype to avoid an error.
  12355. Use char because int might match the return type of a GCC
  12356. builtin and then its argument prototype would still apply. */
  12357. #ifdef __cplusplus
  12358. extern "C"
  12359. #endif
  12360. char pthread_join ();
  12361. int
  12362. main ()
  12363. {
  12364. return pthread_join ();
  12365. ;
  12366. return 0;
  12367. }
  12368. _ACEOF
  12369. if ac_fn_c_try_link "$LINENO"; then :
  12370. acx_pthread_ok=yes
  12371. fi
  12372. rm -f core conftest.err conftest.$ac_objext \
  12373. conftest$ac_exeext conftest.$ac_ext
  12374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  12375. $as_echo "$acx_pthread_ok" >&6; }
  12376. if test x"$acx_pthread_ok" = xno; then
  12377. PTHREAD_LIBS=""
  12378. PTHREAD_CFLAGS=""
  12379. fi
  12380. LIBS="$save_LIBS"
  12381. CFLAGS="$save_CFLAGS"
  12382. fi
  12383. # We must check for the threads library under a number of different
  12384. # names; the ordering is very important because some systems
  12385. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  12386. # libraries is broken (non-POSIX).
  12387. # Create a list of thread flags to try. Items starting with a "-" are
  12388. # C compiler flags, and other items are library names, except for "none"
  12389. # which indicates that we try without any flags at all, and "pthread-config"
  12390. # which is a program returning the flags for the Pth emulation library.
  12391. acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
  12392. # The ordering *is* (sometimes) important. Some notes on the
  12393. # individual items follow:
  12394. # pthreads: AIX (must check this before -lpthread)
  12395. # none: in case threads are in libc; should be tried before -Kthread and
  12396. # other compiler flags to prevent continual compiler warnings
  12397. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  12398. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  12399. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  12400. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  12401. # -pthreads: Solaris/gcc
  12402. # -mthreads: Mingw32/gcc, Lynx/gcc
  12403. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  12404. # doesn't hurt to check since this sometimes defines pthreads too;
  12405. # also defines -D_REENTRANT)
  12406. # ... -mt is also the pthreads flag for HP/aCC
  12407. # pthread: Linux, etcetera
  12408. # --thread-safe: KAI C++
  12409. # pthread-config: use pthread-config program (for GNU Pth library)
  12410. case "${host_cpu}-${host_os}" in
  12411. *solaris*)
  12412. # On Solaris (at least, for some versions), libc contains stubbed
  12413. # (non-functional) versions of the pthreads routines, so link-based
  12414. # tests will erroneously succeed. (We need to link with -pthreads/-mt/
  12415. # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
  12416. # a function called by this macro, so we could check for that, but
  12417. # who knows whether they'll stub that too in a future libc.) So,
  12418. # we'll just look for -pthreads and -lpthread first:
  12419. acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
  12420. ;;
  12421. esac
  12422. if test x"$acx_pthread_ok" = xno; then
  12423. for flag in $acx_pthread_flags; do
  12424. case $flag in
  12425. none)
  12426. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  12427. $as_echo_n "checking whether pthreads work without any flags... " >&6; }
  12428. ;;
  12429. -*)
  12430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  12431. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  12432. PTHREAD_CFLAGS="$flag"
  12433. ;;
  12434. pthread-config)
  12435. # Extract the first word of "pthread-config", so it can be a program name with args.
  12436. set dummy pthread-config; ac_word=$2
  12437. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12438. $as_echo_n "checking for $ac_word... " >&6; }
  12439. if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
  12440. $as_echo_n "(cached) " >&6
  12441. else
  12442. if test -n "$acx_pthread_config"; then
  12443. ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
  12444. else
  12445. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12446. for as_dir in $PATH
  12447. do
  12448. IFS=$as_save_IFS
  12449. test -z "$as_dir" && as_dir=.
  12450. for ac_exec_ext in '' $ac_executable_extensions; do
  12451. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12452. ac_cv_prog_acx_pthread_config="yes"
  12453. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12454. break 2
  12455. fi
  12456. done
  12457. done
  12458. IFS=$as_save_IFS
  12459. test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
  12460. fi
  12461. fi
  12462. acx_pthread_config=$ac_cv_prog_acx_pthread_config
  12463. if test -n "$acx_pthread_config"; then
  12464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
  12465. $as_echo "$acx_pthread_config" >&6; }
  12466. else
  12467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12468. $as_echo "no" >&6; }
  12469. fi
  12470. if test x"$acx_pthread_config" = xno; then continue; fi
  12471. PTHREAD_CFLAGS="`pthread-config --cflags`"
  12472. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
  12473. ;;
  12474. *)
  12475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  12476. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  12477. PTHREAD_LIBS="-l$flag"
  12478. ;;
  12479. esac
  12480. save_LIBS="$LIBS"
  12481. save_CFLAGS="$CFLAGS"
  12482. LIBS="$PTHREAD_LIBS $LIBS"
  12483. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  12484. # Check for various functions. We must include pthread.h,
  12485. # since some functions may be macros. (On the Sequent, we
  12486. # need a special flag -Kthread to make this header compile.)
  12487. # We check for pthread_join because it is in -lpthread on IRIX
  12488. # while pthread_create is in libc. We check for pthread_attr_init
  12489. # due to DEC craziness with -lpthreads. We check for
  12490. # pthread_cleanup_push because it is one of the few pthread
  12491. # functions on Solaris that doesn't have a non-functional libc stub.
  12492. # We try pthread_create on general principles.
  12493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12494. /* end confdefs.h. */
  12495. #include <pthread.h>
  12496. int
  12497. main ()
  12498. {
  12499. pthread_t th; pthread_join(th, 0);
  12500. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  12501. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  12502. ;
  12503. return 0;
  12504. }
  12505. _ACEOF
  12506. if ac_fn_c_try_link "$LINENO"; then :
  12507. acx_pthread_ok=yes
  12508. fi
  12509. rm -f core conftest.err conftest.$ac_objext \
  12510. conftest$ac_exeext conftest.$ac_ext
  12511. LIBS="$save_LIBS"
  12512. CFLAGS="$save_CFLAGS"
  12513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
  12514. $as_echo "$acx_pthread_ok" >&6; }
  12515. if test "x$acx_pthread_ok" = xyes; then
  12516. break;
  12517. fi
  12518. PTHREAD_LIBS=""
  12519. PTHREAD_CFLAGS=""
  12520. done
  12521. fi
  12522. # Various other checks:
  12523. if test "x$acx_pthread_ok" = xyes; then
  12524. save_LIBS="$LIBS"
  12525. LIBS="$PTHREAD_LIBS $LIBS"
  12526. save_CFLAGS="$CFLAGS"
  12527. CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
  12528. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  12529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  12530. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  12531. attr_name=unknown
  12532. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  12533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12534. /* end confdefs.h. */
  12535. #include <pthread.h>
  12536. int
  12537. main ()
  12538. {
  12539. int attr=$attr; return attr;
  12540. ;
  12541. return 0;
  12542. }
  12543. _ACEOF
  12544. if ac_fn_c_try_link "$LINENO"; then :
  12545. attr_name=$attr; break
  12546. fi
  12547. rm -f core conftest.err conftest.$ac_objext \
  12548. conftest$ac_exeext conftest.$ac_ext
  12549. done
  12550. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  12551. $as_echo "$attr_name" >&6; }
  12552. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
  12553. cat >>confdefs.h <<_ACEOF
  12554. #define PTHREAD_CREATE_JOINABLE $attr_name
  12555. _ACEOF
  12556. fi
  12557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  12558. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  12559. flag=no
  12560. case "${host_cpu}-${host_os}" in
  12561. *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
  12562. *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
  12563. esac
  12564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  12565. $as_echo "${flag}" >&6; }
  12566. if test "x$flag" != xno; then
  12567. PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
  12568. fi
  12569. LIBS="$save_LIBS"
  12570. CFLAGS="$save_CFLAGS"
  12571. # More AIX lossage: must compile with xlc_r or cc_r
  12572. if test x"$GCC" != xyes; then
  12573. for ac_prog in xlc_r cc_r
  12574. do
  12575. # Extract the first word of "$ac_prog", so it can be a program name with args.
  12576. set dummy $ac_prog; ac_word=$2
  12577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12578. $as_echo_n "checking for $ac_word... " >&6; }
  12579. if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
  12580. $as_echo_n "(cached) " >&6
  12581. else
  12582. if test -n "$PTHREAD_CC"; then
  12583. ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
  12584. else
  12585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12586. for as_dir in $PATH
  12587. do
  12588. IFS=$as_save_IFS
  12589. test -z "$as_dir" && as_dir=.
  12590. for ac_exec_ext in '' $ac_executable_extensions; do
  12591. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12592. ac_cv_prog_PTHREAD_CC="$ac_prog"
  12593. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12594. break 2
  12595. fi
  12596. done
  12597. done
  12598. IFS=$as_save_IFS
  12599. fi
  12600. fi
  12601. PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
  12602. if test -n "$PTHREAD_CC"; then
  12603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
  12604. $as_echo "$PTHREAD_CC" >&6; }
  12605. else
  12606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12607. $as_echo "no" >&6; }
  12608. fi
  12609. test -n "$PTHREAD_CC" && break
  12610. done
  12611. test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
  12612. else
  12613. PTHREAD_CC=$CC
  12614. fi
  12615. # The next part tries to detect GCC inconsistency with -shared on some
  12616. # architectures and systems. The problem is that in certain
  12617. # configurations, when -shared is specified, GCC "forgets" to
  12618. # internally use various flags which are still necessary.
  12619. #
  12620. # Prepare the flags
  12621. #
  12622. save_CFLAGS="$CFLAGS"
  12623. save_LIBS="$LIBS"
  12624. save_CC="$CC"
  12625. # Try with the flags determined by the earlier checks.
  12626. #
  12627. # -Wl,-z,defs forces link-time symbol resolution, so that the
  12628. # linking checks with -shared actually have any value
  12629. #
  12630. # FIXME: -fPIC is required for -shared on many architectures,
  12631. # so we specify it here, but the right way would probably be to
  12632. # properly detect whether it is actually required.
  12633. CFLAGS="-shared -fPIC -Wl,-z,defs $CFLAGS $PTHREAD_CFLAGS"
  12634. LIBS="$PTHREAD_LIBS $LIBS"
  12635. CC="$PTHREAD_CC"
  12636. # In order not to create several levels of indentation, we test
  12637. # the value of "$done" until we find the cure or run out of ideas.
  12638. done="no"
  12639. # First, make sure the CFLAGS we added are actually accepted by our
  12640. # compiler. If not (and OS X's ld, for instance, does not accept -z),
  12641. # then we can't do this test.
  12642. if test x"$done" = xno; then
  12643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to check for GCC pthread/shared inconsistencies" >&5
  12644. $as_echo_n "checking whether to check for GCC pthread/shared inconsistencies... " >&6; }
  12645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12646. /* end confdefs.h. */
  12647. int
  12648. main ()
  12649. {
  12650. ;
  12651. return 0;
  12652. }
  12653. _ACEOF
  12654. if ac_fn_c_try_link "$LINENO"; then :
  12655. else
  12656. done=yes
  12657. fi
  12658. rm -f core conftest.err conftest.$ac_objext \
  12659. conftest$ac_exeext conftest.$ac_ext
  12660. if test "x$done" = xyes ; then
  12661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12662. $as_echo "no" >&6; }
  12663. else
  12664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12665. $as_echo "yes" >&6; }
  12666. fi
  12667. fi
  12668. if test x"$done" = xno; then
  12669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -pthread is sufficient with -shared" >&5
  12670. $as_echo_n "checking whether -pthread is sufficient with -shared... " >&6; }
  12671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12672. /* end confdefs.h. */
  12673. #include <pthread.h>
  12674. int
  12675. main ()
  12676. {
  12677. pthread_t th; pthread_join(th, 0);
  12678. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  12679. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  12680. ;
  12681. return 0;
  12682. }
  12683. _ACEOF
  12684. if ac_fn_c_try_link "$LINENO"; then :
  12685. done=yes
  12686. fi
  12687. rm -f core conftest.err conftest.$ac_objext \
  12688. conftest$ac_exeext conftest.$ac_ext
  12689. if test "x$done" = xyes; then
  12690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12691. $as_echo "yes" >&6; }
  12692. else
  12693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12694. $as_echo "no" >&6; }
  12695. fi
  12696. fi
  12697. #
  12698. # Linux gcc on some architectures such as mips/mipsel forgets
  12699. # about -lpthread
  12700. #
  12701. if test x"$done" = xno; then
  12702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lpthread fixes that" >&5
  12703. $as_echo_n "checking whether -lpthread fixes that... " >&6; }
  12704. LIBS="-lpthread $PTHREAD_LIBS $save_LIBS"
  12705. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12706. /* end confdefs.h. */
  12707. #include <pthread.h>
  12708. int
  12709. main ()
  12710. {
  12711. pthread_t th; pthread_join(th, 0);
  12712. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  12713. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  12714. ;
  12715. return 0;
  12716. }
  12717. _ACEOF
  12718. if ac_fn_c_try_link "$LINENO"; then :
  12719. done=yes
  12720. fi
  12721. rm -f core conftest.err conftest.$ac_objext \
  12722. conftest$ac_exeext conftest.$ac_ext
  12723. if test "x$done" = xyes; then
  12724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12725. $as_echo "yes" >&6; }
  12726. PTHREAD_LIBS="-lpthread $PTHREAD_LIBS"
  12727. else
  12728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12729. $as_echo "no" >&6; }
  12730. fi
  12731. fi
  12732. #
  12733. # FreeBSD 4.10 gcc forgets to use -lc_r instead of -lc
  12734. #
  12735. if test x"$done" = xno; then
  12736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc_r fixes that" >&5
  12737. $as_echo_n "checking whether -lc_r fixes that... " >&6; }
  12738. LIBS="-lc_r $PTHREAD_LIBS $save_LIBS"
  12739. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12740. /* end confdefs.h. */
  12741. #include <pthread.h>
  12742. int
  12743. main ()
  12744. {
  12745. pthread_t th; pthread_join(th, 0);
  12746. pthread_attr_init(0); pthread_cleanup_push(0, 0);
  12747. pthread_create(0,0,0,0); pthread_cleanup_pop(0);
  12748. ;
  12749. return 0;
  12750. }
  12751. _ACEOF
  12752. if ac_fn_c_try_link "$LINENO"; then :
  12753. done=yes
  12754. fi
  12755. rm -f core conftest.err conftest.$ac_objext \
  12756. conftest$ac_exeext conftest.$ac_ext
  12757. if test "x$done" = xyes; then
  12758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12759. $as_echo "yes" >&6; }
  12760. PTHREAD_LIBS="-lc_r $PTHREAD_LIBS"
  12761. else
  12762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12763. $as_echo "no" >&6; }
  12764. fi
  12765. fi
  12766. if test x"$done" = xno; then
  12767. # OK, we have run out of ideas
  12768. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Impossible to determine how to use pthreads with shared libraries" >&5
  12769. $as_echo "$as_me: WARNING: Impossible to determine how to use pthreads with shared libraries" >&2;}
  12770. # so it's not safe to assume that we may use pthreads
  12771. acx_pthread_ok=no
  12772. fi
  12773. CFLAGS="$save_CFLAGS"
  12774. LIBS="$save_LIBS"
  12775. CC="$save_CC"
  12776. else
  12777. PTHREAD_CC="$CC"
  12778. fi
  12779. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  12780. if test x"$acx_pthread_ok" = xyes; then
  12781. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  12782. :
  12783. else
  12784. acx_pthread_ok=no
  12785. if test "x$with_pthreads" != "xcheck"; then :
  12786. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  12787. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  12788. as_fn_error "--with-pthreads was specified, but unable to be used
  12789. See \`config.log' for more details." "$LINENO" 5; }
  12790. fi
  12791. fi
  12792. ac_ext=cpp
  12793. ac_cpp='$CXXCPP $CPPFLAGS'
  12794. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12795. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12796. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12797. have_pthreads="$acx_pthread_ok"
  12798. fi
  12799. if test "x$have_pthreads" = "xyes"; then
  12800. HAVE_PTHREADS_TRUE=
  12801. HAVE_PTHREADS_FALSE='#'
  12802. else
  12803. HAVE_PTHREADS_TRUE='#'
  12804. HAVE_PTHREADS_FALSE=
  12805. fi
  12806. # TODO([email protected]) Check for the necessary system headers.
  12807. # TODO([email protected]) Check the types, structures, and other compiler
  12808. # and architecture characteristics.
  12809. # Output the generated files. No further autoconf macros may be used.
  12810. cat >confcache <<\_ACEOF
  12811. # This file is a shell script that caches the results of configure
  12812. # tests run on this system so they can be shared between configure
  12813. # scripts and configure runs, see configure's option --config-cache.
  12814. # It is not useful on other systems. If it contains results you don't
  12815. # want to keep, you may remove or edit it.
  12816. #
  12817. # config.status only pays attention to the cache file if you give it
  12818. # the --recheck option to rerun configure.
  12819. #
  12820. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12821. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12822. # following values.
  12823. _ACEOF
  12824. # The following way of writing the cache mishandles newlines in values,
  12825. # but we know of no workaround that is simple, portable, and efficient.
  12826. # So, we kill variables containing newlines.
  12827. # Ultrix sh set writes to stderr and can't be redirected directly,
  12828. # and sets the high bit in the cache file unless we assign to the vars.
  12829. (
  12830. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  12831. eval ac_val=\$$ac_var
  12832. case $ac_val in #(
  12833. *${as_nl}*)
  12834. case $ac_var in #(
  12835. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  12836. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  12837. esac
  12838. case $ac_var in #(
  12839. _ | IFS | as_nl) ;; #(
  12840. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  12841. *) { eval $ac_var=; unset $ac_var;} ;;
  12842. esac ;;
  12843. esac
  12844. done
  12845. (set) 2>&1 |
  12846. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  12847. *${as_nl}ac_space=\ *)
  12848. # `set' does not quote correctly, so add quotes: double-quote
  12849. # substitution turns \\\\ into \\, and sed turns \\ into \.
  12850. sed -n \
  12851. "s/'/'\\\\''/g;
  12852. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12853. ;; #(
  12854. *)
  12855. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12856. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  12857. ;;
  12858. esac |
  12859. sort
  12860. ) |
  12861. sed '
  12862. /^ac_cv_env_/b end
  12863. t clear
  12864. :clear
  12865. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12866. t end
  12867. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12868. :end' >>confcache
  12869. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  12870. if test -w "$cache_file"; then
  12871. test "x$cache_file" != "x/dev/null" &&
  12872. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  12873. $as_echo "$as_me: updating cache $cache_file" >&6;}
  12874. cat confcache >$cache_file
  12875. else
  12876. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  12877. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  12878. fi
  12879. fi
  12880. rm -f confcache
  12881. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12882. # Let make expand exec_prefix.
  12883. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12884. DEFS=-DHAVE_CONFIG_H
  12885. ac_libobjs=
  12886. ac_ltlibobjs=
  12887. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12888. # 1. Remove the extension, and $U if already installed.
  12889. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  12890. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  12891. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  12892. # will be set to the directory where LIBOBJS objects are built.
  12893. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  12894. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  12895. done
  12896. LIBOBJS=$ac_libobjs
  12897. LTLIBOBJS=$ac_ltlibobjs
  12898. if test -n "$EXEEXT"; then
  12899. am__EXEEXT_TRUE=
  12900. am__EXEEXT_FALSE='#'
  12901. else
  12902. am__EXEEXT_TRUE='#'
  12903. am__EXEEXT_FALSE=
  12904. fi
  12905. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  12906. as_fn_error "conditional \"AMDEP\" was never defined.
  12907. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12908. fi
  12909. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  12910. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  12911. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12912. fi
  12913. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12914. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  12915. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12916. fi
  12917. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  12918. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  12919. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12920. fi
  12921. if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
  12922. as_fn_error "conditional \"HAVE_PYTHON\" was never defined.
  12923. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12924. fi
  12925. if test -z "${HAVE_PTHREADS_TRUE}" && test -z "${HAVE_PTHREADS_FALSE}"; then
  12926. as_fn_error "conditional \"HAVE_PTHREADS\" was never defined.
  12927. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  12928. fi
  12929. : ${CONFIG_STATUS=./config.status}
  12930. ac_write_fail=0
  12931. ac_clean_files_save=$ac_clean_files
  12932. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12933. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  12934. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12935. as_write_fail=0
  12936. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  12937. #! $SHELL
  12938. # Generated by $as_me.
  12939. # Run this file to recreate the current configuration.
  12940. # Compiler output produced by configure, useful for debugging
  12941. # configure, is in config.log if it exists.
  12942. debug=false
  12943. ac_cs_recheck=false
  12944. ac_cs_silent=false
  12945. SHELL=\${CONFIG_SHELL-$SHELL}
  12946. export SHELL
  12947. _ASEOF
  12948. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  12949. ## -------------------- ##
  12950. ## M4sh Initialization. ##
  12951. ## -------------------- ##
  12952. # Be more Bourne compatible
  12953. DUALCASE=1; export DUALCASE # for MKS sh
  12954. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  12955. emulate sh
  12956. NULLCMD=:
  12957. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  12958. # is contrary to our usage. Disable this feature.
  12959. alias -g '${1+"$@"}'='"$@"'
  12960. setopt NO_GLOB_SUBST
  12961. else
  12962. case `(set -o) 2>/dev/null` in #(
  12963. *posix*) :
  12964. set -o posix ;; #(
  12965. *) :
  12966. ;;
  12967. esac
  12968. fi
  12969. as_nl='
  12970. '
  12971. export as_nl
  12972. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  12973. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  12974. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  12975. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  12976. # Prefer a ksh shell builtin over an external printf program on Solaris,
  12977. # but without wasting forks for bash or zsh.
  12978. if test -z "$BASH_VERSION$ZSH_VERSION" \
  12979. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  12980. as_echo='print -r --'
  12981. as_echo_n='print -rn --'
  12982. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  12983. as_echo='printf %s\n'
  12984. as_echo_n='printf %s'
  12985. else
  12986. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  12987. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  12988. as_echo_n='/usr/ucb/echo -n'
  12989. else
  12990. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  12991. as_echo_n_body='eval
  12992. arg=$1;
  12993. case $arg in #(
  12994. *"$as_nl"*)
  12995. expr "X$arg" : "X\\(.*\\)$as_nl";
  12996. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  12997. esac;
  12998. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  12999. '
  13000. export as_echo_n_body
  13001. as_echo_n='sh -c $as_echo_n_body as_echo'
  13002. fi
  13003. export as_echo_body
  13004. as_echo='sh -c $as_echo_body as_echo'
  13005. fi
  13006. # The user is always right.
  13007. if test "${PATH_SEPARATOR+set}" != set; then
  13008. PATH_SEPARATOR=:
  13009. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  13010. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  13011. PATH_SEPARATOR=';'
  13012. }
  13013. fi
  13014. # IFS
  13015. # We need space, tab and new line, in precisely that order. Quoting is
  13016. # there to prevent editors from complaining about space-tab.
  13017. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  13018. # splitting by setting IFS to empty value.)
  13019. IFS=" "" $as_nl"
  13020. # Find who we are. Look in the path if we contain no directory separator.
  13021. case $0 in #((
  13022. *[\\/]* ) as_myself=$0 ;;
  13023. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13024. for as_dir in $PATH
  13025. do
  13026. IFS=$as_save_IFS
  13027. test -z "$as_dir" && as_dir=.
  13028. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  13029. done
  13030. IFS=$as_save_IFS
  13031. ;;
  13032. esac
  13033. # We did not find ourselves, most probably we were run as `sh COMMAND'
  13034. # in which case we are not to be found in the path.
  13035. if test "x$as_myself" = x; then
  13036. as_myself=$0
  13037. fi
  13038. if test ! -f "$as_myself"; then
  13039. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  13040. exit 1
  13041. fi
  13042. # Unset variables that we do not need and which cause bugs (e.g. in
  13043. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  13044. # suppresses any "Segmentation fault" message there. '((' could
  13045. # trigger a bug in pdksh 5.2.14.
  13046. for as_var in BASH_ENV ENV MAIL MAILPATH
  13047. do eval test x\${$as_var+set} = xset \
  13048. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  13049. done
  13050. PS1='$ '
  13051. PS2='> '
  13052. PS4='+ '
  13053. # NLS nuisances.
  13054. LC_ALL=C
  13055. export LC_ALL
  13056. LANGUAGE=C
  13057. export LANGUAGE
  13058. # CDPATH.
  13059. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13060. # as_fn_error ERROR [LINENO LOG_FD]
  13061. # ---------------------------------
  13062. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  13063. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  13064. # script with status $?, using 1 if that was 0.
  13065. as_fn_error ()
  13066. {
  13067. as_status=$?; test $as_status -eq 0 && as_status=1
  13068. if test "$3"; then
  13069. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  13070. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  13071. fi
  13072. $as_echo "$as_me: error: $1" >&2
  13073. as_fn_exit $as_status
  13074. } # as_fn_error
  13075. # as_fn_set_status STATUS
  13076. # -----------------------
  13077. # Set $? to STATUS, without forking.
  13078. as_fn_set_status ()
  13079. {
  13080. return $1
  13081. } # as_fn_set_status
  13082. # as_fn_exit STATUS
  13083. # -----------------
  13084. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  13085. as_fn_exit ()
  13086. {
  13087. set +e
  13088. as_fn_set_status $1
  13089. exit $1
  13090. } # as_fn_exit
  13091. # as_fn_unset VAR
  13092. # ---------------
  13093. # Portably unset VAR.
  13094. as_fn_unset ()
  13095. {
  13096. { eval $1=; unset $1;}
  13097. }
  13098. as_unset=as_fn_unset
  13099. # as_fn_append VAR VALUE
  13100. # ----------------------
  13101. # Append the text in VALUE to the end of the definition contained in VAR. Take
  13102. # advantage of any shell optimizations that allow amortized linear growth over
  13103. # repeated appends, instead of the typical quadratic growth present in naive
  13104. # implementations.
  13105. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  13106. eval 'as_fn_append ()
  13107. {
  13108. eval $1+=\$2
  13109. }'
  13110. else
  13111. as_fn_append ()
  13112. {
  13113. eval $1=\$$1\$2
  13114. }
  13115. fi # as_fn_append
  13116. # as_fn_arith ARG...
  13117. # ------------------
  13118. # Perform arithmetic evaluation on the ARGs, and store the result in the
  13119. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  13120. # must be portable across $(()) and expr.
  13121. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  13122. eval 'as_fn_arith ()
  13123. {
  13124. as_val=$(( $* ))
  13125. }'
  13126. else
  13127. as_fn_arith ()
  13128. {
  13129. as_val=`expr "$@" || test $? -eq 1`
  13130. }
  13131. fi # as_fn_arith
  13132. if expr a : '\(a\)' >/dev/null 2>&1 &&
  13133. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  13134. as_expr=expr
  13135. else
  13136. as_expr=false
  13137. fi
  13138. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  13139. as_basename=basename
  13140. else
  13141. as_basename=false
  13142. fi
  13143. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  13144. as_dirname=dirname
  13145. else
  13146. as_dirname=false
  13147. fi
  13148. as_me=`$as_basename -- "$0" ||
  13149. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  13150. X"$0" : 'X\(//\)$' \| \
  13151. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  13152. $as_echo X/"$0" |
  13153. sed '/^.*\/\([^/][^/]*\)\/*$/{
  13154. s//\1/
  13155. q
  13156. }
  13157. /^X\/\(\/\/\)$/{
  13158. s//\1/
  13159. q
  13160. }
  13161. /^X\/\(\/\).*/{
  13162. s//\1/
  13163. q
  13164. }
  13165. s/.*/./; q'`
  13166. # Avoid depending upon Character Ranges.
  13167. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  13168. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  13169. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  13170. as_cr_digits='0123456789'
  13171. as_cr_alnum=$as_cr_Letters$as_cr_digits
  13172. ECHO_C= ECHO_N= ECHO_T=
  13173. case `echo -n x` in #(((((
  13174. -n*)
  13175. case `echo 'xy\c'` in
  13176. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  13177. xy) ECHO_C='\c';;
  13178. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  13179. ECHO_T=' ';;
  13180. esac;;
  13181. *)
  13182. ECHO_N='-n';;
  13183. esac
  13184. rm -f conf$$ conf$$.exe conf$$.file
  13185. if test -d conf$$.dir; then
  13186. rm -f conf$$.dir/conf$$.file
  13187. else
  13188. rm -f conf$$.dir
  13189. mkdir conf$$.dir 2>/dev/null
  13190. fi
  13191. if (echo >conf$$.file) 2>/dev/null; then
  13192. if ln -s conf$$.file conf$$ 2>/dev/null; then
  13193. as_ln_s='ln -s'
  13194. # ... but there are two gotchas:
  13195. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  13196. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  13197. # In both cases, we have to default to `cp -p'.
  13198. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  13199. as_ln_s='cp -p'
  13200. elif ln conf$$.file conf$$ 2>/dev/null; then
  13201. as_ln_s=ln
  13202. else
  13203. as_ln_s='cp -p'
  13204. fi
  13205. else
  13206. as_ln_s='cp -p'
  13207. fi
  13208. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  13209. rmdir conf$$.dir 2>/dev/null
  13210. # as_fn_mkdir_p
  13211. # -------------
  13212. # Create "$as_dir" as a directory, including parents if necessary.
  13213. as_fn_mkdir_p ()
  13214. {
  13215. case $as_dir in #(
  13216. -*) as_dir=./$as_dir;;
  13217. esac
  13218. test -d "$as_dir" || eval $as_mkdir_p || {
  13219. as_dirs=
  13220. while :; do
  13221. case $as_dir in #(
  13222. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  13223. *) as_qdir=$as_dir;;
  13224. esac
  13225. as_dirs="'$as_qdir' $as_dirs"
  13226. as_dir=`$as_dirname -- "$as_dir" ||
  13227. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13228. X"$as_dir" : 'X\(//\)[^/]' \| \
  13229. X"$as_dir" : 'X\(//\)$' \| \
  13230. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  13231. $as_echo X"$as_dir" |
  13232. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  13233. s//\1/
  13234. q
  13235. }
  13236. /^X\(\/\/\)[^/].*/{
  13237. s//\1/
  13238. q
  13239. }
  13240. /^X\(\/\/\)$/{
  13241. s//\1/
  13242. q
  13243. }
  13244. /^X\(\/\).*/{
  13245. s//\1/
  13246. q
  13247. }
  13248. s/.*/./; q'`
  13249. test -d "$as_dir" && break
  13250. done
  13251. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13252. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  13253. } # as_fn_mkdir_p
  13254. if mkdir -p . 2>/dev/null; then
  13255. as_mkdir_p='mkdir -p "$as_dir"'
  13256. else
  13257. test -d ./-p && rmdir ./-p
  13258. as_mkdir_p=false
  13259. fi
  13260. if test -x / >/dev/null 2>&1; then
  13261. as_test_x='test -x'
  13262. else
  13263. if ls -dL / >/dev/null 2>&1; then
  13264. as_ls_L_option=L
  13265. else
  13266. as_ls_L_option=
  13267. fi
  13268. as_test_x='
  13269. eval sh -c '\''
  13270. if test -d "$1"; then
  13271. test -d "$1/.";
  13272. else
  13273. case $1 in #(
  13274. -*)set "./$1";;
  13275. esac;
  13276. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  13277. ???[sx]*):;;*)false;;esac;fi
  13278. '\'' sh
  13279. '
  13280. fi
  13281. as_executable_p=$as_test_x
  13282. # Sed expression to map a string onto a valid CPP name.
  13283. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  13284. # Sed expression to map a string onto a valid variable name.
  13285. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  13286. exec 6>&1
  13287. ## ----------------------------------- ##
  13288. ## Main body of $CONFIG_STATUS script. ##
  13289. ## ----------------------------------- ##
  13290. _ASEOF
  13291. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  13292. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13293. # Save the log message, to keep $0 and so on meaningful, and to
  13294. # report actual input values of CONFIG_FILES etc. instead of their
  13295. # values after options handling.
  13296. ac_log="
  13297. This file was extended by Google C++ Testing Framework $as_me 1.6.0, which was
  13298. generated by GNU Autoconf 2.65. Invocation command line was
  13299. CONFIG_FILES = $CONFIG_FILES
  13300. CONFIG_HEADERS = $CONFIG_HEADERS
  13301. CONFIG_LINKS = $CONFIG_LINKS
  13302. CONFIG_COMMANDS = $CONFIG_COMMANDS
  13303. $ $0 $@
  13304. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  13305. "
  13306. _ACEOF
  13307. case $ac_config_files in *"
  13308. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  13309. esac
  13310. case $ac_config_headers in *"
  13311. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  13312. esac
  13313. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13314. # Files that config.status was made for.
  13315. config_files="$ac_config_files"
  13316. config_headers="$ac_config_headers"
  13317. config_commands="$ac_config_commands"
  13318. _ACEOF
  13319. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13320. ac_cs_usage="\
  13321. \`$as_me' instantiates files and other configuration actions
  13322. from templates according to the current configuration. Unless the files
  13323. and actions are specified as TAGs, all are instantiated by default.
  13324. Usage: $0 [OPTION]... [TAG]...
  13325. -h, --help print this help, then exit
  13326. -V, --version print version number and configuration settings, then exit
  13327. --config print configuration, then exit
  13328. -q, --quiet, --silent
  13329. do not print progress messages
  13330. -d, --debug don't remove temporary files
  13331. --recheck update $as_me by reconfiguring in the same conditions
  13332. --file=FILE[:TEMPLATE]
  13333. instantiate the configuration file FILE
  13334. --header=FILE[:TEMPLATE]
  13335. instantiate the configuration header FILE
  13336. Configuration files:
  13337. $config_files
  13338. Configuration headers:
  13339. $config_headers
  13340. Configuration commands:
  13341. $config_commands
  13342. Report bugs to <[email protected]>."
  13343. _ACEOF
  13344. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13345. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  13346. ac_cs_version="\\
  13347. Google C++ Testing Framework config.status 1.6.0
  13348. configured by $0, generated by GNU Autoconf 2.65,
  13349. with options \\"\$ac_cs_config\\"
  13350. Copyright (C) 2009 Free Software Foundation, Inc.
  13351. This config.status script is free software; the Free Software Foundation
  13352. gives unlimited permission to copy, distribute and modify it."
  13353. ac_pwd='$ac_pwd'
  13354. srcdir='$srcdir'
  13355. INSTALL='$INSTALL'
  13356. MKDIR_P='$MKDIR_P'
  13357. AWK='$AWK'
  13358. test -n "\$AWK" || AWK=awk
  13359. _ACEOF
  13360. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13361. # The default lists apply if the user does not specify any file.
  13362. ac_need_defaults=:
  13363. while test $# != 0
  13364. do
  13365. case $1 in
  13366. --*=*)
  13367. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  13368. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  13369. ac_shift=:
  13370. ;;
  13371. *)
  13372. ac_option=$1
  13373. ac_optarg=$2
  13374. ac_shift=shift
  13375. ;;
  13376. esac
  13377. case $ac_option in
  13378. # Handling of the options.
  13379. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  13380. ac_cs_recheck=: ;;
  13381. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  13382. $as_echo "$ac_cs_version"; exit ;;
  13383. --config | --confi | --conf | --con | --co | --c )
  13384. $as_echo "$ac_cs_config"; exit ;;
  13385. --debug | --debu | --deb | --de | --d | -d )
  13386. debug=: ;;
  13387. --file | --fil | --fi | --f )
  13388. $ac_shift
  13389. case $ac_optarg in
  13390. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13391. esac
  13392. as_fn_append CONFIG_FILES " '$ac_optarg'"
  13393. ac_need_defaults=false;;
  13394. --header | --heade | --head | --hea )
  13395. $ac_shift
  13396. case $ac_optarg in
  13397. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13398. esac
  13399. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  13400. ac_need_defaults=false;;
  13401. --he | --h)
  13402. # Conflict between --help and --header
  13403. as_fn_error "ambiguous option: \`$1'
  13404. Try \`$0 --help' for more information.";;
  13405. --help | --hel | -h )
  13406. $as_echo "$ac_cs_usage"; exit ;;
  13407. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  13408. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  13409. ac_cs_silent=: ;;
  13410. # This is an error.
  13411. -*) as_fn_error "unrecognized option: \`$1'
  13412. Try \`$0 --help' for more information." ;;
  13413. *) as_fn_append ac_config_targets " $1"
  13414. ac_need_defaults=false ;;
  13415. esac
  13416. shift
  13417. done
  13418. ac_configure_extra_args=
  13419. if $ac_cs_silent; then
  13420. exec 6>/dev/null
  13421. ac_configure_extra_args="$ac_configure_extra_args --silent"
  13422. fi
  13423. _ACEOF
  13424. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13425. if \$ac_cs_recheck; then
  13426. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  13427. shift
  13428. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  13429. CONFIG_SHELL='$SHELL'
  13430. export CONFIG_SHELL
  13431. exec "\$@"
  13432. fi
  13433. _ACEOF
  13434. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13435. exec 5>>config.log
  13436. {
  13437. echo
  13438. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  13439. ## Running $as_me. ##
  13440. _ASBOX
  13441. $as_echo "$ac_log"
  13442. } >&5
  13443. _ACEOF
  13444. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13445. #
  13446. # INIT-COMMANDS
  13447. #
  13448. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  13449. # The HP-UX ksh and POSIX shell print the target directory to stdout
  13450. # if CDPATH is set.
  13451. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  13452. sed_quote_subst='$sed_quote_subst'
  13453. double_quote_subst='$double_quote_subst'
  13454. delay_variable_subst='$delay_variable_subst'
  13455. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  13456. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  13457. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  13458. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  13459. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  13460. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  13461. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13462. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  13463. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  13464. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  13465. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  13466. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  13467. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  13468. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  13469. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  13470. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13471. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  13472. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  13473. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  13474. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  13475. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  13476. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  13477. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  13478. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  13479. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  13480. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  13481. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13482. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13483. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  13484. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  13485. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  13486. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  13487. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13488. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  13489. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  13490. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13491. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13492. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13493. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  13494. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  13495. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  13496. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  13497. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  13498. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  13499. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  13500. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13501. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  13502. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  13503. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  13504. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  13505. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13506. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  13507. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  13508. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  13509. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  13510. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  13511. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  13512. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  13513. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  13514. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  13515. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  13516. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  13517. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13518. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13519. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  13520. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  13521. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13522. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13523. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  13524. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13525. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13526. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13527. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13528. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13529. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13530. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13531. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13532. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  13533. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13534. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  13535. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  13536. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  13537. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  13538. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  13539. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13540. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  13541. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  13542. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  13543. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  13544. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  13545. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13546. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13547. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  13548. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13549. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13550. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  13551. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  13552. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  13553. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  13554. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13555. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  13556. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  13557. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13558. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13559. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13560. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13561. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13562. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  13563. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  13564. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  13565. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13566. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  13567. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  13568. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  13569. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  13570. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  13571. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13572. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  13573. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  13574. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  13575. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  13576. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  13577. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  13578. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  13579. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13580. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13581. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13582. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13583. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13584. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13585. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13586. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13587. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13588. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13589. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13590. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13591. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13592. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13593. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13594. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13595. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13596. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13597. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13598. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13599. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13600. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13601. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13602. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13603. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13604. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13605. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13606. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13607. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13608. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13609. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13610. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13611. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13612. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13613. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13614. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13615. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13616. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13617. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13618. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13619. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13620. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13621. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13622. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13623. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13624. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13625. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  13626. LTCC='$LTCC'
  13627. LTCFLAGS='$LTCFLAGS'
  13628. compiler='$compiler_DEFAULT'
  13629. # Quote evaled strings.
  13630. for var in SED \
  13631. GREP \
  13632. EGREP \
  13633. FGREP \
  13634. LD \
  13635. NM \
  13636. LN_S \
  13637. lt_SP2NL \
  13638. lt_NL2SP \
  13639. reload_flag \
  13640. OBJDUMP \
  13641. deplibs_check_method \
  13642. file_magic_cmd \
  13643. AR \
  13644. AR_FLAGS \
  13645. STRIP \
  13646. RANLIB \
  13647. CC \
  13648. CFLAGS \
  13649. compiler \
  13650. lt_cv_sys_global_symbol_pipe \
  13651. lt_cv_sys_global_symbol_to_cdecl \
  13652. lt_cv_sys_global_symbol_to_c_name_address \
  13653. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  13654. SHELL \
  13655. ECHO \
  13656. lt_prog_compiler_no_builtin_flag \
  13657. lt_prog_compiler_wl \
  13658. lt_prog_compiler_pic \
  13659. lt_prog_compiler_static \
  13660. lt_cv_prog_compiler_c_o \
  13661. need_locks \
  13662. DSYMUTIL \
  13663. NMEDIT \
  13664. LIPO \
  13665. OTOOL \
  13666. OTOOL64 \
  13667. shrext_cmds \
  13668. export_dynamic_flag_spec \
  13669. whole_archive_flag_spec \
  13670. compiler_needs_object \
  13671. with_gnu_ld \
  13672. allow_undefined_flag \
  13673. no_undefined_flag \
  13674. hardcode_libdir_flag_spec \
  13675. hardcode_libdir_flag_spec_ld \
  13676. hardcode_libdir_separator \
  13677. fix_srcfile_path \
  13678. exclude_expsyms \
  13679. include_expsyms \
  13680. file_list_spec \
  13681. variables_saved_for_relink \
  13682. libname_spec \
  13683. library_names_spec \
  13684. soname_spec \
  13685. finish_eval \
  13686. old_striplib \
  13687. striplib \
  13688. compiler_lib_search_dirs \
  13689. predep_objects \
  13690. postdep_objects \
  13691. predeps \
  13692. postdeps \
  13693. compiler_lib_search_path \
  13694. LD_CXX \
  13695. compiler_CXX \
  13696. lt_prog_compiler_no_builtin_flag_CXX \
  13697. lt_prog_compiler_wl_CXX \
  13698. lt_prog_compiler_pic_CXX \
  13699. lt_prog_compiler_static_CXX \
  13700. lt_cv_prog_compiler_c_o_CXX \
  13701. export_dynamic_flag_spec_CXX \
  13702. whole_archive_flag_spec_CXX \
  13703. compiler_needs_object_CXX \
  13704. with_gnu_ld_CXX \
  13705. allow_undefined_flag_CXX \
  13706. no_undefined_flag_CXX \
  13707. hardcode_libdir_flag_spec_CXX \
  13708. hardcode_libdir_flag_spec_ld_CXX \
  13709. hardcode_libdir_separator_CXX \
  13710. fix_srcfile_path_CXX \
  13711. exclude_expsyms_CXX \
  13712. include_expsyms_CXX \
  13713. file_list_spec_CXX \
  13714. compiler_lib_search_dirs_CXX \
  13715. predep_objects_CXX \
  13716. postdep_objects_CXX \
  13717. predeps_CXX \
  13718. postdeps_CXX \
  13719. compiler_lib_search_path_CXX; do
  13720. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  13721. *[\\\\\\\`\\"\\\$]*)
  13722. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  13723. ;;
  13724. *)
  13725. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13726. ;;
  13727. esac
  13728. done
  13729. # Double-quote double-evaled strings.
  13730. for var in reload_cmds \
  13731. old_postinstall_cmds \
  13732. old_postuninstall_cmds \
  13733. old_archive_cmds \
  13734. extract_expsyms_cmds \
  13735. old_archive_from_new_cmds \
  13736. old_archive_from_expsyms_cmds \
  13737. archive_cmds \
  13738. archive_expsym_cmds \
  13739. module_cmds \
  13740. module_expsym_cmds \
  13741. export_symbols_cmds \
  13742. prelink_cmds \
  13743. postinstall_cmds \
  13744. postuninstall_cmds \
  13745. finish_cmds \
  13746. sys_lib_search_path_spec \
  13747. sys_lib_dlsearch_path_spec \
  13748. old_archive_cmds_CXX \
  13749. old_archive_from_new_cmds_CXX \
  13750. old_archive_from_expsyms_cmds_CXX \
  13751. archive_cmds_CXX \
  13752. archive_expsym_cmds_CXX \
  13753. module_cmds_CXX \
  13754. module_expsym_cmds_CXX \
  13755. export_symbols_cmds_CXX \
  13756. prelink_cmds_CXX; do
  13757. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  13758. *[\\\\\\\`\\"\\\$]*)
  13759. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  13760. ;;
  13761. *)
  13762. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  13763. ;;
  13764. esac
  13765. done
  13766. # Fix-up fallback echo if it was mangled by the above quoting rules.
  13767. case \$lt_ECHO in
  13768. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  13769. ;;
  13770. esac
  13771. ac_aux_dir='$ac_aux_dir'
  13772. xsi_shell='$xsi_shell'
  13773. lt_shell_append='$lt_shell_append'
  13774. # See if we are running on zsh, and set the options which allow our
  13775. # commands through without removal of \ escapes INIT.
  13776. if test -n "\${ZSH_VERSION+set}" ; then
  13777. setopt NO_GLOB_SUBST
  13778. fi
  13779. PACKAGE='$PACKAGE'
  13780. VERSION='$VERSION'
  13781. TIMESTAMP='$TIMESTAMP'
  13782. RM='$RM'
  13783. ofile='$ofile'
  13784. _ACEOF
  13785. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13786. # Handling of arguments.
  13787. for ac_config_target in $ac_config_targets
  13788. do
  13789. case $ac_config_target in
  13790. "build-aux/config.h") CONFIG_HEADERS="$CONFIG_HEADERS build-aux/config.h" ;;
  13791. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  13792. "scripts/gtest-config") CONFIG_FILES="$CONFIG_FILES scripts/gtest-config" ;;
  13793. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  13794. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  13795. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  13796. esac
  13797. done
  13798. # If the user did not use the arguments to specify the items to instantiate,
  13799. # then the envvar interface is used. Set only those that are not.
  13800. # We use the long form for the default assignment because of an extremely
  13801. # bizarre bug on SunOS 4.1.3.
  13802. if $ac_need_defaults; then
  13803. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  13804. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  13805. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  13806. fi
  13807. # Have a temporary directory for convenience. Make it in the build tree
  13808. # simply because there is no reason against having it here, and in addition,
  13809. # creating and moving files from /tmp can sometimes cause problems.
  13810. # Hook for its removal unless debugging.
  13811. # Note that there is a small window in which the directory will not be cleaned:
  13812. # after its creation but before its name has been assigned to `$tmp'.
  13813. $debug ||
  13814. {
  13815. tmp=
  13816. trap 'exit_status=$?
  13817. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  13818. ' 0
  13819. trap 'as_fn_exit 1' 1 2 13 15
  13820. }
  13821. # Create a (secure) tmp directory for tmp files.
  13822. {
  13823. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  13824. test -n "$tmp" && test -d "$tmp"
  13825. } ||
  13826. {
  13827. tmp=./conf$$-$RANDOM
  13828. (umask 077 && mkdir "$tmp")
  13829. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  13830. # Set up the scripts for CONFIG_FILES section.
  13831. # No need to generate them if there are no CONFIG_FILES.
  13832. # This happens for instance with `./config.status config.h'.
  13833. if test -n "$CONFIG_FILES"; then
  13834. ac_cr=`echo X | tr X '\015'`
  13835. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  13836. # But we know of no other shell where ac_cr would be empty at this
  13837. # point, so we can use a bashism as a fallback.
  13838. if test "x$ac_cr" = x; then
  13839. eval ac_cr=\$\'\\r\'
  13840. fi
  13841. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  13842. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  13843. ac_cs_awk_cr='\r'
  13844. else
  13845. ac_cs_awk_cr=$ac_cr
  13846. fi
  13847. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  13848. _ACEOF
  13849. {
  13850. echo "cat >conf$$subs.awk <<_ACEOF" &&
  13851. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  13852. echo "_ACEOF"
  13853. } >conf$$subs.sh ||
  13854. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13855. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  13856. ac_delim='%!_!# '
  13857. for ac_last_try in false false false false false :; do
  13858. . ./conf$$subs.sh ||
  13859. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13860. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  13861. if test $ac_delim_n = $ac_delim_num; then
  13862. break
  13863. elif $ac_last_try; then
  13864. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  13865. else
  13866. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13867. fi
  13868. done
  13869. rm -f conf$$subs.sh
  13870. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13871. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  13872. _ACEOF
  13873. sed -n '
  13874. h
  13875. s/^/S["/; s/!.*/"]=/
  13876. p
  13877. g
  13878. s/^[^!]*!//
  13879. :repl
  13880. t repl
  13881. s/'"$ac_delim"'$//
  13882. t delim
  13883. :nl
  13884. h
  13885. s/\(.\{148\}\)..*/\1/
  13886. t more1
  13887. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  13888. p
  13889. n
  13890. b repl
  13891. :more1
  13892. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13893. p
  13894. g
  13895. s/.\{148\}//
  13896. t nl
  13897. :delim
  13898. h
  13899. s/\(.\{148\}\)..*/\1/
  13900. t more2
  13901. s/["\\]/\\&/g; s/^/"/; s/$/"/
  13902. p
  13903. b
  13904. :more2
  13905. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  13906. p
  13907. g
  13908. s/.\{148\}//
  13909. t delim
  13910. ' <conf$$subs.awk | sed '
  13911. /^[^""]/{
  13912. N
  13913. s/\n//
  13914. }
  13915. ' >>$CONFIG_STATUS || ac_write_fail=1
  13916. rm -f conf$$subs.awk
  13917. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  13918. _ACAWK
  13919. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  13920. for (key in S) S_is_set[key] = 1
  13921. FS = ""
  13922. }
  13923. {
  13924. line = $ 0
  13925. nfields = split(line, field, "@")
  13926. substed = 0
  13927. len = length(field[1])
  13928. for (i = 2; i < nfields; i++) {
  13929. key = field[i]
  13930. keylen = length(key)
  13931. if (S_is_set[key]) {
  13932. value = S[key]
  13933. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  13934. len += length(value) + length(field[++i])
  13935. substed = 1
  13936. } else
  13937. len += 1 + keylen
  13938. }
  13939. print line
  13940. }
  13941. _ACAWK
  13942. _ACEOF
  13943. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13944. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  13945. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  13946. else
  13947. cat
  13948. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  13949. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  13950. _ACEOF
  13951. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  13952. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  13953. # trailing colons and then remove the whole line if VPATH becomes empty
  13954. # (actually we leave an empty line to preserve line numbers).
  13955. if test "x$srcdir" = x.; then
  13956. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  13957. s/:*\$(srcdir):*/:/
  13958. s/:*\${srcdir}:*/:/
  13959. s/:*@srcdir@:*/:/
  13960. s/^\([^=]*=[ ]*\):*/\1/
  13961. s/:*$//
  13962. s/^[^=]*=[ ]*$//
  13963. }'
  13964. fi
  13965. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  13966. fi # test -n "$CONFIG_FILES"
  13967. # Set up the scripts for CONFIG_HEADERS section.
  13968. # No need to generate them if there are no CONFIG_HEADERS.
  13969. # This happens for instance with `./config.status Makefile'.
  13970. if test -n "$CONFIG_HEADERS"; then
  13971. cat >"$tmp/defines.awk" <<\_ACAWK ||
  13972. BEGIN {
  13973. _ACEOF
  13974. # Transform confdefs.h into an awk script `defines.awk', embedded as
  13975. # here-document in config.status, that substitutes the proper values into
  13976. # config.h.in to produce config.h.
  13977. # Create a delimiter string that does not exist in confdefs.h, to ease
  13978. # handling of long lines.
  13979. ac_delim='%!_!# '
  13980. for ac_last_try in false false :; do
  13981. ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  13982. if test -z "$ac_t"; then
  13983. break
  13984. elif $ac_last_try; then
  13985. as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  13986. else
  13987. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  13988. fi
  13989. done
  13990. # For the awk script, D is an array of macro values keyed by name,
  13991. # likewise P contains macro parameters if any. Preserve backslash
  13992. # newline sequences.
  13993. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  13994. sed -n '
  13995. s/.\{148\}/&'"$ac_delim"'/g
  13996. t rset
  13997. :rset
  13998. s/^[ ]*#[ ]*define[ ][ ]*/ /
  13999. t def
  14000. d
  14001. :def
  14002. s/\\$//
  14003. t bsnl
  14004. s/["\\]/\\&/g
  14005. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14006. D["\1"]=" \3"/p
  14007. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  14008. d
  14009. :bsnl
  14010. s/["\\]/\\&/g
  14011. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  14012. D["\1"]=" \3\\\\\\n"\\/p
  14013. t cont
  14014. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  14015. t cont
  14016. d
  14017. :cont
  14018. n
  14019. s/.\{148\}/&'"$ac_delim"'/g
  14020. t clear
  14021. :clear
  14022. s/\\$//
  14023. t bsnlc
  14024. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  14025. d
  14026. :bsnlc
  14027. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  14028. b cont
  14029. ' <confdefs.h | sed '
  14030. s/'"$ac_delim"'/"\\\
  14031. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  14032. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14033. for (key in D) D_is_set[key] = 1
  14034. FS = ""
  14035. }
  14036. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  14037. line = \$ 0
  14038. split(line, arg, " ")
  14039. if (arg[1] == "#") {
  14040. defundef = arg[2]
  14041. mac1 = arg[3]
  14042. } else {
  14043. defundef = substr(arg[1], 2)
  14044. mac1 = arg[2]
  14045. }
  14046. split(mac1, mac2, "(") #)
  14047. macro = mac2[1]
  14048. prefix = substr(line, 1, index(line, defundef) - 1)
  14049. if (D_is_set[macro]) {
  14050. # Preserve the white space surrounding the "#".
  14051. print prefix "define", macro P[macro] D[macro]
  14052. next
  14053. } else {
  14054. # Replace #undef with comments. This is necessary, for example,
  14055. # in the case of _POSIX_SOURCE, which is predefined and required
  14056. # on some systems where configure will not decide to define it.
  14057. if (defundef == "undef") {
  14058. print "/*", prefix defundef, macro, "*/"
  14059. next
  14060. }
  14061. }
  14062. }
  14063. { print }
  14064. _ACAWK
  14065. _ACEOF
  14066. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14067. as_fn_error "could not setup config headers machinery" "$LINENO" 5
  14068. fi # test -n "$CONFIG_HEADERS"
  14069. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  14070. shift
  14071. for ac_tag
  14072. do
  14073. case $ac_tag in
  14074. :[FHLC]) ac_mode=$ac_tag; continue;;
  14075. esac
  14076. case $ac_mode$ac_tag in
  14077. :[FHL]*:*);;
  14078. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  14079. :[FH]-) ac_tag=-:-;;
  14080. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  14081. esac
  14082. ac_save_IFS=$IFS
  14083. IFS=:
  14084. set x $ac_tag
  14085. IFS=$ac_save_IFS
  14086. shift
  14087. ac_file=$1
  14088. shift
  14089. case $ac_mode in
  14090. :L) ac_source=$1;;
  14091. :[FH])
  14092. ac_file_inputs=
  14093. for ac_f
  14094. do
  14095. case $ac_f in
  14096. -) ac_f="$tmp/stdin";;
  14097. *) # Look for the file first in the build tree, then in the source tree
  14098. # (if the path is not absolute). The absolute path cannot be DOS-style,
  14099. # because $ac_f cannot contain `:'.
  14100. test -f "$ac_f" ||
  14101. case $ac_f in
  14102. [\\/$]*) false;;
  14103. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  14104. esac ||
  14105. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  14106. esac
  14107. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  14108. as_fn_append ac_file_inputs " '$ac_f'"
  14109. done
  14110. # Let's still pretend it is `configure' which instantiates (i.e., don't
  14111. # use $as_me), people would be surprised to read:
  14112. # /* config.h. Generated by config.status. */
  14113. configure_input='Generated from '`
  14114. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  14115. `' by configure.'
  14116. if test x"$ac_file" != x-; then
  14117. configure_input="$ac_file. $configure_input"
  14118. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  14119. $as_echo "$as_me: creating $ac_file" >&6;}
  14120. fi
  14121. # Neutralize special characters interpreted by sed in replacement strings.
  14122. case $configure_input in #(
  14123. *\&* | *\|* | *\\* )
  14124. ac_sed_conf_input=`$as_echo "$configure_input" |
  14125. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  14126. *) ac_sed_conf_input=$configure_input;;
  14127. esac
  14128. case $ac_tag in
  14129. *:-:* | *:-) cat >"$tmp/stdin" \
  14130. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  14131. esac
  14132. ;;
  14133. esac
  14134. ac_dir=`$as_dirname -- "$ac_file" ||
  14135. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14136. X"$ac_file" : 'X\(//\)[^/]' \| \
  14137. X"$ac_file" : 'X\(//\)$' \| \
  14138. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  14139. $as_echo X"$ac_file" |
  14140. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14141. s//\1/
  14142. q
  14143. }
  14144. /^X\(\/\/\)[^/].*/{
  14145. s//\1/
  14146. q
  14147. }
  14148. /^X\(\/\/\)$/{
  14149. s//\1/
  14150. q
  14151. }
  14152. /^X\(\/\).*/{
  14153. s//\1/
  14154. q
  14155. }
  14156. s/.*/./; q'`
  14157. as_dir="$ac_dir"; as_fn_mkdir_p
  14158. ac_builddir=.
  14159. case "$ac_dir" in
  14160. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14161. *)
  14162. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  14163. # A ".." for each directory in $ac_dir_suffix.
  14164. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  14165. case $ac_top_builddir_sub in
  14166. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  14167. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  14168. esac ;;
  14169. esac
  14170. ac_abs_top_builddir=$ac_pwd
  14171. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  14172. # for backward compatibility:
  14173. ac_top_builddir=$ac_top_build_prefix
  14174. case $srcdir in
  14175. .) # We are building in place.
  14176. ac_srcdir=.
  14177. ac_top_srcdir=$ac_top_builddir_sub
  14178. ac_abs_top_srcdir=$ac_pwd ;;
  14179. [\\/]* | ?:[\\/]* ) # Absolute name.
  14180. ac_srcdir=$srcdir$ac_dir_suffix;
  14181. ac_top_srcdir=$srcdir
  14182. ac_abs_top_srcdir=$srcdir ;;
  14183. *) # Relative name.
  14184. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  14185. ac_top_srcdir=$ac_top_build_prefix$srcdir
  14186. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  14187. esac
  14188. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  14189. case $ac_mode in
  14190. :F)
  14191. #
  14192. # CONFIG_FILE
  14193. #
  14194. case $INSTALL in
  14195. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  14196. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  14197. esac
  14198. ac_MKDIR_P=$MKDIR_P
  14199. case $MKDIR_P in
  14200. [\\/$]* | ?:[\\/]* ) ;;
  14201. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  14202. esac
  14203. _ACEOF
  14204. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14205. # If the template does not know about datarootdir, expand it.
  14206. # FIXME: This hack should be removed a few years after 2.60.
  14207. ac_datarootdir_hack=; ac_datarootdir_seen=
  14208. ac_sed_dataroot='
  14209. /datarootdir/ {
  14210. p
  14211. q
  14212. }
  14213. /@datadir@/p
  14214. /@docdir@/p
  14215. /@infodir@/p
  14216. /@localedir@/p
  14217. /@mandir@/p'
  14218. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  14219. *datarootdir*) ac_datarootdir_seen=yes;;
  14220. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  14221. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  14222. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  14223. _ACEOF
  14224. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14225. ac_datarootdir_hack='
  14226. s&@datadir@&$datadir&g
  14227. s&@docdir@&$docdir&g
  14228. s&@infodir@&$infodir&g
  14229. s&@localedir@&$localedir&g
  14230. s&@mandir@&$mandir&g
  14231. s&\\\${datarootdir}&$datarootdir&g' ;;
  14232. esac
  14233. _ACEOF
  14234. # Neutralize VPATH when `$srcdir' = `.'.
  14235. # Shell code in configure.ac might set extrasub.
  14236. # FIXME: do we really want to maintain this feature?
  14237. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14238. ac_sed_extra="$ac_vpsub
  14239. $extrasub
  14240. _ACEOF
  14241. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14242. :t
  14243. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  14244. s|@configure_input@|$ac_sed_conf_input|;t t
  14245. s&@top_builddir@&$ac_top_builddir_sub&;t t
  14246. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  14247. s&@srcdir@&$ac_srcdir&;t t
  14248. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  14249. s&@top_srcdir@&$ac_top_srcdir&;t t
  14250. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  14251. s&@builddir@&$ac_builddir&;t t
  14252. s&@abs_builddir@&$ac_abs_builddir&;t t
  14253. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  14254. s&@INSTALL@&$ac_INSTALL&;t t
  14255. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  14256. $ac_datarootdir_hack
  14257. "
  14258. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  14259. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14260. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  14261. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  14262. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  14263. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14264. which seems to be undefined. Please make sure it is defined." >&5
  14265. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  14266. which seems to be undefined. Please make sure it is defined." >&2;}
  14267. rm -f "$tmp/stdin"
  14268. case $ac_file in
  14269. -) cat "$tmp/out" && rm -f "$tmp/out";;
  14270. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  14271. esac \
  14272. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14273. ;;
  14274. :H)
  14275. #
  14276. # CONFIG_HEADER
  14277. #
  14278. if test x"$ac_file" != x-; then
  14279. {
  14280. $as_echo "/* $configure_input */" \
  14281. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  14282. } >"$tmp/config.h" \
  14283. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14284. if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  14285. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  14286. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  14287. else
  14288. rm -f "$ac_file"
  14289. mv "$tmp/config.h" "$ac_file" \
  14290. || as_fn_error "could not create $ac_file" "$LINENO" 5
  14291. fi
  14292. else
  14293. $as_echo "/* $configure_input */" \
  14294. && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  14295. || as_fn_error "could not create -" "$LINENO" 5
  14296. fi
  14297. # Compute "$ac_file"'s index in $config_headers.
  14298. _am_arg="$ac_file"
  14299. _am_stamp_count=1
  14300. for _am_header in $config_headers :; do
  14301. case $_am_header in
  14302. $_am_arg | $_am_arg:* )
  14303. break ;;
  14304. * )
  14305. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  14306. esac
  14307. done
  14308. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  14309. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14310. X"$_am_arg" : 'X\(//\)[^/]' \| \
  14311. X"$_am_arg" : 'X\(//\)$' \| \
  14312. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  14313. $as_echo X"$_am_arg" |
  14314. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14315. s//\1/
  14316. q
  14317. }
  14318. /^X\(\/\/\)[^/].*/{
  14319. s//\1/
  14320. q
  14321. }
  14322. /^X\(\/\/\)$/{
  14323. s//\1/
  14324. q
  14325. }
  14326. /^X\(\/\).*/{
  14327. s//\1/
  14328. q
  14329. }
  14330. s/.*/./; q'`/stamp-h$_am_stamp_count
  14331. ;;
  14332. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  14333. $as_echo "$as_me: executing $ac_file commands" >&6;}
  14334. ;;
  14335. esac
  14336. case $ac_file$ac_mode in
  14337. "scripts/gtest-config":F) chmod +x scripts/gtest-config ;;
  14338. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  14339. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  14340. # are listed without --file. Let's play safe and only enable the eval
  14341. # if we detect the quoting.
  14342. case $CONFIG_FILES in
  14343. *\'*) eval set x "$CONFIG_FILES" ;;
  14344. *) set x $CONFIG_FILES ;;
  14345. esac
  14346. shift
  14347. for mf
  14348. do
  14349. # Strip MF so we end up with the name of the file.
  14350. mf=`echo "$mf" | sed -e 's/:.*$//'`
  14351. # Check whether this is an Automake generated Makefile or not.
  14352. # We used to match only the files named `Makefile.in', but
  14353. # some people rename them; so instead we look at the file content.
  14354. # Grep'ing the first line is not enough: some people post-process
  14355. # each Makefile.in and add a new line on top of each file to say so.
  14356. # Grep'ing the whole file is not good either: AIX grep has a line
  14357. # limit of 2048, but all sed's we know have understand at least 4000.
  14358. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  14359. dirpart=`$as_dirname -- "$mf" ||
  14360. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14361. X"$mf" : 'X\(//\)[^/]' \| \
  14362. X"$mf" : 'X\(//\)$' \| \
  14363. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  14364. $as_echo X"$mf" |
  14365. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14366. s//\1/
  14367. q
  14368. }
  14369. /^X\(\/\/\)[^/].*/{
  14370. s//\1/
  14371. q
  14372. }
  14373. /^X\(\/\/\)$/{
  14374. s//\1/
  14375. q
  14376. }
  14377. /^X\(\/\).*/{
  14378. s//\1/
  14379. q
  14380. }
  14381. s/.*/./; q'`
  14382. else
  14383. continue
  14384. fi
  14385. # Extract the definition of DEPDIR, am__include, and am__quote
  14386. # from the Makefile without running `make'.
  14387. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  14388. test -z "$DEPDIR" && continue
  14389. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  14390. test -z "am__include" && continue
  14391. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  14392. # When using ansi2knr, U may be empty or an underscore; expand it
  14393. U=`sed -n 's/^U = //p' < "$mf"`
  14394. # Find all dependency output files, they are included files with
  14395. # $(DEPDIR) in their names. We invoke sed twice because it is the
  14396. # simplest approach to changing $(DEPDIR) to its actual value in the
  14397. # expansion.
  14398. for file in `sed -n "
  14399. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  14400. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14401. # Make sure the directory exists.
  14402. test -f "$dirpart/$file" && continue
  14403. fdir=`$as_dirname -- "$file" ||
  14404. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14405. X"$file" : 'X\(//\)[^/]' \| \
  14406. X"$file" : 'X\(//\)$' \| \
  14407. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  14408. $as_echo X"$file" |
  14409. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14410. s//\1/
  14411. q
  14412. }
  14413. /^X\(\/\/\)[^/].*/{
  14414. s//\1/
  14415. q
  14416. }
  14417. /^X\(\/\/\)$/{
  14418. s//\1/
  14419. q
  14420. }
  14421. /^X\(\/\).*/{
  14422. s//\1/
  14423. q
  14424. }
  14425. s/.*/./; q'`
  14426. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  14427. # echo "creating $dirpart/$file"
  14428. echo '# dummy' > "$dirpart/$file"
  14429. done
  14430. done
  14431. }
  14432. ;;
  14433. "libtool":C)
  14434. # See if we are running on zsh, and set the options which allow our
  14435. # commands through without removal of \ escapes.
  14436. if test -n "${ZSH_VERSION+set}" ; then
  14437. setopt NO_GLOB_SUBST
  14438. fi
  14439. cfgfile="${ofile}T"
  14440. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  14441. $RM "$cfgfile"
  14442. cat <<_LT_EOF >> "$cfgfile"
  14443. #! $SHELL
  14444. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  14445. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  14446. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  14447. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  14448. #
  14449. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  14450. # 2006, 2007, 2008 Free Software Foundation, Inc.
  14451. # Written by Gordon Matzigkeit, 1996
  14452. #
  14453. # This file is part of GNU Libtool.
  14454. #
  14455. # GNU Libtool is free software; you can redistribute it and/or
  14456. # modify it under the terms of the GNU General Public License as
  14457. # published by the Free Software Foundation; either version 2 of
  14458. # the License, or (at your option) any later version.
  14459. #
  14460. # As a special exception to the GNU General Public License,
  14461. # if you distribute this file as part of a program or library that
  14462. # is built using GNU Libtool, you may include this file under the
  14463. # same distribution terms that you use for the rest of that program.
  14464. #
  14465. # GNU Libtool is distributed in the hope that it will be useful,
  14466. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14467. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14468. # GNU General Public License for more details.
  14469. #
  14470. # You should have received a copy of the GNU General Public License
  14471. # along with GNU Libtool; see the file COPYING. If not, a copy
  14472. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  14473. # obtained by writing to the Free Software Foundation, Inc.,
  14474. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  14475. # The names of the tagged configurations supported by this script.
  14476. available_tags="CXX "
  14477. # ### BEGIN LIBTOOL CONFIG
  14478. # Which release of libtool.m4 was used?
  14479. macro_version=$macro_version
  14480. macro_revision=$macro_revision
  14481. # Whether or not to build shared libraries.
  14482. build_libtool_libs=$enable_shared
  14483. # Whether or not to build static libraries.
  14484. build_old_libs=$enable_static
  14485. # What type of objects to build.
  14486. pic_mode=$pic_mode
  14487. # Whether or not to optimize for fast installation.
  14488. fast_install=$enable_fast_install
  14489. # The host system.
  14490. host_alias=$host_alias
  14491. host=$host
  14492. host_os=$host_os
  14493. # The build system.
  14494. build_alias=$build_alias
  14495. build=$build
  14496. build_os=$build_os
  14497. # A sed program that does not truncate output.
  14498. SED=$lt_SED
  14499. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  14500. Xsed="\$SED -e 1s/^X//"
  14501. # A grep program that handles long lines.
  14502. GREP=$lt_GREP
  14503. # An ERE matcher.
  14504. EGREP=$lt_EGREP
  14505. # A literal string matcher.
  14506. FGREP=$lt_FGREP
  14507. # A BSD- or MS-compatible name lister.
  14508. NM=$lt_NM
  14509. # Whether we need soft or hard links.
  14510. LN_S=$lt_LN_S
  14511. # What is the maximum length of a command?
  14512. max_cmd_len=$max_cmd_len
  14513. # Object file suffix (normally "o").
  14514. objext=$ac_objext
  14515. # Executable file suffix (normally "").
  14516. exeext=$exeext
  14517. # whether the shell understands "unset".
  14518. lt_unset=$lt_unset
  14519. # turn spaces into newlines.
  14520. SP2NL=$lt_lt_SP2NL
  14521. # turn newlines into spaces.
  14522. NL2SP=$lt_lt_NL2SP
  14523. # How to create reloadable object files.
  14524. reload_flag=$lt_reload_flag
  14525. reload_cmds=$lt_reload_cmds
  14526. # An object symbol dumper.
  14527. OBJDUMP=$lt_OBJDUMP
  14528. # Method to check whether dependent libraries are shared objects.
  14529. deplibs_check_method=$lt_deplibs_check_method
  14530. # Command to use when deplibs_check_method == "file_magic".
  14531. file_magic_cmd=$lt_file_magic_cmd
  14532. # The archiver.
  14533. AR=$lt_AR
  14534. AR_FLAGS=$lt_AR_FLAGS
  14535. # A symbol stripping program.
  14536. STRIP=$lt_STRIP
  14537. # Commands used to install an old-style archive.
  14538. RANLIB=$lt_RANLIB
  14539. old_postinstall_cmds=$lt_old_postinstall_cmds
  14540. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  14541. # A C compiler.
  14542. LTCC=$lt_CC
  14543. # LTCC compiler flags.
  14544. LTCFLAGS=$lt_CFLAGS
  14545. # Take the output of nm and produce a listing of raw symbols and C names.
  14546. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  14547. # Transform the output of nm in a proper C declaration.
  14548. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  14549. # Transform the output of nm in a C name address pair.
  14550. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  14551. # Transform the output of nm in a C name address pair when lib prefix is needed.
  14552. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  14553. # The name of the directory that contains temporary libtool files.
  14554. objdir=$objdir
  14555. # Shell to use when invoking shell scripts.
  14556. SHELL=$lt_SHELL
  14557. # An echo program that does not interpret backslashes.
  14558. ECHO=$lt_ECHO
  14559. # Used to examine libraries when file_magic_cmd begins with "file".
  14560. MAGIC_CMD=$MAGIC_CMD
  14561. # Must we lock files when doing compilation?
  14562. need_locks=$lt_need_locks
  14563. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  14564. DSYMUTIL=$lt_DSYMUTIL
  14565. # Tool to change global to local symbols on Mac OS X.
  14566. NMEDIT=$lt_NMEDIT
  14567. # Tool to manipulate fat objects and archives on Mac OS X.
  14568. LIPO=$lt_LIPO
  14569. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  14570. OTOOL=$lt_OTOOL
  14571. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  14572. OTOOL64=$lt_OTOOL64
  14573. # Old archive suffix (normally "a").
  14574. libext=$libext
  14575. # Shared library suffix (normally ".so").
  14576. shrext_cmds=$lt_shrext_cmds
  14577. # The commands to extract the exported symbol list from a shared archive.
  14578. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  14579. # Variables whose values should be saved in libtool wrapper scripts and
  14580. # restored at link time.
  14581. variables_saved_for_relink=$lt_variables_saved_for_relink
  14582. # Do we need the "lib" prefix for modules?
  14583. need_lib_prefix=$need_lib_prefix
  14584. # Do we need a version for libraries?
  14585. need_version=$need_version
  14586. # Library versioning type.
  14587. version_type=$version_type
  14588. # Shared library runtime path variable.
  14589. runpath_var=$runpath_var
  14590. # Shared library path variable.
  14591. shlibpath_var=$shlibpath_var
  14592. # Is shlibpath searched before the hard-coded library search path?
  14593. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  14594. # Format of library name prefix.
  14595. libname_spec=$lt_libname_spec
  14596. # List of archive names. First name is the real one, the rest are links.
  14597. # The last name is the one that the linker finds with -lNAME
  14598. library_names_spec=$lt_library_names_spec
  14599. # The coded name of the library, if different from the real name.
  14600. soname_spec=$lt_soname_spec
  14601. # Command to use after installation of a shared archive.
  14602. postinstall_cmds=$lt_postinstall_cmds
  14603. # Command to use after uninstallation of a shared archive.
  14604. postuninstall_cmds=$lt_postuninstall_cmds
  14605. # Commands used to finish a libtool library installation in a directory.
  14606. finish_cmds=$lt_finish_cmds
  14607. # As "finish_cmds", except a single script fragment to be evaled but
  14608. # not shown.
  14609. finish_eval=$lt_finish_eval
  14610. # Whether we should hardcode library paths into libraries.
  14611. hardcode_into_libs=$hardcode_into_libs
  14612. # Compile-time system search path for libraries.
  14613. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  14614. # Run-time system search path for libraries.
  14615. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  14616. # Whether dlopen is supported.
  14617. dlopen_support=$enable_dlopen
  14618. # Whether dlopen of programs is supported.
  14619. dlopen_self=$enable_dlopen_self
  14620. # Whether dlopen of statically linked programs is supported.
  14621. dlopen_self_static=$enable_dlopen_self_static
  14622. # Commands to strip libraries.
  14623. old_striplib=$lt_old_striplib
  14624. striplib=$lt_striplib
  14625. # The linker used to build libraries.
  14626. LD=$lt_LD
  14627. # Commands used to build an old-style archive.
  14628. old_archive_cmds=$lt_old_archive_cmds
  14629. # A language specific compiler.
  14630. CC=$lt_compiler
  14631. # Is the compiler the GNU compiler?
  14632. with_gcc=$GCC
  14633. # Compiler flag to turn off builtin functions.
  14634. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  14635. # How to pass a linker flag through the compiler.
  14636. wl=$lt_lt_prog_compiler_wl
  14637. # Additional compiler flags for building library objects.
  14638. pic_flag=$lt_lt_prog_compiler_pic
  14639. # Compiler flag to prevent dynamic linking.
  14640. link_static_flag=$lt_lt_prog_compiler_static
  14641. # Does compiler simultaneously support -c and -o options?
  14642. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  14643. # Whether or not to add -lc for building shared libraries.
  14644. build_libtool_need_lc=$archive_cmds_need_lc
  14645. # Whether or not to disallow shared libs when runtime libs are static.
  14646. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  14647. # Compiler flag to allow reflexive dlopens.
  14648. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  14649. # Compiler flag to generate shared objects directly from archives.
  14650. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  14651. # Whether the compiler copes with passing no objects directly.
  14652. compiler_needs_object=$lt_compiler_needs_object
  14653. # Create an old-style archive from a shared archive.
  14654. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  14655. # Create a temporary old-style archive to link instead of a shared archive.
  14656. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  14657. # Commands used to build a shared archive.
  14658. archive_cmds=$lt_archive_cmds
  14659. archive_expsym_cmds=$lt_archive_expsym_cmds
  14660. # Commands used to build a loadable module if different from building
  14661. # a shared archive.
  14662. module_cmds=$lt_module_cmds
  14663. module_expsym_cmds=$lt_module_expsym_cmds
  14664. # Whether we are building with GNU ld or not.
  14665. with_gnu_ld=$lt_with_gnu_ld
  14666. # Flag that allows shared libraries with undefined symbols to be built.
  14667. allow_undefined_flag=$lt_allow_undefined_flag
  14668. # Flag that enforces no undefined symbols.
  14669. no_undefined_flag=$lt_no_undefined_flag
  14670. # Flag to hardcode \$libdir into a binary during linking.
  14671. # This must work even if \$libdir does not exist
  14672. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  14673. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14674. # during linking. This must work even if \$libdir does not exist.
  14675. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  14676. # Whether we need a single "-rpath" flag with a separated argument.
  14677. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  14678. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14679. # DIR into the resulting binary.
  14680. hardcode_direct=$hardcode_direct
  14681. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14682. # DIR into the resulting binary and the resulting library dependency is
  14683. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14684. # library is relocated.
  14685. hardcode_direct_absolute=$hardcode_direct_absolute
  14686. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14687. # into the resulting binary.
  14688. hardcode_minus_L=$hardcode_minus_L
  14689. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14690. # into the resulting binary.
  14691. hardcode_shlibpath_var=$hardcode_shlibpath_var
  14692. # Set to "yes" if building a shared library automatically hardcodes DIR
  14693. # into the library and all subsequent libraries and executables linked
  14694. # against it.
  14695. hardcode_automatic=$hardcode_automatic
  14696. # Set to yes if linker adds runtime paths of dependent libraries
  14697. # to runtime path list.
  14698. inherit_rpath=$inherit_rpath
  14699. # Whether libtool must link a program against all its dependency libraries.
  14700. link_all_deplibs=$link_all_deplibs
  14701. # Fix the shell variable \$srcfile for the compiler.
  14702. fix_srcfile_path=$lt_fix_srcfile_path
  14703. # Set to "yes" if exported symbols are required.
  14704. always_export_symbols=$always_export_symbols
  14705. # The commands to list exported symbols.
  14706. export_symbols_cmds=$lt_export_symbols_cmds
  14707. # Symbols that should not be listed in the preloaded symbols.
  14708. exclude_expsyms=$lt_exclude_expsyms
  14709. # Symbols that must always be exported.
  14710. include_expsyms=$lt_include_expsyms
  14711. # Commands necessary for linking programs (against libraries) with templates.
  14712. prelink_cmds=$lt_prelink_cmds
  14713. # Specify filename containing input files.
  14714. file_list_spec=$lt_file_list_spec
  14715. # How to hardcode a shared library path into an executable.
  14716. hardcode_action=$hardcode_action
  14717. # The directories searched by this compiler when creating a shared library.
  14718. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  14719. # Dependencies to place before and after the objects being linked to
  14720. # create a shared library.
  14721. predep_objects=$lt_predep_objects
  14722. postdep_objects=$lt_postdep_objects
  14723. predeps=$lt_predeps
  14724. postdeps=$lt_postdeps
  14725. # The library search path used internally by the compiler when linking
  14726. # a shared library.
  14727. compiler_lib_search_path=$lt_compiler_lib_search_path
  14728. # ### END LIBTOOL CONFIG
  14729. _LT_EOF
  14730. case $host_os in
  14731. aix3*)
  14732. cat <<\_LT_EOF >> "$cfgfile"
  14733. # AIX sometimes has problems with the GCC collect2 program. For some
  14734. # reason, if we set the COLLECT_NAMES environment variable, the problems
  14735. # vanish in a puff of smoke.
  14736. if test "X${COLLECT_NAMES+set}" != Xset; then
  14737. COLLECT_NAMES=
  14738. export COLLECT_NAMES
  14739. fi
  14740. _LT_EOF
  14741. ;;
  14742. esac
  14743. ltmain="$ac_aux_dir/ltmain.sh"
  14744. # We use sed instead of cat because bash on DJGPP gets confused if
  14745. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  14746. # text mode, it properly converts lines to CR/LF. This bash problem
  14747. # is reportedly fixed, but why not run on old versions too?
  14748. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  14749. || (rm -f "$cfgfile"; exit 1)
  14750. case $xsi_shell in
  14751. yes)
  14752. cat << \_LT_EOF >> "$cfgfile"
  14753. # func_dirname file append nondir_replacement
  14754. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14755. # otherwise set result to NONDIR_REPLACEMENT.
  14756. func_dirname ()
  14757. {
  14758. case ${1} in
  14759. */*) func_dirname_result="${1%/*}${2}" ;;
  14760. * ) func_dirname_result="${3}" ;;
  14761. esac
  14762. }
  14763. # func_basename file
  14764. func_basename ()
  14765. {
  14766. func_basename_result="${1##*/}"
  14767. }
  14768. # func_dirname_and_basename file append nondir_replacement
  14769. # perform func_basename and func_dirname in a single function
  14770. # call:
  14771. # dirname: Compute the dirname of FILE. If nonempty,
  14772. # add APPEND to the result, otherwise set result
  14773. # to NONDIR_REPLACEMENT.
  14774. # value returned in "$func_dirname_result"
  14775. # basename: Compute filename of FILE.
  14776. # value retuned in "$func_basename_result"
  14777. # Implementation must be kept synchronized with func_dirname
  14778. # and func_basename. For efficiency, we do not delegate to
  14779. # those functions but instead duplicate the functionality here.
  14780. func_dirname_and_basename ()
  14781. {
  14782. case ${1} in
  14783. */*) func_dirname_result="${1%/*}${2}" ;;
  14784. * ) func_dirname_result="${3}" ;;
  14785. esac
  14786. func_basename_result="${1##*/}"
  14787. }
  14788. # func_stripname prefix suffix name
  14789. # strip PREFIX and SUFFIX off of NAME.
  14790. # PREFIX and SUFFIX must not contain globbing or regex special
  14791. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14792. # dot (in which case that matches only a dot).
  14793. func_stripname ()
  14794. {
  14795. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  14796. # positional parameters, so assign one to ordinary parameter first.
  14797. func_stripname_result=${3}
  14798. func_stripname_result=${func_stripname_result#"${1}"}
  14799. func_stripname_result=${func_stripname_result%"${2}"}
  14800. }
  14801. # func_opt_split
  14802. func_opt_split ()
  14803. {
  14804. func_opt_split_opt=${1%%=*}
  14805. func_opt_split_arg=${1#*=}
  14806. }
  14807. # func_lo2o object
  14808. func_lo2o ()
  14809. {
  14810. case ${1} in
  14811. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  14812. *) func_lo2o_result=${1} ;;
  14813. esac
  14814. }
  14815. # func_xform libobj-or-source
  14816. func_xform ()
  14817. {
  14818. func_xform_result=${1%.*}.lo
  14819. }
  14820. # func_arith arithmetic-term...
  14821. func_arith ()
  14822. {
  14823. func_arith_result=$(( $* ))
  14824. }
  14825. # func_len string
  14826. # STRING may not start with a hyphen.
  14827. func_len ()
  14828. {
  14829. func_len_result=${#1}
  14830. }
  14831. _LT_EOF
  14832. ;;
  14833. *) # Bourne compatible functions.
  14834. cat << \_LT_EOF >> "$cfgfile"
  14835. # func_dirname file append nondir_replacement
  14836. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  14837. # otherwise set result to NONDIR_REPLACEMENT.
  14838. func_dirname ()
  14839. {
  14840. # Extract subdirectory from the argument.
  14841. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  14842. if test "X$func_dirname_result" = "X${1}"; then
  14843. func_dirname_result="${3}"
  14844. else
  14845. func_dirname_result="$func_dirname_result${2}"
  14846. fi
  14847. }
  14848. # func_basename file
  14849. func_basename ()
  14850. {
  14851. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  14852. }
  14853. # func_stripname prefix suffix name
  14854. # strip PREFIX and SUFFIX off of NAME.
  14855. # PREFIX and SUFFIX must not contain globbing or regex special
  14856. # characters, hashes, percent signs, but SUFFIX may contain a leading
  14857. # dot (in which case that matches only a dot).
  14858. # func_strip_suffix prefix name
  14859. func_stripname ()
  14860. {
  14861. case ${2} in
  14862. .*) func_stripname_result=`$ECHO "X${3}" \
  14863. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  14864. *) func_stripname_result=`$ECHO "X${3}" \
  14865. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  14866. esac
  14867. }
  14868. # sed scripts:
  14869. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  14870. my_sed_long_arg='1s/^-[^=]*=//'
  14871. # func_opt_split
  14872. func_opt_split ()
  14873. {
  14874. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  14875. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  14876. }
  14877. # func_lo2o object
  14878. func_lo2o ()
  14879. {
  14880. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  14881. }
  14882. # func_xform libobj-or-source
  14883. func_xform ()
  14884. {
  14885. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  14886. }
  14887. # func_arith arithmetic-term...
  14888. func_arith ()
  14889. {
  14890. func_arith_result=`expr "$@"`
  14891. }
  14892. # func_len string
  14893. # STRING may not start with a hyphen.
  14894. func_len ()
  14895. {
  14896. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  14897. }
  14898. _LT_EOF
  14899. esac
  14900. case $lt_shell_append in
  14901. yes)
  14902. cat << \_LT_EOF >> "$cfgfile"
  14903. # func_append var value
  14904. # Append VALUE to the end of shell variable VAR.
  14905. func_append ()
  14906. {
  14907. eval "$1+=\$2"
  14908. }
  14909. _LT_EOF
  14910. ;;
  14911. *)
  14912. cat << \_LT_EOF >> "$cfgfile"
  14913. # func_append var value
  14914. # Append VALUE to the end of shell variable VAR.
  14915. func_append ()
  14916. {
  14917. eval "$1=\$$1\$2"
  14918. }
  14919. _LT_EOF
  14920. ;;
  14921. esac
  14922. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  14923. || (rm -f "$cfgfile"; exit 1)
  14924. mv -f "$cfgfile" "$ofile" ||
  14925. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  14926. chmod +x "$ofile"
  14927. cat <<_LT_EOF >> "$ofile"
  14928. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  14929. # The linker used to build libraries.
  14930. LD=$lt_LD_CXX
  14931. # Commands used to build an old-style archive.
  14932. old_archive_cmds=$lt_old_archive_cmds_CXX
  14933. # A language specific compiler.
  14934. CC=$lt_compiler_CXX
  14935. # Is the compiler the GNU compiler?
  14936. with_gcc=$GCC_CXX
  14937. # Compiler flag to turn off builtin functions.
  14938. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  14939. # How to pass a linker flag through the compiler.
  14940. wl=$lt_lt_prog_compiler_wl_CXX
  14941. # Additional compiler flags for building library objects.
  14942. pic_flag=$lt_lt_prog_compiler_pic_CXX
  14943. # Compiler flag to prevent dynamic linking.
  14944. link_static_flag=$lt_lt_prog_compiler_static_CXX
  14945. # Does compiler simultaneously support -c and -o options?
  14946. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  14947. # Whether or not to add -lc for building shared libraries.
  14948. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  14949. # Whether or not to disallow shared libs when runtime libs are static.
  14950. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  14951. # Compiler flag to allow reflexive dlopens.
  14952. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  14953. # Compiler flag to generate shared objects directly from archives.
  14954. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  14955. # Whether the compiler copes with passing no objects directly.
  14956. compiler_needs_object=$lt_compiler_needs_object_CXX
  14957. # Create an old-style archive from a shared archive.
  14958. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  14959. # Create a temporary old-style archive to link instead of a shared archive.
  14960. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  14961. # Commands used to build a shared archive.
  14962. archive_cmds=$lt_archive_cmds_CXX
  14963. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  14964. # Commands used to build a loadable module if different from building
  14965. # a shared archive.
  14966. module_cmds=$lt_module_cmds_CXX
  14967. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  14968. # Whether we are building with GNU ld or not.
  14969. with_gnu_ld=$lt_with_gnu_ld_CXX
  14970. # Flag that allows shared libraries with undefined symbols to be built.
  14971. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  14972. # Flag that enforces no undefined symbols.
  14973. no_undefined_flag=$lt_no_undefined_flag_CXX
  14974. # Flag to hardcode \$libdir into a binary during linking.
  14975. # This must work even if \$libdir does not exist
  14976. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  14977. # If ld is used when linking, flag to hardcode \$libdir into a binary
  14978. # during linking. This must work even if \$libdir does not exist.
  14979. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  14980. # Whether we need a single "-rpath" flag with a separated argument.
  14981. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  14982. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14983. # DIR into the resulting binary.
  14984. hardcode_direct=$hardcode_direct_CXX
  14985. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  14986. # DIR into the resulting binary and the resulting library dependency is
  14987. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  14988. # library is relocated.
  14989. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  14990. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  14991. # into the resulting binary.
  14992. hardcode_minus_L=$hardcode_minus_L_CXX
  14993. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  14994. # into the resulting binary.
  14995. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  14996. # Set to "yes" if building a shared library automatically hardcodes DIR
  14997. # into the library and all subsequent libraries and executables linked
  14998. # against it.
  14999. hardcode_automatic=$hardcode_automatic_CXX
  15000. # Set to yes if linker adds runtime paths of dependent libraries
  15001. # to runtime path list.
  15002. inherit_rpath=$inherit_rpath_CXX
  15003. # Whether libtool must link a program against all its dependency libraries.
  15004. link_all_deplibs=$link_all_deplibs_CXX
  15005. # Fix the shell variable \$srcfile for the compiler.
  15006. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  15007. # Set to "yes" if exported symbols are required.
  15008. always_export_symbols=$always_export_symbols_CXX
  15009. # The commands to list exported symbols.
  15010. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  15011. # Symbols that should not be listed in the preloaded symbols.
  15012. exclude_expsyms=$lt_exclude_expsyms_CXX
  15013. # Symbols that must always be exported.
  15014. include_expsyms=$lt_include_expsyms_CXX
  15015. # Commands necessary for linking programs (against libraries) with templates.
  15016. prelink_cmds=$lt_prelink_cmds_CXX
  15017. # Specify filename containing input files.
  15018. file_list_spec=$lt_file_list_spec_CXX
  15019. # How to hardcode a shared library path into an executable.
  15020. hardcode_action=$hardcode_action_CXX
  15021. # The directories searched by this compiler when creating a shared library.
  15022. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  15023. # Dependencies to place before and after the objects being linked to
  15024. # create a shared library.
  15025. predep_objects=$lt_predep_objects_CXX
  15026. postdep_objects=$lt_postdep_objects_CXX
  15027. predeps=$lt_predeps_CXX
  15028. postdeps=$lt_postdeps_CXX
  15029. # The library search path used internally by the compiler when linking
  15030. # a shared library.
  15031. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  15032. # ### END LIBTOOL TAG CONFIG: CXX
  15033. _LT_EOF
  15034. ;;
  15035. esac
  15036. done # for ac_tag
  15037. as_fn_exit 0
  15038. _ACEOF
  15039. ac_clean_files=$ac_clean_files_save
  15040. test $ac_write_fail = 0 ||
  15041. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15042. # configure is writing to config.log, and then calls config.status.
  15043. # config.status does its own redirection, appending to config.log.
  15044. # Unfortunately, on DOS this fails, as config.log is still kept open
  15045. # by configure, so config.status won't be able to write to it; its
  15046. # output is simply discarded. So we exec the FD to /dev/null,
  15047. # effectively closing config.log, so it can be properly (re)opened and
  15048. # appended to by config.status. When coming back to configure, we
  15049. # need to make the FD available again.
  15050. if test "$no_create" != yes; then
  15051. ac_cs_success=:
  15052. ac_config_status_args=
  15053. test "$silent" = yes &&
  15054. ac_config_status_args="$ac_config_status_args --quiet"
  15055. exec 5>/dev/null
  15056. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  15057. exec 5>>config.log
  15058. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  15059. # would make configure fail if this is the last instruction.
  15060. $ac_cs_success || as_fn_exit $?
  15061. fi
  15062. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  15063. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  15064. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  15065. fi