configure 712 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for log4cplus 1.1.3.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='log4cplus'
  539. PACKAGE_TARNAME='log4cplus'
  540. PACKAGE_VERSION='1.1.3'
  541. PACKAGE_STRING='log4cplus 1.1.3'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="src/logger.cxx"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='am__EXEEXT_FALSE
  581. am__EXEEXT_TRUE
  582. LTLIBOBJS
  583. LIBOBJS
  584. LOG4CPLUS_PROFILING_CXXFLAGS
  585. LOG4CPLUS_PROFILING_LDFLAGS
  586. OTOOL64
  587. OTOOL
  588. LIPO
  589. NMEDIT
  590. DSYMUTIL
  591. MANIFEST_TOOL
  592. RANLIB
  593. LN_S
  594. NM
  595. ac_ct_DUMPBIN
  596. DUMPBIN
  597. LD
  598. FGREP
  599. LIBTOOL
  600. OBJDUMP
  601. DLLTOOL
  602. AS
  603. QT_FALSE
  604. QT_TRUE
  605. QT_LIBS
  606. QT_CFLAGS
  607. PKG_CONFIG_LIBDIR
  608. PKG_CONFIG_PATH
  609. PKG_CONFIG
  610. MULTI_THREADED_FALSE
  611. MULTI_THREADED_TRUE
  612. PTHREAD_CXXFLAGS
  613. PTHREAD_LIBS
  614. ax_pthread_config
  615. EGREP
  616. LOG4CPLUS_AIX_XLC_LDFLAGS
  617. GREP
  618. SED
  619. CXXCPP
  620. am__fastdepCXX_FALSE
  621. am__fastdepCXX_TRUE
  622. CXXDEPMODE
  623. ac_ct_CXX
  624. CXXFLAGS
  625. CXX
  626. ENABLE_RELEASE_OPTION_FALSE
  627. ENABLE_RELEASE_OPTION_TRUE
  628. ENABLE_VERSION_INFO_OPTION_FALSE
  629. ENABLE_VERSION_INFO_OPTION_TRUE
  630. LOG4CPLUS_NDEBUG
  631. LT_RELEASE
  632. LT_VERSION
  633. am__fastdepCC_FALSE
  634. am__fastdepCC_TRUE
  635. CCDEPMODE
  636. am__nodep
  637. AMDEPBACKSLASH
  638. AMDEP_FALSE
  639. AMDEP_TRUE
  640. am__quote
  641. am__include
  642. DEPDIR
  643. OBJEXT
  644. EXEEXT
  645. ac_ct_CC
  646. CPPFLAGS
  647. LDFLAGS
  648. CFLAGS
  649. CC
  650. ac_ct_AR
  651. AR
  652. am__untar
  653. am__tar
  654. AMTAR
  655. am__leading_dot
  656. SET_MAKE
  657. AWK
  658. mkdir_p
  659. MKDIR_P
  660. INSTALL_STRIP_PROGRAM
  661. STRIP
  662. install_sh
  663. MAKEINFO
  664. AUTOHEADER
  665. AUTOMAKE
  666. AUTOCONF
  667. ACLOCAL
  668. VERSION
  669. PACKAGE
  670. CYGPATH_W
  671. am__isrc
  672. INSTALL_DATA
  673. INSTALL_SCRIPT
  674. INSTALL_PROGRAM
  675. target_os
  676. target_vendor
  677. target_cpu
  678. target
  679. host_os
  680. host_vendor
  681. host_cpu
  682. host
  683. build_os
  684. build_vendor
  685. build_cpu
  686. build
  687. target_alias
  688. host_alias
  689. build_alias
  690. LIBS
  691. ECHO_T
  692. ECHO_N
  693. ECHO_C
  694. DEFS
  695. mandir
  696. localedir
  697. libdir
  698. psdir
  699. pdfdir
  700. dvidir
  701. htmldir
  702. infodir
  703. docdir
  704. oldincludedir
  705. includedir
  706. localstatedir
  707. sharedstatedir
  708. sysconfdir
  709. datadir
  710. datarootdir
  711. libexecdir
  712. sbindir
  713. bindir
  714. program_transform_name
  715. prefix
  716. exec_prefix
  717. PACKAGE_URL
  718. PACKAGE_BUGREPORT
  719. PACKAGE_STRING
  720. PACKAGE_VERSION
  721. PACKAGE_TARNAME
  722. PACKAGE_NAME
  723. PATH_SEPARATOR
  724. SHELL'
  725. ac_subst_files=''
  726. ac_user_opts='
  727. enable_option_checking
  728. enable_dependency_tracking
  729. with_working_locale
  730. with_working_c_locale
  731. with_iconv
  732. enable_debugging
  733. enable_warnings
  734. enable_so_version
  735. enable_release_version
  736. enable_symbols_visibility_options
  737. enable_profiling
  738. enable_threads
  739. with_qt
  740. enable_shared
  741. enable_static
  742. with_pic
  743. enable_fast_install
  744. with_gnu_ld
  745. with_sysroot
  746. enable_libtool_lock
  747. '
  748. ac_precious_vars='build_alias
  749. host_alias
  750. target_alias
  751. CC
  752. CFLAGS
  753. LDFLAGS
  754. LIBS
  755. CPPFLAGS
  756. CXX
  757. CXXFLAGS
  758. CCC
  759. CXXCPP
  760. PKG_CONFIG
  761. PKG_CONFIG_PATH
  762. PKG_CONFIG_LIBDIR
  763. QT_CFLAGS
  764. QT_LIBS'
  765. # Initialize some variables set by options.
  766. ac_init_help=
  767. ac_init_version=false
  768. ac_unrecognized_opts=
  769. ac_unrecognized_sep=
  770. # The variables have the same names as the options, with
  771. # dashes changed to underlines.
  772. cache_file=/dev/null
  773. exec_prefix=NONE
  774. no_create=
  775. no_recursion=
  776. prefix=NONE
  777. program_prefix=NONE
  778. program_suffix=NONE
  779. program_transform_name=s,x,x,
  780. silent=
  781. site=
  782. srcdir=
  783. verbose=
  784. x_includes=NONE
  785. x_libraries=NONE
  786. # Installation directory options.
  787. # These are left unexpanded so users can "make install exec_prefix=/foo"
  788. # and all the variables that are supposed to be based on exec_prefix
  789. # by default will actually change.
  790. # Use braces instead of parens because sh, perl, etc. also accept them.
  791. # (The list follows the same order as the GNU Coding Standards.)
  792. bindir='${exec_prefix}/bin'
  793. sbindir='${exec_prefix}/sbin'
  794. libexecdir='${exec_prefix}/libexec'
  795. datarootdir='${prefix}/share'
  796. datadir='${datarootdir}'
  797. sysconfdir='${prefix}/etc'
  798. sharedstatedir='${prefix}/com'
  799. localstatedir='${prefix}/var'
  800. includedir='${prefix}/include'
  801. oldincludedir='/usr/include'
  802. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  803. infodir='${datarootdir}/info'
  804. htmldir='${docdir}'
  805. dvidir='${docdir}'
  806. pdfdir='${docdir}'
  807. psdir='${docdir}'
  808. libdir='${exec_prefix}/lib'
  809. localedir='${datarootdir}/locale'
  810. mandir='${datarootdir}/man'
  811. ac_prev=
  812. ac_dashdash=
  813. for ac_option
  814. do
  815. # If the previous option needs an argument, assign it.
  816. if test -n "$ac_prev"; then
  817. eval $ac_prev=\$ac_option
  818. ac_prev=
  819. continue
  820. fi
  821. case $ac_option in
  822. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  823. *=) ac_optarg= ;;
  824. *) ac_optarg=yes ;;
  825. esac
  826. # Accept the important Cygnus configure options, so we can diagnose typos.
  827. case $ac_dashdash$ac_option in
  828. --)
  829. ac_dashdash=yes ;;
  830. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  831. ac_prev=bindir ;;
  832. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  833. bindir=$ac_optarg ;;
  834. -build | --build | --buil | --bui | --bu)
  835. ac_prev=build_alias ;;
  836. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  837. build_alias=$ac_optarg ;;
  838. -cache-file | --cache-file | --cache-fil | --cache-fi \
  839. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  840. ac_prev=cache_file ;;
  841. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  842. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  843. cache_file=$ac_optarg ;;
  844. --config-cache | -C)
  845. cache_file=config.cache ;;
  846. -datadir | --datadir | --datadi | --datad)
  847. ac_prev=datadir ;;
  848. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  849. datadir=$ac_optarg ;;
  850. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  851. | --dataroo | --dataro | --datar)
  852. ac_prev=datarootdir ;;
  853. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  854. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  855. datarootdir=$ac_optarg ;;
  856. -disable-* | --disable-*)
  857. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  858. # Reject names that are not valid shell variable names.
  859. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  860. as_fn_error $? "invalid feature name: $ac_useropt"
  861. ac_useropt_orig=$ac_useropt
  862. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  863. case $ac_user_opts in
  864. *"
  865. "enable_$ac_useropt"
  866. "*) ;;
  867. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  868. ac_unrecognized_sep=', ';;
  869. esac
  870. eval enable_$ac_useropt=no ;;
  871. -docdir | --docdir | --docdi | --doc | --do)
  872. ac_prev=docdir ;;
  873. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  874. docdir=$ac_optarg ;;
  875. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  876. ac_prev=dvidir ;;
  877. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  878. dvidir=$ac_optarg ;;
  879. -enable-* | --enable-*)
  880. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  881. # Reject names that are not valid shell variable names.
  882. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  883. as_fn_error $? "invalid feature name: $ac_useropt"
  884. ac_useropt_orig=$ac_useropt
  885. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  886. case $ac_user_opts in
  887. *"
  888. "enable_$ac_useropt"
  889. "*) ;;
  890. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  891. ac_unrecognized_sep=', ';;
  892. esac
  893. eval enable_$ac_useropt=\$ac_optarg ;;
  894. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  895. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  896. | --exec | --exe | --ex)
  897. ac_prev=exec_prefix ;;
  898. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  899. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  900. | --exec=* | --exe=* | --ex=*)
  901. exec_prefix=$ac_optarg ;;
  902. -gas | --gas | --ga | --g)
  903. # Obsolete; use --with-gas.
  904. with_gas=yes ;;
  905. -help | --help | --hel | --he | -h)
  906. ac_init_help=long ;;
  907. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  908. ac_init_help=recursive ;;
  909. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  910. ac_init_help=short ;;
  911. -host | --host | --hos | --ho)
  912. ac_prev=host_alias ;;
  913. -host=* | --host=* | --hos=* | --ho=*)
  914. host_alias=$ac_optarg ;;
  915. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  916. ac_prev=htmldir ;;
  917. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  918. | --ht=*)
  919. htmldir=$ac_optarg ;;
  920. -includedir | --includedir | --includedi | --included | --include \
  921. | --includ | --inclu | --incl | --inc)
  922. ac_prev=includedir ;;
  923. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  924. | --includ=* | --inclu=* | --incl=* | --inc=*)
  925. includedir=$ac_optarg ;;
  926. -infodir | --infodir | --infodi | --infod | --info | --inf)
  927. ac_prev=infodir ;;
  928. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  929. infodir=$ac_optarg ;;
  930. -libdir | --libdir | --libdi | --libd)
  931. ac_prev=libdir ;;
  932. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  933. libdir=$ac_optarg ;;
  934. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  935. | --libexe | --libex | --libe)
  936. ac_prev=libexecdir ;;
  937. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  938. | --libexe=* | --libex=* | --libe=*)
  939. libexecdir=$ac_optarg ;;
  940. -localedir | --localedir | --localedi | --localed | --locale)
  941. ac_prev=localedir ;;
  942. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  943. localedir=$ac_optarg ;;
  944. -localstatedir | --localstatedir | --localstatedi | --localstated \
  945. | --localstate | --localstat | --localsta | --localst | --locals)
  946. ac_prev=localstatedir ;;
  947. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  948. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  949. localstatedir=$ac_optarg ;;
  950. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  951. ac_prev=mandir ;;
  952. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  953. mandir=$ac_optarg ;;
  954. -nfp | --nfp | --nf)
  955. # Obsolete; use --without-fp.
  956. with_fp=no ;;
  957. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  958. | --no-cr | --no-c | -n)
  959. no_create=yes ;;
  960. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  961. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  962. no_recursion=yes ;;
  963. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  964. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  965. | --oldin | --oldi | --old | --ol | --o)
  966. ac_prev=oldincludedir ;;
  967. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  968. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  969. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  970. oldincludedir=$ac_optarg ;;
  971. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  972. ac_prev=prefix ;;
  973. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  974. prefix=$ac_optarg ;;
  975. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  976. | --program-pre | --program-pr | --program-p)
  977. ac_prev=program_prefix ;;
  978. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  979. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  980. program_prefix=$ac_optarg ;;
  981. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  982. | --program-suf | --program-su | --program-s)
  983. ac_prev=program_suffix ;;
  984. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  985. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  986. program_suffix=$ac_optarg ;;
  987. -program-transform-name | --program-transform-name \
  988. | --program-transform-nam | --program-transform-na \
  989. | --program-transform-n | --program-transform- \
  990. | --program-transform | --program-transfor \
  991. | --program-transfo | --program-transf \
  992. | --program-trans | --program-tran \
  993. | --progr-tra | --program-tr | --program-t)
  994. ac_prev=program_transform_name ;;
  995. -program-transform-name=* | --program-transform-name=* \
  996. | --program-transform-nam=* | --program-transform-na=* \
  997. | --program-transform-n=* | --program-transform-=* \
  998. | --program-transform=* | --program-transfor=* \
  999. | --program-transfo=* | --program-transf=* \
  1000. | --program-trans=* | --program-tran=* \
  1001. | --progr-tra=* | --program-tr=* | --program-t=*)
  1002. program_transform_name=$ac_optarg ;;
  1003. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1004. ac_prev=pdfdir ;;
  1005. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1006. pdfdir=$ac_optarg ;;
  1007. -psdir | --psdir | --psdi | --psd | --ps)
  1008. ac_prev=psdir ;;
  1009. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1010. psdir=$ac_optarg ;;
  1011. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1012. | -silent | --silent | --silen | --sile | --sil)
  1013. silent=yes ;;
  1014. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1015. ac_prev=sbindir ;;
  1016. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1017. | --sbi=* | --sb=*)
  1018. sbindir=$ac_optarg ;;
  1019. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1020. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1021. | --sharedst | --shareds | --shared | --share | --shar \
  1022. | --sha | --sh)
  1023. ac_prev=sharedstatedir ;;
  1024. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1025. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1026. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1027. | --sha=* | --sh=*)
  1028. sharedstatedir=$ac_optarg ;;
  1029. -site | --site | --sit)
  1030. ac_prev=site ;;
  1031. -site=* | --site=* | --sit=*)
  1032. site=$ac_optarg ;;
  1033. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1034. ac_prev=srcdir ;;
  1035. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1036. srcdir=$ac_optarg ;;
  1037. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1038. | --syscon | --sysco | --sysc | --sys | --sy)
  1039. ac_prev=sysconfdir ;;
  1040. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1041. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1042. sysconfdir=$ac_optarg ;;
  1043. -target | --target | --targe | --targ | --tar | --ta | --t)
  1044. ac_prev=target_alias ;;
  1045. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1046. target_alias=$ac_optarg ;;
  1047. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1048. verbose=yes ;;
  1049. -version | --version | --versio | --versi | --vers | -V)
  1050. ac_init_version=: ;;
  1051. -with-* | --with-*)
  1052. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1053. # Reject names that are not valid shell variable names.
  1054. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1055. as_fn_error $? "invalid package name: $ac_useropt"
  1056. ac_useropt_orig=$ac_useropt
  1057. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1058. case $ac_user_opts in
  1059. *"
  1060. "with_$ac_useropt"
  1061. "*) ;;
  1062. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1063. ac_unrecognized_sep=', ';;
  1064. esac
  1065. eval with_$ac_useropt=\$ac_optarg ;;
  1066. -without-* | --without-*)
  1067. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1068. # Reject names that are not valid shell variable names.
  1069. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1070. as_fn_error $? "invalid package name: $ac_useropt"
  1071. ac_useropt_orig=$ac_useropt
  1072. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1073. case $ac_user_opts in
  1074. *"
  1075. "with_$ac_useropt"
  1076. "*) ;;
  1077. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1078. ac_unrecognized_sep=', ';;
  1079. esac
  1080. eval with_$ac_useropt=no ;;
  1081. --x)
  1082. # Obsolete; use --with-x.
  1083. with_x=yes ;;
  1084. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1085. | --x-incl | --x-inc | --x-in | --x-i)
  1086. ac_prev=x_includes ;;
  1087. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1088. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1089. x_includes=$ac_optarg ;;
  1090. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1091. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1092. ac_prev=x_libraries ;;
  1093. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1094. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1095. x_libraries=$ac_optarg ;;
  1096. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1097. Try \`$0 --help' for more information"
  1098. ;;
  1099. *=*)
  1100. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1101. # Reject names that are not valid shell variable names.
  1102. case $ac_envvar in #(
  1103. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1104. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1105. esac
  1106. eval $ac_envvar=\$ac_optarg
  1107. export $ac_envvar ;;
  1108. *)
  1109. # FIXME: should be removed in autoconf 3.0.
  1110. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1111. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1112. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1113. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1114. ;;
  1115. esac
  1116. done
  1117. if test -n "$ac_prev"; then
  1118. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1119. as_fn_error $? "missing argument to $ac_option"
  1120. fi
  1121. if test -n "$ac_unrecognized_opts"; then
  1122. case $enable_option_checking in
  1123. no) ;;
  1124. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1125. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1126. esac
  1127. fi
  1128. # Check all directory arguments for consistency.
  1129. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1130. datadir sysconfdir sharedstatedir localstatedir includedir \
  1131. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1132. libdir localedir mandir
  1133. do
  1134. eval ac_val=\$$ac_var
  1135. # Remove trailing slashes.
  1136. case $ac_val in
  1137. */ )
  1138. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1139. eval $ac_var=\$ac_val;;
  1140. esac
  1141. # Be sure to have absolute directory names.
  1142. case $ac_val in
  1143. [\\/$]* | ?:[\\/]* ) continue;;
  1144. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1145. esac
  1146. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1147. done
  1148. # There might be people who depend on the old broken behavior: `$host'
  1149. # used to hold the argument of --host etc.
  1150. # FIXME: To remove some day.
  1151. build=$build_alias
  1152. host=$host_alias
  1153. target=$target_alias
  1154. # FIXME: To remove some day.
  1155. if test "x$host_alias" != x; then
  1156. if test "x$build_alias" = x; then
  1157. cross_compiling=maybe
  1158. elif test "x$build_alias" != "x$host_alias"; then
  1159. cross_compiling=yes
  1160. fi
  1161. fi
  1162. ac_tool_prefix=
  1163. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1164. test "$silent" = yes && exec 6>/dev/null
  1165. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1166. ac_ls_di=`ls -di .` &&
  1167. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1168. as_fn_error $? "working directory cannot be determined"
  1169. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1170. as_fn_error $? "pwd does not report name of working directory"
  1171. # Find the source files, if location was not specified.
  1172. if test -z "$srcdir"; then
  1173. ac_srcdir_defaulted=yes
  1174. # Try the directory containing this script, then the parent directory.
  1175. ac_confdir=`$as_dirname -- "$as_myself" ||
  1176. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1177. X"$as_myself" : 'X\(//\)[^/]' \| \
  1178. X"$as_myself" : 'X\(//\)$' \| \
  1179. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1180. $as_echo X"$as_myself" |
  1181. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1182. s//\1/
  1183. q
  1184. }
  1185. /^X\(\/\/\)[^/].*/{
  1186. s//\1/
  1187. q
  1188. }
  1189. /^X\(\/\/\)$/{
  1190. s//\1/
  1191. q
  1192. }
  1193. /^X\(\/\).*/{
  1194. s//\1/
  1195. q
  1196. }
  1197. s/.*/./; q'`
  1198. srcdir=$ac_confdir
  1199. if test ! -r "$srcdir/$ac_unique_file"; then
  1200. srcdir=..
  1201. fi
  1202. else
  1203. ac_srcdir_defaulted=no
  1204. fi
  1205. if test ! -r "$srcdir/$ac_unique_file"; then
  1206. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1207. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1208. fi
  1209. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1210. ac_abs_confdir=`(
  1211. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1212. pwd)`
  1213. # When building in place, set srcdir=.
  1214. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1215. srcdir=.
  1216. fi
  1217. # Remove unnecessary trailing slashes from srcdir.
  1218. # Double slashes in file names in object file debugging info
  1219. # mess up M-x gdb in Emacs.
  1220. case $srcdir in
  1221. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1222. esac
  1223. for ac_var in $ac_precious_vars; do
  1224. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1225. eval ac_env_${ac_var}_value=\$${ac_var}
  1226. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1227. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1228. done
  1229. #
  1230. # Report the --help message.
  1231. #
  1232. if test "$ac_init_help" = "long"; then
  1233. # Omit some internal or obsolete options to make the list less imposing.
  1234. # This message is too long to be a string in the A/UX 3.1 sh.
  1235. cat <<_ACEOF
  1236. \`configure' configures log4cplus 1.1.3 to adapt to many kinds of systems.
  1237. Usage: $0 [OPTION]... [VAR=VALUE]...
  1238. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1239. VAR=VALUE. See below for descriptions of some of the useful variables.
  1240. Defaults for the options are specified in brackets.
  1241. Configuration:
  1242. -h, --help display this help and exit
  1243. --help=short display options specific to this package
  1244. --help=recursive display the short help of all the included packages
  1245. -V, --version display version information and exit
  1246. -q, --quiet, --silent do not print \`checking ...' messages
  1247. --cache-file=FILE cache test results in FILE [disabled]
  1248. -C, --config-cache alias for \`--cache-file=config.cache'
  1249. -n, --no-create do not create output files
  1250. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1251. Installation directories:
  1252. --prefix=PREFIX install architecture-independent files in PREFIX
  1253. [$ac_default_prefix]
  1254. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1255. [PREFIX]
  1256. By default, \`make install' will install all the files in
  1257. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1258. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1259. for instance \`--prefix=\$HOME'.
  1260. For better control, use the options below.
  1261. Fine tuning of the installation directories:
  1262. --bindir=DIR user executables [EPREFIX/bin]
  1263. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1264. --libexecdir=DIR program executables [EPREFIX/libexec]
  1265. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1266. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1267. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1268. --libdir=DIR object code libraries [EPREFIX/lib]
  1269. --includedir=DIR C header files [PREFIX/include]
  1270. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1271. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1272. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1273. --infodir=DIR info documentation [DATAROOTDIR/info]
  1274. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1275. --mandir=DIR man documentation [DATAROOTDIR/man]
  1276. --docdir=DIR documentation root [DATAROOTDIR/doc/log4cplus]
  1277. --htmldir=DIR html documentation [DOCDIR]
  1278. --dvidir=DIR dvi documentation [DOCDIR]
  1279. --pdfdir=DIR pdf documentation [DOCDIR]
  1280. --psdir=DIR ps documentation [DOCDIR]
  1281. _ACEOF
  1282. cat <<\_ACEOF
  1283. Program names:
  1284. --program-prefix=PREFIX prepend PREFIX to installed program names
  1285. --program-suffix=SUFFIX append SUFFIX to installed program names
  1286. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1287. System types:
  1288. --build=BUILD configure for building on BUILD [guessed]
  1289. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1290. --target=TARGET configure for building compilers for TARGET [HOST]
  1291. _ACEOF
  1292. fi
  1293. if test -n "$ac_init_help"; then
  1294. case $ac_init_help in
  1295. short | recursive ) echo "Configuration of log4cplus 1.1.3:";;
  1296. esac
  1297. cat <<\_ACEOF
  1298. Optional Features:
  1299. --disable-option-checking ignore unrecognized --enable/--with options
  1300. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1301. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1302. --enable-dependency-tracking
  1303. do not reject slow dependency extractors
  1304. --disable-dependency-tracking
  1305. speeds up one-time build
  1306. --enable-debugging Turns off optimization and adds switches that
  1307. generate debugging information. [default=no]
  1308. --enable-warnings Use compiler warnings option, e.g. -Wall.
  1309. [default=yes]
  1310. --enable-so-version Use libtool -version-info option. [default=yes]
  1311. --enable-release-version
  1312. Use libtool -release option. [default=yes]
  1313. --enable-symbols-visibility-options
  1314. Use platform and compiler specific symbols
  1315. visibility options, where they are available.
  1316. [default=yes]
  1317. --enable-profiling Compile with profiling compiler options.
  1318. --enable-threads=yes/no Use this option to create a singled-threaded version
  1319. of this library
  1320. --enable-shared[=PKGS] build shared libraries [default=yes]
  1321. --enable-static[=PKGS] build static libraries [default=yes]
  1322. --enable-fast-install[=PKGS]
  1323. optimize for fast installation [default=yes]
  1324. --disable-libtool-lock avoid locking (might break parallel builds)
  1325. Optional Packages:
  1326. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1327. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1328. --with-working-locale Use std::locale for char->wchar_t conversion.
  1329. --with-working-c-locale Use C99 locale facilities for char->wchar_t
  1330. conversion.
  1331. --with-iconv Use iconv() for char->wchar_t conversion.
  1332. --with-qt Build liblog4cplusqt4debugappender.
  1333. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1334. both]
  1335. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1336. --with-sysroot=DIR Search for dependent libraries within DIR
  1337. (or the compiler's sysroot if not specified).
  1338. Some influential environment variables:
  1339. CC C compiler command
  1340. CFLAGS C compiler flags
  1341. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1342. nonstandard directory <lib dir>
  1343. LIBS libraries to pass to the linker, e.g. -l<library>
  1344. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1345. you have headers in a nonstandard directory <include dir>
  1346. CXX C++ compiler command
  1347. CXXFLAGS C++ compiler flags
  1348. CXXCPP C++ preprocessor
  1349. PKG_CONFIG path to pkg-config utility
  1350. PKG_CONFIG_PATH
  1351. directories to add to pkg-config's search path
  1352. PKG_CONFIG_LIBDIR
  1353. path overriding pkg-config's built-in search path
  1354. QT_CFLAGS C compiler flags for QT, overriding pkg-config
  1355. QT_LIBS linker flags for QT, overriding pkg-config
  1356. Use these variables to override the choices made by `configure' or to help
  1357. it to find libraries and programs with nonstandard names/locations.
  1358. Report bugs to the package provider.
  1359. _ACEOF
  1360. ac_status=$?
  1361. fi
  1362. if test "$ac_init_help" = "recursive"; then
  1363. # If there are subdirs, report their specific --help.
  1364. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1365. test -d "$ac_dir" ||
  1366. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1367. continue
  1368. ac_builddir=.
  1369. case "$ac_dir" in
  1370. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1371. *)
  1372. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1373. # A ".." for each directory in $ac_dir_suffix.
  1374. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1375. case $ac_top_builddir_sub in
  1376. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1377. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1378. esac ;;
  1379. esac
  1380. ac_abs_top_builddir=$ac_pwd
  1381. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1382. # for backward compatibility:
  1383. ac_top_builddir=$ac_top_build_prefix
  1384. case $srcdir in
  1385. .) # We are building in place.
  1386. ac_srcdir=.
  1387. ac_top_srcdir=$ac_top_builddir_sub
  1388. ac_abs_top_srcdir=$ac_pwd ;;
  1389. [\\/]* | ?:[\\/]* ) # Absolute name.
  1390. ac_srcdir=$srcdir$ac_dir_suffix;
  1391. ac_top_srcdir=$srcdir
  1392. ac_abs_top_srcdir=$srcdir ;;
  1393. *) # Relative name.
  1394. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1395. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1396. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1397. esac
  1398. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1399. cd "$ac_dir" || { ac_status=$?; continue; }
  1400. # Check for guested configure.
  1401. if test -f "$ac_srcdir/configure.gnu"; then
  1402. echo &&
  1403. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1404. elif test -f "$ac_srcdir/configure"; then
  1405. echo &&
  1406. $SHELL "$ac_srcdir/configure" --help=recursive
  1407. else
  1408. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1409. fi || ac_status=$?
  1410. cd "$ac_pwd" || { ac_status=$?; break; }
  1411. done
  1412. fi
  1413. test -n "$ac_init_help" && exit $ac_status
  1414. if $ac_init_version; then
  1415. cat <<\_ACEOF
  1416. log4cplus configure 1.1.3
  1417. generated by GNU Autoconf 2.69
  1418. Copyright (C) 2012 Free Software Foundation, Inc.
  1419. This configure script is free software; the Free Software Foundation
  1420. gives unlimited permission to copy, distribute and modify it.
  1421. _ACEOF
  1422. exit
  1423. fi
  1424. ## ------------------------ ##
  1425. ## Autoconf initialization. ##
  1426. ## ------------------------ ##
  1427. # ac_fn_c_try_compile LINENO
  1428. # --------------------------
  1429. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1430. ac_fn_c_try_compile ()
  1431. {
  1432. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1433. rm -f conftest.$ac_objext
  1434. if { { ac_try="$ac_compile"
  1435. case "(($ac_try" in
  1436. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1437. *) ac_try_echo=$ac_try;;
  1438. esac
  1439. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1440. $as_echo "$ac_try_echo"; } >&5
  1441. (eval "$ac_compile") 2>conftest.err
  1442. ac_status=$?
  1443. if test -s conftest.err; then
  1444. grep -v '^ *+' conftest.err >conftest.er1
  1445. cat conftest.er1 >&5
  1446. mv -f conftest.er1 conftest.err
  1447. fi
  1448. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1449. test $ac_status = 0; } && {
  1450. test -z "$ac_c_werror_flag" ||
  1451. test ! -s conftest.err
  1452. } && test -s conftest.$ac_objext; then :
  1453. ac_retval=0
  1454. else
  1455. $as_echo "$as_me: failed program was:" >&5
  1456. sed 's/^/| /' conftest.$ac_ext >&5
  1457. ac_retval=1
  1458. fi
  1459. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1460. as_fn_set_status $ac_retval
  1461. } # ac_fn_c_try_compile
  1462. # ac_fn_cxx_try_compile LINENO
  1463. # ----------------------------
  1464. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1465. ac_fn_cxx_try_compile ()
  1466. {
  1467. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1468. rm -f conftest.$ac_objext
  1469. if { { ac_try="$ac_compile"
  1470. case "(($ac_try" in
  1471. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1472. *) ac_try_echo=$ac_try;;
  1473. esac
  1474. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1475. $as_echo "$ac_try_echo"; } >&5
  1476. (eval "$ac_compile") 2>conftest.err
  1477. ac_status=$?
  1478. if test -s conftest.err; then
  1479. grep -v '^ *+' conftest.err >conftest.er1
  1480. cat conftest.er1 >&5
  1481. mv -f conftest.er1 conftest.err
  1482. fi
  1483. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1484. test $ac_status = 0; } && {
  1485. test -z "$ac_cxx_werror_flag" ||
  1486. test ! -s conftest.err
  1487. } && test -s conftest.$ac_objext; then :
  1488. ac_retval=0
  1489. else
  1490. $as_echo "$as_me: failed program was:" >&5
  1491. sed 's/^/| /' conftest.$ac_ext >&5
  1492. ac_retval=1
  1493. fi
  1494. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1495. as_fn_set_status $ac_retval
  1496. } # ac_fn_cxx_try_compile
  1497. # ac_fn_cxx_try_cpp LINENO
  1498. # ------------------------
  1499. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1500. ac_fn_cxx_try_cpp ()
  1501. {
  1502. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1503. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1504. case "(($ac_try" in
  1505. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1506. *) ac_try_echo=$ac_try;;
  1507. esac
  1508. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1509. $as_echo "$ac_try_echo"; } >&5
  1510. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1511. ac_status=$?
  1512. if test -s conftest.err; then
  1513. grep -v '^ *+' conftest.err >conftest.er1
  1514. cat conftest.er1 >&5
  1515. mv -f conftest.er1 conftest.err
  1516. fi
  1517. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1518. test $ac_status = 0; } > conftest.i && {
  1519. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1520. test ! -s conftest.err
  1521. }; then :
  1522. ac_retval=0
  1523. else
  1524. $as_echo "$as_me: failed program was:" >&5
  1525. sed 's/^/| /' conftest.$ac_ext >&5
  1526. ac_retval=1
  1527. fi
  1528. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1529. as_fn_set_status $ac_retval
  1530. } # ac_fn_cxx_try_cpp
  1531. # ac_fn_cxx_try_link LINENO
  1532. # -------------------------
  1533. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1534. ac_fn_cxx_try_link ()
  1535. {
  1536. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1537. rm -f conftest.$ac_objext conftest$ac_exeext
  1538. if { { ac_try="$ac_link"
  1539. case "(($ac_try" in
  1540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1541. *) ac_try_echo=$ac_try;;
  1542. esac
  1543. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1544. $as_echo "$ac_try_echo"; } >&5
  1545. (eval "$ac_link") 2>conftest.err
  1546. ac_status=$?
  1547. if test -s conftest.err; then
  1548. grep -v '^ *+' conftest.err >conftest.er1
  1549. cat conftest.er1 >&5
  1550. mv -f conftest.er1 conftest.err
  1551. fi
  1552. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1553. test $ac_status = 0; } && {
  1554. test -z "$ac_cxx_werror_flag" ||
  1555. test ! -s conftest.err
  1556. } && test -s conftest$ac_exeext && {
  1557. test "$cross_compiling" = yes ||
  1558. test -x conftest$ac_exeext
  1559. }; then :
  1560. ac_retval=0
  1561. else
  1562. $as_echo "$as_me: failed program was:" >&5
  1563. sed 's/^/| /' conftest.$ac_ext >&5
  1564. ac_retval=1
  1565. fi
  1566. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1567. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1568. # interfere with the next link command; also delete a directory that is
  1569. # left behind by Apple's compiler. We do this before executing the actions.
  1570. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1571. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1572. as_fn_set_status $ac_retval
  1573. } # ac_fn_cxx_try_link
  1574. # ac_fn_c_try_link LINENO
  1575. # -----------------------
  1576. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1577. ac_fn_c_try_link ()
  1578. {
  1579. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1580. rm -f conftest.$ac_objext conftest$ac_exeext
  1581. if { { ac_try="$ac_link"
  1582. case "(($ac_try" in
  1583. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1584. *) ac_try_echo=$ac_try;;
  1585. esac
  1586. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1587. $as_echo "$ac_try_echo"; } >&5
  1588. (eval "$ac_link") 2>conftest.err
  1589. ac_status=$?
  1590. if test -s conftest.err; then
  1591. grep -v '^ *+' conftest.err >conftest.er1
  1592. cat conftest.er1 >&5
  1593. mv -f conftest.er1 conftest.err
  1594. fi
  1595. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1596. test $ac_status = 0; } && {
  1597. test -z "$ac_c_werror_flag" ||
  1598. test ! -s conftest.err
  1599. } && test -s conftest$ac_exeext && {
  1600. test "$cross_compiling" = yes ||
  1601. test -x conftest$ac_exeext
  1602. }; then :
  1603. ac_retval=0
  1604. else
  1605. $as_echo "$as_me: failed program was:" >&5
  1606. sed 's/^/| /' conftest.$ac_ext >&5
  1607. ac_retval=1
  1608. fi
  1609. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1610. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1611. # interfere with the next link command; also delete a directory that is
  1612. # left behind by Apple's compiler. We do this before executing the actions.
  1613. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1614. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1615. as_fn_set_status $ac_retval
  1616. } # ac_fn_c_try_link
  1617. # ac_fn_cxx_try_run LINENO
  1618. # ------------------------
  1619. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1620. # that executables *can* be run.
  1621. ac_fn_cxx_try_run ()
  1622. {
  1623. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1624. if { { ac_try="$ac_link"
  1625. case "(($ac_try" in
  1626. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1627. *) ac_try_echo=$ac_try;;
  1628. esac
  1629. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1630. $as_echo "$ac_try_echo"; } >&5
  1631. (eval "$ac_link") 2>&5
  1632. ac_status=$?
  1633. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1634. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1635. { { case "(($ac_try" in
  1636. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1637. *) ac_try_echo=$ac_try;;
  1638. esac
  1639. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1640. $as_echo "$ac_try_echo"; } >&5
  1641. (eval "$ac_try") 2>&5
  1642. ac_status=$?
  1643. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1644. test $ac_status = 0; }; }; then :
  1645. ac_retval=0
  1646. else
  1647. $as_echo "$as_me: program exited with status $ac_status" >&5
  1648. $as_echo "$as_me: failed program was:" >&5
  1649. sed 's/^/| /' conftest.$ac_ext >&5
  1650. ac_retval=$ac_status
  1651. fi
  1652. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1653. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1654. as_fn_set_status $ac_retval
  1655. } # ac_fn_cxx_try_run
  1656. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1657. # ---------------------------------------------------------
  1658. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1659. # the include files in INCLUDES and setting the cache variable VAR
  1660. # accordingly.
  1661. ac_fn_cxx_check_header_mongrel ()
  1662. {
  1663. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1664. if eval \${$3+:} false; then :
  1665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1666. $as_echo_n "checking for $2... " >&6; }
  1667. if eval \${$3+:} false; then :
  1668. $as_echo_n "(cached) " >&6
  1669. fi
  1670. eval ac_res=\$$3
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1672. $as_echo "$ac_res" >&6; }
  1673. else
  1674. # Is the header compilable?
  1675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1676. $as_echo_n "checking $2 usability... " >&6; }
  1677. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1678. /* end confdefs.h. */
  1679. $4
  1680. #include <$2>
  1681. _ACEOF
  1682. if ac_fn_cxx_try_compile "$LINENO"; then :
  1683. ac_header_compiler=yes
  1684. else
  1685. ac_header_compiler=no
  1686. fi
  1687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1689. $as_echo "$ac_header_compiler" >&6; }
  1690. # Is the header present?
  1691. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1692. $as_echo_n "checking $2 presence... " >&6; }
  1693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1694. /* end confdefs.h. */
  1695. #include <$2>
  1696. _ACEOF
  1697. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1698. ac_header_preproc=yes
  1699. else
  1700. ac_header_preproc=no
  1701. fi
  1702. rm -f conftest.err conftest.i conftest.$ac_ext
  1703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1704. $as_echo "$ac_header_preproc" >&6; }
  1705. # So? What about this header?
  1706. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1707. yes:no: )
  1708. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1709. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1710. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1711. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1712. ;;
  1713. no:yes:* )
  1714. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1715. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1716. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1717. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1718. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1719. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1720. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1721. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1722. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1723. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1724. ;;
  1725. esac
  1726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1727. $as_echo_n "checking for $2... " >&6; }
  1728. if eval \${$3+:} false; then :
  1729. $as_echo_n "(cached) " >&6
  1730. else
  1731. eval "$3=\$ac_header_compiler"
  1732. fi
  1733. eval ac_res=\$$3
  1734. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1735. $as_echo "$ac_res" >&6; }
  1736. fi
  1737. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1738. } # ac_fn_cxx_check_header_mongrel
  1739. # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
  1740. # ---------------------------------------------------------
  1741. # Tests whether HEADER exists and can be compiled using the include files in
  1742. # INCLUDES, setting the cache variable VAR accordingly.
  1743. ac_fn_cxx_check_header_compile ()
  1744. {
  1745. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1747. $as_echo_n "checking for $2... " >&6; }
  1748. if eval \${$3+:} false; then :
  1749. $as_echo_n "(cached) " >&6
  1750. else
  1751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1752. /* end confdefs.h. */
  1753. $4
  1754. #include <$2>
  1755. _ACEOF
  1756. if ac_fn_cxx_try_compile "$LINENO"; then :
  1757. eval "$3=yes"
  1758. else
  1759. eval "$3=no"
  1760. fi
  1761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1762. fi
  1763. eval ac_res=\$$3
  1764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1765. $as_echo "$ac_res" >&6; }
  1766. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1767. } # ac_fn_cxx_check_header_compile
  1768. # ac_fn_cxx_check_func LINENO FUNC VAR
  1769. # ------------------------------------
  1770. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1771. ac_fn_cxx_check_func ()
  1772. {
  1773. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1775. $as_echo_n "checking for $2... " >&6; }
  1776. if eval \${$3+:} false; then :
  1777. $as_echo_n "(cached) " >&6
  1778. else
  1779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1780. /* end confdefs.h. */
  1781. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1782. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1783. #define $2 innocuous_$2
  1784. /* System header to define __stub macros and hopefully few prototypes,
  1785. which can conflict with char $2 (); below.
  1786. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1787. <limits.h> exists even on freestanding compilers. */
  1788. #ifdef __STDC__
  1789. # include <limits.h>
  1790. #else
  1791. # include <assert.h>
  1792. #endif
  1793. #undef $2
  1794. /* Override any GCC internal prototype to avoid an error.
  1795. Use char because int might match the return type of a GCC
  1796. builtin and then its argument prototype would still apply. */
  1797. #ifdef __cplusplus
  1798. extern "C"
  1799. #endif
  1800. char $2 ();
  1801. /* The GNU C library defines this for functions which it implements
  1802. to always fail with ENOSYS. Some functions are actually named
  1803. something starting with __ and the normal name is an alias. */
  1804. #if defined __stub_$2 || defined __stub___$2
  1805. choke me
  1806. #endif
  1807. int
  1808. main ()
  1809. {
  1810. return $2 ();
  1811. ;
  1812. return 0;
  1813. }
  1814. _ACEOF
  1815. if ac_fn_cxx_try_link "$LINENO"; then :
  1816. eval "$3=yes"
  1817. else
  1818. eval "$3=no"
  1819. fi
  1820. rm -f core conftest.err conftest.$ac_objext \
  1821. conftest$ac_exeext conftest.$ac_ext
  1822. fi
  1823. eval ac_res=\$$3
  1824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1825. $as_echo "$ac_res" >&6; }
  1826. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1827. } # ac_fn_cxx_check_func
  1828. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1829. # -------------------------------------------------------
  1830. # Tests whether HEADER exists and can be compiled using the include files in
  1831. # INCLUDES, setting the cache variable VAR accordingly.
  1832. ac_fn_c_check_header_compile ()
  1833. {
  1834. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1836. $as_echo_n "checking for $2... " >&6; }
  1837. if eval \${$3+:} false; then :
  1838. $as_echo_n "(cached) " >&6
  1839. else
  1840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1841. /* end confdefs.h. */
  1842. $4
  1843. #include <$2>
  1844. _ACEOF
  1845. if ac_fn_c_try_compile "$LINENO"; then :
  1846. eval "$3=yes"
  1847. else
  1848. eval "$3=no"
  1849. fi
  1850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1851. fi
  1852. eval ac_res=\$$3
  1853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1854. $as_echo "$ac_res" >&6; }
  1855. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1856. } # ac_fn_c_check_header_compile
  1857. # ac_fn_c_check_func LINENO FUNC VAR
  1858. # ----------------------------------
  1859. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1860. ac_fn_c_check_func ()
  1861. {
  1862. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1864. $as_echo_n "checking for $2... " >&6; }
  1865. if eval \${$3+:} false; then :
  1866. $as_echo_n "(cached) " >&6
  1867. else
  1868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1869. /* end confdefs.h. */
  1870. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1871. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1872. #define $2 innocuous_$2
  1873. /* System header to define __stub macros and hopefully few prototypes,
  1874. which can conflict with char $2 (); below.
  1875. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1876. <limits.h> exists even on freestanding compilers. */
  1877. #ifdef __STDC__
  1878. # include <limits.h>
  1879. #else
  1880. # include <assert.h>
  1881. #endif
  1882. #undef $2
  1883. /* Override any GCC internal prototype to avoid an error.
  1884. Use char because int might match the return type of a GCC
  1885. builtin and then its argument prototype would still apply. */
  1886. #ifdef __cplusplus
  1887. extern "C"
  1888. #endif
  1889. char $2 ();
  1890. /* The GNU C library defines this for functions which it implements
  1891. to always fail with ENOSYS. Some functions are actually named
  1892. something starting with __ and the normal name is an alias. */
  1893. #if defined __stub_$2 || defined __stub___$2
  1894. choke me
  1895. #endif
  1896. int
  1897. main ()
  1898. {
  1899. return $2 ();
  1900. ;
  1901. return 0;
  1902. }
  1903. _ACEOF
  1904. if ac_fn_c_try_link "$LINENO"; then :
  1905. eval "$3=yes"
  1906. else
  1907. eval "$3=no"
  1908. fi
  1909. rm -f core conftest.err conftest.$ac_objext \
  1910. conftest$ac_exeext conftest.$ac_ext
  1911. fi
  1912. eval ac_res=\$$3
  1913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1914. $as_echo "$ac_res" >&6; }
  1915. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1916. } # ac_fn_c_check_func
  1917. cat >config.log <<_ACEOF
  1918. This file contains any messages produced by compilers while
  1919. running configure, to aid debugging if configure makes a mistake.
  1920. It was created by log4cplus $as_me 1.1.3, which was
  1921. generated by GNU Autoconf 2.69. Invocation command line was
  1922. $ $0 $@
  1923. _ACEOF
  1924. exec 5>>config.log
  1925. {
  1926. cat <<_ASUNAME
  1927. ## --------- ##
  1928. ## Platform. ##
  1929. ## --------- ##
  1930. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1931. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1932. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1933. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1934. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1935. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1936. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1937. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1938. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1939. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1940. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1941. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1942. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1943. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1944. _ASUNAME
  1945. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1946. for as_dir in $PATH
  1947. do
  1948. IFS=$as_save_IFS
  1949. test -z "$as_dir" && as_dir=.
  1950. $as_echo "PATH: $as_dir"
  1951. done
  1952. IFS=$as_save_IFS
  1953. } >&5
  1954. cat >&5 <<_ACEOF
  1955. ## ----------- ##
  1956. ## Core tests. ##
  1957. ## ----------- ##
  1958. _ACEOF
  1959. # Keep a trace of the command line.
  1960. # Strip out --no-create and --no-recursion so they do not pile up.
  1961. # Strip out --silent because we don't want to record it for future runs.
  1962. # Also quote any args containing shell meta-characters.
  1963. # Make two passes to allow for proper duplicate-argument suppression.
  1964. ac_configure_args=
  1965. ac_configure_args0=
  1966. ac_configure_args1=
  1967. ac_must_keep_next=false
  1968. for ac_pass in 1 2
  1969. do
  1970. for ac_arg
  1971. do
  1972. case $ac_arg in
  1973. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1974. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1975. | -silent | --silent | --silen | --sile | --sil)
  1976. continue ;;
  1977. *\'*)
  1978. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1979. esac
  1980. case $ac_pass in
  1981. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1982. 2)
  1983. as_fn_append ac_configure_args1 " '$ac_arg'"
  1984. if test $ac_must_keep_next = true; then
  1985. ac_must_keep_next=false # Got value, back to normal.
  1986. else
  1987. case $ac_arg in
  1988. *=* | --config-cache | -C | -disable-* | --disable-* \
  1989. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1990. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1991. | -with-* | --with-* | -without-* | --without-* | --x)
  1992. case "$ac_configure_args0 " in
  1993. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1994. esac
  1995. ;;
  1996. -* ) ac_must_keep_next=true ;;
  1997. esac
  1998. fi
  1999. as_fn_append ac_configure_args " '$ac_arg'"
  2000. ;;
  2001. esac
  2002. done
  2003. done
  2004. { ac_configure_args0=; unset ac_configure_args0;}
  2005. { ac_configure_args1=; unset ac_configure_args1;}
  2006. # When interrupted or exit'd, cleanup temporary files, and complete
  2007. # config.log. We remove comments because anyway the quotes in there
  2008. # would cause problems or look ugly.
  2009. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2010. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2011. trap 'exit_status=$?
  2012. # Save into config.log some information that might help in debugging.
  2013. {
  2014. echo
  2015. $as_echo "## ---------------- ##
  2016. ## Cache variables. ##
  2017. ## ---------------- ##"
  2018. echo
  2019. # The following way of writing the cache mishandles newlines in values,
  2020. (
  2021. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2022. eval ac_val=\$$ac_var
  2023. case $ac_val in #(
  2024. *${as_nl}*)
  2025. case $ac_var in #(
  2026. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2027. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2028. esac
  2029. case $ac_var in #(
  2030. _ | IFS | as_nl) ;; #(
  2031. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2032. *) { eval $ac_var=; unset $ac_var;} ;;
  2033. esac ;;
  2034. esac
  2035. done
  2036. (set) 2>&1 |
  2037. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2038. *${as_nl}ac_space=\ *)
  2039. sed -n \
  2040. "s/'\''/'\''\\\\'\'''\''/g;
  2041. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2042. ;; #(
  2043. *)
  2044. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2045. ;;
  2046. esac |
  2047. sort
  2048. )
  2049. echo
  2050. $as_echo "## ----------------- ##
  2051. ## Output variables. ##
  2052. ## ----------------- ##"
  2053. echo
  2054. for ac_var in $ac_subst_vars
  2055. do
  2056. eval ac_val=\$$ac_var
  2057. case $ac_val in
  2058. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2059. esac
  2060. $as_echo "$ac_var='\''$ac_val'\''"
  2061. done | sort
  2062. echo
  2063. if test -n "$ac_subst_files"; then
  2064. $as_echo "## ------------------- ##
  2065. ## File substitutions. ##
  2066. ## ------------------- ##"
  2067. echo
  2068. for ac_var in $ac_subst_files
  2069. do
  2070. eval ac_val=\$$ac_var
  2071. case $ac_val in
  2072. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2073. esac
  2074. $as_echo "$ac_var='\''$ac_val'\''"
  2075. done | sort
  2076. echo
  2077. fi
  2078. if test -s confdefs.h; then
  2079. $as_echo "## ----------- ##
  2080. ## confdefs.h. ##
  2081. ## ----------- ##"
  2082. echo
  2083. cat confdefs.h
  2084. echo
  2085. fi
  2086. test "$ac_signal" != 0 &&
  2087. $as_echo "$as_me: caught signal $ac_signal"
  2088. $as_echo "$as_me: exit $exit_status"
  2089. } >&5
  2090. rm -f core *.core core.conftest.* &&
  2091. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2092. exit $exit_status
  2093. ' 0
  2094. for ac_signal in 1 2 13 15; do
  2095. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2096. done
  2097. ac_signal=0
  2098. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2099. rm -f -r conftest* confdefs.h
  2100. $as_echo "/* confdefs.h */" > confdefs.h
  2101. # Predefined preprocessor variables.
  2102. cat >>confdefs.h <<_ACEOF
  2103. #define PACKAGE_NAME "$PACKAGE_NAME"
  2104. _ACEOF
  2105. cat >>confdefs.h <<_ACEOF
  2106. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2107. _ACEOF
  2108. cat >>confdefs.h <<_ACEOF
  2109. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2110. _ACEOF
  2111. cat >>confdefs.h <<_ACEOF
  2112. #define PACKAGE_STRING "$PACKAGE_STRING"
  2113. _ACEOF
  2114. cat >>confdefs.h <<_ACEOF
  2115. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2116. _ACEOF
  2117. cat >>confdefs.h <<_ACEOF
  2118. #define PACKAGE_URL "$PACKAGE_URL"
  2119. _ACEOF
  2120. # Let the site file select an alternate cache file if it wants to.
  2121. # Prefer an explicitly selected file to automatically selected ones.
  2122. ac_site_file1=NONE
  2123. ac_site_file2=NONE
  2124. if test -n "$CONFIG_SITE"; then
  2125. # We do not want a PATH search for config.site.
  2126. case $CONFIG_SITE in #((
  2127. -*) ac_site_file1=./$CONFIG_SITE;;
  2128. */*) ac_site_file1=$CONFIG_SITE;;
  2129. *) ac_site_file1=./$CONFIG_SITE;;
  2130. esac
  2131. elif test "x$prefix" != xNONE; then
  2132. ac_site_file1=$prefix/share/config.site
  2133. ac_site_file2=$prefix/etc/config.site
  2134. else
  2135. ac_site_file1=$ac_default_prefix/share/config.site
  2136. ac_site_file2=$ac_default_prefix/etc/config.site
  2137. fi
  2138. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2139. do
  2140. test "x$ac_site_file" = xNONE && continue
  2141. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2142. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2143. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2144. sed 's/^/| /' "$ac_site_file" >&5
  2145. . "$ac_site_file" \
  2146. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2147. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2148. as_fn_error $? "failed to load site script $ac_site_file
  2149. See \`config.log' for more details" "$LINENO" 5; }
  2150. fi
  2151. done
  2152. if test -r "$cache_file"; then
  2153. # Some versions of bash will fail to source /dev/null (special files
  2154. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2155. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2157. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2158. case $cache_file in
  2159. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2160. *) . "./$cache_file";;
  2161. esac
  2162. fi
  2163. else
  2164. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2165. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2166. >$cache_file
  2167. fi
  2168. # Check that the precious variables saved in the cache have kept the same
  2169. # value.
  2170. ac_cache_corrupted=false
  2171. for ac_var in $ac_precious_vars; do
  2172. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2173. eval ac_new_set=\$ac_env_${ac_var}_set
  2174. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2175. eval ac_new_val=\$ac_env_${ac_var}_value
  2176. case $ac_old_set,$ac_new_set in
  2177. set,)
  2178. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2179. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2180. ac_cache_corrupted=: ;;
  2181. ,set)
  2182. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2183. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2184. ac_cache_corrupted=: ;;
  2185. ,);;
  2186. *)
  2187. if test "x$ac_old_val" != "x$ac_new_val"; then
  2188. # differences in whitespace do not lead to failure.
  2189. ac_old_val_w=`echo x $ac_old_val`
  2190. ac_new_val_w=`echo x $ac_new_val`
  2191. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2192. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2193. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2194. ac_cache_corrupted=:
  2195. else
  2196. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2197. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2198. eval $ac_var=\$ac_old_val
  2199. fi
  2200. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2201. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2202. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2203. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2204. fi;;
  2205. esac
  2206. # Pass precious variables to config.status.
  2207. if test "$ac_new_set" = set; then
  2208. case $ac_new_val in
  2209. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2210. *) ac_arg=$ac_var=$ac_new_val ;;
  2211. esac
  2212. case " $ac_configure_args " in
  2213. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2214. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2215. esac
  2216. fi
  2217. done
  2218. if $ac_cache_corrupted; then
  2219. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2220. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2222. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2223. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2224. fi
  2225. ## -------------------- ##
  2226. ## Main body of script. ##
  2227. ## -------------------- ##
  2228. ac_ext=c
  2229. ac_cpp='$CPP $CPPFLAGS'
  2230. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2231. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2232. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2233. ac_aux_dir=
  2234. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2235. if test -f "$ac_dir/install-sh"; then
  2236. ac_aux_dir=$ac_dir
  2237. ac_install_sh="$ac_aux_dir/install-sh -c"
  2238. break
  2239. elif test -f "$ac_dir/install.sh"; then
  2240. ac_aux_dir=$ac_dir
  2241. ac_install_sh="$ac_aux_dir/install.sh -c"
  2242. break
  2243. elif test -f "$ac_dir/shtool"; then
  2244. ac_aux_dir=$ac_dir
  2245. ac_install_sh="$ac_aux_dir/shtool install -c"
  2246. break
  2247. fi
  2248. done
  2249. if test -z "$ac_aux_dir"; then
  2250. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2251. fi
  2252. # These three variables are undocumented and unsupported,
  2253. # and are intended to be withdrawn in a future Autoconf release.
  2254. # They can cause serious problems if a builder's source tree is in a directory
  2255. # whose full name contains unusual characters.
  2256. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2257. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2258. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2259. # Make sure we can run config.sub.
  2260. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2261. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2262. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2263. $as_echo_n "checking build system type... " >&6; }
  2264. if ${ac_cv_build+:} false; then :
  2265. $as_echo_n "(cached) " >&6
  2266. else
  2267. ac_build_alias=$build_alias
  2268. test "x$ac_build_alias" = x &&
  2269. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2270. test "x$ac_build_alias" = x &&
  2271. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2272. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2273. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2274. fi
  2275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2276. $as_echo "$ac_cv_build" >&6; }
  2277. case $ac_cv_build in
  2278. *-*-*) ;;
  2279. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2280. esac
  2281. build=$ac_cv_build
  2282. ac_save_IFS=$IFS; IFS='-'
  2283. set x $ac_cv_build
  2284. shift
  2285. build_cpu=$1
  2286. build_vendor=$2
  2287. shift; shift
  2288. # Remember, the first character of IFS is used to create $*,
  2289. # except with old shells:
  2290. build_os=$*
  2291. IFS=$ac_save_IFS
  2292. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2294. $as_echo_n "checking host system type... " >&6; }
  2295. if ${ac_cv_host+:} false; then :
  2296. $as_echo_n "(cached) " >&6
  2297. else
  2298. if test "x$host_alias" = x; then
  2299. ac_cv_host=$ac_cv_build
  2300. else
  2301. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2302. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2303. fi
  2304. fi
  2305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2306. $as_echo "$ac_cv_host" >&6; }
  2307. case $ac_cv_host in
  2308. *-*-*) ;;
  2309. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2310. esac
  2311. host=$ac_cv_host
  2312. ac_save_IFS=$IFS; IFS='-'
  2313. set x $ac_cv_host
  2314. shift
  2315. host_cpu=$1
  2316. host_vendor=$2
  2317. shift; shift
  2318. # Remember, the first character of IFS is used to create $*,
  2319. # except with old shells:
  2320. host_os=$*
  2321. IFS=$ac_save_IFS
  2322. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2323. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2324. $as_echo_n "checking target system type... " >&6; }
  2325. if ${ac_cv_target+:} false; then :
  2326. $as_echo_n "(cached) " >&6
  2327. else
  2328. if test "x$target_alias" = x; then
  2329. ac_cv_target=$ac_cv_host
  2330. else
  2331. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2332. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2333. fi
  2334. fi
  2335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2336. $as_echo "$ac_cv_target" >&6; }
  2337. case $ac_cv_target in
  2338. *-*-*) ;;
  2339. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2340. esac
  2341. target=$ac_cv_target
  2342. ac_save_IFS=$IFS; IFS='-'
  2343. set x $ac_cv_target
  2344. shift
  2345. target_cpu=$1
  2346. target_vendor=$2
  2347. shift; shift
  2348. # Remember, the first character of IFS is used to create $*,
  2349. # except with old shells:
  2350. target_os=$*
  2351. IFS=$ac_save_IFS
  2352. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2353. # The aliases save the names the user supplied, while $host etc.
  2354. # will get canonicalized.
  2355. test -n "$target_alias" &&
  2356. test "$program_prefix$program_suffix$program_transform_name" = \
  2357. NONENONEs,x,x, &&
  2358. program_prefix=${target_alias}-
  2359. am__api_version='1.12'
  2360. # Find a good install program. We prefer a C program (faster),
  2361. # so one script is as good as another. But avoid the broken or
  2362. # incompatible versions:
  2363. # SysV /etc/install, /usr/sbin/install
  2364. # SunOS /usr/etc/install
  2365. # IRIX /sbin/install
  2366. # AIX /bin/install
  2367. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2368. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2369. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2370. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2371. # OS/2's system install, which has a completely different semantic
  2372. # ./install, which can be erroneously created by make from ./install.sh.
  2373. # Reject install programs that cannot install multiple files.
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2375. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2376. if test -z "$INSTALL"; then
  2377. if ${ac_cv_path_install+:} false; then :
  2378. $as_echo_n "(cached) " >&6
  2379. else
  2380. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2381. for as_dir in $PATH
  2382. do
  2383. IFS=$as_save_IFS
  2384. test -z "$as_dir" && as_dir=.
  2385. # Account for people who put trailing slashes in PATH elements.
  2386. case $as_dir/ in #((
  2387. ./ | .// | /[cC]/* | \
  2388. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2389. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2390. /usr/ucb/* ) ;;
  2391. *)
  2392. # OSF1 and SCO ODT 3.0 have their own names for install.
  2393. # Don't use installbsd from OSF since it installs stuff as root
  2394. # by default.
  2395. for ac_prog in ginstall scoinst install; do
  2396. for ac_exec_ext in '' $ac_executable_extensions; do
  2397. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2398. if test $ac_prog = install &&
  2399. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2400. # AIX install. It has an incompatible calling convention.
  2401. :
  2402. elif test $ac_prog = install &&
  2403. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2404. # program-specific install script used by HP pwplus--don't use.
  2405. :
  2406. else
  2407. rm -rf conftest.one conftest.two conftest.dir
  2408. echo one > conftest.one
  2409. echo two > conftest.two
  2410. mkdir conftest.dir
  2411. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2412. test -s conftest.one && test -s conftest.two &&
  2413. test -s conftest.dir/conftest.one &&
  2414. test -s conftest.dir/conftest.two
  2415. then
  2416. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2417. break 3
  2418. fi
  2419. fi
  2420. fi
  2421. done
  2422. done
  2423. ;;
  2424. esac
  2425. done
  2426. IFS=$as_save_IFS
  2427. rm -rf conftest.one conftest.two conftest.dir
  2428. fi
  2429. if test "${ac_cv_path_install+set}" = set; then
  2430. INSTALL=$ac_cv_path_install
  2431. else
  2432. # As a last resort, use the slow shell script. Don't cache a
  2433. # value for INSTALL within a source directory, because that will
  2434. # break other packages using the cache if that directory is
  2435. # removed, or if the value is a relative name.
  2436. INSTALL=$ac_install_sh
  2437. fi
  2438. fi
  2439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2440. $as_echo "$INSTALL" >&6; }
  2441. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2442. # It thinks the first close brace ends the variable substitution.
  2443. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2444. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2445. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2446. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2447. $as_echo_n "checking whether build environment is sane... " >&6; }
  2448. # Reject unsafe characters in $srcdir or the absolute working directory
  2449. # name. Accept space and tab only in the latter.
  2450. am_lf='
  2451. '
  2452. case `pwd` in
  2453. *[\\\"\#\$\&\'\`$am_lf]*)
  2454. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2455. esac
  2456. case $srcdir in
  2457. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2458. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2459. esac
  2460. # Do 'set' in a subshell so we don't clobber the current shell's
  2461. # arguments. Must try -L first in case configure is actually a
  2462. # symlink; some systems play weird games with the mod time of symlinks
  2463. # (eg FreeBSD returns the mod time of the symlink's containing
  2464. # directory).
  2465. if (
  2466. am_has_slept=no
  2467. for am_try in 1 2; do
  2468. echo "timestamp, slept: $am_has_slept" > conftest.file
  2469. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2470. if test "$*" = "X"; then
  2471. # -L didn't work.
  2472. set X `ls -t "$srcdir/configure" conftest.file`
  2473. fi
  2474. if test "$*" != "X $srcdir/configure conftest.file" \
  2475. && test "$*" != "X conftest.file $srcdir/configure"; then
  2476. # If neither matched, then we have a broken ls. This can happen
  2477. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2478. # broken ls alias from the environment. This has actually
  2479. # happened. Such a system could not be considered "sane".
  2480. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2481. alias in your environment" "$LINENO" 5
  2482. fi
  2483. if test "$2" = conftest.file || test $am_try -eq 2; then
  2484. break
  2485. fi
  2486. # Just in case.
  2487. sleep 1
  2488. am_has_slept=yes
  2489. done
  2490. test "$2" = conftest.file
  2491. )
  2492. then
  2493. # Ok.
  2494. :
  2495. else
  2496. as_fn_error $? "newly created file is older than distributed files!
  2497. Check your system clock" "$LINENO" 5
  2498. fi
  2499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2500. $as_echo "yes" >&6; }
  2501. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2502. # generated files are strictly newer.
  2503. am_sleep_pid=
  2504. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2505. ( sleep 1 ) &
  2506. am_sleep_pid=$!
  2507. fi
  2508. rm -f conftest.file
  2509. test "$program_prefix" != NONE &&
  2510. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2511. # Use a double $ so make ignores it.
  2512. test "$program_suffix" != NONE &&
  2513. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2514. # Double any \ or $.
  2515. # By default was `s,x,x', remove it if useless.
  2516. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2517. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2518. # expand $ac_aux_dir to an absolute path
  2519. am_aux_dir=`cd $ac_aux_dir && pwd`
  2520. if test x"${MISSING+set}" != xset; then
  2521. case $am_aux_dir in
  2522. *\ * | *\ *)
  2523. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2524. *)
  2525. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2526. esac
  2527. fi
  2528. # Use eval to expand $SHELL
  2529. if eval "$MISSING --run true"; then
  2530. am_missing_run="$MISSING --run "
  2531. else
  2532. am_missing_run=
  2533. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2534. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2535. fi
  2536. if test x"${install_sh}" != xset; then
  2537. case $am_aux_dir in
  2538. *\ * | *\ *)
  2539. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2540. *)
  2541. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2542. esac
  2543. fi
  2544. # Installed binaries are usually stripped using 'strip' when the user
  2545. # run "make install-strip". However 'strip' might not be the right
  2546. # tool to use in cross-compilation environments, therefore Automake
  2547. # will honor the 'STRIP' environment variable to overrule this program.
  2548. if test "$cross_compiling" != no; then
  2549. if test -n "$ac_tool_prefix"; then
  2550. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2551. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2553. $as_echo_n "checking for $ac_word... " >&6; }
  2554. if ${ac_cv_prog_STRIP+:} false; then :
  2555. $as_echo_n "(cached) " >&6
  2556. else
  2557. if test -n "$STRIP"; then
  2558. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2559. else
  2560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2561. for as_dir in $PATH
  2562. do
  2563. IFS=$as_save_IFS
  2564. test -z "$as_dir" && as_dir=.
  2565. for ac_exec_ext in '' $ac_executable_extensions; do
  2566. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2567. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2569. break 2
  2570. fi
  2571. done
  2572. done
  2573. IFS=$as_save_IFS
  2574. fi
  2575. fi
  2576. STRIP=$ac_cv_prog_STRIP
  2577. if test -n "$STRIP"; then
  2578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2579. $as_echo "$STRIP" >&6; }
  2580. else
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2582. $as_echo "no" >&6; }
  2583. fi
  2584. fi
  2585. if test -z "$ac_cv_prog_STRIP"; then
  2586. ac_ct_STRIP=$STRIP
  2587. # Extract the first word of "strip", so it can be a program name with args.
  2588. set dummy strip; 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 ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2592. $as_echo_n "(cached) " >&6
  2593. else
  2594. if test -n "$ac_ct_STRIP"; then
  2595. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2604. ac_cv_prog_ac_ct_STRIP="strip"
  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. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2614. if test -n "$ac_ct_STRIP"; then
  2615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2616. $as_echo "$ac_ct_STRIP" >&6; }
  2617. else
  2618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2619. $as_echo "no" >&6; }
  2620. fi
  2621. if test "x$ac_ct_STRIP" = x; then
  2622. STRIP=":"
  2623. else
  2624. case $cross_compiling:$ac_tool_warned in
  2625. yes:)
  2626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2627. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2628. ac_tool_warned=yes ;;
  2629. esac
  2630. STRIP=$ac_ct_STRIP
  2631. fi
  2632. else
  2633. STRIP="$ac_cv_prog_STRIP"
  2634. fi
  2635. fi
  2636. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2638. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2639. if test -z "$MKDIR_P"; then
  2640. if ${ac_cv_path_mkdir+:} false; then :
  2641. $as_echo_n "(cached) " >&6
  2642. else
  2643. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2644. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2645. do
  2646. IFS=$as_save_IFS
  2647. test -z "$as_dir" && as_dir=.
  2648. for ac_prog in mkdir gmkdir; do
  2649. for ac_exec_ext in '' $ac_executable_extensions; do
  2650. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2651. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2652. 'mkdir (GNU coreutils) '* | \
  2653. 'mkdir (coreutils) '* | \
  2654. 'mkdir (fileutils) '4.1*)
  2655. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2656. break 3;;
  2657. esac
  2658. done
  2659. done
  2660. done
  2661. IFS=$as_save_IFS
  2662. fi
  2663. test -d ./--version && rmdir ./--version
  2664. if test "${ac_cv_path_mkdir+set}" = set; then
  2665. MKDIR_P="$ac_cv_path_mkdir -p"
  2666. else
  2667. # As a last resort, use the slow shell script. Don't cache a
  2668. # value for MKDIR_P within a source directory, because that will
  2669. # break other packages using the cache if that directory is
  2670. # removed, or if the value is a relative name.
  2671. MKDIR_P="$ac_install_sh -d"
  2672. fi
  2673. fi
  2674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2675. $as_echo "$MKDIR_P" >&6; }
  2676. for ac_prog in gawk mawk nawk awk
  2677. do
  2678. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2679. set dummy $ac_prog; ac_word=$2
  2680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2681. $as_echo_n "checking for $ac_word... " >&6; }
  2682. if ${ac_cv_prog_AWK+:} false; then :
  2683. $as_echo_n "(cached) " >&6
  2684. else
  2685. if test -n "$AWK"; then
  2686. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2687. else
  2688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2689. for as_dir in $PATH
  2690. do
  2691. IFS=$as_save_IFS
  2692. test -z "$as_dir" && as_dir=.
  2693. for ac_exec_ext in '' $ac_executable_extensions; do
  2694. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2695. ac_cv_prog_AWK="$ac_prog"
  2696. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2697. break 2
  2698. fi
  2699. done
  2700. done
  2701. IFS=$as_save_IFS
  2702. fi
  2703. fi
  2704. AWK=$ac_cv_prog_AWK
  2705. if test -n "$AWK"; then
  2706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2707. $as_echo "$AWK" >&6; }
  2708. else
  2709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2710. $as_echo "no" >&6; }
  2711. fi
  2712. test -n "$AWK" && break
  2713. done
  2714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2715. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2716. set x ${MAKE-make}
  2717. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2718. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2719. $as_echo_n "(cached) " >&6
  2720. else
  2721. cat >conftest.make <<\_ACEOF
  2722. SHELL = /bin/sh
  2723. all:
  2724. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2725. _ACEOF
  2726. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2727. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2728. *@@@%%%=?*=@@@%%%*)
  2729. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2730. *)
  2731. eval ac_cv_prog_make_${ac_make}_set=no;;
  2732. esac
  2733. rm -f conftest.make
  2734. fi
  2735. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2737. $as_echo "yes" >&6; }
  2738. SET_MAKE=
  2739. else
  2740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2741. $as_echo "no" >&6; }
  2742. SET_MAKE="MAKE=${MAKE-make}"
  2743. fi
  2744. rm -rf .tst 2>/dev/null
  2745. mkdir .tst 2>/dev/null
  2746. if test -d .tst; then
  2747. am__leading_dot=.
  2748. else
  2749. am__leading_dot=_
  2750. fi
  2751. rmdir .tst 2>/dev/null
  2752. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2753. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2754. # is not polluted with repeated "-I."
  2755. am__isrc=' -I$(srcdir)'
  2756. # test to see if srcdir already configured
  2757. if test -f $srcdir/config.status; then
  2758. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2759. fi
  2760. fi
  2761. # test whether we have cygpath
  2762. if test -z "$CYGPATH_W"; then
  2763. if (cygpath --version) >/dev/null 2>/dev/null; then
  2764. CYGPATH_W='cygpath -w'
  2765. else
  2766. CYGPATH_W=echo
  2767. fi
  2768. fi
  2769. # Define the identity of the package.
  2770. PACKAGE='log4cplus'
  2771. VERSION='1.1.3'
  2772. # Some tools Automake needs.
  2773. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2774. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2775. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2776. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2777. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2778. # For better backward compatibility. To be removed once Automake 1.9.x
  2779. # dies out for good. For more background, see:
  2780. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2781. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2782. mkdir_p='$(MKDIR_P)'
  2783. # We need awk for the "check" target. The system "awk" is bad on
  2784. # some platforms.
  2785. # Always define AMTAR for backward compatibility. Yes, it's still used
  2786. # in the wild :-( We should find a proper way to deprecate it ...
  2787. AMTAR='$${TAR-tar}'
  2788. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2789. DEPDIR="${am__leading_dot}deps"
  2790. ac_config_commands="$ac_config_commands depfiles"
  2791. am_make=${MAKE-make}
  2792. cat > confinc << 'END'
  2793. am__doit:
  2794. @echo this is the am__doit target
  2795. .PHONY: am__doit
  2796. END
  2797. # If we don't find an include directive, just comment out the code.
  2798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2799. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2800. am__include="#"
  2801. am__quote=
  2802. _am_result=none
  2803. # First try GNU make style include.
  2804. echo "include confinc" > confmf
  2805. # Ignore all kinds of additional output from 'make'.
  2806. case `$am_make -s -f confmf 2> /dev/null` in #(
  2807. *the\ am__doit\ target*)
  2808. am__include=include
  2809. am__quote=
  2810. _am_result=GNU
  2811. ;;
  2812. esac
  2813. # Now try BSD make style include.
  2814. if test "$am__include" = "#"; then
  2815. echo '.include "confinc"' > confmf
  2816. case `$am_make -s -f confmf 2> /dev/null` in #(
  2817. *the\ am__doit\ target*)
  2818. am__include=.include
  2819. am__quote="\""
  2820. _am_result=BSD
  2821. ;;
  2822. esac
  2823. fi
  2824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2825. $as_echo "$_am_result" >&6; }
  2826. rm -f confinc confmf
  2827. # Check whether --enable-dependency-tracking was given.
  2828. if test "${enable_dependency_tracking+set}" = set; then :
  2829. enableval=$enable_dependency_tracking;
  2830. fi
  2831. if test "x$enable_dependency_tracking" != xno; then
  2832. am_depcomp="$ac_aux_dir/depcomp"
  2833. AMDEPBACKSLASH='\'
  2834. am__nodep='_no'
  2835. fi
  2836. if test "x$enable_dependency_tracking" != xno; then
  2837. AMDEP_TRUE=
  2838. AMDEP_FALSE='#'
  2839. else
  2840. AMDEP_TRUE='#'
  2841. AMDEP_FALSE=
  2842. fi
  2843. ac_ext=c
  2844. ac_cpp='$CPP $CPPFLAGS'
  2845. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2846. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2847. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2848. if test -n "$ac_tool_prefix"; then
  2849. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2850. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2852. $as_echo_n "checking for $ac_word... " >&6; }
  2853. if ${ac_cv_prog_CC+:} false; then :
  2854. $as_echo_n "(cached) " >&6
  2855. else
  2856. if test -n "$CC"; then
  2857. ac_cv_prog_CC="$CC" # Let the user override the test.
  2858. else
  2859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2860. for as_dir in $PATH
  2861. do
  2862. IFS=$as_save_IFS
  2863. test -z "$as_dir" && as_dir=.
  2864. for ac_exec_ext in '' $ac_executable_extensions; do
  2865. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2866. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2867. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2868. break 2
  2869. fi
  2870. done
  2871. done
  2872. IFS=$as_save_IFS
  2873. fi
  2874. fi
  2875. CC=$ac_cv_prog_CC
  2876. if test -n "$CC"; then
  2877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2878. $as_echo "$CC" >&6; }
  2879. else
  2880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2881. $as_echo "no" >&6; }
  2882. fi
  2883. fi
  2884. if test -z "$ac_cv_prog_CC"; then
  2885. ac_ct_CC=$CC
  2886. # Extract the first word of "gcc", so it can be a program name with args.
  2887. set dummy gcc; ac_word=$2
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2889. $as_echo_n "checking for $ac_word... " >&6; }
  2890. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2891. $as_echo_n "(cached) " >&6
  2892. else
  2893. if test -n "$ac_ct_CC"; then
  2894. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2895. else
  2896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2897. for as_dir in $PATH
  2898. do
  2899. IFS=$as_save_IFS
  2900. test -z "$as_dir" && as_dir=.
  2901. for ac_exec_ext in '' $ac_executable_extensions; do
  2902. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2903. ac_cv_prog_ac_ct_CC="gcc"
  2904. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2905. break 2
  2906. fi
  2907. done
  2908. done
  2909. IFS=$as_save_IFS
  2910. fi
  2911. fi
  2912. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2913. if test -n "$ac_ct_CC"; then
  2914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2915. $as_echo "$ac_ct_CC" >&6; }
  2916. else
  2917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2918. $as_echo "no" >&6; }
  2919. fi
  2920. if test "x$ac_ct_CC" = x; then
  2921. CC=""
  2922. else
  2923. case $cross_compiling:$ac_tool_warned in
  2924. yes:)
  2925. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2926. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2927. ac_tool_warned=yes ;;
  2928. esac
  2929. CC=$ac_ct_CC
  2930. fi
  2931. else
  2932. CC="$ac_cv_prog_CC"
  2933. fi
  2934. if test -z "$CC"; then
  2935. if test -n "$ac_tool_prefix"; then
  2936. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2937. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2939. $as_echo_n "checking for $ac_word... " >&6; }
  2940. if ${ac_cv_prog_CC+:} false; then :
  2941. $as_echo_n "(cached) " >&6
  2942. else
  2943. if test -n "$CC"; then
  2944. ac_cv_prog_CC="$CC" # Let the user override the test.
  2945. else
  2946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2947. for as_dir in $PATH
  2948. do
  2949. IFS=$as_save_IFS
  2950. test -z "$as_dir" && as_dir=.
  2951. for ac_exec_ext in '' $ac_executable_extensions; do
  2952. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2953. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2954. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2955. break 2
  2956. fi
  2957. done
  2958. done
  2959. IFS=$as_save_IFS
  2960. fi
  2961. fi
  2962. CC=$ac_cv_prog_CC
  2963. if test -n "$CC"; then
  2964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2965. $as_echo "$CC" >&6; }
  2966. else
  2967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2968. $as_echo "no" >&6; }
  2969. fi
  2970. fi
  2971. fi
  2972. if test -z "$CC"; then
  2973. # Extract the first word of "cc", so it can be a program name with args.
  2974. set dummy cc; ac_word=$2
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2976. $as_echo_n "checking for $ac_word... " >&6; }
  2977. if ${ac_cv_prog_CC+:} false; then :
  2978. $as_echo_n "(cached) " >&6
  2979. else
  2980. if test -n "$CC"; then
  2981. ac_cv_prog_CC="$CC" # Let the user override the test.
  2982. else
  2983. ac_prog_rejected=no
  2984. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2985. for as_dir in $PATH
  2986. do
  2987. IFS=$as_save_IFS
  2988. test -z "$as_dir" && as_dir=.
  2989. for ac_exec_ext in '' $ac_executable_extensions; do
  2990. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2991. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2992. ac_prog_rejected=yes
  2993. continue
  2994. fi
  2995. ac_cv_prog_CC="cc"
  2996. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2997. break 2
  2998. fi
  2999. done
  3000. done
  3001. IFS=$as_save_IFS
  3002. if test $ac_prog_rejected = yes; then
  3003. # We found a bogon in the path, so make sure we never use it.
  3004. set dummy $ac_cv_prog_CC
  3005. shift
  3006. if test $# != 0; then
  3007. # We chose a different compiler from the bogus one.
  3008. # However, it has the same basename, so the bogon will be chosen
  3009. # first if we set CC to just the basename; use the full file name.
  3010. shift
  3011. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3012. fi
  3013. fi
  3014. fi
  3015. fi
  3016. CC=$ac_cv_prog_CC
  3017. if test -n "$CC"; then
  3018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3019. $as_echo "$CC" >&6; }
  3020. else
  3021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3022. $as_echo "no" >&6; }
  3023. fi
  3024. fi
  3025. if test -z "$CC"; then
  3026. if test -n "$ac_tool_prefix"; then
  3027. for ac_prog in cl.exe
  3028. do
  3029. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3030. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3032. $as_echo_n "checking for $ac_word... " >&6; }
  3033. if ${ac_cv_prog_CC+:} false; then :
  3034. $as_echo_n "(cached) " >&6
  3035. else
  3036. if test -n "$CC"; then
  3037. ac_cv_prog_CC="$CC" # Let the user override the test.
  3038. else
  3039. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3040. for as_dir in $PATH
  3041. do
  3042. IFS=$as_save_IFS
  3043. test -z "$as_dir" && as_dir=.
  3044. for ac_exec_ext in '' $ac_executable_extensions; do
  3045. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3046. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3047. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3048. break 2
  3049. fi
  3050. done
  3051. done
  3052. IFS=$as_save_IFS
  3053. fi
  3054. fi
  3055. CC=$ac_cv_prog_CC
  3056. if test -n "$CC"; then
  3057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3058. $as_echo "$CC" >&6; }
  3059. else
  3060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3061. $as_echo "no" >&6; }
  3062. fi
  3063. test -n "$CC" && break
  3064. done
  3065. fi
  3066. if test -z "$CC"; then
  3067. ac_ct_CC=$CC
  3068. for ac_prog in cl.exe
  3069. do
  3070. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3071. set dummy $ac_prog; ac_word=$2
  3072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3073. $as_echo_n "checking for $ac_word... " >&6; }
  3074. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3075. $as_echo_n "(cached) " >&6
  3076. else
  3077. if test -n "$ac_ct_CC"; then
  3078. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3079. else
  3080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3081. for as_dir in $PATH
  3082. do
  3083. IFS=$as_save_IFS
  3084. test -z "$as_dir" && as_dir=.
  3085. for ac_exec_ext in '' $ac_executable_extensions; do
  3086. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3087. ac_cv_prog_ac_ct_CC="$ac_prog"
  3088. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3089. break 2
  3090. fi
  3091. done
  3092. done
  3093. IFS=$as_save_IFS
  3094. fi
  3095. fi
  3096. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3097. if test -n "$ac_ct_CC"; then
  3098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3099. $as_echo "$ac_ct_CC" >&6; }
  3100. else
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3102. $as_echo "no" >&6; }
  3103. fi
  3104. test -n "$ac_ct_CC" && break
  3105. done
  3106. if test "x$ac_ct_CC" = x; then
  3107. CC=""
  3108. else
  3109. case $cross_compiling:$ac_tool_warned in
  3110. yes:)
  3111. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3112. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3113. ac_tool_warned=yes ;;
  3114. esac
  3115. CC=$ac_ct_CC
  3116. fi
  3117. fi
  3118. fi
  3119. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3120. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3121. as_fn_error $? "no acceptable C compiler found in \$PATH
  3122. See \`config.log' for more details" "$LINENO" 5; }
  3123. # Provide some information about the compiler.
  3124. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3125. set X $ac_compile
  3126. ac_compiler=$2
  3127. for ac_option in --version -v -V -qversion; do
  3128. { { ac_try="$ac_compiler $ac_option >&5"
  3129. case "(($ac_try" in
  3130. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3131. *) ac_try_echo=$ac_try;;
  3132. esac
  3133. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3134. $as_echo "$ac_try_echo"; } >&5
  3135. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3136. ac_status=$?
  3137. if test -s conftest.err; then
  3138. sed '10a\
  3139. ... rest of stderr output deleted ...
  3140. 10q' conftest.err >conftest.er1
  3141. cat conftest.er1 >&5
  3142. fi
  3143. rm -f conftest.er1 conftest.err
  3144. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3145. test $ac_status = 0; }
  3146. done
  3147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3148. /* end confdefs.h. */
  3149. int
  3150. main ()
  3151. {
  3152. ;
  3153. return 0;
  3154. }
  3155. _ACEOF
  3156. ac_clean_files_save=$ac_clean_files
  3157. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3158. # Try to create an executable without -o first, disregard a.out.
  3159. # It will help us diagnose broken compilers, and finding out an intuition
  3160. # of exeext.
  3161. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3162. $as_echo_n "checking whether the C compiler works... " >&6; }
  3163. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3164. # The possible output files:
  3165. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3166. ac_rmfiles=
  3167. for ac_file in $ac_files
  3168. do
  3169. case $ac_file in
  3170. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3171. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3172. esac
  3173. done
  3174. rm -f $ac_rmfiles
  3175. if { { ac_try="$ac_link_default"
  3176. case "(($ac_try" in
  3177. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3178. *) ac_try_echo=$ac_try;;
  3179. esac
  3180. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3181. $as_echo "$ac_try_echo"; } >&5
  3182. (eval "$ac_link_default") 2>&5
  3183. ac_status=$?
  3184. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3185. test $ac_status = 0; }; then :
  3186. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3187. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3188. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3189. # so that the user can short-circuit this test for compilers unknown to
  3190. # Autoconf.
  3191. for ac_file in $ac_files ''
  3192. do
  3193. test -f "$ac_file" || continue
  3194. case $ac_file in
  3195. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3196. ;;
  3197. [ab].out )
  3198. # We found the default executable, but exeext='' is most
  3199. # certainly right.
  3200. break;;
  3201. *.* )
  3202. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3203. then :; else
  3204. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3205. fi
  3206. # We set ac_cv_exeext here because the later test for it is not
  3207. # safe: cross compilers may not add the suffix if given an `-o'
  3208. # argument, so we may need to know it at that point already.
  3209. # Even if this section looks crufty: it has the advantage of
  3210. # actually working.
  3211. break;;
  3212. * )
  3213. break;;
  3214. esac
  3215. done
  3216. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3217. else
  3218. ac_file=''
  3219. fi
  3220. if test -z "$ac_file"; then :
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3222. $as_echo "no" >&6; }
  3223. $as_echo "$as_me: failed program was:" >&5
  3224. sed 's/^/| /' conftest.$ac_ext >&5
  3225. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3226. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3227. as_fn_error 77 "C compiler cannot create executables
  3228. See \`config.log' for more details" "$LINENO" 5; }
  3229. else
  3230. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3231. $as_echo "yes" >&6; }
  3232. fi
  3233. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3234. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3236. $as_echo "$ac_file" >&6; }
  3237. ac_exeext=$ac_cv_exeext
  3238. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3239. ac_clean_files=$ac_clean_files_save
  3240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3241. $as_echo_n "checking for suffix of executables... " >&6; }
  3242. if { { ac_try="$ac_link"
  3243. case "(($ac_try" in
  3244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3245. *) ac_try_echo=$ac_try;;
  3246. esac
  3247. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3248. $as_echo "$ac_try_echo"; } >&5
  3249. (eval "$ac_link") 2>&5
  3250. ac_status=$?
  3251. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3252. test $ac_status = 0; }; then :
  3253. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3254. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3255. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3256. # `rm'.
  3257. for ac_file in conftest.exe conftest conftest.*; do
  3258. test -f "$ac_file" || continue
  3259. case $ac_file in
  3260. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3261. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3262. break;;
  3263. * ) break;;
  3264. esac
  3265. done
  3266. else
  3267. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3268. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3269. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3270. See \`config.log' for more details" "$LINENO" 5; }
  3271. fi
  3272. rm -f conftest conftest$ac_cv_exeext
  3273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3274. $as_echo "$ac_cv_exeext" >&6; }
  3275. rm -f conftest.$ac_ext
  3276. EXEEXT=$ac_cv_exeext
  3277. ac_exeext=$EXEEXT
  3278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3279. /* end confdefs.h. */
  3280. #include <stdio.h>
  3281. int
  3282. main ()
  3283. {
  3284. FILE *f = fopen ("conftest.out", "w");
  3285. return ferror (f) || fclose (f) != 0;
  3286. ;
  3287. return 0;
  3288. }
  3289. _ACEOF
  3290. ac_clean_files="$ac_clean_files conftest.out"
  3291. # Check that the compiler produces executables we can run. If not, either
  3292. # the compiler is broken, or we cross compile.
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3294. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3295. if test "$cross_compiling" != yes; then
  3296. { { ac_try="$ac_link"
  3297. case "(($ac_try" in
  3298. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3299. *) ac_try_echo=$ac_try;;
  3300. esac
  3301. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3302. $as_echo "$ac_try_echo"; } >&5
  3303. (eval "$ac_link") 2>&5
  3304. ac_status=$?
  3305. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3306. test $ac_status = 0; }
  3307. if { ac_try='./conftest$ac_cv_exeext'
  3308. { { case "(($ac_try" in
  3309. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3310. *) ac_try_echo=$ac_try;;
  3311. esac
  3312. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3313. $as_echo "$ac_try_echo"; } >&5
  3314. (eval "$ac_try") 2>&5
  3315. ac_status=$?
  3316. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3317. test $ac_status = 0; }; }; then
  3318. cross_compiling=no
  3319. else
  3320. if test "$cross_compiling" = maybe; then
  3321. cross_compiling=yes
  3322. else
  3323. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3324. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3325. as_fn_error $? "cannot run C compiled programs.
  3326. If you meant to cross compile, use \`--host'.
  3327. See \`config.log' for more details" "$LINENO" 5; }
  3328. fi
  3329. fi
  3330. fi
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3332. $as_echo "$cross_compiling" >&6; }
  3333. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3334. ac_clean_files=$ac_clean_files_save
  3335. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3336. $as_echo_n "checking for suffix of object files... " >&6; }
  3337. if ${ac_cv_objext+:} false; then :
  3338. $as_echo_n "(cached) " >&6
  3339. else
  3340. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3341. /* end confdefs.h. */
  3342. int
  3343. main ()
  3344. {
  3345. ;
  3346. return 0;
  3347. }
  3348. _ACEOF
  3349. rm -f conftest.o conftest.obj
  3350. if { { ac_try="$ac_compile"
  3351. case "(($ac_try" in
  3352. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3353. *) ac_try_echo=$ac_try;;
  3354. esac
  3355. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3356. $as_echo "$ac_try_echo"; } >&5
  3357. (eval "$ac_compile") 2>&5
  3358. ac_status=$?
  3359. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3360. test $ac_status = 0; }; then :
  3361. for ac_file in conftest.o conftest.obj conftest.*; do
  3362. test -f "$ac_file" || continue;
  3363. case $ac_file in
  3364. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3365. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3366. break;;
  3367. esac
  3368. done
  3369. else
  3370. $as_echo "$as_me: failed program was:" >&5
  3371. sed 's/^/| /' conftest.$ac_ext >&5
  3372. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3373. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3374. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3375. See \`config.log' for more details" "$LINENO" 5; }
  3376. fi
  3377. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3378. fi
  3379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3380. $as_echo "$ac_cv_objext" >&6; }
  3381. OBJEXT=$ac_cv_objext
  3382. ac_objext=$OBJEXT
  3383. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3384. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3385. if ${ac_cv_c_compiler_gnu+:} false; then :
  3386. $as_echo_n "(cached) " >&6
  3387. else
  3388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3389. /* end confdefs.h. */
  3390. int
  3391. main ()
  3392. {
  3393. #ifndef __GNUC__
  3394. choke me
  3395. #endif
  3396. ;
  3397. return 0;
  3398. }
  3399. _ACEOF
  3400. if ac_fn_c_try_compile "$LINENO"; then :
  3401. ac_compiler_gnu=yes
  3402. else
  3403. ac_compiler_gnu=no
  3404. fi
  3405. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3406. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3407. fi
  3408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3409. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3410. if test $ac_compiler_gnu = yes; then
  3411. GCC=yes
  3412. else
  3413. GCC=
  3414. fi
  3415. ac_test_CFLAGS=${CFLAGS+set}
  3416. ac_save_CFLAGS=$CFLAGS
  3417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3418. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3419. if ${ac_cv_prog_cc_g+:} false; then :
  3420. $as_echo_n "(cached) " >&6
  3421. else
  3422. ac_save_c_werror_flag=$ac_c_werror_flag
  3423. ac_c_werror_flag=yes
  3424. ac_cv_prog_cc_g=no
  3425. CFLAGS="-g"
  3426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3427. /* end confdefs.h. */
  3428. int
  3429. main ()
  3430. {
  3431. ;
  3432. return 0;
  3433. }
  3434. _ACEOF
  3435. if ac_fn_c_try_compile "$LINENO"; then :
  3436. ac_cv_prog_cc_g=yes
  3437. else
  3438. CFLAGS=""
  3439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3440. /* end confdefs.h. */
  3441. int
  3442. main ()
  3443. {
  3444. ;
  3445. return 0;
  3446. }
  3447. _ACEOF
  3448. if ac_fn_c_try_compile "$LINENO"; then :
  3449. else
  3450. ac_c_werror_flag=$ac_save_c_werror_flag
  3451. CFLAGS="-g"
  3452. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3453. /* end confdefs.h. */
  3454. int
  3455. main ()
  3456. {
  3457. ;
  3458. return 0;
  3459. }
  3460. _ACEOF
  3461. if ac_fn_c_try_compile "$LINENO"; then :
  3462. ac_cv_prog_cc_g=yes
  3463. fi
  3464. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3465. fi
  3466. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3467. fi
  3468. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3469. ac_c_werror_flag=$ac_save_c_werror_flag
  3470. fi
  3471. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3472. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3473. if test "$ac_test_CFLAGS" = set; then
  3474. CFLAGS=$ac_save_CFLAGS
  3475. elif test $ac_cv_prog_cc_g = yes; then
  3476. if test "$GCC" = yes; then
  3477. CFLAGS="-g -O2"
  3478. else
  3479. CFLAGS="-g"
  3480. fi
  3481. else
  3482. if test "$GCC" = yes; then
  3483. CFLAGS="-O2"
  3484. else
  3485. CFLAGS=
  3486. fi
  3487. fi
  3488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3489. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3490. if ${ac_cv_prog_cc_c89+:} false; then :
  3491. $as_echo_n "(cached) " >&6
  3492. else
  3493. ac_cv_prog_cc_c89=no
  3494. ac_save_CC=$CC
  3495. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3496. /* end confdefs.h. */
  3497. #include <stdarg.h>
  3498. #include <stdio.h>
  3499. struct stat;
  3500. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3501. struct buf { int x; };
  3502. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3503. static char *e (p, i)
  3504. char **p;
  3505. int i;
  3506. {
  3507. return p[i];
  3508. }
  3509. static char *f (char * (*g) (char **, int), char **p, ...)
  3510. {
  3511. char *s;
  3512. va_list v;
  3513. va_start (v,p);
  3514. s = g (p, va_arg (v,int));
  3515. va_end (v);
  3516. return s;
  3517. }
  3518. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3519. function prototypes and stuff, but not '\xHH' hex character constants.
  3520. These don't provoke an error unfortunately, instead are silently treated
  3521. as 'x'. The following induces an error, until -std is added to get
  3522. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3523. array size at least. It's necessary to write '\x00'==0 to get something
  3524. that's true only with -std. */
  3525. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3526. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3527. inside strings and character constants. */
  3528. #define FOO(x) 'x'
  3529. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3530. int test (int i, double x);
  3531. struct s1 {int (*f) (int a);};
  3532. struct s2 {int (*f) (double a);};
  3533. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3534. int argc;
  3535. char **argv;
  3536. int
  3537. main ()
  3538. {
  3539. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3540. ;
  3541. return 0;
  3542. }
  3543. _ACEOF
  3544. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3545. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3546. do
  3547. CC="$ac_save_CC $ac_arg"
  3548. if ac_fn_c_try_compile "$LINENO"; then :
  3549. ac_cv_prog_cc_c89=$ac_arg
  3550. fi
  3551. rm -f core conftest.err conftest.$ac_objext
  3552. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3553. done
  3554. rm -f conftest.$ac_ext
  3555. CC=$ac_save_CC
  3556. fi
  3557. # AC_CACHE_VAL
  3558. case "x$ac_cv_prog_cc_c89" in
  3559. x)
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3561. $as_echo "none needed" >&6; } ;;
  3562. xno)
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3564. $as_echo "unsupported" >&6; } ;;
  3565. *)
  3566. CC="$CC $ac_cv_prog_cc_c89"
  3567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3568. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3569. esac
  3570. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3571. fi
  3572. ac_ext=c
  3573. ac_cpp='$CPP $CPPFLAGS'
  3574. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3575. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3576. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3577. depcc="$CC" am_compiler_list=
  3578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3579. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3580. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3581. $as_echo_n "(cached) " >&6
  3582. else
  3583. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3584. # We make a subdir and do the tests there. Otherwise we can end up
  3585. # making bogus files that we don't know about and never remove. For
  3586. # instance it was reported that on HP-UX the gcc test will end up
  3587. # making a dummy file named 'D' -- because '-MD' means "put the output
  3588. # in D".
  3589. rm -rf conftest.dir
  3590. mkdir conftest.dir
  3591. # Copy depcomp to subdir because otherwise we won't find it if we're
  3592. # using a relative directory.
  3593. cp "$am_depcomp" conftest.dir
  3594. cd conftest.dir
  3595. # We will build objects and dependencies in a subdirectory because
  3596. # it helps to detect inapplicable dependency modes. For instance
  3597. # both Tru64's cc and ICC support -MD to output dependencies as a
  3598. # side effect of compilation, but ICC will put the dependencies in
  3599. # the current directory while Tru64 will put them in the object
  3600. # directory.
  3601. mkdir sub
  3602. am_cv_CC_dependencies_compiler_type=none
  3603. if test "$am_compiler_list" = ""; then
  3604. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3605. fi
  3606. am__universal=false
  3607. case " $depcc " in #(
  3608. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3609. esac
  3610. for depmode in $am_compiler_list; do
  3611. # Setup a source with many dependencies, because some compilers
  3612. # like to wrap large dependency lists on column 80 (with \), and
  3613. # we should not choose a depcomp mode which is confused by this.
  3614. #
  3615. # We need to recreate these files for each test, as the compiler may
  3616. # overwrite some of them when testing with obscure command lines.
  3617. # This happens at least with the AIX C compiler.
  3618. : > sub/conftest.c
  3619. for i in 1 2 3 4 5 6; do
  3620. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3621. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3622. # Solaris 10 /bin/sh.
  3623. echo '/* dummy */' > sub/conftst$i.h
  3624. done
  3625. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3626. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3627. # mode. It turns out that the SunPro C++ compiler does not properly
  3628. # handle '-M -o', and we need to detect this. Also, some Intel
  3629. # versions had trouble with output in subdirs.
  3630. am__obj=sub/conftest.${OBJEXT-o}
  3631. am__minus_obj="-o $am__obj"
  3632. case $depmode in
  3633. gcc)
  3634. # This depmode causes a compiler race in universal mode.
  3635. test "$am__universal" = false || continue
  3636. ;;
  3637. nosideeffect)
  3638. # After this tag, mechanisms are not by side-effect, so they'll
  3639. # only be used when explicitly requested.
  3640. if test "x$enable_dependency_tracking" = xyes; then
  3641. continue
  3642. else
  3643. break
  3644. fi
  3645. ;;
  3646. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3647. # This compiler won't grok '-c -o', but also, the minuso test has
  3648. # not run yet. These depmodes are late enough in the game, and
  3649. # so weak that their functioning should not be impacted.
  3650. am__obj=conftest.${OBJEXT-o}
  3651. am__minus_obj=
  3652. ;;
  3653. none) break ;;
  3654. esac
  3655. if depmode=$depmode \
  3656. source=sub/conftest.c object=$am__obj \
  3657. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3658. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3659. >/dev/null 2>conftest.err &&
  3660. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3661. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3662. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3663. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3664. # icc doesn't choke on unknown options, it will just issue warnings
  3665. # or remarks (even with -Werror). So we grep stderr for any message
  3666. # that says an option was ignored or not supported.
  3667. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3668. # icc: Command line warning: ignoring option '-M'; no argument required
  3669. # The diagnosis changed in icc 8.0:
  3670. # icc: Command line remark: option '-MP' not supported
  3671. if (grep 'ignoring option' conftest.err ||
  3672. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3673. am_cv_CC_dependencies_compiler_type=$depmode
  3674. break
  3675. fi
  3676. fi
  3677. done
  3678. cd ..
  3679. rm -rf conftest.dir
  3680. else
  3681. am_cv_CC_dependencies_compiler_type=none
  3682. fi
  3683. fi
  3684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3685. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3686. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3687. if
  3688. test "x$enable_dependency_tracking" != xno \
  3689. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3690. am__fastdepCC_TRUE=
  3691. am__fastdepCC_FALSE='#'
  3692. else
  3693. am__fastdepCC_TRUE='#'
  3694. am__fastdepCC_FALSE=
  3695. fi
  3696. if test -n "$ac_tool_prefix"; then
  3697. for ac_prog in ar lib "link -lib"
  3698. do
  3699. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3700. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3702. $as_echo_n "checking for $ac_word... " >&6; }
  3703. if ${ac_cv_prog_AR+:} false; then :
  3704. $as_echo_n "(cached) " >&6
  3705. else
  3706. if test -n "$AR"; then
  3707. ac_cv_prog_AR="$AR" # Let the user override the test.
  3708. else
  3709. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3710. for as_dir in $PATH
  3711. do
  3712. IFS=$as_save_IFS
  3713. test -z "$as_dir" && as_dir=.
  3714. for ac_exec_ext in '' $ac_executable_extensions; do
  3715. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3716. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  3717. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3718. break 2
  3719. fi
  3720. done
  3721. done
  3722. IFS=$as_save_IFS
  3723. fi
  3724. fi
  3725. AR=$ac_cv_prog_AR
  3726. if test -n "$AR"; then
  3727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3728. $as_echo "$AR" >&6; }
  3729. else
  3730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3731. $as_echo "no" >&6; }
  3732. fi
  3733. test -n "$AR" && break
  3734. done
  3735. fi
  3736. if test -z "$AR"; then
  3737. ac_ct_AR=$AR
  3738. for ac_prog in ar lib "link -lib"
  3739. do
  3740. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3741. set dummy $ac_prog; ac_word=$2
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3743. $as_echo_n "checking for $ac_word... " >&6; }
  3744. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  3745. $as_echo_n "(cached) " >&6
  3746. else
  3747. if test -n "$ac_ct_AR"; then
  3748. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3749. else
  3750. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3751. for as_dir in $PATH
  3752. do
  3753. IFS=$as_save_IFS
  3754. test -z "$as_dir" && as_dir=.
  3755. for ac_exec_ext in '' $ac_executable_extensions; do
  3756. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3757. ac_cv_prog_ac_ct_AR="$ac_prog"
  3758. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3759. break 2
  3760. fi
  3761. done
  3762. done
  3763. IFS=$as_save_IFS
  3764. fi
  3765. fi
  3766. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3767. if test -n "$ac_ct_AR"; then
  3768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  3769. $as_echo "$ac_ct_AR" >&6; }
  3770. else
  3771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3772. $as_echo "no" >&6; }
  3773. fi
  3774. test -n "$ac_ct_AR" && break
  3775. done
  3776. if test "x$ac_ct_AR" = x; then
  3777. AR="false"
  3778. else
  3779. case $cross_compiling:$ac_tool_warned in
  3780. yes:)
  3781. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3782. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3783. ac_tool_warned=yes ;;
  3784. esac
  3785. AR=$ac_ct_AR
  3786. fi
  3787. fi
  3788. : ${AR=ar}
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  3790. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  3791. if ${am_cv_ar_interface+:} false; then :
  3792. $as_echo_n "(cached) " >&6
  3793. else
  3794. am_cv_ar_interface=ar
  3795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3796. /* end confdefs.h. */
  3797. int some_variable = 0;
  3798. _ACEOF
  3799. if ac_fn_c_try_compile "$LINENO"; then :
  3800. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  3801. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  3802. (eval $am_ar_try) 2>&5
  3803. ac_status=$?
  3804. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3805. test $ac_status = 0; }
  3806. if test "$ac_status" -eq 0; then
  3807. am_cv_ar_interface=ar
  3808. else
  3809. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  3810. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  3811. (eval $am_ar_try) 2>&5
  3812. ac_status=$?
  3813. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3814. test $ac_status = 0; }
  3815. if test "$ac_status" -eq 0; then
  3816. am_cv_ar_interface=lib
  3817. else
  3818. am_cv_ar_interface=unknown
  3819. fi
  3820. fi
  3821. rm -f conftest.lib libconftest.a
  3822. fi
  3823. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3824. fi
  3825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  3826. $as_echo "$am_cv_ar_interface" >&6; }
  3827. case $am_cv_ar_interface in
  3828. ar)
  3829. ;;
  3830. lib)
  3831. # Microsoft lib, so override with the ar-lib wrapper script.
  3832. # FIXME: It is wrong to rewrite AR.
  3833. # But if we don't then we get into trouble of one sort or another.
  3834. # A longer-term fix would be to have automake use am__AR in this case,
  3835. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  3836. # similar.
  3837. AR="$am_aux_dir/ar-lib $AR"
  3838. ;;
  3839. unknown)
  3840. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  3841. ;;
  3842. esac
  3843. #
  3844. # +1 : ? : +1 == new interface that does not break old one
  3845. # +1 : ? : 0 == new interface that breaks old one
  3846. # ? : ? : 0 == no new interfaces, but breaks apps
  3847. # ? :+1 : ? == just some internal changes, nothing breaks but might work
  3848. # better
  3849. # CURRENT : REVISION : AGE
  3850. LT_VERSION=10:3:1
  3851. LT_RELEASE=1.1
  3852. # Check whether --with-working-locale was given.
  3853. if test "${with_working_locale+set}" = set; then :
  3854. withval=$with_working_locale; case "${withval}" in #(
  3855. yes) :
  3856. ;; #(
  3857. no) :
  3858. ;; #(
  3859. *) :
  3860. as_fn_error $? "bad value ${withval} for --with-working-locale" "$LINENO" 5 ;;
  3861. esac
  3862. else
  3863. with_working_locale=no
  3864. fi
  3865. if test "x$with_working_locale" = "xyes"; then :
  3866. $as_echo "#define LOG4CPLUS_WORKING_LOCALE 1" >>confdefs.h
  3867. fi
  3868. # Check whether --with-working-c-locale was given.
  3869. if test "${with_working_c_locale+set}" = set; then :
  3870. withval=$with_working_c_locale; case "${withval}" in #(
  3871. yes) :
  3872. ;; #(
  3873. no) :
  3874. ;; #(
  3875. *) :
  3876. as_fn_error $? "bad value ${withval} for --with-working-c-locale" "$LINENO" 5 ;;
  3877. esac
  3878. else
  3879. with_working_c_locale=no
  3880. fi
  3881. if test "x$with_working_c_locale" = "xyes"; then :
  3882. $as_echo "#define LOG4CPLUS_WORKING_C_LOCALE 1" >>confdefs.h
  3883. fi
  3884. # Check whether --with-iconv was given.
  3885. if test "${with_iconv+set}" = set; then :
  3886. withval=$with_iconv; case "${withval}" in #(
  3887. yes) :
  3888. ;; #(
  3889. no) :
  3890. ;; #(
  3891. *) :
  3892. as_fn_error $? "bad value ${withval} for --with-iconv" "$LINENO" 5 ;;
  3893. esac
  3894. else
  3895. with_iconv=no
  3896. fi
  3897. if test "x$with_iconv" = "xyes"; then :
  3898. $as_echo "#define LOG4CPLUS_WITH_ICONV 1" >>confdefs.h
  3899. fi
  3900. # Check whether --enable-debugging was given.
  3901. if test "${enable_debugging+set}" = set; then :
  3902. enableval=$enable_debugging; case "${enableval}" in #(
  3903. yes) :
  3904. ;; #(
  3905. no) :
  3906. ;; #(
  3907. *) :
  3908. as_fn_error $? "bad value ${enableval} for --enable-debugging" "$LINENO" 5 ;;
  3909. esac
  3910. else
  3911. enable_debugging=no
  3912. fi
  3913. if test "x$enable_debugging" = "xyes"; then :
  3914. $as_echo "#define LOG4CPLUS_DEBUGGING 1" >>confdefs.h
  3915. LOG4CPLUS_NDEBUG=-UNDEBUG
  3916. case "$target_os" in #(
  3917. linux*) :
  3918. as_fn_append CPPFLAGS " -U_FORTIFY_SOURCE"
  3919. as_fn_append CPPFLAGS " -D_FORTIFY_SOURCE=1" ;; #(
  3920. *) :
  3921. ;;
  3922. esac
  3923. else
  3924. LOG4CPLUS_NDEBUG=-DNDEBUG
  3925. fi
  3926. # Check whether --enable-warnings was given.
  3927. if test "${enable_warnings+set}" = set; then :
  3928. enableval=$enable_warnings; case "${enableval}" in #(
  3929. yes) :
  3930. ;; #(
  3931. no) :
  3932. ;; #(
  3933. *) :
  3934. as_fn_error $? "bad value ${enableval} for --enable-warnings" "$LINENO" 5 ;;
  3935. esac
  3936. else
  3937. enable_warnings=yes
  3938. fi
  3939. # Check whether --enable-so-version was given.
  3940. if test "${enable_so_version+set}" = set; then :
  3941. enableval=$enable_so_version; case "${enableval}" in #(
  3942. yes) :
  3943. ;; #(
  3944. no) :
  3945. ;; #(
  3946. *) :
  3947. as_fn_error $? "bad value ${enableval} for --enable-so-version" "$LINENO" 5 ;;
  3948. esac
  3949. else
  3950. enable_so_version=yes
  3951. fi
  3952. if test "x$enable_so_version" = "xyes"; then
  3953. ENABLE_VERSION_INFO_OPTION_TRUE=
  3954. ENABLE_VERSION_INFO_OPTION_FALSE='#'
  3955. else
  3956. ENABLE_VERSION_INFO_OPTION_TRUE='#'
  3957. ENABLE_VERSION_INFO_OPTION_FALSE=
  3958. fi
  3959. # Check whether --enable-release-version was given.
  3960. if test "${enable_release_version+set}" = set; then :
  3961. enableval=$enable_release_version; case "${enableval}" in #(
  3962. yes) :
  3963. ;; #(
  3964. no) :
  3965. ;; #(
  3966. *) :
  3967. as_fn_error $? "bad value ${enableval} for --enable-release-version" "$LINENO" 5 ;;
  3968. esac
  3969. else
  3970. enable_release_version=yes
  3971. fi
  3972. if test "x$enable_release_version" = "xyes"; then
  3973. ENABLE_RELEASE_OPTION_TRUE=
  3974. ENABLE_RELEASE_OPTION_FALSE='#'
  3975. else
  3976. ENABLE_RELEASE_OPTION_TRUE='#'
  3977. ENABLE_RELEASE_OPTION_FALSE=
  3978. fi
  3979. # Check whether --enable-symbols-visibility-options was given.
  3980. if test "${enable_symbols_visibility_options+set}" = set; then :
  3981. enableval=$enable_symbols_visibility_options; case "${enableval}" in #(
  3982. yes) :
  3983. ;; #(
  3984. no) :
  3985. ;; #(
  3986. *) :
  3987. as_fn_error $? "bad value ${enableval} for --enable-symbols-visibility-options" "$LINENO" 5 ;;
  3988. esac
  3989. else
  3990. enable_symbols_visibility_options=yes
  3991. fi
  3992. ac_ext=cpp
  3993. ac_cpp='$CXXCPP $CPPFLAGS'
  3994. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3995. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3996. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3997. if test -z "$CXX"; then
  3998. if test -n "$CCC"; then
  3999. CXX=$CCC
  4000. else
  4001. if test -n "$ac_tool_prefix"; then
  4002. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4003. do
  4004. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4005. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4007. $as_echo_n "checking for $ac_word... " >&6; }
  4008. if ${ac_cv_prog_CXX+:} false; then :
  4009. $as_echo_n "(cached) " >&6
  4010. else
  4011. if test -n "$CXX"; then
  4012. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  4013. else
  4014. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4015. for as_dir in $PATH
  4016. do
  4017. IFS=$as_save_IFS
  4018. test -z "$as_dir" && as_dir=.
  4019. for ac_exec_ext in '' $ac_executable_extensions; do
  4020. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4021. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  4022. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4023. break 2
  4024. fi
  4025. done
  4026. done
  4027. IFS=$as_save_IFS
  4028. fi
  4029. fi
  4030. CXX=$ac_cv_prog_CXX
  4031. if test -n "$CXX"; then
  4032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4033. $as_echo "$CXX" >&6; }
  4034. else
  4035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4036. $as_echo "no" >&6; }
  4037. fi
  4038. test -n "$CXX" && break
  4039. done
  4040. fi
  4041. if test -z "$CXX"; then
  4042. ac_ct_CXX=$CXX
  4043. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4044. do
  4045. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4046. set dummy $ac_prog; ac_word=$2
  4047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4048. $as_echo_n "checking for $ac_word... " >&6; }
  4049. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4050. $as_echo_n "(cached) " >&6
  4051. else
  4052. if test -n "$ac_ct_CXX"; then
  4053. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4054. else
  4055. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4056. for as_dir in $PATH
  4057. do
  4058. IFS=$as_save_IFS
  4059. test -z "$as_dir" && as_dir=.
  4060. for ac_exec_ext in '' $ac_executable_extensions; do
  4061. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4062. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4063. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4064. break 2
  4065. fi
  4066. done
  4067. done
  4068. IFS=$as_save_IFS
  4069. fi
  4070. fi
  4071. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4072. if test -n "$ac_ct_CXX"; then
  4073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4074. $as_echo "$ac_ct_CXX" >&6; }
  4075. else
  4076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4077. $as_echo "no" >&6; }
  4078. fi
  4079. test -n "$ac_ct_CXX" && break
  4080. done
  4081. if test "x$ac_ct_CXX" = x; then
  4082. CXX="g++"
  4083. else
  4084. case $cross_compiling:$ac_tool_warned in
  4085. yes:)
  4086. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4087. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4088. ac_tool_warned=yes ;;
  4089. esac
  4090. CXX=$ac_ct_CXX
  4091. fi
  4092. fi
  4093. fi
  4094. fi
  4095. # Provide some information about the compiler.
  4096. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4097. set X $ac_compile
  4098. ac_compiler=$2
  4099. for ac_option in --version -v -V -qversion; do
  4100. { { ac_try="$ac_compiler $ac_option >&5"
  4101. case "(($ac_try" in
  4102. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4103. *) ac_try_echo=$ac_try;;
  4104. esac
  4105. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4106. $as_echo "$ac_try_echo"; } >&5
  4107. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4108. ac_status=$?
  4109. if test -s conftest.err; then
  4110. sed '10a\
  4111. ... rest of stderr output deleted ...
  4112. 10q' conftest.err >conftest.er1
  4113. cat conftest.er1 >&5
  4114. fi
  4115. rm -f conftest.er1 conftest.err
  4116. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4117. test $ac_status = 0; }
  4118. done
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4120. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4121. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4122. $as_echo_n "(cached) " >&6
  4123. else
  4124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4125. /* end confdefs.h. */
  4126. int
  4127. main ()
  4128. {
  4129. #ifndef __GNUC__
  4130. choke me
  4131. #endif
  4132. ;
  4133. return 0;
  4134. }
  4135. _ACEOF
  4136. if ac_fn_cxx_try_compile "$LINENO"; then :
  4137. ac_compiler_gnu=yes
  4138. else
  4139. ac_compiler_gnu=no
  4140. fi
  4141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4142. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4143. fi
  4144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4145. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4146. if test $ac_compiler_gnu = yes; then
  4147. GXX=yes
  4148. else
  4149. GXX=
  4150. fi
  4151. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4152. ac_save_CXXFLAGS=$CXXFLAGS
  4153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4154. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4155. if ${ac_cv_prog_cxx_g+:} false; then :
  4156. $as_echo_n "(cached) " >&6
  4157. else
  4158. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4159. ac_cxx_werror_flag=yes
  4160. ac_cv_prog_cxx_g=no
  4161. CXXFLAGS="-g"
  4162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4163. /* end confdefs.h. */
  4164. int
  4165. main ()
  4166. {
  4167. ;
  4168. return 0;
  4169. }
  4170. _ACEOF
  4171. if ac_fn_cxx_try_compile "$LINENO"; then :
  4172. ac_cv_prog_cxx_g=yes
  4173. else
  4174. CXXFLAGS=""
  4175. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4176. /* end confdefs.h. */
  4177. int
  4178. main ()
  4179. {
  4180. ;
  4181. return 0;
  4182. }
  4183. _ACEOF
  4184. if ac_fn_cxx_try_compile "$LINENO"; then :
  4185. else
  4186. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4187. CXXFLAGS="-g"
  4188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4189. /* end confdefs.h. */
  4190. int
  4191. main ()
  4192. {
  4193. ;
  4194. return 0;
  4195. }
  4196. _ACEOF
  4197. if ac_fn_cxx_try_compile "$LINENO"; then :
  4198. ac_cv_prog_cxx_g=yes
  4199. fi
  4200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4201. fi
  4202. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4203. fi
  4204. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4205. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4206. fi
  4207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4208. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4209. if test "$ac_test_CXXFLAGS" = set; then
  4210. CXXFLAGS=$ac_save_CXXFLAGS
  4211. elif test $ac_cv_prog_cxx_g = yes; then
  4212. if test "$GXX" = yes; then
  4213. CXXFLAGS="-g -O2"
  4214. else
  4215. CXXFLAGS="-g"
  4216. fi
  4217. else
  4218. if test "$GXX" = yes; then
  4219. CXXFLAGS="-O2"
  4220. else
  4221. CXXFLAGS=
  4222. fi
  4223. fi
  4224. ac_ext=c
  4225. ac_cpp='$CPP $CPPFLAGS'
  4226. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4227. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4228. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4229. depcc="$CXX" am_compiler_list=
  4230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4231. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4232. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  4233. $as_echo_n "(cached) " >&6
  4234. else
  4235. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4236. # We make a subdir and do the tests there. Otherwise we can end up
  4237. # making bogus files that we don't know about and never remove. For
  4238. # instance it was reported that on HP-UX the gcc test will end up
  4239. # making a dummy file named 'D' -- because '-MD' means "put the output
  4240. # in D".
  4241. rm -rf conftest.dir
  4242. mkdir conftest.dir
  4243. # Copy depcomp to subdir because otherwise we won't find it if we're
  4244. # using a relative directory.
  4245. cp "$am_depcomp" conftest.dir
  4246. cd conftest.dir
  4247. # We will build objects and dependencies in a subdirectory because
  4248. # it helps to detect inapplicable dependency modes. For instance
  4249. # both Tru64's cc and ICC support -MD to output dependencies as a
  4250. # side effect of compilation, but ICC will put the dependencies in
  4251. # the current directory while Tru64 will put them in the object
  4252. # directory.
  4253. mkdir sub
  4254. am_cv_CXX_dependencies_compiler_type=none
  4255. if test "$am_compiler_list" = ""; then
  4256. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4257. fi
  4258. am__universal=false
  4259. case " $depcc " in #(
  4260. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4261. esac
  4262. for depmode in $am_compiler_list; do
  4263. # Setup a source with many dependencies, because some compilers
  4264. # like to wrap large dependency lists on column 80 (with \), and
  4265. # we should not choose a depcomp mode which is confused by this.
  4266. #
  4267. # We need to recreate these files for each test, as the compiler may
  4268. # overwrite some of them when testing with obscure command lines.
  4269. # This happens at least with the AIX C compiler.
  4270. : > sub/conftest.c
  4271. for i in 1 2 3 4 5 6; do
  4272. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4273. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4274. # Solaris 10 /bin/sh.
  4275. echo '/* dummy */' > sub/conftst$i.h
  4276. done
  4277. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4278. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4279. # mode. It turns out that the SunPro C++ compiler does not properly
  4280. # handle '-M -o', and we need to detect this. Also, some Intel
  4281. # versions had trouble with output in subdirs.
  4282. am__obj=sub/conftest.${OBJEXT-o}
  4283. am__minus_obj="-o $am__obj"
  4284. case $depmode in
  4285. gcc)
  4286. # This depmode causes a compiler race in universal mode.
  4287. test "$am__universal" = false || continue
  4288. ;;
  4289. nosideeffect)
  4290. # After this tag, mechanisms are not by side-effect, so they'll
  4291. # only be used when explicitly requested.
  4292. if test "x$enable_dependency_tracking" = xyes; then
  4293. continue
  4294. else
  4295. break
  4296. fi
  4297. ;;
  4298. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4299. # This compiler won't grok '-c -o', but also, the minuso test has
  4300. # not run yet. These depmodes are late enough in the game, and
  4301. # so weak that their functioning should not be impacted.
  4302. am__obj=conftest.${OBJEXT-o}
  4303. am__minus_obj=
  4304. ;;
  4305. none) break ;;
  4306. esac
  4307. if depmode=$depmode \
  4308. source=sub/conftest.c object=$am__obj \
  4309. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4310. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4311. >/dev/null 2>conftest.err &&
  4312. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4313. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4314. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4315. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4316. # icc doesn't choke on unknown options, it will just issue warnings
  4317. # or remarks (even with -Werror). So we grep stderr for any message
  4318. # that says an option was ignored or not supported.
  4319. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4320. # icc: Command line warning: ignoring option '-M'; no argument required
  4321. # The diagnosis changed in icc 8.0:
  4322. # icc: Command line remark: option '-MP' not supported
  4323. if (grep 'ignoring option' conftest.err ||
  4324. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4325. am_cv_CXX_dependencies_compiler_type=$depmode
  4326. break
  4327. fi
  4328. fi
  4329. done
  4330. cd ..
  4331. rm -rf conftest.dir
  4332. else
  4333. am_cv_CXX_dependencies_compiler_type=none
  4334. fi
  4335. fi
  4336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  4337. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  4338. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  4339. if
  4340. test "x$enable_dependency_tracking" != xno \
  4341. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  4342. am__fastdepCXX_TRUE=
  4343. am__fastdepCXX_FALSE='#'
  4344. else
  4345. am__fastdepCXX_TRUE='#'
  4346. am__fastdepCXX_FALSE=
  4347. fi
  4348. ac_ext=cpp
  4349. ac_cpp='$CXXCPP $CPPFLAGS'
  4350. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4351. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4352. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  4354. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  4355. if test -z "$CXXCPP"; then
  4356. if ${ac_cv_prog_CXXCPP+:} false; then :
  4357. $as_echo_n "(cached) " >&6
  4358. else
  4359. # Double quotes because CXXCPP needs to be expanded
  4360. for CXXCPP in "$CXX -E" "/lib/cpp"
  4361. do
  4362. ac_preproc_ok=false
  4363. for ac_cxx_preproc_warn_flag in '' yes
  4364. do
  4365. # Use a header file that comes with gcc, so configuring glibc
  4366. # with a fresh cross-compiler works.
  4367. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4368. # <limits.h> exists even on freestanding compilers.
  4369. # On the NeXT, cc -E runs the code through the compiler's parser,
  4370. # not just through cpp. "Syntax error" is here to catch this case.
  4371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4372. /* end confdefs.h. */
  4373. #ifdef __STDC__
  4374. # include <limits.h>
  4375. #else
  4376. # include <assert.h>
  4377. #endif
  4378. Syntax error
  4379. _ACEOF
  4380. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4381. else
  4382. # Broken: fails on valid input.
  4383. continue
  4384. fi
  4385. rm -f conftest.err conftest.i conftest.$ac_ext
  4386. # OK, works on sane cases. Now check whether nonexistent headers
  4387. # can be detected and how.
  4388. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4389. /* end confdefs.h. */
  4390. #include <ac_nonexistent.h>
  4391. _ACEOF
  4392. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4393. # Broken: success on invalid input.
  4394. continue
  4395. else
  4396. # Passes both tests.
  4397. ac_preproc_ok=:
  4398. break
  4399. fi
  4400. rm -f conftest.err conftest.i conftest.$ac_ext
  4401. done
  4402. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4403. rm -f conftest.i conftest.err conftest.$ac_ext
  4404. if $ac_preproc_ok; then :
  4405. break
  4406. fi
  4407. done
  4408. ac_cv_prog_CXXCPP=$CXXCPP
  4409. fi
  4410. CXXCPP=$ac_cv_prog_CXXCPP
  4411. else
  4412. ac_cv_prog_CXXCPP=$CXXCPP
  4413. fi
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  4415. $as_echo "$CXXCPP" >&6; }
  4416. ac_preproc_ok=false
  4417. for ac_cxx_preproc_warn_flag in '' yes
  4418. do
  4419. # Use a header file that comes with gcc, so configuring glibc
  4420. # with a fresh cross-compiler works.
  4421. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4422. # <limits.h> exists even on freestanding compilers.
  4423. # On the NeXT, cc -E runs the code through the compiler's parser,
  4424. # not just through cpp. "Syntax error" is here to catch this case.
  4425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4426. /* end confdefs.h. */
  4427. #ifdef __STDC__
  4428. # include <limits.h>
  4429. #else
  4430. # include <assert.h>
  4431. #endif
  4432. Syntax error
  4433. _ACEOF
  4434. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4435. else
  4436. # Broken: fails on valid input.
  4437. continue
  4438. fi
  4439. rm -f conftest.err conftest.i conftest.$ac_ext
  4440. # OK, works on sane cases. Now check whether nonexistent headers
  4441. # can be detected and how.
  4442. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4443. /* end confdefs.h. */
  4444. #include <ac_nonexistent.h>
  4445. _ACEOF
  4446. if ac_fn_cxx_try_cpp "$LINENO"; then :
  4447. # Broken: success on invalid input.
  4448. continue
  4449. else
  4450. # Passes both tests.
  4451. ac_preproc_ok=:
  4452. break
  4453. fi
  4454. rm -f conftest.err conftest.i conftest.$ac_ext
  4455. done
  4456. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  4457. rm -f conftest.i conftest.err conftest.$ac_ext
  4458. if $ac_preproc_ok; then :
  4459. else
  4460. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4461. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4462. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  4463. See \`config.log' for more details" "$LINENO" 5; }
  4464. fi
  4465. ac_ext=c
  4466. ac_cpp='$CPP $CPPFLAGS'
  4467. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4468. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4469. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4470. ac_ext=cpp
  4471. ac_cpp='$CXXCPP $CPPFLAGS'
  4472. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4473. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4474. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4475. as_fn_append CPPFLAGS " -D_GNU_SOURCE=1"
  4476. case "$target_os" in #(
  4477. mingw*) :
  4478. as_fn_append CPPFLAGS " -U__STRICT_ANSI__"
  4479. as_fn_append CPPFLAGS " -DWIN32"
  4480. as_fn_append CPPFLAGS " -D_WIN32"
  4481. as_fn_append CPPFLAGS " -DMINGW_HAS_SECURE_API=1" ;; #(
  4482. cygwin*) :
  4483. as_fn_append CPPFLAGS " -U__STRICT_ANSI__" ;; #(
  4484. *) :
  4485. ;;
  4486. esac
  4487. # Check whether --enable-profiling was given.
  4488. if test "${enable_profiling+set}" = set; then :
  4489. enableval=$enable_profiling; case "${enableval}" in #(
  4490. yes) :
  4491. ;; #(
  4492. no) :
  4493. ;; #(
  4494. *) :
  4495. as_fn_error $? "bad value ${enableval} for --enable-profiling" "$LINENO" 5 ;;
  4496. esac
  4497. else
  4498. enable_profiling=no
  4499. fi
  4500. LOG4CPLUS_PROFILING_LDFLAGS=
  4501. LOG4CPLUS_PROFILING_CXXFLAGS=
  4502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4503. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4504. if ${ac_cv_path_SED+:} false; then :
  4505. $as_echo_n "(cached) " >&6
  4506. else
  4507. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4508. for ac_i in 1 2 3 4 5 6 7; do
  4509. ac_script="$ac_script$as_nl$ac_script"
  4510. done
  4511. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4512. { ac_script=; unset ac_script;}
  4513. if test -z "$SED"; then
  4514. ac_path_SED_found=false
  4515. # Loop through the user's path and test for each of PROGNAME-LIST
  4516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4517. for as_dir in $PATH
  4518. do
  4519. IFS=$as_save_IFS
  4520. test -z "$as_dir" && as_dir=.
  4521. for ac_prog in sed gsed; do
  4522. for ac_exec_ext in '' $ac_executable_extensions; do
  4523. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4524. as_fn_executable_p "$ac_path_SED" || continue
  4525. # Check for GNU ac_path_SED and select it if it is found.
  4526. # Check for GNU $ac_path_SED
  4527. case `"$ac_path_SED" --version 2>&1` in
  4528. *GNU*)
  4529. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4530. *)
  4531. ac_count=0
  4532. $as_echo_n 0123456789 >"conftest.in"
  4533. while :
  4534. do
  4535. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4536. mv "conftest.tmp" "conftest.in"
  4537. cp "conftest.in" "conftest.nl"
  4538. $as_echo '' >> "conftest.nl"
  4539. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4540. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4541. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4542. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4543. # Best one so far, save it but keep looking for a better one
  4544. ac_cv_path_SED="$ac_path_SED"
  4545. ac_path_SED_max=$ac_count
  4546. fi
  4547. # 10*(2^10) chars as input seems more than enough
  4548. test $ac_count -gt 10 && break
  4549. done
  4550. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4551. esac
  4552. $ac_path_SED_found && break 3
  4553. done
  4554. done
  4555. done
  4556. IFS=$as_save_IFS
  4557. if test -z "$ac_cv_path_SED"; then
  4558. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4559. fi
  4560. else
  4561. ac_cv_path_SED=$SED
  4562. fi
  4563. fi
  4564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4565. $as_echo "$ac_cv_path_SED" >&6; }
  4566. SED="$ac_cv_path_SED"
  4567. rm -f conftest.sed
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler vendor" >&5
  4569. $as_echo_n "checking for C++ compiler vendor... " >&6; }
  4570. if ${ax_cv_cxx_compiler_vendor+:} false; then :
  4571. $as_echo_n "(cached) " >&6
  4572. else
  4573. # note: don't check for gcc first since some other compilers define __GNUC__
  4574. vendors="intel: __ICC,__ECC,__INTEL_COMPILER
  4575. ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
  4576. pathscale: __PATHCC__,__PATHSCALE__
  4577. clang: __clang__
  4578. gnu: __GNUC__
  4579. sun: __SUNPRO_C,__SUNPRO_CC
  4580. hp: __HP_cc,__HP_aCC
  4581. dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
  4582. borland: __BORLANDC__,__TURBOC__
  4583. comeau: __COMO__
  4584. cray: _CRAYC
  4585. kai: __KCC
  4586. lcc: __LCC__
  4587. sgi: __sgi,sgi
  4588. microsoft: _MSC_VER
  4589. metrowerks: __MWERKS__
  4590. watcom: __WATCOMC__
  4591. portland: __PGI
  4592. unknown: UNKNOWN"
  4593. for ventest in $vendors; do
  4594. case $ventest in #(
  4595. *:) :
  4596. vendor=$ventest
  4597. continue ;; #(
  4598. *) :
  4599. vencpp="defined("`$as_echo $ventest | $SED 's/,/) || defined(/g'`")" ;;
  4600. esac
  4601. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4602. /* end confdefs.h. */
  4603. int
  4604. main ()
  4605. {
  4606. #if !($vencpp)
  4607. thisisanerror;
  4608. #endif
  4609. ;
  4610. return 0;
  4611. }
  4612. _ACEOF
  4613. if ac_fn_cxx_try_compile "$LINENO"; then :
  4614. break
  4615. fi
  4616. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4617. done
  4618. ax_cv_cxx_compiler_vendor="`$as_echo $vendor | cut -d: -f1`"
  4619. fi
  4620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compiler_vendor" >&5
  4621. $as_echo "$ax_cv_cxx_compiler_vendor" >&6; }
  4622. if test "x$enable_warnings" = "xyes"; then :
  4623. case $ax_cv_cxx_compiler_vendor in #(
  4624. sun) :
  4625. ;; #(
  4626. *) :
  4627. ac_ext=cpp
  4628. ac_cpp='$CXXCPP $CPPFLAGS'
  4629. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4630. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4631. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for maximum warnings" >&5
  4633. $as_echo_n "checking CXXFLAGS for maximum warnings... " >&6; }
  4634. if ${ac_cv_cxxflags_warn_all+:} false; then :
  4635. $as_echo_n "(cached) " >&6
  4636. else
  4637. ac_cv_cxxflags_warn_all="no, unknown"
  4638. ac_save_CXXFLAGS=$CXXFLAGS
  4639. for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
  4640. do CXXFLAGS="$ac_save_CXXFLAGS `$as_echo_n \"$ac_arg\" | $SED -e 's,%%.*,,' -e 's,%,,'`"
  4641. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4642. /* end confdefs.h. */
  4643. int
  4644. main ()
  4645. {
  4646. ;
  4647. return 0;
  4648. }
  4649. _ACEOF
  4650. if ac_fn_cxx_try_link "$LINENO"; then :
  4651. ac_cv_cxxflags_warn_all="`$as_echo_n \"$ac_arg\" | $SED -e 's,.*% *,,'`"
  4652. break
  4653. fi
  4654. rm -f core conftest.err conftest.$ac_objext \
  4655. conftest$ac_exeext conftest.$ac_ext
  4656. done
  4657. CXXFLAGS=$ac_save_CXXFLAGS
  4658. fi
  4659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxxflags_warn_all" >&5
  4660. $as_echo "$ac_cv_cxxflags_warn_all" >&6; }
  4661. case ".$ac_cv_cxxflags_warn_all" in #(
  4662. .ok|.ok,*) :
  4663. ;; #(
  4664. .|.no|.no,*) :
  4665. ;; #(
  4666. *) :
  4667. if ${CXXFLAGS+:} false; then :
  4668. case " $CXXFLAGS " in #(
  4669. *" $ac_cv_cxxflags_warn_all "*) :
  4670. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS already contains \$ac_cv_cxxflags_warn_all"; } >&5
  4671. (: CXXFLAGS already contains $ac_cv_cxxflags_warn_all) 2>&5
  4672. ac_status=$?
  4673. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4674. test $ac_status = 0; } ;; #(
  4675. *) :
  4676. { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ac_cv_cxxflags_warn_all\""; } >&5
  4677. (: CXXFLAGS="$CXXFLAGS $ac_cv_cxxflags_warn_all") 2>&5
  4678. ac_status=$?
  4679. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4680. test $ac_status = 0; }
  4681. as_fn_append CXXFLAGS " $ac_cv_cxxflags_warn_all" ;;
  4682. esac
  4683. else
  4684. CXXFLAGS="$ac_cv_cxxflags_warn_all"
  4685. fi
  4686. ;;
  4687. esac
  4688. ac_ext=cpp
  4689. ac_cpp='$CXXCPP $CPPFLAGS'
  4690. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4691. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4692. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4693. ;;
  4694. esac
  4695. fi
  4696. LOG4CPLUS_AIX_XLC_LDFLAGS=
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4698. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4699. if ${ac_cv_path_GREP+:} false; then :
  4700. $as_echo_n "(cached) " >&6
  4701. else
  4702. if test -z "$GREP"; then
  4703. ac_path_GREP_found=false
  4704. # Loop through the user's path and test for each of PROGNAME-LIST
  4705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4706. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4707. do
  4708. IFS=$as_save_IFS
  4709. test -z "$as_dir" && as_dir=.
  4710. for ac_prog in grep ggrep; do
  4711. for ac_exec_ext in '' $ac_executable_extensions; do
  4712. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4713. as_fn_executable_p "$ac_path_GREP" || continue
  4714. # Check for GNU ac_path_GREP and select it if it is found.
  4715. # Check for GNU $ac_path_GREP
  4716. case `"$ac_path_GREP" --version 2>&1` in
  4717. *GNU*)
  4718. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4719. *)
  4720. ac_count=0
  4721. $as_echo_n 0123456789 >"conftest.in"
  4722. while :
  4723. do
  4724. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4725. mv "conftest.tmp" "conftest.in"
  4726. cp "conftest.in" "conftest.nl"
  4727. $as_echo 'GREP' >> "conftest.nl"
  4728. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4729. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4730. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4731. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4732. # Best one so far, save it but keep looking for a better one
  4733. ac_cv_path_GREP="$ac_path_GREP"
  4734. ac_path_GREP_max=$ac_count
  4735. fi
  4736. # 10*(2^10) chars as input seems more than enough
  4737. test $ac_count -gt 10 && break
  4738. done
  4739. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4740. esac
  4741. $ac_path_GREP_found && break 3
  4742. done
  4743. done
  4744. done
  4745. IFS=$as_save_IFS
  4746. if test -z "$ac_cv_path_GREP"; then
  4747. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4748. fi
  4749. else
  4750. ac_cv_path_GREP=$GREP
  4751. fi
  4752. fi
  4753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4754. $as_echo "$ac_cv_path_GREP" >&6; }
  4755. GREP="$ac_cv_path_GREP"
  4756. case $ax_cv_cxx_compiler_vendor in #(
  4757. ibm) :
  4758. as_fn_append CXXFLAGS " -qroconst"
  4759. as_fn_append LOG4CPLUS_AIX_XLC_LDFLAGS " -qmkshrobj=-300" ;; #(
  4760. gnu|clang) :
  4761. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -fdiagnostics-show-caret" >&5
  4762. $as_echo_n "checking CXXFLAGS for gcc -fdiagnostics-show-caret... " >&6; }
  4763. if ${ax_cv_cxxflags_gcc_option__fdiagnostics_show_caret+:} false; then :
  4764. $as_echo_n "(cached) " >&6
  4765. else
  4766. ax_cv_cxxflags_gcc_option__fdiagnostics_show_caret="no, unknown"
  4767. ac_ext=cpp
  4768. ac_cpp='$CXXCPP $CPPFLAGS'
  4769. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4770. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4771. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4772. ac_save_CXXFLAGS="$CXXFLAGS"
  4773. for ac_arg in "-pedantic -Werror % -fdiagnostics-show-caret" "-pedantic % -fdiagnostics-show-caret %% no, obsolete" #
  4774. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  4775. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4776. /* end confdefs.h. */
  4777. int
  4778. main ()
  4779. {
  4780. return 0;
  4781. ;
  4782. return 0;
  4783. }
  4784. _ACEOF
  4785. if ac_fn_cxx_try_compile "$LINENO"; then :
  4786. ax_cv_cxxflags_gcc_option__fdiagnostics_show_caret=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  4787. fi
  4788. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4789. done
  4790. CXXFLAGS="$ac_save_CXXFLAGS"
  4791. ac_ext=cpp
  4792. ac_cpp='$CXXCPP $CPPFLAGS'
  4793. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4794. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4795. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4796. fi
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__fdiagnostics_show_caret" >&5
  4798. $as_echo "$ax_cv_cxxflags_gcc_option__fdiagnostics_show_caret" >&6; }
  4799. var=$ax_cv_cxxflags_gcc_option__fdiagnostics_show_caret
  4800. case ".$var" in
  4801. .ok|.ok,*) ;;
  4802. .|.no|.no,*) ;;
  4803. *)
  4804. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  4805. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  4806. (: CXXFLAGS does contain $var) 2>&5
  4807. ac_status=$?
  4808. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4809. test $ac_status = 0; }
  4810. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  4811. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  4812. ac_status=$?
  4813. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4814. test $ac_status = 0; }
  4815. CXXFLAGS="$CXXFLAGS $var"
  4816. fi
  4817. ;;
  4818. esac
  4819. if test "x$enable_warnings" = "xyes"; then :
  4820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -Wextra" >&5
  4821. $as_echo_n "checking CXXFLAGS for gcc -Wextra... " >&6; }
  4822. if ${ax_cv_cxxflags_gcc_option__Wextra+:} false; then :
  4823. $as_echo_n "(cached) " >&6
  4824. else
  4825. ax_cv_cxxflags_gcc_option__Wextra="no, unknown"
  4826. ac_ext=cpp
  4827. ac_cpp='$CXXCPP $CPPFLAGS'
  4828. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4829. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4830. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4831. ac_save_CXXFLAGS="$CXXFLAGS"
  4832. for ac_arg in "-pedantic -Werror % -Wextra" "-pedantic % -Wextra %% no, obsolete" #
  4833. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  4834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4835. /* end confdefs.h. */
  4836. int
  4837. main ()
  4838. {
  4839. return 0;
  4840. ;
  4841. return 0;
  4842. }
  4843. _ACEOF
  4844. if ac_fn_cxx_try_compile "$LINENO"; then :
  4845. ax_cv_cxxflags_gcc_option__Wextra=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  4846. fi
  4847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4848. done
  4849. CXXFLAGS="$ac_save_CXXFLAGS"
  4850. ac_ext=cpp
  4851. ac_cpp='$CXXCPP $CPPFLAGS'
  4852. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4853. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4854. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4855. fi
  4856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__Wextra" >&5
  4857. $as_echo "$ax_cv_cxxflags_gcc_option__Wextra" >&6; }
  4858. var=$ax_cv_cxxflags_gcc_option__Wextra
  4859. case ".$var" in
  4860. .ok|.ok,*) ;;
  4861. .|.no|.no,*) ;;
  4862. *)
  4863. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  4864. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  4865. (: CXXFLAGS does contain $var) 2>&5
  4866. ac_status=$?
  4867. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4868. test $ac_status = 0; }
  4869. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  4870. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  4871. ac_status=$?
  4872. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4873. test $ac_status = 0; }
  4874. CXXFLAGS="$CXXFLAGS $var"
  4875. fi
  4876. ;;
  4877. esac
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -pedantic" >&5
  4879. $as_echo_n "checking CXXFLAGS for gcc -pedantic... " >&6; }
  4880. if ${ax_cv_cxxflags_gcc_option__pedantic+:} false; then :
  4881. $as_echo_n "(cached) " >&6
  4882. else
  4883. ax_cv_cxxflags_gcc_option__pedantic="no, unknown"
  4884. ac_ext=cpp
  4885. ac_cpp='$CXXCPP $CPPFLAGS'
  4886. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4887. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4888. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4889. ac_save_CXXFLAGS="$CXXFLAGS"
  4890. for ac_arg in "-pedantic -Werror % -pedantic" "-pedantic % -pedantic %% no, obsolete" #
  4891. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  4892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4893. /* end confdefs.h. */
  4894. int
  4895. main ()
  4896. {
  4897. return 0;
  4898. ;
  4899. return 0;
  4900. }
  4901. _ACEOF
  4902. if ac_fn_cxx_try_compile "$LINENO"; then :
  4903. ax_cv_cxxflags_gcc_option__pedantic=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  4904. fi
  4905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4906. done
  4907. CXXFLAGS="$ac_save_CXXFLAGS"
  4908. ac_ext=cpp
  4909. ac_cpp='$CXXCPP $CPPFLAGS'
  4910. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4911. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4912. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4913. fi
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__pedantic" >&5
  4915. $as_echo "$ax_cv_cxxflags_gcc_option__pedantic" >&6; }
  4916. var=$ax_cv_cxxflags_gcc_option__pedantic
  4917. case ".$var" in
  4918. .ok|.ok,*) ;;
  4919. .|.no|.no,*) ;;
  4920. *)
  4921. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  4922. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  4923. (: CXXFLAGS does contain $var) 2>&5
  4924. ac_status=$?
  4925. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4926. test $ac_status = 0; }
  4927. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  4928. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  4929. ac_status=$?
  4930. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4931. test $ac_status = 0; }
  4932. CXXFLAGS="$CXXFLAGS $var"
  4933. fi
  4934. ;;
  4935. esac
  4936. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -Wstrict-aliasing" >&5
  4937. $as_echo_n "checking CXXFLAGS for gcc -Wstrict-aliasing... " >&6; }
  4938. if ${ax_cv_cxxflags_gcc_option__Wstrict_aliasing+:} false; then :
  4939. $as_echo_n "(cached) " >&6
  4940. else
  4941. ax_cv_cxxflags_gcc_option__Wstrict_aliasing="no, unknown"
  4942. ac_ext=cpp
  4943. ac_cpp='$CXXCPP $CPPFLAGS'
  4944. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4945. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4946. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4947. ac_save_CXXFLAGS="$CXXFLAGS"
  4948. for ac_arg in "-pedantic -Werror % -Wstrict-aliasing" "-pedantic % -Wstrict-aliasing %% no, obsolete" #
  4949. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  4950. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4951. /* end confdefs.h. */
  4952. int
  4953. main ()
  4954. {
  4955. return 0;
  4956. ;
  4957. return 0;
  4958. }
  4959. _ACEOF
  4960. if ac_fn_cxx_try_compile "$LINENO"; then :
  4961. ax_cv_cxxflags_gcc_option__Wstrict_aliasing=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  4962. fi
  4963. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4964. done
  4965. CXXFLAGS="$ac_save_CXXFLAGS"
  4966. ac_ext=cpp
  4967. ac_cpp='$CXXCPP $CPPFLAGS'
  4968. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4969. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4970. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4971. fi
  4972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__Wstrict_aliasing" >&5
  4973. $as_echo "$ax_cv_cxxflags_gcc_option__Wstrict_aliasing" >&6; }
  4974. var=$ax_cv_cxxflags_gcc_option__Wstrict_aliasing
  4975. case ".$var" in
  4976. .ok|.ok,*) ;;
  4977. .|.no|.no,*) ;;
  4978. *)
  4979. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  4980. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  4981. (: CXXFLAGS does contain $var) 2>&5
  4982. ac_status=$?
  4983. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4984. test $ac_status = 0; }
  4985. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  4986. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  4987. ac_status=$?
  4988. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4989. test $ac_status = 0; }
  4990. CXXFLAGS="$CXXFLAGS $var"
  4991. fi
  4992. ;;
  4993. esac
  4994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -Wstrict-overflow" >&5
  4995. $as_echo_n "checking CXXFLAGS for gcc -Wstrict-overflow... " >&6; }
  4996. if ${ax_cv_cxxflags_gcc_option__Wstrict_overflow+:} false; then :
  4997. $as_echo_n "(cached) " >&6
  4998. else
  4999. ax_cv_cxxflags_gcc_option__Wstrict_overflow="no, unknown"
  5000. ac_ext=cpp
  5001. ac_cpp='$CXXCPP $CPPFLAGS'
  5002. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5003. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5004. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5005. ac_save_CXXFLAGS="$CXXFLAGS"
  5006. for ac_arg in "-pedantic -Werror % -Wstrict-overflow" "-pedantic % -Wstrict-overflow %% no, obsolete" #
  5007. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  5008. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5009. /* end confdefs.h. */
  5010. int
  5011. main ()
  5012. {
  5013. return 0;
  5014. ;
  5015. return 0;
  5016. }
  5017. _ACEOF
  5018. if ac_fn_cxx_try_compile "$LINENO"; then :
  5019. ax_cv_cxxflags_gcc_option__Wstrict_overflow=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  5020. fi
  5021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5022. done
  5023. CXXFLAGS="$ac_save_CXXFLAGS"
  5024. ac_ext=cpp
  5025. ac_cpp='$CXXCPP $CPPFLAGS'
  5026. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5027. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5028. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5029. fi
  5030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__Wstrict_overflow" >&5
  5031. $as_echo "$ax_cv_cxxflags_gcc_option__Wstrict_overflow" >&6; }
  5032. var=$ax_cv_cxxflags_gcc_option__Wstrict_overflow
  5033. case ".$var" in
  5034. .ok|.ok,*) ;;
  5035. .|.no|.no,*) ;;
  5036. *)
  5037. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  5038. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  5039. (: CXXFLAGS does contain $var) 2>&5
  5040. ac_status=$?
  5041. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5042. test $ac_status = 0; }
  5043. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  5044. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  5045. ac_status=$?
  5046. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5047. test $ac_status = 0; }
  5048. CXXFLAGS="$CXXFLAGS $var"
  5049. fi
  5050. ;;
  5051. esac
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -Woverloaded-virtual" >&5
  5053. $as_echo_n "checking CXXFLAGS for gcc -Woverloaded-virtual... " >&6; }
  5054. if ${ax_cv_cxxflags_gcc_option__Woverloaded_virtual+:} false; then :
  5055. $as_echo_n "(cached) " >&6
  5056. else
  5057. ax_cv_cxxflags_gcc_option__Woverloaded_virtual="no, unknown"
  5058. ac_ext=cpp
  5059. ac_cpp='$CXXCPP $CPPFLAGS'
  5060. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5061. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5062. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5063. ac_save_CXXFLAGS="$CXXFLAGS"
  5064. for ac_arg in "-pedantic -Werror % -Woverloaded-virtual" "-pedantic % -Woverloaded-virtual %% no, obsolete" #
  5065. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  5066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5067. /* end confdefs.h. */
  5068. int
  5069. main ()
  5070. {
  5071. return 0;
  5072. ;
  5073. return 0;
  5074. }
  5075. _ACEOF
  5076. if ac_fn_cxx_try_compile "$LINENO"; then :
  5077. ax_cv_cxxflags_gcc_option__Woverloaded_virtual=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  5078. fi
  5079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5080. done
  5081. CXXFLAGS="$ac_save_CXXFLAGS"
  5082. ac_ext=cpp
  5083. ac_cpp='$CXXCPP $CPPFLAGS'
  5084. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5085. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5086. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5087. fi
  5088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__Woverloaded_virtual" >&5
  5089. $as_echo "$ax_cv_cxxflags_gcc_option__Woverloaded_virtual" >&6; }
  5090. var=$ax_cv_cxxflags_gcc_option__Woverloaded_virtual
  5091. case ".$var" in
  5092. .ok|.ok,*) ;;
  5093. .|.no|.no,*) ;;
  5094. *)
  5095. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  5096. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  5097. (: CXXFLAGS does contain $var) 2>&5
  5098. ac_status=$?
  5099. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5100. test $ac_status = 0; }
  5101. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  5102. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  5103. ac_status=$?
  5104. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5105. test $ac_status = 0; }
  5106. CXXFLAGS="$CXXFLAGS $var"
  5107. fi
  5108. ;;
  5109. esac
  5110. case "$target_os" in #(
  5111. mingw*) :
  5112. ;; #(
  5113. *) :
  5114. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -Wold-style-cast" >&5
  5115. $as_echo_n "checking CXXFLAGS for gcc -Wold-style-cast... " >&6; }
  5116. if ${ax_cv_cxxflags_gcc_option__Wold_style_cast+:} false; then :
  5117. $as_echo_n "(cached) " >&6
  5118. else
  5119. ax_cv_cxxflags_gcc_option__Wold_style_cast="no, unknown"
  5120. ac_ext=cpp
  5121. ac_cpp='$CXXCPP $CPPFLAGS'
  5122. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5123. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5124. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5125. ac_save_CXXFLAGS="$CXXFLAGS"
  5126. for ac_arg in "-pedantic -Werror % -Wold-style-cast" "-pedantic % -Wold-style-cast %% no, obsolete" #
  5127. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  5128. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5129. /* end confdefs.h. */
  5130. int
  5131. main ()
  5132. {
  5133. return 0;
  5134. ;
  5135. return 0;
  5136. }
  5137. _ACEOF
  5138. if ac_fn_cxx_try_compile "$LINENO"; then :
  5139. ax_cv_cxxflags_gcc_option__Wold_style_cast=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  5140. fi
  5141. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5142. done
  5143. CXXFLAGS="$ac_save_CXXFLAGS"
  5144. ac_ext=cpp
  5145. ac_cpp='$CXXCPP $CPPFLAGS'
  5146. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5147. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5148. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5149. fi
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__Wold_style_cast" >&5
  5151. $as_echo "$ax_cv_cxxflags_gcc_option__Wold_style_cast" >&6; }
  5152. var=$ax_cv_cxxflags_gcc_option__Wold_style_cast
  5153. case ".$var" in
  5154. .ok|.ok,*) ;;
  5155. .|.no|.no,*) ;;
  5156. *)
  5157. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  5158. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  5159. (: CXXFLAGS does contain $var) 2>&5
  5160. ac_status=$?
  5161. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5162. test $ac_status = 0; }
  5163. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  5164. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  5165. ac_status=$?
  5166. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5167. test $ac_status = 0; }
  5168. CXXFLAGS="$CXXFLAGS $var"
  5169. fi
  5170. ;;
  5171. esac
  5172. ;;
  5173. esac
  5174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -Wc++0x-compat" >&5
  5175. $as_echo_n "checking CXXFLAGS for gcc -Wc++0x-compat... " >&6; }
  5176. if ${ax_cv_cxxflags_gcc_option__Wcpp0x_compat+:} false; then :
  5177. $as_echo_n "(cached) " >&6
  5178. else
  5179. ax_cv_cxxflags_gcc_option__Wcpp0x_compat="no, unknown"
  5180. ac_ext=cpp
  5181. ac_cpp='$CXXCPP $CPPFLAGS'
  5182. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5183. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5184. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5185. ac_save_CXXFLAGS="$CXXFLAGS"
  5186. for ac_arg in "-pedantic -Werror % -Wc++0x-compat" "-pedantic % -Wc++0x-compat %% no, obsolete" #
  5187. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  5188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5189. /* end confdefs.h. */
  5190. int
  5191. main ()
  5192. {
  5193. return 0;
  5194. ;
  5195. return 0;
  5196. }
  5197. _ACEOF
  5198. if ac_fn_cxx_try_compile "$LINENO"; then :
  5199. ax_cv_cxxflags_gcc_option__Wcpp0x_compat=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  5200. fi
  5201. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5202. done
  5203. CXXFLAGS="$ac_save_CXXFLAGS"
  5204. ac_ext=cpp
  5205. ac_cpp='$CXXCPP $CPPFLAGS'
  5206. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5207. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5208. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5209. fi
  5210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__Wcpp0x_compat" >&5
  5211. $as_echo "$ax_cv_cxxflags_gcc_option__Wcpp0x_compat" >&6; }
  5212. var=$ax_cv_cxxflags_gcc_option__Wcpp0x_compat
  5213. case ".$var" in
  5214. .ok|.ok,*) ;;
  5215. .|.no|.no,*) ;;
  5216. *)
  5217. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  5218. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  5219. (: CXXFLAGS does contain $var) 2>&5
  5220. ac_status=$?
  5221. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5222. test $ac_status = 0; }
  5223. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  5224. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  5225. ac_status=$?
  5226. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5227. test $ac_status = 0; }
  5228. CXXFLAGS="$CXXFLAGS $var"
  5229. fi
  5230. ;;
  5231. esac
  5232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -Wc++11-compat" >&5
  5233. $as_echo_n "checking CXXFLAGS for gcc -Wc++11-compat... " >&6; }
  5234. if ${ax_cv_cxxflags_gcc_option__Wcpp11_compat+:} false; then :
  5235. $as_echo_n "(cached) " >&6
  5236. else
  5237. ax_cv_cxxflags_gcc_option__Wcpp11_compat="no, unknown"
  5238. ac_ext=cpp
  5239. ac_cpp='$CXXCPP $CPPFLAGS'
  5240. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5241. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5242. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5243. ac_save_CXXFLAGS="$CXXFLAGS"
  5244. for ac_arg in "-pedantic -Werror % -Wc++11-compat" "-pedantic % -Wc++11-compat %% no, obsolete" #
  5245. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  5246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5247. /* end confdefs.h. */
  5248. int
  5249. main ()
  5250. {
  5251. return 0;
  5252. ;
  5253. return 0;
  5254. }
  5255. _ACEOF
  5256. if ac_fn_cxx_try_compile "$LINENO"; then :
  5257. ax_cv_cxxflags_gcc_option__Wcpp11_compat=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  5258. fi
  5259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5260. done
  5261. CXXFLAGS="$ac_save_CXXFLAGS"
  5262. ac_ext=cpp
  5263. ac_cpp='$CXXCPP $CPPFLAGS'
  5264. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5265. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5266. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5267. fi
  5268. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__Wcpp11_compat" >&5
  5269. $as_echo "$ax_cv_cxxflags_gcc_option__Wcpp11_compat" >&6; }
  5270. var=$ax_cv_cxxflags_gcc_option__Wcpp11_compat
  5271. case ".$var" in
  5272. .ok|.ok,*) ;;
  5273. .|.no|.no,*) ;;
  5274. *)
  5275. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  5276. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  5277. (: CXXFLAGS does contain $var) 2>&5
  5278. ac_status=$?
  5279. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5280. test $ac_status = 0; }
  5281. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  5282. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  5283. ac_status=$?
  5284. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5285. test $ac_status = 0; }
  5286. CXXFLAGS="$CXXFLAGS $var"
  5287. fi
  5288. ;;
  5289. esac
  5290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -Wundef" >&5
  5291. $as_echo_n "checking CXXFLAGS for gcc -Wundef... " >&6; }
  5292. if ${ax_cv_cxxflags_gcc_option__Wundef+:} false; then :
  5293. $as_echo_n "(cached) " >&6
  5294. else
  5295. ax_cv_cxxflags_gcc_option__Wundef="no, unknown"
  5296. ac_ext=cpp
  5297. ac_cpp='$CXXCPP $CPPFLAGS'
  5298. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5299. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5300. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5301. ac_save_CXXFLAGS="$CXXFLAGS"
  5302. for ac_arg in "-pedantic -Werror % -Wundef" "-pedantic % -Wundef %% no, obsolete" #
  5303. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  5304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5305. /* end confdefs.h. */
  5306. int
  5307. main ()
  5308. {
  5309. return 0;
  5310. ;
  5311. return 0;
  5312. }
  5313. _ACEOF
  5314. if ac_fn_cxx_try_compile "$LINENO"; then :
  5315. ax_cv_cxxflags_gcc_option__Wundef=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  5316. fi
  5317. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5318. done
  5319. CXXFLAGS="$ac_save_CXXFLAGS"
  5320. ac_ext=cpp
  5321. ac_cpp='$CXXCPP $CPPFLAGS'
  5322. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5323. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5324. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5325. fi
  5326. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__Wundef" >&5
  5327. $as_echo "$ax_cv_cxxflags_gcc_option__Wundef" >&6; }
  5328. var=$ax_cv_cxxflags_gcc_option__Wundef
  5329. case ".$var" in
  5330. .ok|.ok,*) ;;
  5331. .|.no|.no,*) ;;
  5332. *)
  5333. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  5334. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  5335. (: CXXFLAGS does contain $var) 2>&5
  5336. ac_status=$?
  5337. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5338. test $ac_status = 0; }
  5339. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  5340. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  5341. ac_status=$?
  5342. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5343. test $ac_status = 0; }
  5344. CXXFLAGS="$CXXFLAGS $var"
  5345. fi
  5346. ;;
  5347. esac
  5348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -Wshadow" >&5
  5349. $as_echo_n "checking CXXFLAGS for gcc -Wshadow... " >&6; }
  5350. if ${ax_cv_cxxflags_gcc_option__Wshadow+:} false; then :
  5351. $as_echo_n "(cached) " >&6
  5352. else
  5353. ax_cv_cxxflags_gcc_option__Wshadow="no, unknown"
  5354. ac_ext=cpp
  5355. ac_cpp='$CXXCPP $CPPFLAGS'
  5356. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5357. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5358. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5359. ac_save_CXXFLAGS="$CXXFLAGS"
  5360. for ac_arg in "-pedantic -Werror % -Wshadow" "-pedantic % -Wshadow %% no, obsolete" #
  5361. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  5362. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5363. /* end confdefs.h. */
  5364. int
  5365. main ()
  5366. {
  5367. return 0;
  5368. ;
  5369. return 0;
  5370. }
  5371. _ACEOF
  5372. if ac_fn_cxx_try_compile "$LINENO"; then :
  5373. ax_cv_cxxflags_gcc_option__Wshadow=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  5374. fi
  5375. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5376. done
  5377. CXXFLAGS="$ac_save_CXXFLAGS"
  5378. ac_ext=cpp
  5379. ac_cpp='$CXXCPP $CPPFLAGS'
  5380. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5381. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5382. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5383. fi
  5384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__Wshadow" >&5
  5385. $as_echo "$ax_cv_cxxflags_gcc_option__Wshadow" >&6; }
  5386. var=$ax_cv_cxxflags_gcc_option__Wshadow
  5387. case ".$var" in
  5388. .ok|.ok,*) ;;
  5389. .|.no|.no,*) ;;
  5390. *)
  5391. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  5392. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  5393. (: CXXFLAGS does contain $var) 2>&5
  5394. ac_status=$?
  5395. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5396. test $ac_status = 0; }
  5397. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  5398. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  5399. ac_status=$?
  5400. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5401. test $ac_status = 0; }
  5402. CXXFLAGS="$CXXFLAGS $var"
  5403. fi
  5404. ;;
  5405. esac
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -Wformat" >&5
  5407. $as_echo_n "checking CXXFLAGS for gcc -Wformat... " >&6; }
  5408. if ${ax_cv_cxxflags_gcc_option__Wformat+:} false; then :
  5409. $as_echo_n "(cached) " >&6
  5410. else
  5411. ax_cv_cxxflags_gcc_option__Wformat="no, unknown"
  5412. ac_ext=cpp
  5413. ac_cpp='$CXXCPP $CPPFLAGS'
  5414. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5415. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5416. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5417. ac_save_CXXFLAGS="$CXXFLAGS"
  5418. for ac_arg in "-pedantic -Werror % -Wformat" "-pedantic % -Wformat %% no, obsolete" #
  5419. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  5420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5421. /* end confdefs.h. */
  5422. int
  5423. main ()
  5424. {
  5425. return 0;
  5426. ;
  5427. return 0;
  5428. }
  5429. _ACEOF
  5430. if ac_fn_cxx_try_compile "$LINENO"; then :
  5431. ax_cv_cxxflags_gcc_option__Wformat=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  5432. fi
  5433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5434. done
  5435. CXXFLAGS="$ac_save_CXXFLAGS"
  5436. ac_ext=cpp
  5437. ac_cpp='$CXXCPP $CPPFLAGS'
  5438. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5439. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5440. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5441. fi
  5442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__Wformat" >&5
  5443. $as_echo "$ax_cv_cxxflags_gcc_option__Wformat" >&6; }
  5444. var=$ax_cv_cxxflags_gcc_option__Wformat
  5445. case ".$var" in
  5446. .ok|.ok,*) ;;
  5447. .|.no|.no,*) ;;
  5448. *)
  5449. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  5450. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  5451. (: CXXFLAGS does contain $var) 2>&5
  5452. ac_status=$?
  5453. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5454. test $ac_status = 0; }
  5455. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  5456. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  5457. ac_status=$?
  5458. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5459. test $ac_status = 0; }
  5460. CXXFLAGS="$CXXFLAGS $var"
  5461. fi
  5462. ;;
  5463. esac
  5464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -Wsuggest-attribute=format" >&5
  5465. $as_echo_n "checking CXXFLAGS for gcc -Wsuggest-attribute=format... " >&6; }
  5466. if ${ax_cv_cxxflags_gcc_option__Wsuggest_attribute_format+:} false; then :
  5467. $as_echo_n "(cached) " >&6
  5468. else
  5469. ax_cv_cxxflags_gcc_option__Wsuggest_attribute_format="no, unknown"
  5470. ac_ext=cpp
  5471. ac_cpp='$CXXCPP $CPPFLAGS'
  5472. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5473. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5474. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5475. ac_save_CXXFLAGS="$CXXFLAGS"
  5476. for ac_arg in "-pedantic -Werror % -Wsuggest-attribute=format" "-pedantic % -Wsuggest-attribute=format %% no, obsolete" #
  5477. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  5478. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5479. /* end confdefs.h. */
  5480. int
  5481. main ()
  5482. {
  5483. return 0;
  5484. ;
  5485. return 0;
  5486. }
  5487. _ACEOF
  5488. if ac_fn_cxx_try_compile "$LINENO"; then :
  5489. ax_cv_cxxflags_gcc_option__Wsuggest_attribute_format=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  5490. fi
  5491. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5492. done
  5493. CXXFLAGS="$ac_save_CXXFLAGS"
  5494. ac_ext=cpp
  5495. ac_cpp='$CXXCPP $CPPFLAGS'
  5496. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5497. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5498. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5499. fi
  5500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__Wsuggest_attribute_format" >&5
  5501. $as_echo "$ax_cv_cxxflags_gcc_option__Wsuggest_attribute_format" >&6; }
  5502. var=$ax_cv_cxxflags_gcc_option__Wsuggest_attribute_format
  5503. case ".$var" in
  5504. .ok|.ok,*) ;;
  5505. .|.no|.no,*) ;;
  5506. *)
  5507. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  5508. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  5509. (: CXXFLAGS does contain $var) 2>&5
  5510. ac_status=$?
  5511. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5512. test $ac_status = 0; }
  5513. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  5514. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  5515. ac_status=$?
  5516. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5517. test $ac_status = 0; }
  5518. CXXFLAGS="$CXXFLAGS $var"
  5519. fi
  5520. ;;
  5521. esac
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -Wsuggest-attribute=noreturn" >&5
  5523. $as_echo_n "checking CXXFLAGS for gcc -Wsuggest-attribute=noreturn... " >&6; }
  5524. if ${ax_cv_cxxflags_gcc_option__Wsuggest_attribute_noreturn+:} false; then :
  5525. $as_echo_n "(cached) " >&6
  5526. else
  5527. ax_cv_cxxflags_gcc_option__Wsuggest_attribute_noreturn="no, unknown"
  5528. ac_ext=cpp
  5529. ac_cpp='$CXXCPP $CPPFLAGS'
  5530. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5531. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5532. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5533. ac_save_CXXFLAGS="$CXXFLAGS"
  5534. for ac_arg in "-pedantic -Werror % -Wsuggest-attribute=noreturn" "-pedantic % -Wsuggest-attribute=noreturn %% no, obsolete" #
  5535. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  5536. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5537. /* end confdefs.h. */
  5538. int
  5539. main ()
  5540. {
  5541. return 0;
  5542. ;
  5543. return 0;
  5544. }
  5545. _ACEOF
  5546. if ac_fn_cxx_try_compile "$LINENO"; then :
  5547. ax_cv_cxxflags_gcc_option__Wsuggest_attribute_noreturn=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  5548. fi
  5549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5550. done
  5551. CXXFLAGS="$ac_save_CXXFLAGS"
  5552. ac_ext=cpp
  5553. ac_cpp='$CXXCPP $CPPFLAGS'
  5554. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5555. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5556. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5557. fi
  5558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__Wsuggest_attribute_noreturn" >&5
  5559. $as_echo "$ax_cv_cxxflags_gcc_option__Wsuggest_attribute_noreturn" >&6; }
  5560. var=$ax_cv_cxxflags_gcc_option__Wsuggest_attribute_noreturn
  5561. case ".$var" in
  5562. .ok|.ok,*) ;;
  5563. .|.no|.no,*) ;;
  5564. *)
  5565. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  5566. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  5567. (: CXXFLAGS does contain $var) 2>&5
  5568. ac_status=$?
  5569. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5570. test $ac_status = 0; }
  5571. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  5572. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  5573. ac_status=$?
  5574. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5575. test $ac_status = 0; }
  5576. CXXFLAGS="$CXXFLAGS $var"
  5577. fi
  5578. ;;
  5579. esac
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -Wno-variadic-macros" >&5
  5581. $as_echo_n "checking CXXFLAGS for gcc -Wno-variadic-macros... " >&6; }
  5582. if ${ax_cv_cxxflags_gcc_option__Wno_variadic_macros+:} false; then :
  5583. $as_echo_n "(cached) " >&6
  5584. else
  5585. ax_cv_cxxflags_gcc_option__Wno_variadic_macros="no, unknown"
  5586. ac_ext=cpp
  5587. ac_cpp='$CXXCPP $CPPFLAGS'
  5588. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5589. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5590. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5591. ac_save_CXXFLAGS="$CXXFLAGS"
  5592. for ac_arg in "-pedantic -Werror % -Wno-variadic-macros" "-pedantic % -Wno-variadic-macros %% no, obsolete" #
  5593. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  5594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5595. /* end confdefs.h. */
  5596. int
  5597. main ()
  5598. {
  5599. return 0;
  5600. ;
  5601. return 0;
  5602. }
  5603. _ACEOF
  5604. if ac_fn_cxx_try_compile "$LINENO"; then :
  5605. ax_cv_cxxflags_gcc_option__Wno_variadic_macros=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  5606. fi
  5607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5608. done
  5609. CXXFLAGS="$ac_save_CXXFLAGS"
  5610. ac_ext=cpp
  5611. ac_cpp='$CXXCPP $CPPFLAGS'
  5612. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5613. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5614. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5615. fi
  5616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__Wno_variadic_macros" >&5
  5617. $as_echo "$ax_cv_cxxflags_gcc_option__Wno_variadic_macros" >&6; }
  5618. var=$ax_cv_cxxflags_gcc_option__Wno_variadic_macros
  5619. case ".$var" in
  5620. .ok|.ok,*) ;;
  5621. .|.no|.no,*) ;;
  5622. *)
  5623. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  5624. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  5625. (: CXXFLAGS does contain $var) 2>&5
  5626. ac_status=$?
  5627. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5628. test $ac_status = 0; }
  5629. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  5630. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  5631. ac_status=$?
  5632. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5633. test $ac_status = 0; }
  5634. CXXFLAGS="$CXXFLAGS $var"
  5635. fi
  5636. ;;
  5637. esac
  5638. fi
  5639. if test "x$enable_debugging" = "xyes"; then :
  5640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -g3" >&5
  5641. $as_echo_n "checking CXXFLAGS for gcc -g3... " >&6; }
  5642. if ${ax_cv_cxxflags_gcc_option__g3+:} false; then :
  5643. $as_echo_n "(cached) " >&6
  5644. else
  5645. ax_cv_cxxflags_gcc_option__g3="no, unknown"
  5646. ac_ext=cpp
  5647. ac_cpp='$CXXCPP $CPPFLAGS'
  5648. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5649. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5650. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5651. ac_save_CXXFLAGS="$CXXFLAGS"
  5652. for ac_arg in "-pedantic -Werror % -g3" "-pedantic % -g3 %% no, obsolete" #
  5653. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  5654. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5655. /* end confdefs.h. */
  5656. int
  5657. main ()
  5658. {
  5659. return 0;
  5660. ;
  5661. return 0;
  5662. }
  5663. _ACEOF
  5664. if ac_fn_cxx_try_compile "$LINENO"; then :
  5665. ax_cv_cxxflags_gcc_option__g3=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  5666. fi
  5667. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5668. done
  5669. CXXFLAGS="$ac_save_CXXFLAGS"
  5670. ac_ext=cpp
  5671. ac_cpp='$CXXCPP $CPPFLAGS'
  5672. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5673. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5674. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5675. fi
  5676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__g3" >&5
  5677. $as_echo "$ax_cv_cxxflags_gcc_option__g3" >&6; }
  5678. var=$ax_cv_cxxflags_gcc_option__g3
  5679. case ".$var" in
  5680. .ok|.ok,*) ;;
  5681. .|.no|.no,*) ;;
  5682. *)
  5683. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  5684. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  5685. (: CXXFLAGS does contain $var) 2>&5
  5686. ac_status=$?
  5687. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5688. test $ac_status = 0; }
  5689. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  5690. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  5691. ac_status=$?
  5692. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5693. test $ac_status = 0; }
  5694. CXXFLAGS="$CXXFLAGS $var"
  5695. fi
  5696. ;;
  5697. esac
  5698. case "$target_os" in #(
  5699. mingw32) :
  5700. ;; #(
  5701. *) :
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -fstack-check" >&5
  5703. $as_echo_n "checking CXXFLAGS for gcc -fstack-check... " >&6; }
  5704. if ${ax_cv_cxxflags_gcc_option__fstack_check+:} false; then :
  5705. $as_echo_n "(cached) " >&6
  5706. else
  5707. ax_cv_cxxflags_gcc_option__fstack_check="no, unknown"
  5708. ac_ext=cpp
  5709. ac_cpp='$CXXCPP $CPPFLAGS'
  5710. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5711. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5712. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5713. ac_save_CXXFLAGS="$CXXFLAGS"
  5714. for ac_arg in "-pedantic -Werror % -fstack-check" "-pedantic % -fstack-check %% no, obsolete" #
  5715. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  5716. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5717. /* end confdefs.h. */
  5718. int
  5719. main ()
  5720. {
  5721. return 0;
  5722. ;
  5723. return 0;
  5724. }
  5725. _ACEOF
  5726. if ac_fn_cxx_try_compile "$LINENO"; then :
  5727. ax_cv_cxxflags_gcc_option__fstack_check=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  5728. fi
  5729. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5730. done
  5731. CXXFLAGS="$ac_save_CXXFLAGS"
  5732. ac_ext=cpp
  5733. ac_cpp='$CXXCPP $CPPFLAGS'
  5734. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5735. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5736. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5737. fi
  5738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__fstack_check" >&5
  5739. $as_echo "$ax_cv_cxxflags_gcc_option__fstack_check" >&6; }
  5740. var=$ax_cv_cxxflags_gcc_option__fstack_check
  5741. case ".$var" in
  5742. .ok|.ok,*) ;;
  5743. .|.no|.no,*) ;;
  5744. *)
  5745. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  5746. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  5747. (: CXXFLAGS does contain $var) 2>&5
  5748. ac_status=$?
  5749. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5750. test $ac_status = 0; }
  5751. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  5752. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  5753. ac_status=$?
  5754. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5755. test $ac_status = 0; }
  5756. CXXFLAGS="$CXXFLAGS $var"
  5757. fi
  5758. ;;
  5759. esac
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -fstack-protector" >&5
  5761. $as_echo_n "checking CXXFLAGS for gcc -fstack-protector... " >&6; }
  5762. if ${ax_cv_cxxflags_gcc_option__fstack_protector+:} false; then :
  5763. $as_echo_n "(cached) " >&6
  5764. else
  5765. ax_cv_cxxflags_gcc_option__fstack_protector="no, unknown"
  5766. ac_ext=cpp
  5767. ac_cpp='$CXXCPP $CPPFLAGS'
  5768. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5769. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5770. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5771. ac_save_CXXFLAGS="$CXXFLAGS"
  5772. for ac_arg in "-pedantic -Werror % -fstack-protector" "-pedantic % -fstack-protector %% no, obsolete" #
  5773. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  5774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5775. /* end confdefs.h. */
  5776. int
  5777. main ()
  5778. {
  5779. return 0;
  5780. ;
  5781. return 0;
  5782. }
  5783. _ACEOF
  5784. if ac_fn_cxx_try_compile "$LINENO"; then :
  5785. ax_cv_cxxflags_gcc_option__fstack_protector=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  5786. fi
  5787. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5788. done
  5789. CXXFLAGS="$ac_save_CXXFLAGS"
  5790. ac_ext=cpp
  5791. ac_cpp='$CXXCPP $CPPFLAGS'
  5792. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5793. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5794. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5795. fi
  5796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__fstack_protector" >&5
  5797. $as_echo "$ax_cv_cxxflags_gcc_option__fstack_protector" >&6; }
  5798. var=$ax_cv_cxxflags_gcc_option__fstack_protector
  5799. case ".$var" in
  5800. .ok|.ok,*) ;;
  5801. .|.no|.no,*) ;;
  5802. *)
  5803. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  5804. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  5805. (: CXXFLAGS does contain $var) 2>&5
  5806. ac_status=$?
  5807. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5808. test $ac_status = 0; }
  5809. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  5810. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  5811. ac_status=$?
  5812. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5813. test $ac_status = 0; }
  5814. CXXFLAGS="$CXXFLAGS $var"
  5815. fi
  5816. ;;
  5817. esac
  5818. ;;
  5819. esac
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -ftrapv" >&5
  5821. $as_echo_n "checking CXXFLAGS for gcc -ftrapv... " >&6; }
  5822. if ${ax_cv_cxxflags_gcc_option__ftrapv+:} false; then :
  5823. $as_echo_n "(cached) " >&6
  5824. else
  5825. ax_cv_cxxflags_gcc_option__ftrapv="no, unknown"
  5826. ac_ext=cpp
  5827. ac_cpp='$CXXCPP $CPPFLAGS'
  5828. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5829. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5830. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5831. ac_save_CXXFLAGS="$CXXFLAGS"
  5832. for ac_arg in "-pedantic -Werror % -ftrapv" "-pedantic % -ftrapv %% no, obsolete" #
  5833. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  5834. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5835. /* end confdefs.h. */
  5836. int
  5837. main ()
  5838. {
  5839. return 0;
  5840. ;
  5841. return 0;
  5842. }
  5843. _ACEOF
  5844. if ac_fn_cxx_try_compile "$LINENO"; then :
  5845. ax_cv_cxxflags_gcc_option__ftrapv=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  5846. fi
  5847. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5848. done
  5849. CXXFLAGS="$ac_save_CXXFLAGS"
  5850. ac_ext=cpp
  5851. ac_cpp='$CXXCPP $CPPFLAGS'
  5852. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5853. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5854. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5855. fi
  5856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__ftrapv" >&5
  5857. $as_echo "$ax_cv_cxxflags_gcc_option__ftrapv" >&6; }
  5858. var=$ax_cv_cxxflags_gcc_option__ftrapv
  5859. case ".$var" in
  5860. .ok|.ok,*) ;;
  5861. .|.no|.no,*) ;;
  5862. *)
  5863. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  5864. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  5865. (: CXXFLAGS does contain $var) 2>&5
  5866. ac_status=$?
  5867. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5868. test $ac_status = 0; }
  5869. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  5870. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  5871. ac_status=$?
  5872. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5873. test $ac_status = 0; }
  5874. CXXFLAGS="$CXXFLAGS $var"
  5875. fi
  5876. ;;
  5877. esac
  5878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -ftrack-macro-expansion" >&5
  5879. $as_echo_n "checking CXXFLAGS for gcc -ftrack-macro-expansion... " >&6; }
  5880. if ${ax_cv_cxxflags_gcc_option__ftrack_macro_expansion+:} false; then :
  5881. $as_echo_n "(cached) " >&6
  5882. else
  5883. ax_cv_cxxflags_gcc_option__ftrack_macro_expansion="no, unknown"
  5884. ac_ext=cpp
  5885. ac_cpp='$CXXCPP $CPPFLAGS'
  5886. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5887. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5888. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5889. ac_save_CXXFLAGS="$CXXFLAGS"
  5890. for ac_arg in "-pedantic -Werror % -ftrack-macro-expansion" "-pedantic % -ftrack-macro-expansion %% no, obsolete" #
  5891. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  5892. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5893. /* end confdefs.h. */
  5894. int
  5895. main ()
  5896. {
  5897. return 0;
  5898. ;
  5899. return 0;
  5900. }
  5901. _ACEOF
  5902. if ac_fn_cxx_try_compile "$LINENO"; then :
  5903. ax_cv_cxxflags_gcc_option__ftrack_macro_expansion=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  5904. fi
  5905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5906. done
  5907. CXXFLAGS="$ac_save_CXXFLAGS"
  5908. ac_ext=cpp
  5909. ac_cpp='$CXXCPP $CPPFLAGS'
  5910. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5911. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5912. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5913. fi
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__ftrack_macro_expansion" >&5
  5915. $as_echo "$ax_cv_cxxflags_gcc_option__ftrack_macro_expansion" >&6; }
  5916. var=$ax_cv_cxxflags_gcc_option__ftrack_macro_expansion
  5917. case ".$var" in
  5918. .ok|.ok,*) ;;
  5919. .|.no|.no,*) ;;
  5920. *)
  5921. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  5922. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  5923. (: CXXFLAGS does contain $var) 2>&5
  5924. ac_status=$?
  5925. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5926. test $ac_status = 0; }
  5927. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  5928. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  5929. ac_status=$?
  5930. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5931. test $ac_status = 0; }
  5932. CXXFLAGS="$CXXFLAGS $var"
  5933. fi
  5934. ;;
  5935. esac
  5936. else
  5937. if $as_echo_n "$CXXFLAGS" | $GREP -e '\(^\|[[:space:]]\)-O\([^[:space:]]*\([[:space:]]\|$\)\)' >/dev/null; then :
  5938. else
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -O2" >&5
  5940. $as_echo_n "checking CXXFLAGS for gcc -O2... " >&6; }
  5941. if ${ax_cv_cxxflags_gcc_option__O2+:} false; then :
  5942. $as_echo_n "(cached) " >&6
  5943. else
  5944. ax_cv_cxxflags_gcc_option__O2="no, unknown"
  5945. ac_ext=cpp
  5946. ac_cpp='$CXXCPP $CPPFLAGS'
  5947. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5948. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5949. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5950. ac_save_CXXFLAGS="$CXXFLAGS"
  5951. for ac_arg in "-pedantic -Werror % -O2" "-pedantic % -O2 %% no, obsolete" #
  5952. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  5953. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5954. /* end confdefs.h. */
  5955. int
  5956. main ()
  5957. {
  5958. return 0;
  5959. ;
  5960. return 0;
  5961. }
  5962. _ACEOF
  5963. if ac_fn_cxx_try_compile "$LINENO"; then :
  5964. ax_cv_cxxflags_gcc_option__O2=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  5965. fi
  5966. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5967. done
  5968. CXXFLAGS="$ac_save_CXXFLAGS"
  5969. ac_ext=cpp
  5970. ac_cpp='$CXXCPP $CPPFLAGS'
  5971. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5972. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5973. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  5974. fi
  5975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__O2" >&5
  5976. $as_echo "$ax_cv_cxxflags_gcc_option__O2" >&6; }
  5977. var=$ax_cv_cxxflags_gcc_option__O2
  5978. case ".$var" in
  5979. .ok|.ok,*) ;;
  5980. .|.no|.no,*) ;;
  5981. *)
  5982. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  5983. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  5984. (: CXXFLAGS does contain $var) 2>&5
  5985. ac_status=$?
  5986. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5987. test $ac_status = 0; }
  5988. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  5989. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  5990. ac_status=$?
  5991. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5992. test $ac_status = 0; }
  5993. CXXFLAGS="$CXXFLAGS $var"
  5994. fi
  5995. ;;
  5996. esac
  5997. fi
  5998. fi
  5999. if test "x$enable_profiling" = "xyes"; then :
  6000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -pg" >&5
  6001. $as_echo_n "checking CXXFLAGS for gcc -pg... " >&6; }
  6002. if ${ax_cv_cxxflags_gcc_option__pg+:} false; then :
  6003. $as_echo_n "(cached) " >&6
  6004. else
  6005. ax_cv_cxxflags_gcc_option__pg="no, unknown"
  6006. ac_ext=cpp
  6007. ac_cpp='$CXXCPP $CPPFLAGS'
  6008. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6009. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6010. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6011. ac_save_CXXFLAGS="$CXXFLAGS"
  6012. for ac_arg in "-pedantic -Werror % -pg" "-pedantic % -pg %% no, obsolete" #
  6013. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  6014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6015. /* end confdefs.h. */
  6016. int
  6017. main ()
  6018. {
  6019. return 0;
  6020. ;
  6021. return 0;
  6022. }
  6023. _ACEOF
  6024. if ac_fn_cxx_try_compile "$LINENO"; then :
  6025. ax_cv_cxxflags_gcc_option__pg=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  6026. fi
  6027. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6028. done
  6029. CXXFLAGS="$ac_save_CXXFLAGS"
  6030. ac_ext=cpp
  6031. ac_cpp='$CXXCPP $CPPFLAGS'
  6032. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6033. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6034. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6035. fi
  6036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__pg" >&5
  6037. $as_echo "$ax_cv_cxxflags_gcc_option__pg" >&6; }
  6038. var=$ax_cv_cxxflags_gcc_option__pg
  6039. case ".$var" in
  6040. .ok|.ok,*) LOG4CPLUS_PROFILING_LDFLAGS="-pg"
  6041. LOG4CPLUS_PROFILING_CXXFLAGS="-pg"
  6042. ;;
  6043. .|.no|.no,*) ;;
  6044. *) LOG4CPLUS_PROFILING_LDFLAGS="-pg"
  6045. LOG4CPLUS_PROFILING_CXXFLAGS="-pg"
  6046. ;;
  6047. esac
  6048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -g3" >&5
  6049. $as_echo_n "checking CXXFLAGS for gcc -g3... " >&6; }
  6050. if ${ax_cv_cxxflags_gcc_option__g3+:} false; then :
  6051. $as_echo_n "(cached) " >&6
  6052. else
  6053. ax_cv_cxxflags_gcc_option__g3="no, unknown"
  6054. ac_ext=cpp
  6055. ac_cpp='$CXXCPP $CPPFLAGS'
  6056. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6057. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6058. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6059. ac_save_CXXFLAGS="$CXXFLAGS"
  6060. for ac_arg in "-pedantic -Werror % -g3" "-pedantic % -g3 %% no, obsolete" #
  6061. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  6062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6063. /* end confdefs.h. */
  6064. int
  6065. main ()
  6066. {
  6067. return 0;
  6068. ;
  6069. return 0;
  6070. }
  6071. _ACEOF
  6072. if ac_fn_cxx_try_compile "$LINENO"; then :
  6073. ax_cv_cxxflags_gcc_option__g3=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  6074. fi
  6075. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6076. done
  6077. CXXFLAGS="$ac_save_CXXFLAGS"
  6078. ac_ext=cpp
  6079. ac_cpp='$CXXCPP $CPPFLAGS'
  6080. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6081. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6082. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6083. fi
  6084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__g3" >&5
  6085. $as_echo "$ax_cv_cxxflags_gcc_option__g3" >&6; }
  6086. var=$ax_cv_cxxflags_gcc_option__g3
  6087. case ".$var" in
  6088. .ok|.ok,*) ;;
  6089. .|.no|.no,*) ;;
  6090. *)
  6091. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  6092. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  6093. (: CXXFLAGS does contain $var) 2>&5
  6094. ac_status=$?
  6095. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6096. test $ac_status = 0; }
  6097. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  6098. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  6099. ac_status=$?
  6100. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6101. test $ac_status = 0; }
  6102. CXXFLAGS="$CXXFLAGS $var"
  6103. fi
  6104. ;;
  6105. esac
  6106. fi
  6107. case "$target_os" in #(
  6108. cygwin*|mingw*) :
  6109. LDFLAGS="${LDFLAGS} -Wl,--enable-auto-import"
  6110. LDFLAGS="${LDFLAGS} -Wl,--enable-runtime-pseudo-reloc" ;; #(
  6111. *) :
  6112. ;;
  6113. esac ;; #(
  6114. sun) :
  6115. if test "x$enable_warnings" = "xyes"; then :
  6116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for sun/cc +w" >&5
  6117. $as_echo_n "checking CXXFLAGS for sun/cc +w... " >&6; }
  6118. if ${ax_cv_cxxflags_sun_option_pw+:} false; then :
  6119. $as_echo_n "(cached) " >&6
  6120. else
  6121. ax_cv_cxxflags_sun_option_pw="no, unknown"
  6122. ac_ext=cpp
  6123. ac_cpp='$CXXCPP $CPPFLAGS'
  6124. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6125. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6126. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6127. ac_save_CXXFLAGS="$CXXFLAGS"
  6128. for ac_arg in "+xstrconst -Xc % +w" #
  6129. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  6130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6131. /* end confdefs.h. */
  6132. int
  6133. main ()
  6134. {
  6135. return 0;
  6136. ;
  6137. return 0;
  6138. }
  6139. _ACEOF
  6140. if ac_fn_cxx_try_compile "$LINENO"; then :
  6141. ax_cv_cxxflags_sun_option_pw=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  6142. fi
  6143. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6144. done
  6145. CXXFLAGS="$ac_save_CXXFLAGS"
  6146. ac_ext=cpp
  6147. ac_cpp='$CXXCPP $CPPFLAGS'
  6148. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6149. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6150. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6151. fi
  6152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_sun_option_pw" >&5
  6153. $as_echo "$ax_cv_cxxflags_sun_option_pw" >&6; }
  6154. var=$ax_cv_cxxflags_sun_option_pw
  6155. case ".$var" in
  6156. .ok|.ok,*) ;;
  6157. .|.no|.no,*) ;;
  6158. *)
  6159. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  6160. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  6161. (: CXXFLAGS does contain $var) 2>&5
  6162. ac_status=$?
  6163. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6164. test $ac_status = 0; }
  6165. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  6166. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  6167. ac_status=$?
  6168. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6169. test $ac_status = 0; }
  6170. CXXFLAGS="$CXXFLAGS $var"
  6171. fi
  6172. ;;
  6173. esac
  6174. fi
  6175. if test "x$enable_debugging" = "xyes"; then :
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for sun/cc -g" >&5
  6177. $as_echo_n "checking CXXFLAGS for sun/cc -g... " >&6; }
  6178. if ${ax_cv_cxxflags_sun_option__g+:} false; then :
  6179. $as_echo_n "(cached) " >&6
  6180. else
  6181. ax_cv_cxxflags_sun_option__g="no, unknown"
  6182. ac_ext=cpp
  6183. ac_cpp='$CXXCPP $CPPFLAGS'
  6184. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6185. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6186. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6187. ac_save_CXXFLAGS="$CXXFLAGS"
  6188. for ac_arg in "+xstrconst -Xc % -g" #
  6189. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  6190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6191. /* end confdefs.h. */
  6192. int
  6193. main ()
  6194. {
  6195. return 0;
  6196. ;
  6197. return 0;
  6198. }
  6199. _ACEOF
  6200. if ac_fn_cxx_try_compile "$LINENO"; then :
  6201. ax_cv_cxxflags_sun_option__g=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  6202. fi
  6203. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6204. done
  6205. CXXFLAGS="$ac_save_CXXFLAGS"
  6206. ac_ext=cpp
  6207. ac_cpp='$CXXCPP $CPPFLAGS'
  6208. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6209. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6210. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6211. fi
  6212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_sun_option__g" >&5
  6213. $as_echo "$ax_cv_cxxflags_sun_option__g" >&6; }
  6214. var=$ax_cv_cxxflags_sun_option__g
  6215. case ".$var" in
  6216. .ok|.ok,*) ;;
  6217. .|.no|.no,*) ;;
  6218. *)
  6219. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  6220. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  6221. (: CXXFLAGS does contain $var) 2>&5
  6222. ac_status=$?
  6223. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6224. test $ac_status = 0; }
  6225. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  6226. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  6227. ac_status=$?
  6228. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6229. test $ac_status = 0; }
  6230. CXXFLAGS="$CXXFLAGS $var"
  6231. fi
  6232. ;;
  6233. esac
  6234. fi
  6235. if test "x$enable_profiling" = "xyes"; then :
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for sun/cc -pg" >&5
  6237. $as_echo_n "checking CXXFLAGS for sun/cc -pg... " >&6; }
  6238. if ${ax_cv_cxxflags_sun_option__pg+:} false; then :
  6239. $as_echo_n "(cached) " >&6
  6240. else
  6241. ax_cv_cxxflags_sun_option__pg="no, unknown"
  6242. ac_ext=cpp
  6243. ac_cpp='$CXXCPP $CPPFLAGS'
  6244. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6245. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6246. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6247. ac_save_CXXFLAGS="$CXXFLAGS"
  6248. for ac_arg in "+xstrconst -Xc % -pg" #
  6249. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  6250. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6251. /* end confdefs.h. */
  6252. int
  6253. main ()
  6254. {
  6255. return 0;
  6256. ;
  6257. return 0;
  6258. }
  6259. _ACEOF
  6260. if ac_fn_cxx_try_compile "$LINENO"; then :
  6261. ax_cv_cxxflags_sun_option__pg=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  6262. fi
  6263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6264. done
  6265. CXXFLAGS="$ac_save_CXXFLAGS"
  6266. ac_ext=cpp
  6267. ac_cpp='$CXXCPP $CPPFLAGS'
  6268. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6269. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6270. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6271. fi
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_sun_option__pg" >&5
  6273. $as_echo "$ax_cv_cxxflags_sun_option__pg" >&6; }
  6274. var=$ax_cv_cxxflags_sun_option__pg
  6275. case ".$var" in
  6276. .ok|.ok,*) LOG4CPLUS_PROFILING_LDFLAGS="-pg"
  6277. LOG4CPLUS_PROFILING_CXXFLAGS="-pg"
  6278. ;;
  6279. .|.no|.no,*) ;;
  6280. *) LOG4CPLUS_PROFILING_LDFLAGS="-pg"
  6281. LOG4CPLUS_PROFILING_CXXFLAGS="-pg"
  6282. ;;
  6283. esac
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for sun/cc -g" >&5
  6285. $as_echo_n "checking CXXFLAGS for sun/cc -g... " >&6; }
  6286. if ${ax_cv_cxxflags_sun_option__g+:} false; then :
  6287. $as_echo_n "(cached) " >&6
  6288. else
  6289. ax_cv_cxxflags_sun_option__g="no, unknown"
  6290. ac_ext=cpp
  6291. ac_cpp='$CXXCPP $CPPFLAGS'
  6292. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6293. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6294. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6295. ac_save_CXXFLAGS="$CXXFLAGS"
  6296. for ac_arg in "+xstrconst -Xc % -g" #
  6297. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  6298. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6299. /* end confdefs.h. */
  6300. int
  6301. main ()
  6302. {
  6303. return 0;
  6304. ;
  6305. return 0;
  6306. }
  6307. _ACEOF
  6308. if ac_fn_cxx_try_compile "$LINENO"; then :
  6309. ax_cv_cxxflags_sun_option__g=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  6310. fi
  6311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6312. done
  6313. CXXFLAGS="$ac_save_CXXFLAGS"
  6314. ac_ext=cpp
  6315. ac_cpp='$CXXCPP $CPPFLAGS'
  6316. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6317. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6318. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6319. fi
  6320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_sun_option__g" >&5
  6321. $as_echo "$ax_cv_cxxflags_sun_option__g" >&6; }
  6322. var=$ax_cv_cxxflags_sun_option__g
  6323. case ".$var" in
  6324. .ok|.ok,*) ;;
  6325. .|.no|.no,*) ;;
  6326. *)
  6327. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  6328. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  6329. (: CXXFLAGS does contain $var) 2>&5
  6330. ac_status=$?
  6331. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6332. test $ac_status = 0; }
  6333. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  6334. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  6335. ac_status=$?
  6336. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6337. test $ac_status = 0; }
  6338. CXXFLAGS="$CXXFLAGS $var"
  6339. fi
  6340. ;;
  6341. esac
  6342. fi
  6343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for sun/cc -features=zla" >&5
  6344. $as_echo_n "checking CXXFLAGS for sun/cc -features=zla... " >&6; }
  6345. if ${ax_cv_cxxflags_sun_option__features_zla+:} false; then :
  6346. $as_echo_n "(cached) " >&6
  6347. else
  6348. ax_cv_cxxflags_sun_option__features_zla="no, unknown"
  6349. ac_ext=cpp
  6350. ac_cpp='$CXXCPP $CPPFLAGS'
  6351. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6352. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6353. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6354. ac_save_CXXFLAGS="$CXXFLAGS"
  6355. for ac_arg in "+xstrconst -Xc % -features=zla" #
  6356. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  6357. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6358. /* end confdefs.h. */
  6359. int
  6360. main ()
  6361. {
  6362. return 0;
  6363. ;
  6364. return 0;
  6365. }
  6366. _ACEOF
  6367. if ac_fn_cxx_try_compile "$LINENO"; then :
  6368. ax_cv_cxxflags_sun_option__features_zla=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  6369. fi
  6370. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6371. done
  6372. CXXFLAGS="$ac_save_CXXFLAGS"
  6373. ac_ext=cpp
  6374. ac_cpp='$CXXCPP $CPPFLAGS'
  6375. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6376. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6377. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6378. fi
  6379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_sun_option__features_zla" >&5
  6380. $as_echo "$ax_cv_cxxflags_sun_option__features_zla" >&6; }
  6381. var=$ax_cv_cxxflags_sun_option__features_zla
  6382. case ".$var" in
  6383. .ok|.ok,*) ;;
  6384. .|.no|.no,*) ;;
  6385. *)
  6386. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  6387. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  6388. (: CXXFLAGS does contain $var) 2>&5
  6389. ac_status=$?
  6390. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6391. test $ac_status = 0; }
  6392. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  6393. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  6394. ac_status=$?
  6395. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6396. test $ac_status = 0; }
  6397. CXXFLAGS="$CXXFLAGS $var"
  6398. fi
  6399. ;;
  6400. esac
  6401. if $as_echo_n "$CXXFLAGS" | $GREP -e '-library=\(stlport4\|stdcxx4\|Cstd\)' >/dev/null; then :
  6402. else
  6403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for sun/cc -library=stlport4" >&5
  6404. $as_echo_n "checking CXXFLAGS for sun/cc -library=stlport4... " >&6; }
  6405. if ${ax_cv_cxxflags_sun_option__library_stlport4+:} false; then :
  6406. $as_echo_n "(cached) " >&6
  6407. else
  6408. ax_cv_cxxflags_sun_option__library_stlport4="no, unknown"
  6409. ac_ext=cpp
  6410. ac_cpp='$CXXCPP $CPPFLAGS'
  6411. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6412. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6413. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6414. ac_save_CXXFLAGS="$CXXFLAGS"
  6415. for ac_arg in "+xstrconst -Xc % -library=stlport4" #
  6416. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  6417. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6418. /* end confdefs.h. */
  6419. int
  6420. main ()
  6421. {
  6422. return 0;
  6423. ;
  6424. return 0;
  6425. }
  6426. _ACEOF
  6427. if ac_fn_cxx_try_compile "$LINENO"; then :
  6428. ax_cv_cxxflags_sun_option__library_stlport4=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  6429. fi
  6430. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6431. done
  6432. CXXFLAGS="$ac_save_CXXFLAGS"
  6433. ac_ext=cpp
  6434. ac_cpp='$CXXCPP $CPPFLAGS'
  6435. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6436. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6437. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6438. fi
  6439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_sun_option__library_stlport4" >&5
  6440. $as_echo "$ax_cv_cxxflags_sun_option__library_stlport4" >&6; }
  6441. var=$ax_cv_cxxflags_sun_option__library_stlport4
  6442. case ".$var" in
  6443. .ok|.ok,*) ;;
  6444. .|.no|.no,*) ;;
  6445. *)
  6446. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  6447. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  6448. (: CXXFLAGS does contain $var) 2>&5
  6449. ac_status=$?
  6450. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6451. test $ac_status = 0; }
  6452. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  6453. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  6454. ac_status=$?
  6455. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6456. test $ac_status = 0; }
  6457. CXXFLAGS="$CXXFLAGS $var"
  6458. fi
  6459. ;;
  6460. esac
  6461. fi
  6462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for sun/cc -library=Crun" >&5
  6463. $as_echo_n "checking CXXFLAGS for sun/cc -library=Crun... " >&6; }
  6464. if ${ax_cv_cxxflags_sun_option__library_Crun+:} false; then :
  6465. $as_echo_n "(cached) " >&6
  6466. else
  6467. ax_cv_cxxflags_sun_option__library_Crun="no, unknown"
  6468. ac_ext=cpp
  6469. ac_cpp='$CXXCPP $CPPFLAGS'
  6470. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6471. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6472. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6473. ac_save_CXXFLAGS="$CXXFLAGS"
  6474. for ac_arg in "+xstrconst -Xc % -library=Crun" #
  6475. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  6476. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6477. /* end confdefs.h. */
  6478. int
  6479. main ()
  6480. {
  6481. return 0;
  6482. ;
  6483. return 0;
  6484. }
  6485. _ACEOF
  6486. if ac_fn_cxx_try_compile "$LINENO"; then :
  6487. ax_cv_cxxflags_sun_option__library_Crun=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  6488. fi
  6489. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6490. done
  6491. CXXFLAGS="$ac_save_CXXFLAGS"
  6492. ac_ext=cpp
  6493. ac_cpp='$CXXCPP $CPPFLAGS'
  6494. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6495. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6496. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6497. fi
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_sun_option__library_Crun" >&5
  6499. $as_echo "$ax_cv_cxxflags_sun_option__library_Crun" >&6; }
  6500. var=$ax_cv_cxxflags_sun_option__library_Crun
  6501. case ".$var" in
  6502. .ok|.ok,*) ;;
  6503. .|.no|.no,*) ;;
  6504. *)
  6505. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  6506. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  6507. (: CXXFLAGS does contain $var) 2>&5
  6508. ac_status=$?
  6509. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6510. test $ac_status = 0; }
  6511. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  6512. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  6513. ac_status=$?
  6514. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6515. test $ac_status = 0; }
  6516. CXXFLAGS="$CXXFLAGS $var"
  6517. fi
  6518. ;;
  6519. esac
  6520. ;; #(
  6521. *) :
  6522. ;;
  6523. esac
  6524. if test "x$enable_symbols_visibility_options" = "xyes"; then :
  6525. continue_checks=1
  6526. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __global and __hidden" >&5
  6527. $as_echo_n "checking for __global and __hidden... " >&6; }
  6528. if ${ac_cv__global+:} false; then :
  6529. $as_echo_n "(cached) " >&6
  6530. else
  6531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6532. /* end confdefs.h. */
  6533. __global int x = 0;
  6534. __global int foo ();
  6535. int foo () { return 0; }
  6536. __global int bar () { return x; }
  6537. __hidden int baz () { return 1; }
  6538. int
  6539. main ()
  6540. {
  6541. ;
  6542. return 0;
  6543. }
  6544. _ACEOF
  6545. if ac_fn_cxx_try_compile "$LINENO"; then :
  6546. ac_cv__global=yes
  6547. else
  6548. ac_cv__global=no
  6549. fi
  6550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6551. fi
  6552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv__global" >&5
  6553. $as_echo "$ac_cv__global" >&6; }
  6554. if test "x$ac_cv__global" = "xyes"; then :
  6555. $as_echo "#define LOG4CPLUS_DECLSPEC_IMPORT __global" >>confdefs.h
  6556. $as_echo "#define LOG4CPLUS_DECLSPEC_EXPORT __global" >>confdefs.h
  6557. $as_echo "#define LOG4CPLUS_DECLSPEC_PRIVATE __hidden" >>confdefs.h
  6558. { continue_checks=; unset continue_checks;}
  6559. fi
  6560. if ${continue_checks+:} false; then :
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __declspec(dllexport) and __declspec(dllimport)" >&5
  6562. $as_echo_n "checking for __declspec(dllexport) and __declspec(dllimport)... " >&6; }
  6563. if ${ac_cv_declspec+:} false; then :
  6564. $as_echo_n "(cached) " >&6
  6565. else
  6566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6567. /* end confdefs.h. */
  6568. #if defined (__clang__) || defined (__HAIKU__)
  6569. // Here the problem is that Clang only warns that it does not support
  6570. // __declspec(dllexport) but still compiles the executable. GCC on Haiku OS
  6571. // suffers from the same problem.
  6572. # error Please fail.
  6573. And extra please fail.
  6574. #else
  6575. __declspec(dllexport) int x = 0;
  6576. __declspec(dllexport) int foo ();
  6577. int foo () { return 0; }
  6578. __declspec(dllexport) int bar () { return x; }
  6579. #endif
  6580. int
  6581. main ()
  6582. {
  6583. ;
  6584. return 0;
  6585. }
  6586. _ACEOF
  6587. if ac_fn_cxx_try_compile "$LINENO"; then :
  6588. ac_cv_declspec=yes
  6589. else
  6590. ac_cv_declspec=no
  6591. fi
  6592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6593. fi
  6594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_declspec" >&5
  6595. $as_echo "$ac_cv_declspec" >&6; }
  6596. if test "x$ac_cv_declspec" = "xyes"; then :
  6597. $as_echo "#define LOG4CPLUS_DECLSPEC_IMPORT __declspec(dllimport)" >>confdefs.h
  6598. $as_echo "#define LOG4CPLUS_DECLSPEC_EXPORT __declspec(dllexport)" >>confdefs.h
  6599. $as_echo "#define LOG4CPLUS_DECLSPEC_PRIVATE /* empty */" >>confdefs.h
  6600. { continue_checks=; unset continue_checks;}
  6601. fi
  6602. fi
  6603. if ${continue_checks+:} false; then :
  6604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"default\"))) and __attribute__((visibility(\"hidden\")))" >&5
  6605. $as_echo_n "checking for __attribute__((visibility(\"default\"))) and __attribute__((visibility(\"hidden\")))... " >&6; }
  6606. if ${ac_cv__attribute__visibility+:} false; then :
  6607. $as_echo_n "(cached) " >&6
  6608. else
  6609. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6610. /* end confdefs.h. */
  6611. #if defined (__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ <= 1))
  6612. # error Please fail.
  6613. And extra please fail.
  6614. #else
  6615. __attribute__((visibility("default"))) int x = 0;
  6616. __attribute__((visibility("default"))) int foo ();
  6617. int foo () { return 0; }
  6618. __attribute__((visibility("default"))) int bar () { return x; }
  6619. __attribute__((visibility("hidden"))) int baz () { return 1; }
  6620. #endif
  6621. int
  6622. main ()
  6623. {
  6624. ;
  6625. return 0;
  6626. }
  6627. _ACEOF
  6628. if ac_fn_cxx_try_compile "$LINENO"; then :
  6629. ac_cv__attribute__visibility=yes
  6630. else
  6631. ac_cv__attribute__visibility=no
  6632. fi
  6633. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6634. fi
  6635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv__attribute__visibility" >&5
  6636. $as_echo "$ac_cv__attribute__visibility" >&6; }
  6637. if test "x$ac_cv__attribute__visibility" = "xyes"; then :
  6638. $as_echo "#define LOG4CPLUS_DECLSPEC_IMPORT __attribute__ ((visibility(\"default\")))" >>confdefs.h
  6639. $as_echo "#define LOG4CPLUS_DECLSPEC_EXPORT __attribute__ ((visibility(\"default\")))" >>confdefs.h
  6640. $as_echo "#define LOG4CPLUS_DECLSPEC_PRIVATE __attribute__ ((visibility(\"hidden\")))" >>confdefs.h
  6641. { continue_checks=; unset continue_checks;}
  6642. fi
  6643. fi
  6644. if test "x$ac_cv__attribute__visibility" = "xno" && test "x$ac_cv_declspec" = "xno" && test "x$ax_cv__global" = "xno"; then :
  6645. $as_echo "#define LOG4CPLUS_DECLSPEC_IMPORT /* empty */" >>confdefs.h
  6646. $as_echo "#define LOG4CPLUS_DECLSPEC_EXPORT /* empty */" >>confdefs.h
  6647. $as_echo "#define LOG4CPLUS_DECLSPEC_PRIVATE /* empty */" >>confdefs.h
  6648. fi
  6649. { continue_checks=; unset continue_checks;}
  6650. if test "x$ac_cv_declspec" = "xyes" || test "x$ac_cv__attribute__visibility" = "xyes" || test "x$ac_cv__global" = "xyes"; then :
  6651. case $ax_cv_cxx_compiler_vendor in #(
  6652. gnu|clang) :
  6653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for gcc -fvisibility=hidden" >&5
  6654. $as_echo_n "checking CXXFLAGS for gcc -fvisibility=hidden... " >&6; }
  6655. if ${ax_cv_cxxflags_gcc_option__fvisibility_hidden+:} false; then :
  6656. $as_echo_n "(cached) " >&6
  6657. else
  6658. ax_cv_cxxflags_gcc_option__fvisibility_hidden="no, unknown"
  6659. ac_ext=cpp
  6660. ac_cpp='$CXXCPP $CPPFLAGS'
  6661. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6662. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6663. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6664. ac_save_CXXFLAGS="$CXXFLAGS"
  6665. for ac_arg in "-pedantic -Werror % -fvisibility=hidden" "-pedantic % -fvisibility=hidden %% no, obsolete" #
  6666. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  6667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6668. /* end confdefs.h. */
  6669. int
  6670. main ()
  6671. {
  6672. return 0;
  6673. ;
  6674. return 0;
  6675. }
  6676. _ACEOF
  6677. if ac_fn_cxx_try_compile "$LINENO"; then :
  6678. ax_cv_cxxflags_gcc_option__fvisibility_hidden=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  6679. fi
  6680. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6681. done
  6682. CXXFLAGS="$ac_save_CXXFLAGS"
  6683. ac_ext=cpp
  6684. ac_cpp='$CXXCPP $CPPFLAGS'
  6685. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6686. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6687. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6688. fi
  6689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_gcc_option__fvisibility_hidden" >&5
  6690. $as_echo "$ax_cv_cxxflags_gcc_option__fvisibility_hidden" >&6; }
  6691. var=$ax_cv_cxxflags_gcc_option__fvisibility_hidden
  6692. case ".$var" in
  6693. .ok|.ok,*) ;;
  6694. .|.no|.no,*) ;;
  6695. *)
  6696. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  6697. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  6698. (: CXXFLAGS does contain $var) 2>&5
  6699. ac_status=$?
  6700. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6701. test $ac_status = 0; }
  6702. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  6703. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  6704. ac_status=$?
  6705. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6706. test $ac_status = 0; }
  6707. CXXFLAGS="$CXXFLAGS $var"
  6708. fi
  6709. ;;
  6710. esac
  6711. ;; #(
  6712. sun) :
  6713. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for sun/cc -xldscope=hidden" >&5
  6714. $as_echo_n "checking CXXFLAGS for sun/cc -xldscope=hidden... " >&6; }
  6715. if ${ax_cv_cxxflags_sun_option__xldscope_hidden+:} false; then :
  6716. $as_echo_n "(cached) " >&6
  6717. else
  6718. ax_cv_cxxflags_sun_option__xldscope_hidden="no, unknown"
  6719. ac_ext=cpp
  6720. ac_cpp='$CXXCPP $CPPFLAGS'
  6721. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6722. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6723. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6724. ac_save_CXXFLAGS="$CXXFLAGS"
  6725. for ac_arg in "+xstrconst -Xc % -xldscope=hidden" #
  6726. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  6727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6728. /* end confdefs.h. */
  6729. int
  6730. main ()
  6731. {
  6732. return 0;
  6733. ;
  6734. return 0;
  6735. }
  6736. _ACEOF
  6737. if ac_fn_cxx_try_compile "$LINENO"; then :
  6738. ax_cv_cxxflags_sun_option__xldscope_hidden=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  6739. fi
  6740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6741. done
  6742. CXXFLAGS="$ac_save_CXXFLAGS"
  6743. ac_ext=cpp
  6744. ac_cpp='$CXXCPP $CPPFLAGS'
  6745. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6746. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6747. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6748. fi
  6749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_sun_option__xldscope_hidden" >&5
  6750. $as_echo "$ax_cv_cxxflags_sun_option__xldscope_hidden" >&6; }
  6751. var=$ax_cv_cxxflags_sun_option__xldscope_hidden
  6752. case ".$var" in
  6753. .ok|.ok,*) ;;
  6754. .|.no|.no,*) ;;
  6755. *)
  6756. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  6757. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  6758. (: CXXFLAGS does contain $var) 2>&5
  6759. ac_status=$?
  6760. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6761. test $ac_status = 0; }
  6762. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  6763. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  6764. ac_status=$?
  6765. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6766. test $ac_status = 0; }
  6767. CXXFLAGS="$CXXFLAGS $var"
  6768. fi
  6769. ;;
  6770. esac
  6771. ;; #(
  6772. *) :
  6773. ;;
  6774. esac
  6775. fi
  6776. fi
  6777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 variadic macros" >&5
  6778. $as_echo_n "checking for C99 variadic macros... " >&6; }
  6779. if ${ac_cv_c99_variadic_macros+:} false; then :
  6780. $as_echo_n "(cached) " >&6
  6781. else
  6782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6783. /* end confdefs.h. */
  6784. #include <cstdio>
  6785. #include <cstdlib>
  6786. #include <cstddef>
  6787. int
  6788. main ()
  6789. {
  6790. using namespace std;
  6791. #define MACRO(buf, ...) (sprintf (buf, "%d", __VA_ARGS__))
  6792. char a[10];
  6793. MACRO(a, 1);
  6794. if (a[0] != '1')
  6795. abort ();
  6796. if (a[1] != 0)
  6797. abort ();
  6798. ;
  6799. return 0;
  6800. }
  6801. _ACEOF
  6802. if ac_fn_cxx_try_compile "$LINENO"; then :
  6803. ac_cv_c99_variadic_macros=yes
  6804. else
  6805. ac_cv_c99_variadic_macros=no
  6806. fi
  6807. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6808. fi
  6809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c99_variadic_macros" >&5
  6810. $as_echo "$ac_cv_c99_variadic_macros" >&6; }
  6811. if test "x$ac_cv_c99_variadic_macros" = "xyes"; then :
  6812. $as_echo "#define LOG4CPLUS_HAVE_C99_VARIADIC_MACROS 1" >>confdefs.h
  6813. fi
  6814. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU style variadic macros" >&5
  6815. $as_echo_n "checking for GNU style variadic macros... " >&6; }
  6816. if ${ac_cv_gnu_variadic_macros+:} false; then :
  6817. $as_echo_n "(cached) " >&6
  6818. else
  6819. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6820. /* end confdefs.h. */
  6821. #include <cstdio>
  6822. #include <cstdlib>
  6823. #include <cstddef>
  6824. int
  6825. main ()
  6826. {
  6827. using namespace std;
  6828. #define MACRO(buf, args...) (sprintf (buf, "%d", args))
  6829. char a[10];
  6830. MACRO(a, 1);
  6831. if (a[0] != '1')
  6832. abort ();
  6833. if (a[1] != 0)
  6834. abort ();
  6835. ;
  6836. return 0;
  6837. }
  6838. _ACEOF
  6839. if ac_fn_cxx_try_compile "$LINENO"; then :
  6840. ac_cv_gnu_variadic_macros=yes
  6841. else
  6842. ac_cv_gnu_variadic_macros=no
  6843. fi
  6844. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6845. fi
  6846. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_variadic_macros" >&5
  6847. $as_echo "$ac_cv_gnu_variadic_macros" >&6; }
  6848. if test "x$ac_cv_gnu_variadic_macros" = "xyes"; then :
  6849. $as_echo "#define LOG4CPLUS_HAVE_GNU_VARIADIC_MACROS 1" >>confdefs.h
  6850. fi
  6851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __FUNCTION__ macro" >&5
  6852. $as_echo_n "checking for __FUNCTION__ macro... " >&6; }
  6853. if ${ac_cv_have___function___macro+:} false; then :
  6854. $as_echo_n "(cached) " >&6
  6855. else
  6856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6857. /* end confdefs.h. */
  6858. int
  6859. main ()
  6860. {
  6861. char const * func = __FUNCTION__;
  6862. ;
  6863. return 0;
  6864. }
  6865. _ACEOF
  6866. if ac_fn_cxx_try_compile "$LINENO"; then :
  6867. ac_cv_have___function___macro=yes
  6868. else
  6869. ac_cv_have___function___macro=no
  6870. fi
  6871. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6872. fi
  6873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___function___macro" >&5
  6874. $as_echo "$ac_cv_have___function___macro" >&6; }
  6875. if test "x$ac_cv_have___function___macro" = "xyes"; then :
  6876. $as_echo "#define LOG4CPLUS_HAVE_FUNCTION_MACRO 1" >>confdefs.h
  6877. fi
  6878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __PRETTY_FUNCTION__ macro" >&5
  6879. $as_echo_n "checking for __PRETTY_FUNCTION__ macro... " >&6; }
  6880. if ${ac_cv_have___pretty_function___macro+:} false; then :
  6881. $as_echo_n "(cached) " >&6
  6882. else
  6883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6884. /* end confdefs.h. */
  6885. int
  6886. main ()
  6887. {
  6888. char const * func = __PRETTY_FUNCTION__;
  6889. ;
  6890. return 0;
  6891. }
  6892. _ACEOF
  6893. if ac_fn_cxx_try_compile "$LINENO"; then :
  6894. ac_cv_have___pretty_function___macro=yes
  6895. else
  6896. ac_cv_have___pretty_function___macro=no
  6897. fi
  6898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6899. fi
  6900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___pretty_function___macro" >&5
  6901. $as_echo "$ac_cv_have___pretty_function___macro" >&6; }
  6902. if test "x$ac_cv_have___pretty_function___macro" = "xyes"; then :
  6903. $as_echo "#define LOG4CPLUS_HAVE_PRETTY_FUNCTION_MACRO 1" >>confdefs.h
  6904. fi
  6905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __func__ symbol" >&5
  6906. $as_echo_n "checking for __func__ symbol... " >&6; }
  6907. if ${ac_cv_have___func___symbol+:} false; then :
  6908. $as_echo_n "(cached) " >&6
  6909. else
  6910. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6911. /* end confdefs.h. */
  6912. int
  6913. main ()
  6914. {
  6915. char const * func = __func__;
  6916. ;
  6917. return 0;
  6918. }
  6919. _ACEOF
  6920. if ac_fn_cxx_try_link "$LINENO"; then :
  6921. ac_cv_have___func___symbol=yes
  6922. else
  6923. ac_cv_have___func___symbol=no
  6924. fi
  6925. rm -f core conftest.err conftest.$ac_objext \
  6926. conftest$ac_exeext conftest.$ac_ext
  6927. fi
  6928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have___func___symbol" >&5
  6929. $as_echo "$ac_cv_have___func___symbol" >&6; }
  6930. if test "x$ac_cv_have___func___symbol" = "xyes"; then :
  6931. $as_echo "#define LOG4CPLUS_HAVE_FUNC_SYMBOL 1" >>confdefs.h
  6932. fi
  6933. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((constructor))" >&5
  6934. $as_echo_n "checking for __attribute__((constructor))... " >&6; }
  6935. if ${ax_cv_have_func_attribute_constructor+:} false; then :
  6936. $as_echo_n "(cached) " >&6
  6937. else
  6938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6939. /* end confdefs.h. */
  6940. int foo( void ) __attribute__((constructor));
  6941. int
  6942. main ()
  6943. {
  6944. ;
  6945. return 0;
  6946. }
  6947. _ACEOF
  6948. if ac_fn_cxx_try_link "$LINENO"; then :
  6949. if test -s conftest.err; then :
  6950. ax_cv_have_func_attribute_constructor=no
  6951. else
  6952. ax_cv_have_func_attribute_constructor=yes
  6953. fi
  6954. else
  6955. ax_cv_have_func_attribute_constructor=no
  6956. fi
  6957. rm -f core conftest.err conftest.$ac_objext \
  6958. conftest$ac_exeext conftest.$ac_ext
  6959. fi
  6960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_constructor" >&5
  6961. $as_echo "$ax_cv_have_func_attribute_constructor" >&6; }
  6962. if test yes = $ax_cv_have_func_attribute_constructor; then :
  6963. cat >>confdefs.h <<_ACEOF
  6964. #define HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR 1
  6965. _ACEOF
  6966. fi
  6967. if test "x$ax_cv_have_func_attribute_constructor" = "xyes"; then :
  6968. $as_echo "#define LOG4CPLUS_HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR 1" >>confdefs.h
  6969. fi
  6970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((init_priority))" >&5
  6971. $as_echo_n "checking for __attribute__((init_priority))... " >&6; }
  6972. if ${ax_cv_have_var_attribute_init_priority+:} false; then :
  6973. $as_echo_n "(cached) " >&6
  6974. else
  6975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6976. /* end confdefs.h. */
  6977. struct bar { bar() {} ~bar() {} };
  6978. bar b __attribute__((init_priority(65535/2)));
  6979. int
  6980. main ()
  6981. {
  6982. ;
  6983. return 0;
  6984. }
  6985. _ACEOF
  6986. if ac_fn_cxx_try_link "$LINENO"; then :
  6987. if test -s conftest.err; then :
  6988. ax_cv_have_var_attribute_init_priority=no
  6989. else
  6990. ax_cv_have_var_attribute_init_priority=yes
  6991. fi
  6992. else
  6993. ax_cv_have_var_attribute_init_priority=no
  6994. fi
  6995. rm -f core conftest.err conftest.$ac_objext \
  6996. conftest$ac_exeext conftest.$ac_ext
  6997. fi
  6998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_var_attribute_init_priority" >&5
  6999. $as_echo "$ax_cv_have_var_attribute_init_priority" >&6; }
  7000. if test yes = $ax_cv_have_var_attribute_init_priority; then :
  7001. cat >>confdefs.h <<_ACEOF
  7002. #define HAVE_VAR_ATTRIBUTE_INIT_PRIORITY 1
  7003. _ACEOF
  7004. fi
  7005. if test "x$ax_cv_have_var_attribute_init_priority" = "xyes"; then :
  7006. $as_echo "#define LOG4CPLUS_HAVE_VAR_ATTRIBUTE_INIT_PRIORITY 1" >>confdefs.h
  7007. fi
  7008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
  7009. $as_echo_n "checking for library containing strerror... " >&6; }
  7010. if ${ac_cv_search_strerror+:} false; then :
  7011. $as_echo_n "(cached) " >&6
  7012. else
  7013. ac_func_search_save_LIBS=$LIBS
  7014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7015. /* end confdefs.h. */
  7016. /* Override any GCC internal prototype to avoid an error.
  7017. Use char because int might match the return type of a GCC
  7018. builtin and then its argument prototype would still apply. */
  7019. #ifdef __cplusplus
  7020. extern "C"
  7021. #endif
  7022. char strerror ();
  7023. int
  7024. main ()
  7025. {
  7026. return strerror ();
  7027. ;
  7028. return 0;
  7029. }
  7030. _ACEOF
  7031. for ac_lib in '' cposix; do
  7032. if test -z "$ac_lib"; then
  7033. ac_res="none required"
  7034. else
  7035. ac_res=-l$ac_lib
  7036. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7037. fi
  7038. if ac_fn_cxx_try_link "$LINENO"; then :
  7039. ac_cv_search_strerror=$ac_res
  7040. fi
  7041. rm -f core conftest.err conftest.$ac_objext \
  7042. conftest$ac_exeext
  7043. if ${ac_cv_search_strerror+:} false; then :
  7044. break
  7045. fi
  7046. done
  7047. if ${ac_cv_search_strerror+:} false; then :
  7048. else
  7049. ac_cv_search_strerror=no
  7050. fi
  7051. rm conftest.$ac_ext
  7052. LIBS=$ac_func_search_save_LIBS
  7053. fi
  7054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
  7055. $as_echo "$ac_cv_search_strerror" >&6; }
  7056. ac_res=$ac_cv_search_strerror
  7057. if test "$ac_res" != no; then :
  7058. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7059. fi
  7060. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
  7061. $as_echo_n "checking for library containing nanosleep... " >&6; }
  7062. if ${ac_cv_search_nanosleep+:} false; then :
  7063. $as_echo_n "(cached) " >&6
  7064. else
  7065. ac_func_search_save_LIBS=$LIBS
  7066. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7067. /* end confdefs.h. */
  7068. /* Override any GCC internal prototype to avoid an error.
  7069. Use char because int might match the return type of a GCC
  7070. builtin and then its argument prototype would still apply. */
  7071. #ifdef __cplusplus
  7072. extern "C"
  7073. #endif
  7074. char nanosleep ();
  7075. int
  7076. main ()
  7077. {
  7078. return nanosleep ();
  7079. ;
  7080. return 0;
  7081. }
  7082. _ACEOF
  7083. for ac_lib in '' rt; do
  7084. if test -z "$ac_lib"; then
  7085. ac_res="none required"
  7086. else
  7087. ac_res=-l$ac_lib
  7088. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7089. fi
  7090. if ac_fn_cxx_try_link "$LINENO"; then :
  7091. ac_cv_search_nanosleep=$ac_res
  7092. fi
  7093. rm -f core conftest.err conftest.$ac_objext \
  7094. conftest$ac_exeext
  7095. if ${ac_cv_search_nanosleep+:} false; then :
  7096. break
  7097. fi
  7098. done
  7099. if ${ac_cv_search_nanosleep+:} false; then :
  7100. else
  7101. ac_cv_search_nanosleep=no
  7102. fi
  7103. rm conftest.$ac_ext
  7104. LIBS=$ac_func_search_save_LIBS
  7105. fi
  7106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
  7107. $as_echo "$ac_cv_search_nanosleep" >&6; }
  7108. ac_res=$ac_cv_search_nanosleep
  7109. if test "$ac_res" != no; then :
  7110. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7111. fi
  7112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_nanosleep" >&5
  7113. $as_echo_n "checking for library containing clock_nanosleep... " >&6; }
  7114. if ${ac_cv_search_clock_nanosleep+:} false; then :
  7115. $as_echo_n "(cached) " >&6
  7116. else
  7117. ac_func_search_save_LIBS=$LIBS
  7118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7119. /* end confdefs.h. */
  7120. /* Override any GCC internal prototype to avoid an error.
  7121. Use char because int might match the return type of a GCC
  7122. builtin and then its argument prototype would still apply. */
  7123. #ifdef __cplusplus
  7124. extern "C"
  7125. #endif
  7126. char clock_nanosleep ();
  7127. int
  7128. main ()
  7129. {
  7130. return clock_nanosleep ();
  7131. ;
  7132. return 0;
  7133. }
  7134. _ACEOF
  7135. for ac_lib in '' rt posix4; do
  7136. if test -z "$ac_lib"; then
  7137. ac_res="none required"
  7138. else
  7139. ac_res=-l$ac_lib
  7140. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7141. fi
  7142. if ac_fn_cxx_try_link "$LINENO"; then :
  7143. ac_cv_search_clock_nanosleep=$ac_res
  7144. fi
  7145. rm -f core conftest.err conftest.$ac_objext \
  7146. conftest$ac_exeext
  7147. if ${ac_cv_search_clock_nanosleep+:} false; then :
  7148. break
  7149. fi
  7150. done
  7151. if ${ac_cv_search_clock_nanosleep+:} false; then :
  7152. else
  7153. ac_cv_search_clock_nanosleep=no
  7154. fi
  7155. rm conftest.$ac_ext
  7156. LIBS=$ac_func_search_save_LIBS
  7157. fi
  7158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_nanosleep" >&5
  7159. $as_echo "$ac_cv_search_clock_nanosleep" >&6; }
  7160. ac_res=$ac_cv_search_clock_nanosleep
  7161. if test "$ac_res" != no; then :
  7162. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7163. fi
  7164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
  7165. $as_echo_n "checking for library containing clock_gettime... " >&6; }
  7166. if ${ac_cv_search_clock_gettime+:} false; then :
  7167. $as_echo_n "(cached) " >&6
  7168. else
  7169. ac_func_search_save_LIBS=$LIBS
  7170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7171. /* end confdefs.h. */
  7172. /* Override any GCC internal prototype to avoid an error.
  7173. Use char because int might match the return type of a GCC
  7174. builtin and then its argument prototype would still apply. */
  7175. #ifdef __cplusplus
  7176. extern "C"
  7177. #endif
  7178. char clock_gettime ();
  7179. int
  7180. main ()
  7181. {
  7182. return clock_gettime ();
  7183. ;
  7184. return 0;
  7185. }
  7186. _ACEOF
  7187. for ac_lib in '' rt posix4; do
  7188. if test -z "$ac_lib"; then
  7189. ac_res="none required"
  7190. else
  7191. ac_res=-l$ac_lib
  7192. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7193. fi
  7194. if ac_fn_cxx_try_link "$LINENO"; then :
  7195. ac_cv_search_clock_gettime=$ac_res
  7196. fi
  7197. rm -f core conftest.err conftest.$ac_objext \
  7198. conftest$ac_exeext
  7199. if ${ac_cv_search_clock_gettime+:} false; then :
  7200. break
  7201. fi
  7202. done
  7203. if ${ac_cv_search_clock_gettime+:} false; then :
  7204. else
  7205. ac_cv_search_clock_gettime=no
  7206. fi
  7207. rm conftest.$ac_ext
  7208. LIBS=$ac_func_search_save_LIBS
  7209. fi
  7210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
  7211. $as_echo "$ac_cv_search_clock_gettime" >&6; }
  7212. ac_res=$ac_cv_search_clock_gettime
  7213. if test "$ac_res" != no; then :
  7214. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7215. fi
  7216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
  7217. $as_echo_n "checking for library containing gethostbyname... " >&6; }
  7218. if ${ac_cv_search_gethostbyname+:} false; then :
  7219. $as_echo_n "(cached) " >&6
  7220. else
  7221. ac_func_search_save_LIBS=$LIBS
  7222. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7223. /* end confdefs.h. */
  7224. /* Override any GCC internal prototype to avoid an error.
  7225. Use char because int might match the return type of a GCC
  7226. builtin and then its argument prototype would still apply. */
  7227. #ifdef __cplusplus
  7228. extern "C"
  7229. #endif
  7230. char gethostbyname ();
  7231. int
  7232. main ()
  7233. {
  7234. return gethostbyname ();
  7235. ;
  7236. return 0;
  7237. }
  7238. _ACEOF
  7239. for ac_lib in '' nsl network net; do
  7240. if test -z "$ac_lib"; then
  7241. ac_res="none required"
  7242. else
  7243. ac_res=-l$ac_lib
  7244. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7245. fi
  7246. if ac_fn_cxx_try_link "$LINENO"; then :
  7247. ac_cv_search_gethostbyname=$ac_res
  7248. fi
  7249. rm -f core conftest.err conftest.$ac_objext \
  7250. conftest$ac_exeext
  7251. if ${ac_cv_search_gethostbyname+:} false; then :
  7252. break
  7253. fi
  7254. done
  7255. if ${ac_cv_search_gethostbyname+:} false; then :
  7256. else
  7257. ac_cv_search_gethostbyname=no
  7258. fi
  7259. rm conftest.$ac_ext
  7260. LIBS=$ac_func_search_save_LIBS
  7261. fi
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
  7263. $as_echo "$ac_cv_search_gethostbyname" >&6; }
  7264. ac_res=$ac_cv_search_gethostbyname
  7265. if test "$ac_res" != no; then :
  7266. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7267. fi
  7268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setsockopt" >&5
  7269. $as_echo_n "checking for library containing setsockopt... " >&6; }
  7270. if ${ac_cv_search_setsockopt+:} false; then :
  7271. $as_echo_n "(cached) " >&6
  7272. else
  7273. ac_func_search_save_LIBS=$LIBS
  7274. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7275. /* end confdefs.h. */
  7276. /* Override any GCC internal prototype to avoid an error.
  7277. Use char because int might match the return type of a GCC
  7278. builtin and then its argument prototype would still apply. */
  7279. #ifdef __cplusplus
  7280. extern "C"
  7281. #endif
  7282. char setsockopt ();
  7283. int
  7284. main ()
  7285. {
  7286. return setsockopt ();
  7287. ;
  7288. return 0;
  7289. }
  7290. _ACEOF
  7291. for ac_lib in '' socket network net; do
  7292. if test -z "$ac_lib"; then
  7293. ac_res="none required"
  7294. else
  7295. ac_res=-l$ac_lib
  7296. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7297. fi
  7298. if ac_fn_cxx_try_link "$LINENO"; then :
  7299. ac_cv_search_setsockopt=$ac_res
  7300. fi
  7301. rm -f core conftest.err conftest.$ac_objext \
  7302. conftest$ac_exeext
  7303. if ${ac_cv_search_setsockopt+:} false; then :
  7304. break
  7305. fi
  7306. done
  7307. if ${ac_cv_search_setsockopt+:} false; then :
  7308. else
  7309. ac_cv_search_setsockopt=no
  7310. fi
  7311. rm conftest.$ac_ext
  7312. LIBS=$ac_func_search_save_LIBS
  7313. fi
  7314. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setsockopt" >&5
  7315. $as_echo "$ac_cv_search_setsockopt" >&6; }
  7316. ac_res=$ac_cv_search_setsockopt
  7317. if test "$ac_res" != no; then :
  7318. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7319. fi
  7320. if test "x$with_iconv" = "xyes"; then :
  7321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
  7322. $as_echo_n "checking for library containing iconv_open... " >&6; }
  7323. if ${ac_cv_search_iconv_open+:} false; then :
  7324. $as_echo_n "(cached) " >&6
  7325. else
  7326. ac_func_search_save_LIBS=$LIBS
  7327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7328. /* end confdefs.h. */
  7329. /* Override any GCC internal prototype to avoid an error.
  7330. Use char because int might match the return type of a GCC
  7331. builtin and then its argument prototype would still apply. */
  7332. #ifdef __cplusplus
  7333. extern "C"
  7334. #endif
  7335. char iconv_open ();
  7336. int
  7337. main ()
  7338. {
  7339. return iconv_open ();
  7340. ;
  7341. return 0;
  7342. }
  7343. _ACEOF
  7344. for ac_lib in '' iconv; do
  7345. if test -z "$ac_lib"; then
  7346. ac_res="none required"
  7347. else
  7348. ac_res=-l$ac_lib
  7349. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7350. fi
  7351. if ac_fn_cxx_try_link "$LINENO"; then :
  7352. ac_cv_search_iconv_open=$ac_res
  7353. fi
  7354. rm -f core conftest.err conftest.$ac_objext \
  7355. conftest$ac_exeext
  7356. if ${ac_cv_search_iconv_open+:} false; then :
  7357. break
  7358. fi
  7359. done
  7360. if ${ac_cv_search_iconv_open+:} false; then :
  7361. else
  7362. ac_cv_search_iconv_open=no
  7363. fi
  7364. rm conftest.$ac_ext
  7365. LIBS=$ac_func_search_save_LIBS
  7366. fi
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
  7368. $as_echo "$ac_cv_search_iconv_open" >&6; }
  7369. ac_res=$ac_cv_search_iconv_open
  7370. if test "$ac_res" != no; then :
  7371. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7372. else
  7373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
  7374. $as_echo_n "checking for library containing libiconv_open... " >&6; }
  7375. if ${ac_cv_search_libiconv_open+:} false; then :
  7376. $as_echo_n "(cached) " >&6
  7377. else
  7378. ac_func_search_save_LIBS=$LIBS
  7379. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7380. /* end confdefs.h. */
  7381. /* Override any GCC internal prototype to avoid an error.
  7382. Use char because int might match the return type of a GCC
  7383. builtin and then its argument prototype would still apply. */
  7384. #ifdef __cplusplus
  7385. extern "C"
  7386. #endif
  7387. char libiconv_open ();
  7388. int
  7389. main ()
  7390. {
  7391. return libiconv_open ();
  7392. ;
  7393. return 0;
  7394. }
  7395. _ACEOF
  7396. for ac_lib in '' iconv; do
  7397. if test -z "$ac_lib"; then
  7398. ac_res="none required"
  7399. else
  7400. ac_res=-l$ac_lib
  7401. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  7402. fi
  7403. if ac_fn_cxx_try_link "$LINENO"; then :
  7404. ac_cv_search_libiconv_open=$ac_res
  7405. fi
  7406. rm -f core conftest.err conftest.$ac_objext \
  7407. conftest$ac_exeext
  7408. if ${ac_cv_search_libiconv_open+:} false; then :
  7409. break
  7410. fi
  7411. done
  7412. if ${ac_cv_search_libiconv_open+:} false; then :
  7413. else
  7414. ac_cv_search_libiconv_open=no
  7415. fi
  7416. rm conftest.$ac_ext
  7417. LIBS=$ac_func_search_save_LIBS
  7418. fi
  7419. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
  7420. $as_echo "$ac_cv_search_libiconv_open" >&6; }
  7421. ac_res=$ac_cv_search_libiconv_open
  7422. if test "$ac_res" != no; then :
  7423. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  7424. fi
  7425. fi
  7426. fi
  7427. ac_ext=c
  7428. ac_cpp='$CPP $CPPFLAGS'
  7429. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7430. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7431. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7432. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkernel32" >&5
  7433. $as_echo_n "checking for main in -lkernel32... " >&6; }
  7434. if ${ac_cv_lib_kernel32_main+:} false; then :
  7435. $as_echo_n "(cached) " >&6
  7436. else
  7437. ac_check_lib_save_LIBS=$LIBS
  7438. LIBS="-lkernel32 $LIBS"
  7439. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7440. /* end confdefs.h. */
  7441. int
  7442. main ()
  7443. {
  7444. return main ();
  7445. ;
  7446. return 0;
  7447. }
  7448. _ACEOF
  7449. if ac_fn_c_try_link "$LINENO"; then :
  7450. ac_cv_lib_kernel32_main=yes
  7451. else
  7452. ac_cv_lib_kernel32_main=no
  7453. fi
  7454. rm -f core conftest.err conftest.$ac_objext \
  7455. conftest$ac_exeext conftest.$ac_ext
  7456. LIBS=$ac_check_lib_save_LIBS
  7457. fi
  7458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kernel32_main" >&5
  7459. $as_echo "$ac_cv_lib_kernel32_main" >&6; }
  7460. if test "x$ac_cv_lib_kernel32_main" = xyes; then :
  7461. cat >>confdefs.h <<_ACEOF
  7462. #define HAVE_LIBKERNEL32 1
  7463. _ACEOF
  7464. LIBS="-lkernel32 $LIBS"
  7465. fi
  7466. ac_cv_lib_kernel32=ac_cv_lib_kernel32_main
  7467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ladvapi32" >&5
  7468. $as_echo_n "checking for main in -ladvapi32... " >&6; }
  7469. if ${ac_cv_lib_advapi32_main+:} false; then :
  7470. $as_echo_n "(cached) " >&6
  7471. else
  7472. ac_check_lib_save_LIBS=$LIBS
  7473. LIBS="-ladvapi32 $LIBS"
  7474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7475. /* end confdefs.h. */
  7476. int
  7477. main ()
  7478. {
  7479. return main ();
  7480. ;
  7481. return 0;
  7482. }
  7483. _ACEOF
  7484. if ac_fn_c_try_link "$LINENO"; then :
  7485. ac_cv_lib_advapi32_main=yes
  7486. else
  7487. ac_cv_lib_advapi32_main=no
  7488. fi
  7489. rm -f core conftest.err conftest.$ac_objext \
  7490. conftest$ac_exeext conftest.$ac_ext
  7491. LIBS=$ac_check_lib_save_LIBS
  7492. fi
  7493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_advapi32_main" >&5
  7494. $as_echo "$ac_cv_lib_advapi32_main" >&6; }
  7495. if test "x$ac_cv_lib_advapi32_main" = xyes; then :
  7496. cat >>confdefs.h <<_ACEOF
  7497. #define HAVE_LIBADVAPI32 1
  7498. _ACEOF
  7499. LIBS="-ladvapi32 $LIBS"
  7500. fi
  7501. ac_cv_lib_advapi32=ac_cv_lib_advapi32_main
  7502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
  7503. $as_echo_n "checking for main in -lws2_32... " >&6; }
  7504. if ${ac_cv_lib_ws2_32_main+:} false; then :
  7505. $as_echo_n "(cached) " >&6
  7506. else
  7507. ac_check_lib_save_LIBS=$LIBS
  7508. LIBS="-lws2_32 $LIBS"
  7509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7510. /* end confdefs.h. */
  7511. int
  7512. main ()
  7513. {
  7514. return main ();
  7515. ;
  7516. return 0;
  7517. }
  7518. _ACEOF
  7519. if ac_fn_c_try_link "$LINENO"; then :
  7520. ac_cv_lib_ws2_32_main=yes
  7521. else
  7522. ac_cv_lib_ws2_32_main=no
  7523. fi
  7524. rm -f core conftest.err conftest.$ac_objext \
  7525. conftest$ac_exeext conftest.$ac_ext
  7526. LIBS=$ac_check_lib_save_LIBS
  7527. fi
  7528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
  7529. $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
  7530. if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
  7531. cat >>confdefs.h <<_ACEOF
  7532. #define HAVE_LIBWS2_32 1
  7533. _ACEOF
  7534. LIBS="-lws2_32 $LIBS"
  7535. fi
  7536. ac_cv_lib_ws2_32=ac_cv_lib_ws2_32_main
  7537. ac_ext=cpp
  7538. ac_cpp='$CXXCPP $CPPFLAGS'
  7539. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7540. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7541. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  7543. $as_echo_n "checking for egrep... " >&6; }
  7544. if ${ac_cv_path_EGREP+:} false; then :
  7545. $as_echo_n "(cached) " >&6
  7546. else
  7547. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  7548. then ac_cv_path_EGREP="$GREP -E"
  7549. else
  7550. if test -z "$EGREP"; then
  7551. ac_path_EGREP_found=false
  7552. # Loop through the user's path and test for each of PROGNAME-LIST
  7553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7554. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  7555. do
  7556. IFS=$as_save_IFS
  7557. test -z "$as_dir" && as_dir=.
  7558. for ac_prog in egrep; do
  7559. for ac_exec_ext in '' $ac_executable_extensions; do
  7560. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  7561. as_fn_executable_p "$ac_path_EGREP" || continue
  7562. # Check for GNU ac_path_EGREP and select it if it is found.
  7563. # Check for GNU $ac_path_EGREP
  7564. case `"$ac_path_EGREP" --version 2>&1` in
  7565. *GNU*)
  7566. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  7567. *)
  7568. ac_count=0
  7569. $as_echo_n 0123456789 >"conftest.in"
  7570. while :
  7571. do
  7572. cat "conftest.in" "conftest.in" >"conftest.tmp"
  7573. mv "conftest.tmp" "conftest.in"
  7574. cp "conftest.in" "conftest.nl"
  7575. $as_echo 'EGREP' >> "conftest.nl"
  7576. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  7577. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  7578. as_fn_arith $ac_count + 1 && ac_count=$as_val
  7579. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  7580. # Best one so far, save it but keep looking for a better one
  7581. ac_cv_path_EGREP="$ac_path_EGREP"
  7582. ac_path_EGREP_max=$ac_count
  7583. fi
  7584. # 10*(2^10) chars as input seems more than enough
  7585. test $ac_count -gt 10 && break
  7586. done
  7587. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  7588. esac
  7589. $ac_path_EGREP_found && break 3
  7590. done
  7591. done
  7592. done
  7593. IFS=$as_save_IFS
  7594. if test -z "$ac_cv_path_EGREP"; then
  7595. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  7596. fi
  7597. else
  7598. ac_cv_path_EGREP=$EGREP
  7599. fi
  7600. fi
  7601. fi
  7602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  7603. $as_echo "$ac_cv_path_EGREP" >&6; }
  7604. EGREP="$ac_cv_path_EGREP"
  7605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7606. $as_echo_n "checking for ANSI C header files... " >&6; }
  7607. if ${ac_cv_header_stdc+:} false; then :
  7608. $as_echo_n "(cached) " >&6
  7609. else
  7610. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7611. /* end confdefs.h. */
  7612. #include <stdlib.h>
  7613. #include <stdarg.h>
  7614. #include <string.h>
  7615. #include <float.h>
  7616. int
  7617. main ()
  7618. {
  7619. ;
  7620. return 0;
  7621. }
  7622. _ACEOF
  7623. if ac_fn_cxx_try_compile "$LINENO"; then :
  7624. ac_cv_header_stdc=yes
  7625. else
  7626. ac_cv_header_stdc=no
  7627. fi
  7628. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7629. if test $ac_cv_header_stdc = yes; then
  7630. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7631. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7632. /* end confdefs.h. */
  7633. #include <string.h>
  7634. _ACEOF
  7635. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7636. $EGREP "memchr" >/dev/null 2>&1; then :
  7637. else
  7638. ac_cv_header_stdc=no
  7639. fi
  7640. rm -f conftest*
  7641. fi
  7642. if test $ac_cv_header_stdc = yes; then
  7643. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7645. /* end confdefs.h. */
  7646. #include <stdlib.h>
  7647. _ACEOF
  7648. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7649. $EGREP "free" >/dev/null 2>&1; then :
  7650. else
  7651. ac_cv_header_stdc=no
  7652. fi
  7653. rm -f conftest*
  7654. fi
  7655. if test $ac_cv_header_stdc = yes; then
  7656. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7657. if test "$cross_compiling" = yes; then :
  7658. :
  7659. else
  7660. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7661. /* end confdefs.h. */
  7662. #include <ctype.h>
  7663. #include <stdlib.h>
  7664. #if ((' ' & 0x0FF) == 0x020)
  7665. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7666. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7667. #else
  7668. # define ISLOWER(c) \
  7669. (('a' <= (c) && (c) <= 'i') \
  7670. || ('j' <= (c) && (c) <= 'r') \
  7671. || ('s' <= (c) && (c) <= 'z'))
  7672. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7673. #endif
  7674. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7675. int
  7676. main ()
  7677. {
  7678. int i;
  7679. for (i = 0; i < 256; i++)
  7680. if (XOR (islower (i), ISLOWER (i))
  7681. || toupper (i) != TOUPPER (i))
  7682. return 2;
  7683. return 0;
  7684. }
  7685. _ACEOF
  7686. if ac_fn_cxx_try_run "$LINENO"; then :
  7687. else
  7688. ac_cv_header_stdc=no
  7689. fi
  7690. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7691. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7692. fi
  7693. fi
  7694. fi
  7695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7696. $as_echo "$ac_cv_header_stdc" >&6; }
  7697. if test $ac_cv_header_stdc = yes; then
  7698. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  7699. fi
  7700. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7701. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7702. inttypes.h stdint.h unistd.h
  7703. do :
  7704. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7705. ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7706. "
  7707. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7708. cat >>confdefs.h <<_ACEOF
  7709. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7710. _ACEOF
  7711. fi
  7712. done
  7713. ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
  7714. if test "x$ac_cv_header_sys_types_h" = xyes; then :
  7715. $as_echo "#define LOG4CPLUS_HAVE_SYS_TYPES_H 1" >>confdefs.h
  7716. fi
  7717. ac_fn_cxx_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
  7718. if test "x$ac_cv_header_sys_socket_h" = xyes; then :
  7719. $as_echo "#define LOG4CPLUS_HAVE_SYS_SOCKET_H 1" >>confdefs.h
  7720. fi
  7721. ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
  7722. if test "x$ac_cv_header_sys_time_h" = xyes; then :
  7723. $as_echo "#define LOG4CPLUS_HAVE_SYS_TIME_H 1" >>confdefs.h
  7724. fi
  7725. ac_fn_cxx_check_header_mongrel "$LINENO" "sys/timeb.h" "ac_cv_header_sys_timeb_h" "$ac_includes_default"
  7726. if test "x$ac_cv_header_sys_timeb_h" = xyes; then :
  7727. $as_echo "#define LOG4CPLUS_HAVE_SYS_TIMEB_H 1" >>confdefs.h
  7728. fi
  7729. ac_fn_cxx_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
  7730. if test "x$ac_cv_header_sys_stat_h" = xyes; then :
  7731. $as_echo "#define LOG4CPLUS_HAVE_SYS_STAT_H 1" >>confdefs.h
  7732. fi
  7733. ac_fn_cxx_check_header_mongrel "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
  7734. if test "x$ac_cv_header_sys_syscall_h" = xyes; then :
  7735. $as_echo "#define LOG4CPLUS_HAVE_SYS_SYSCALL_H 1" >>confdefs.h
  7736. fi
  7737. ac_fn_cxx_check_header_mongrel "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
  7738. if test "x$ac_cv_header_sys_file_h" = xyes; then :
  7739. $as_echo "#define LOG4CPLUS_HAVE_SYS_FILE_H 1" >>confdefs.h
  7740. fi
  7741. ac_fn_cxx_check_header_mongrel "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
  7742. if test "x$ac_cv_header_syslog_h" = xyes; then :
  7743. $as_echo "#define LOG4CPLUS_HAVE_SYSLOG_H 1" >>confdefs.h
  7744. fi
  7745. ac_fn_cxx_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
  7746. if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
  7747. $as_echo "#define LOG4CPLUS_HAVE_ARPA_INET_H 1" >>confdefs.h
  7748. fi
  7749. ac_fn_cxx_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
  7750. if test "x$ac_cv_header_netinet_in_h" = xyes; then :
  7751. $as_echo "#define LOG4CPLUS_HAVE_NETINET_IN_H 1" >>confdefs.h
  7752. fi
  7753. ac_fn_cxx_check_header_mongrel "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "$ac_includes_default"
  7754. if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
  7755. $as_echo "#define LOG4CPLUS_HAVE_NETINET_TCP_H 1" >>confdefs.h
  7756. fi
  7757. ac_fn_cxx_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
  7758. if test "x$ac_cv_header_netdb_h" = xyes; then :
  7759. $as_echo "#define LOG4CPLUS_HAVE_NETDB_H 1" >>confdefs.h
  7760. fi
  7761. ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  7762. if test "x$ac_cv_header_unistd_h" = xyes; then :
  7763. $as_echo "#define LOG4CPLUS_HAVE_UNISTD_H 1" >>confdefs.h
  7764. fi
  7765. ac_fn_cxx_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
  7766. if test "x$ac_cv_header_fcntl_h" = xyes; then :
  7767. $as_echo "#define LOG4CPLUS_HAVE_FCNTL_H 1" >>confdefs.h
  7768. fi
  7769. ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
  7770. if test "x$ac_cv_header_stdio_h" = xyes; then :
  7771. $as_echo "#define LOG4CPLUS_HAVE_STDIO_H 1" >>confdefs.h
  7772. fi
  7773. ac_fn_cxx_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
  7774. if test "x$ac_cv_header_stdarg_h" = xyes; then :
  7775. $as_echo "#define LOG4CPLUS_HAVE_STDARG_H 1" >>confdefs.h
  7776. fi
  7777. ac_fn_cxx_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  7778. if test "x$ac_cv_header_stdlib_h" = xyes; then :
  7779. $as_echo "#define LOG4CPLUS_HAVE_STDLIB_H 1" >>confdefs.h
  7780. fi
  7781. ac_fn_cxx_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
  7782. if test "x$ac_cv_header_wchar_h" = xyes; then :
  7783. $as_echo "#define LOG4CPLUS_HAVE_WCHAR_H 1" >>confdefs.h
  7784. fi
  7785. ac_fn_cxx_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
  7786. if test "x$ac_cv_header_time_h" = xyes; then :
  7787. $as_echo "#define LOG4CPLUS_HAVE_TIME_H 1" >>confdefs.h
  7788. fi
  7789. ac_fn_cxx_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
  7790. if test "x$ac_cv_header_errno_h" = xyes; then :
  7791. $as_echo "#define LOG4CPLUS_HAVE_ERRNO_H 1" >>confdefs.h
  7792. fi
  7793. ac_fn_cxx_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
  7794. if test "x$ac_cv_header_limits_h" = xyes; then :
  7795. $as_echo "#define LOG4CPLUS_HAVE_LIMITS_H 1" >>confdefs.h
  7796. fi
  7797. ac_fn_cxx_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
  7798. if test "x$ac_cv_header_poll_h" = xyes; then :
  7799. $as_echo "#define LOG4CPLUS_HAVE_POLL_H 1" >>confdefs.h
  7800. fi
  7801. if test "x$with_iconv" = "xyes"; then :
  7802. ac_fn_cxx_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
  7803. if test "x$ac_cv_header_iconv_h" = xyes; then :
  7804. $as_echo "#define LOG4CPLUS_HAVE_ICONV_H 1" >>confdefs.h
  7805. fi
  7806. fi
  7807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
  7808. $as_echo_n "checking for socklen_t... " >&6; }
  7809. if ${ac_cv_ax_type_socklen_t+:} false; then :
  7810. $as_echo_n "(cached) " >&6
  7811. else
  7812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7813. /* end confdefs.h. */
  7814. #include <sys/types.h>
  7815. #include <sys/socket.h>
  7816. int
  7817. main ()
  7818. {
  7819. socklen_t len = 42; return 0;
  7820. ;
  7821. return 0;
  7822. }
  7823. _ACEOF
  7824. if ac_fn_cxx_try_compile "$LINENO"; then :
  7825. ac_cv_ax_type_socklen_t=yes
  7826. else
  7827. ac_cv_ax_type_socklen_t=no
  7828. fi
  7829. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7830. fi
  7831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ax_type_socklen_t" >&5
  7832. $as_echo "$ac_cv_ax_type_socklen_t" >&6; }
  7833. if test $ac_cv_ax_type_socklen_t != yes; then
  7834. $as_echo "#define socklen_t int" >>confdefs.h
  7835. fi
  7836. # Check whether --enable-threads was given.
  7837. if test "${enable_threads+set}" = set; then :
  7838. enableval=$enable_threads; case "${enableval}" in #(
  7839. yes) :
  7840. ;; #(
  7841. no) :
  7842. ;; #(
  7843. *) :
  7844. as_fn_error $? "bad value ${enableval} for --enable-threads" "$LINENO" 5 ;;
  7845. esac
  7846. else
  7847. enable_threads=yes
  7848. fi
  7849. if test "x$enable_threads" = "xyes"; then :
  7850. { $as_echo "$as_me:${as_lineno-$LINENO}: Creating a multi-threaded library." >&5
  7851. $as_echo "$as_me: Creating a multi-threaded library." >&6;}
  7852. { $as_echo "$as_me:${as_lineno-$LINENO}: Threads support:" >&5
  7853. $as_echo "$as_me: Threads support:" >&6;}
  7854. as_fn_append CPPFLAGS " -D_REENTRANT"
  7855. case "$target_os" in #(
  7856. mingw*) :
  7857. ;; #(
  7858. *) :
  7859. ac_ext=cpp
  7860. ac_cpp='$CXXCPP $CPPFLAGS'
  7861. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7862. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7863. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7864. ax_pthread_ok=no
  7865. # We used to check for pthread.h first, but this fails if pthread.h
  7866. # requires special compiler flags (e.g. on True64 or Sequent).
  7867. # It gets checked for in the link test anyway.
  7868. # First of all, check if the user has set any of the PTHREAD_LIBS,
  7869. # etcetera environment variables, and if threads linking works using
  7870. # them:
  7871. if test ! -z "$PTHREAD_LIBS$PTHREAD_CXXFLAGS"; then :
  7872. save_CXXFLAGS=$CXXFLAGS
  7873. CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
  7874. save_LIBS=$LIBS
  7875. LIBS="$PTHREAD_LIBS $LIBS"
  7876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CXXFLAGS=$PTHREAD_CXXFLAGS" >&5
  7877. $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CXXFLAGS=$PTHREAD_CXXFLAGS... " >&6; }
  7878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7879. /* end confdefs.h. */
  7880. /* Override any GCC internal prototype to avoid an error.
  7881. Use char because int might match the return type of a GCC
  7882. builtin and then its argument prototype would still apply. */
  7883. #ifdef __cplusplus
  7884. extern "C"
  7885. #endif
  7886. char pthread_join ();
  7887. int
  7888. main ()
  7889. {
  7890. return pthread_join ();
  7891. ;
  7892. return 0;
  7893. }
  7894. _ACEOF
  7895. if ac_fn_cxx_try_link "$LINENO"; then :
  7896. ax_pthread_ok=yes
  7897. fi
  7898. rm -f core conftest.err conftest.$ac_objext \
  7899. conftest$ac_exeext conftest.$ac_ext
  7900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  7901. $as_echo "$ax_pthread_ok" >&6; }
  7902. if test x"$ax_pthread_ok" = xno; then :
  7903. { PTHREAD_LIBS=; unset PTHREAD_LIBS;}
  7904. { PTHREAD_CXXFLAGS=; unset PTHREAD_CXXFLAGS;}
  7905. fi
  7906. LIBS=$save_LIBS
  7907. CXXFLAGS=$save_CXXFLAGS
  7908. fi
  7909. # We must check for the threads library under a number of different
  7910. # names; the ordering is very important because some systems
  7911. # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
  7912. # libraries is broken (non-POSIX).
  7913. # Create a list of thread flags to try. Items starting with a "-" are
  7914. # C compiler flags, and other items are library names, except for "none"
  7915. # which indicates that we try without any flags at all, and "pthread-config"
  7916. # which is a program returning the flags for the Pth emulation library.
  7917. ax_pthread_flags="-Kthread -kthread lthread -pthread -pthreads -mt -mthreads --thread-safe pthread-config pthreads pthread"
  7918. # The ordering *is* (sometimes) important. Some notes on the
  7919. # individual items follow:
  7920. # none: in case threads are in libc; should be tried before -Kthread and
  7921. # other compiler flags to prevent continual compiler warnings;
  7922. # none will prepended at OS modifications below
  7923. # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
  7924. # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
  7925. # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
  7926. # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
  7927. # -pthreads: Solaris/gcc
  7928. # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
  7929. # doesn't hurt to check since this sometimes defines pthreads too;
  7930. # also defines -D_REENTRANT)
  7931. # ... -mt is also the pthreads flag for HP/aCC
  7932. # -mthreads: Mingw32/gcc, Lynx/gcc
  7933. # --thread-safe: KAI C++
  7934. # pthread-config: use pthread-config program (for GNU Pth library)
  7935. # pthread: Linux, etcetera
  7936. # pthreads: AIX (very old gcc's on AIX must check this before -lpthread,
  7937. # handled below)
  7938. case ${host_os} in #(
  7939. solaris*) :
  7940. # On Solaris (at least, for some versions), libc contains
  7941. # stubbed (non-functional) versions of the pthreads routines,
  7942. # so link-based tests will erroneously succeed. (We need to
  7943. # link with -pthreads/-mt/ -lpthread.) (The stubs are
  7944. # missing pthread_cleanup_push, or rather a function called
  7945. # by this macro, so we could check for that, but who knows
  7946. # whether they'll stub that too in a future libc.) So, we'll
  7947. # just look for -pthreads and -lpthread first:
  7948. ax_pthread_flags="-mt -pthread $ax_pthread_flags"
  7949. if test "x$GCC" = "xyes"; then :
  7950. ax_pthread_flags="-pthreads pthread -pthread $ax_pthread_flags"
  7951. fi ;; #(
  7952. darwin*) :
  7953. ax_pthread_flags="-pthread $ax_pthread_flags" ;; #(
  7954. hp-ux*) :
  7955. # On HP-UX compiling with aCC, cc understands -mthreads as
  7956. # '-mt' '-hreads' ..., the test succeeds but it fails to run.
  7957. if test x"$GCC" != xyes; then :
  7958. ax_pthread_flags="-mt $ax_pthread_flags"
  7959. fi ;; #(
  7960. *) :
  7961. ;;
  7962. esac
  7963. ax_pthread_flags="none $ax_pthread_flags"
  7964. if test x"$ax_pthread_ok" = xno; then :
  7965. for flag in $ax_pthread_flags; do
  7966. case $flag in #(
  7967. none) :
  7968. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
  7969. $as_echo_n "checking whether pthreads work without any flags... " >&6; } ;; #(
  7970. -*) :
  7971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
  7972. $as_echo_n "checking whether pthreads work with $flag... " >&6; }
  7973. PTHREAD_CXXFLAGS=$flag ;; #(
  7974. pthread-config) :
  7975. # Extract the first word of "pthread-config", so it can be a program name with args.
  7976. set dummy pthread-config; ac_word=$2
  7977. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7978. $as_echo_n "checking for $ac_word... " >&6; }
  7979. if ${ac_cv_prog_ax_pthread_config+:} false; then :
  7980. $as_echo_n "(cached) " >&6
  7981. else
  7982. if test -n "$ax_pthread_config"; then
  7983. ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
  7984. else
  7985. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7986. for as_dir in $PATH
  7987. do
  7988. IFS=$as_save_IFS
  7989. test -z "$as_dir" && as_dir=.
  7990. for ac_exec_ext in '' $ac_executable_extensions; do
  7991. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7992. ac_cv_prog_ax_pthread_config="yes"
  7993. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7994. break 2
  7995. fi
  7996. done
  7997. done
  7998. IFS=$as_save_IFS
  7999. test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
  8000. fi
  8001. fi
  8002. ax_pthread_config=$ac_cv_prog_ax_pthread_config
  8003. if test -n "$ax_pthread_config"; then
  8004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
  8005. $as_echo "$ax_pthread_config" >&6; }
  8006. else
  8007. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8008. $as_echo "no" >&6; }
  8009. fi
  8010. if test x"$ax_pthread_config" = xno; then :
  8011. continue
  8012. fi
  8013. PTHREAD_CXXFLAGS="`pthread-config --cflags`"
  8014. PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" ;; #(
  8015. *) :
  8016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
  8017. $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
  8018. PTHREAD_LIBS="-l$flag" ;;
  8019. esac
  8020. save_LIBS=$LIBS
  8021. save_CXXFLAGS=$CXXFLAGS
  8022. LIBS="$PTHREAD_LIBS $LIBS"
  8023. CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
  8024. # Check for various functions. We must include pthread.h,
  8025. # since some functions may be macros. (On the Sequent, we
  8026. # need a special flag -Kthread to make this header compile.)
  8027. # We check for pthread_join because it is in -lpthread on IRIX
  8028. # while pthread_create is in libc. We check for pthread_attr_init
  8029. # due to DEC craziness with -lpthreads. We check for
  8030. # pthread_cleanup_push because it is one of the few pthread
  8031. # functions on Solaris that doesn't have a non-functional libc stub.
  8032. # We try pthread_create on general principles.
  8033. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8034. /* end confdefs.h. */
  8035. #include <pthread.h>
  8036. static void routine(void *a) { a = 0; }
  8037. static void *start_routine(void *a) { return a; }
  8038. int
  8039. main ()
  8040. {
  8041. pthread_t th; pthread_attr_t attr;
  8042. pthread_create(&th, 0, start_routine, 0);
  8043. pthread_join(th, 0);
  8044. pthread_attr_init(&attr);
  8045. pthread_cleanup_push(routine, 0);
  8046. pthread_cleanup_pop(0) /* ; */
  8047. ;
  8048. return 0;
  8049. }
  8050. _ACEOF
  8051. if ac_fn_cxx_try_link "$LINENO"; then :
  8052. ax_pthread_ok=yes
  8053. fi
  8054. rm -f core conftest.err conftest.$ac_objext \
  8055. conftest$ac_exeext conftest.$ac_ext
  8056. LIBS=$save_LIBS
  8057. CXXFLAGS=$save_CXXFLAGS
  8058. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
  8059. $as_echo "$ax_pthread_ok" >&6; }
  8060. if test "x$ax_pthread_ok" = xyes; then :
  8061. break
  8062. fi
  8063. { PTHREAD_LIBS=; unset PTHREAD_LIBS;}
  8064. { PTHREAD_CXXFLAGS=; unset PTHREAD_CXXFLAGS;}
  8065. done
  8066. fi
  8067. # Various other checks:
  8068. if test "x$ax_pthread_ok" = xyes; then :
  8069. save_LIBS=$LIBS
  8070. LIBS="$PTHREAD_LIBS $LIBS"
  8071. save_CXXFLAGS=$CXXFLAGS
  8072. CXXFLAGS="$CXXFLAGS $PTHREAD_CXXFLAGS"
  8073. # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
  8074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
  8075. $as_echo_n "checking for joinable pthread attribute... " >&6; }
  8076. attr_name=unknown
  8077. for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
  8078. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8079. /* end confdefs.h. */
  8080. #include <pthread.h>
  8081. int
  8082. main ()
  8083. {
  8084. int attr = $attr; return attr /* ; */
  8085. ;
  8086. return 0;
  8087. }
  8088. _ACEOF
  8089. if ac_fn_cxx_try_link "$LINENO"; then :
  8090. attr_name=$attr
  8091. break
  8092. fi
  8093. rm -f core conftest.err conftest.$ac_objext \
  8094. conftest$ac_exeext conftest.$ac_ext
  8095. done
  8096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
  8097. $as_echo "$attr_name" >&6; }
  8098. if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then :
  8099. cat >>confdefs.h <<_ACEOF
  8100. #define PTHREAD_CREATE_JOINABLE $attr_name
  8101. _ACEOF
  8102. fi
  8103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
  8104. $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
  8105. flag=no
  8106. case ${host_os} in #(
  8107. aix* | freebsd* | darwin*) :
  8108. flag="-D_THREAD_SAFE" ;; #(
  8109. osf* | hpux*) :
  8110. flag="-D_REENTRANT" ;; #(
  8111. solaris*) :
  8112. if test "$GCC" = "yes"; then :
  8113. flag="-D_REENTRANT"
  8114. else
  8115. flag="-mt -D_REENTRANT"
  8116. fi ;; #(
  8117. *) :
  8118. ;;
  8119. esac
  8120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
  8121. $as_echo "${flag}" >&6; }
  8122. if test "x$flag" != xno; then :
  8123. PTHREAD_CXXFLAGS="$flag $PTHREAD_CXXFLAGS"
  8124. fi
  8125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
  8126. $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
  8127. if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
  8128. $as_echo_n "(cached) " >&6
  8129. else
  8130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8131. /* end confdefs.h. */
  8132. #include <pthread.h>
  8133. int
  8134. main ()
  8135. {
  8136. int i = PTHREAD_PRIO_INHERIT;
  8137. ;
  8138. return 0;
  8139. }
  8140. _ACEOF
  8141. if ac_fn_cxx_try_link "$LINENO"; then :
  8142. ax_cv_PTHREAD_PRIO_INHERIT=yes
  8143. else
  8144. ax_cv_PTHREAD_PRIO_INHERIT=no
  8145. fi
  8146. rm -f core conftest.err conftest.$ac_objext \
  8147. conftest$ac_exeext conftest.$ac_ext
  8148. fi
  8149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
  8150. $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
  8151. if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
  8152. $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
  8153. fi
  8154. LIBS=$save_LIBS
  8155. CXXFLAGS=$save_CXXFLAGS
  8156. fi
  8157. # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
  8158. if test x"$ax_pthread_ok" = xyes; then :
  8159. $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
  8160. else
  8161. ax_pthread_ok=no
  8162. as_fn_error $? "Requested threads support but no threads were found." "$LINENO" 5
  8163. fi
  8164. ac_ext=cpp
  8165. ac_cpp='$CXXCPP $CPPFLAGS'
  8166. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8167. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8168. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8169. ;;
  8170. esac
  8171. as_fn_append CXXFLAGS " $PTHREAD_CXXFLAGS"
  8172. as_fn_append LIBS " $PTHREAD_LIBS"
  8173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
  8174. $as_echo_n "checking for library containing sem_init... " >&6; }
  8175. if ${ac_cv_search_sem_init+:} false; then :
  8176. $as_echo_n "(cached) " >&6
  8177. else
  8178. ac_func_search_save_LIBS=$LIBS
  8179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8180. /* end confdefs.h. */
  8181. /* Override any GCC internal prototype to avoid an error.
  8182. Use char because int might match the return type of a GCC
  8183. builtin and then its argument prototype would still apply. */
  8184. #ifdef __cplusplus
  8185. extern "C"
  8186. #endif
  8187. char sem_init ();
  8188. int
  8189. main ()
  8190. {
  8191. return sem_init ();
  8192. ;
  8193. return 0;
  8194. }
  8195. _ACEOF
  8196. for ac_lib in '' rt; do
  8197. if test -z "$ac_lib"; then
  8198. ac_res="none required"
  8199. else
  8200. ac_res=-l$ac_lib
  8201. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  8202. fi
  8203. if ac_fn_cxx_try_link "$LINENO"; then :
  8204. ac_cv_search_sem_init=$ac_res
  8205. fi
  8206. rm -f core conftest.err conftest.$ac_objext \
  8207. conftest$ac_exeext
  8208. if ${ac_cv_search_sem_init+:} false; then :
  8209. break
  8210. fi
  8211. done
  8212. if ${ac_cv_search_sem_init+:} false; then :
  8213. else
  8214. ac_cv_search_sem_init=no
  8215. fi
  8216. rm conftest.$ac_ext
  8217. LIBS=$ac_func_search_save_LIBS
  8218. fi
  8219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
  8220. $as_echo "$ac_cv_search_sem_init" >&6; }
  8221. ac_res=$ac_cv_search_sem_init
  8222. if test "$ac_res" != no; then :
  8223. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  8224. fi
  8225. case $ax_cv_cxx_compiler_vendor in #(
  8226. gnu|clang) :
  8227. ;; #(
  8228. sun) :
  8229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for sun/cc -xthreadvar" >&5
  8230. $as_echo_n "checking CXXFLAGS for sun/cc -xthreadvar... " >&6; }
  8231. if ${ax_cv_cxxflags_sun_option__xthreadvar+:} false; then :
  8232. $as_echo_n "(cached) " >&6
  8233. else
  8234. ax_cv_cxxflags_sun_option__xthreadvar="no, unknown"
  8235. ac_ext=cpp
  8236. ac_cpp='$CXXCPP $CPPFLAGS'
  8237. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8238. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8239. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8240. ac_save_CXXFLAGS="$CXXFLAGS"
  8241. for ac_arg in "+xstrconst -Xc % -xthreadvar" #
  8242. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  8243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8244. /* end confdefs.h. */
  8245. int
  8246. main ()
  8247. {
  8248. return 0;
  8249. ;
  8250. return 0;
  8251. }
  8252. _ACEOF
  8253. if ac_fn_cxx_try_compile "$LINENO"; then :
  8254. ax_cv_cxxflags_sun_option__xthreadvar=`echo $ac_arg | sed -e 's,.*% *,,'`; break
  8255. fi
  8256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8257. done
  8258. CXXFLAGS="$ac_save_CXXFLAGS"
  8259. ac_ext=cpp
  8260. ac_cpp='$CXXCPP $CPPFLAGS'
  8261. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8262. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8263. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8264. fi
  8265. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_sun_option__xthreadvar" >&5
  8266. $as_echo "$ax_cv_cxxflags_sun_option__xthreadvar" >&6; }
  8267. var=$ax_cv_cxxflags_sun_option__xthreadvar
  8268. case ".$var" in
  8269. .ok|.ok,*) ;;
  8270. .|.no|.no,*) ;;
  8271. *)
  8272. if echo " $CXXFLAGS " | grep " $var " 2>&1 >/dev/null
  8273. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$var"; } >&5
  8274. (: CXXFLAGS does contain $var) 2>&5
  8275. ac_status=$?
  8276. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8277. test $ac_status = 0; }
  8278. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$var\""; } >&5
  8279. (: CXXFLAGS="$CXXFLAGS $var") 2>&5
  8280. ac_status=$?
  8281. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8282. test $ac_status = 0; }
  8283. CXXFLAGS="$CXXFLAGS $var"
  8284. fi
  8285. ;;
  8286. esac
  8287. ;; #(
  8288. ibm) :
  8289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking CXXFLAGS for aix/cc -qtls" >&5
  8290. $as_echo_n "checking CXXFLAGS for aix/cc -qtls... " >&6; }
  8291. if ${ax_cv_cxxflags_aix_option__qtls+:} false; then :
  8292. $as_echo_n "(cached) " >&6
  8293. else
  8294. ax_cv_cxxflags_aix_option__qtls="no, unknown"
  8295. ac_ext=cpp
  8296. ac_cpp='$CXXCPP $CPPFLAGS'
  8297. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8298. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8299. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8300. ac_save_CXXFLAGS="$CXXFLAGS"
  8301. for ac_arg in "-qlanglvl=ansi -qsrcmsg % -qtls" #
  8302. do CXXFLAGS="$ac_save_CXXFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
  8303. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8304. /* end confdefs.h. */
  8305. int
  8306. main ()
  8307. {
  8308. return 0;
  8309. ;
  8310. return 0;
  8311. }
  8312. _ACEOF
  8313. if ac_fn_cxx_try_compile "$LINENO"; then :
  8314. ax_cv_cxxflags_aix_option__qtls=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
  8315. fi
  8316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8317. done
  8318. CXXFLAGS="$ac_save_CXXFLAGS"
  8319. ac_ext=cpp
  8320. ac_cpp='$CXXCPP $CPPFLAGS'
  8321. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8322. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8323. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8324. fi
  8325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxxflags_aix_option__qtls" >&5
  8326. $as_echo "$ax_cv_cxxflags_aix_option__qtls" >&6; }
  8327. case ".$ax_cv_cxxflags_aix_option__qtls" in
  8328. .ok|.ok,*) ;;
  8329. .|.no|.no,*) ;;
  8330. *)
  8331. if echo " $CXXFLAGS " | grep " $ax_cv_cxxflags_aix_option__qtls " 2>&1 >/dev/null
  8332. then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS does contain \$ax_cv_cxxflags_aix_option__qtls"; } >&5
  8333. (: CXXFLAGS does contain $ax_cv_cxxflags_aix_option__qtls) 2>&5
  8334. ac_status=$?
  8335. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8336. test $ac_status = 0; }
  8337. else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CXXFLAGS=\"\$CXXFLAGS \$ax_cv_cxxflags_aix_option__qtls\""; } >&5
  8338. (: CXXFLAGS="$CXXFLAGS $ax_cv_cxxflags_aix_option__qtls") 2>&5
  8339. ac_status=$?
  8340. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8341. test $ac_status = 0; }
  8342. CXXFLAGS="$CXXFLAGS $ax_cv_cxxflags_aix_option__qtls"
  8343. fi
  8344. ;;
  8345. esac
  8346. ;; #(
  8347. *) :
  8348. ;;
  8349. esac
  8350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_add_and_fetch" >&5
  8351. $as_echo_n "checking for __sync_add_and_fetch... " >&6; }
  8352. if ${ac_cv___sync_add_and_fetch+:} false; then :
  8353. $as_echo_n "(cached) " >&6
  8354. else
  8355. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8356. /* end confdefs.h. */
  8357. #include <stdlib.h>
  8358. int
  8359. main ()
  8360. {
  8361. volatile int x = 1;
  8362. volatile int y = __sync_add_and_fetch (&x, 1);
  8363. if (x != 2 || y != 2)
  8364. abort ();
  8365. ;
  8366. return 0;
  8367. }
  8368. _ACEOF
  8369. if ac_fn_cxx_try_link "$LINENO"; then :
  8370. ac_cv___sync_add_and_fetch=yes
  8371. else
  8372. ac_cv___sync_add_and_fetch=no
  8373. fi
  8374. rm -f core conftest.err conftest.$ac_objext \
  8375. conftest$ac_exeext conftest.$ac_ext
  8376. fi
  8377. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___sync_add_and_fetch" >&5
  8378. $as_echo "$ac_cv___sync_add_and_fetch" >&6; }
  8379. if test "x$ac_cv___sync_add_and_fetch" = "xyes"; then :
  8380. $as_echo "#define HAVE___SYNC_ADD_AND_FETCH 1" >>confdefs.h
  8381. fi
  8382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync_sub_and_fetch" >&5
  8383. $as_echo_n "checking for __sync_sub_and_fetch... " >&6; }
  8384. if ${ac_cv___sync_sub_and_fetch+:} false; then :
  8385. $as_echo_n "(cached) " >&6
  8386. else
  8387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8388. /* end confdefs.h. */
  8389. #include <stdlib.h>
  8390. int
  8391. main ()
  8392. {
  8393. volatile int x = 2;
  8394. volatile int y = __sync_sub_and_fetch (&x, 1);
  8395. if (x != 1 || y != 1)
  8396. abort ();
  8397. ;
  8398. return 0;
  8399. }
  8400. _ACEOF
  8401. if ac_fn_cxx_try_link "$LINENO"; then :
  8402. ac_cv___sync_sub_and_fetch=yes
  8403. else
  8404. ac_cv___sync_sub_and_fetch=no
  8405. fi
  8406. rm -f core conftest.err conftest.$ac_objext \
  8407. conftest$ac_exeext conftest.$ac_ext
  8408. fi
  8409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___sync_sub_and_fetch" >&5
  8410. $as_echo "$ac_cv___sync_sub_and_fetch" >&6; }
  8411. if test "x$ac_cv___sync_sub_and_fetch" = "xyes"; then :
  8412. $as_echo "#define HAVE___SYNC_SUB_AND_FETCH 1" >>confdefs.h
  8413. fi
  8414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++11 atomics" >&5
  8415. $as_echo_n "checking for C++11 atomics... " >&6; }
  8416. if ${ac_cv_cxx11_atomics+:} false; then :
  8417. $as_echo_n "(cached) " >&6
  8418. else
  8419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8420. /* end confdefs.h. */
  8421. #include <atomic>
  8422. int
  8423. main ()
  8424. {
  8425. #define TEST_ATOMIC(type) do { \
  8426. std::atomic<type> x (0); \
  8427. std::atomic_fetch_add_explicit (&x, static_cast<type>(1), std::memory_order_acquire); \
  8428. std::atomic_fetch_sub_explicit (&x, static_cast<type>(1), std::memory_order_release); \
  8429. } while (0)
  8430. TEST_ATOMIC(int);
  8431. TEST_ATOMIC(unsigned int);
  8432. TEST_ATOMIC(long);
  8433. TEST_ATOMIC(unsigned long);
  8434. std::atomic_thread_fence (std::memory_order_acquire);
  8435. ;
  8436. return 0;
  8437. }
  8438. _ACEOF
  8439. if ac_fn_cxx_try_link "$LINENO"; then :
  8440. ac_cv_cxx11_atomics=yes
  8441. else
  8442. ac_cv_cxx11_atomics=no
  8443. fi
  8444. rm -f core conftest.err conftest.$ac_objext \
  8445. conftest$ac_exeext conftest.$ac_ext
  8446. fi
  8447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx11_atomics" >&5
  8448. $as_echo "$ac_cv_cxx11_atomics" >&6; }
  8449. if test "x$ac_cv_cxx11_atomics" = "xyes"; then :
  8450. $as_echo "#define HAVE_CXX11_ATOMICS 1" >>confdefs.h
  8451. fi
  8452. if test "x$ac_cv___sync_add_and_fetch" = "xyes"; then :
  8453. $as_echo "#define LOG4CPLUS_HAVE___SYNC_ADD_AND_FETCH 1" >>confdefs.h
  8454. fi
  8455. if test "x$ac_cv___sync_sub_and_fetch" = "xyes"; then :
  8456. $as_echo "#define LOG4CPLUS_HAVE___SYNC_SUB_AND_FETCH 1" >>confdefs.h
  8457. fi
  8458. if test "x$ac_cv_cxx11_atomics" = "xyes"; then :
  8459. $as_echo "#define LOG4CPLUS_HAVE_CXX11_ATOMICS 1" >>confdefs.h
  8460. fi
  8461. ax_tls_support=no
  8462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread_local" >&5
  8463. $as_echo_n "checking for thread_local... " >&6; }
  8464. if ${ac_cv_thread_local+:} false; then :
  8465. $as_echo_n "(cached) " >&6
  8466. else
  8467. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8468. /* end confdefs.h. */
  8469. // check that pointers to classes work as well
  8470. struct S { S () { } void foo () { } int member; };
  8471. extern thread_local S * p_s;
  8472. thread_local S * p_s = 0;
  8473. extern thread_local int x;
  8474. thread_local int * ptr = 0;
  8475. int foo () { ptr = &x; return x; }
  8476. thread_local int x = 1;
  8477. int
  8478. main ()
  8479. {
  8480. x = 2;
  8481. foo ();
  8482. p_s = new S;
  8483. ;
  8484. return 0;
  8485. }
  8486. _ACEOF
  8487. if ac_fn_cxx_try_link "$LINENO"; then :
  8488. ac_cv_thread_local=yes
  8489. ax_tls_support=yes
  8490. else
  8491. ac_cv_thread_local=no
  8492. fi
  8493. rm -f core conftest.err conftest.$ac_objext \
  8494. conftest$ac_exeext conftest.$ac_ext
  8495. fi
  8496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_thread_local" >&5
  8497. $as_echo "$ac_cv_thread_local" >&6; }
  8498. if test "x$ac_cv_thread_local" = "xyes"; then :
  8499. $as_echo "#define HAVE_TLS_SUPPORT 1" >>confdefs.h
  8500. $as_echo "#define TLS_SUPPORT_CONSTRUCT thread_local" >>confdefs.h
  8501. fi
  8502. if test "x$ax_tls_support" = "xno"; then :
  8503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
  8504. $as_echo_n "checking for __thread... " >&6; }
  8505. if ${ac_cv__thread_keyword+:} false; then :
  8506. $as_echo_n "(cached) " >&6
  8507. else
  8508. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8509. /* end confdefs.h. */
  8510. #if defined (__NetBSD__)
  8511. #include <sys/param.h>
  8512. #if ! __NetBSD_Prereq__(5,1,0)
  8513. #error NetBSD __thread support does not work before 5.1.0. It is missing __tls_get_addr.
  8514. #endif
  8515. #endif
  8516. // check that pointers to classes work as well
  8517. struct S { S () { } void foo () { } int member; };
  8518. extern __thread S * p_s;
  8519. __thread S * p_s = 0;
  8520. extern __thread int x;
  8521. __thread int * ptr = 0;
  8522. int foo () { ptr = &x; return x; }
  8523. __thread int x = 1;
  8524. int
  8525. main ()
  8526. {
  8527. x = 2;
  8528. foo ();
  8529. p_s = new S;
  8530. ;
  8531. return 0;
  8532. }
  8533. _ACEOF
  8534. if ac_fn_cxx_try_link "$LINENO"; then :
  8535. ac_cv__thread_keyword=yes
  8536. ax_tls_support=yes
  8537. else
  8538. ac_cv__thread_keyword=no
  8539. fi
  8540. rm -f core conftest.err conftest.$ac_objext \
  8541. conftest$ac_exeext conftest.$ac_ext
  8542. fi
  8543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv__thread_keyword" >&5
  8544. $as_echo "$ac_cv__thread_keyword" >&6; }
  8545. if test "x$ac_cv__thread_keyword" = "xyes"; then :
  8546. $as_echo "#define HAVE_TLS_SUPPORT 1" >>confdefs.h
  8547. $as_echo "#define TLS_SUPPORT_CONSTRUCT __thread" >>confdefs.h
  8548. fi
  8549. fi
  8550. if test "x$ax_tls_support" = "xno"; then :
  8551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __declspec(thread)" >&5
  8552. $as_echo_n "checking for __declspec(thread)... " >&6; }
  8553. if ${ac_cv_declspec_thread+:} false; then :
  8554. $as_echo_n "(cached) " >&6
  8555. else
  8556. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8557. /* end confdefs.h. */
  8558. #if defined (__GNUC__)
  8559. # error Please fail.
  8560. And extra please fail.
  8561. #else
  8562. // check that pointers to classes work as well
  8563. struct S { S () { } void foo () { } int member; };
  8564. extern __declspec(thread) S * p_s;
  8565. __declspec(thread) S * p_s = 0;
  8566. extern __declspec(thread) int x;
  8567. __declspec(thread) int * ptr = 0;
  8568. int foo () { ptr = &x; return x; }
  8569. __declspec(thread) int x = 1;
  8570. #endif
  8571. int
  8572. main ()
  8573. {
  8574. x = 2;
  8575. foo ();
  8576. p_s = new S;
  8577. ;
  8578. return 0;
  8579. }
  8580. _ACEOF
  8581. if ac_fn_cxx_try_link "$LINENO"; then :
  8582. ac_cv_declspec_thread=yes
  8583. ax_tls_support=yes
  8584. else
  8585. ac_cv_declspec_thread=no
  8586. fi
  8587. rm -f core conftest.err conftest.$ac_objext \
  8588. conftest$ac_exeext conftest.$ac_ext
  8589. fi
  8590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_declspec_thread" >&5
  8591. $as_echo "$ac_cv_declspec_thread" >&6; }
  8592. if test "x$ac_cv_declspec_thread" = "xyes"; then :
  8593. $as_echo "#define HAVE_TLS_SUPPORT 1" >>confdefs.h
  8594. $as_echo "#define TLS_SUPPORT_CONSTRUCT __declspec(thread)" >>confdefs.h
  8595. fi
  8596. fi
  8597. if test "x$ac_cv_thread_local" = "xyes"; then :
  8598. $as_echo "#define LOG4CPLUS_HAVE_TLS_SUPPORT 1" >>confdefs.h
  8599. $as_echo "#define LOG4CPLUS_THREAD_LOCAL_VAR thread_local" >>confdefs.h
  8600. else
  8601. if test "x$ac_cv_declspec_thread" = "xyes"; then :
  8602. $as_echo "#define LOG4CPLUS_HAVE_TLS_SUPPORT 1" >>confdefs.h
  8603. $as_echo "#define LOG4CPLUS_THREAD_LOCAL_VAR __declspec(thread)" >>confdefs.h
  8604. else
  8605. if test "x$ac_cv__thread_keyword" = "xyes"; then :
  8606. $as_echo "#define LOG4CPLUS_HAVE_TLS_SUPPORT 1" >>confdefs.h
  8607. $as_echo "#define LOG4CPLUS_THREAD_LOCAL_VAR __thread" >>confdefs.h
  8608. fi
  8609. fi
  8610. fi
  8611. else
  8612. { $as_echo "$as_me:${as_lineno-$LINENO}: Creating a single-threaded library" >&5
  8613. $as_echo "$as_me: Creating a single-threaded library" >&6;}
  8614. $as_echo "#define LOG4CPLUS_SINGLE_THREADED 1" >>confdefs.h
  8615. fi
  8616. if test "x$enable_threads" = "xyes"; then
  8617. MULTI_THREADED_TRUE=
  8618. MULTI_THREADED_FALSE='#'
  8619. else
  8620. MULTI_THREADED_TRUE='#'
  8621. MULTI_THREADED_FALSE=
  8622. fi
  8623. for ac_func in gmtime_r
  8624. do :
  8625. ac_fn_cxx_check_func "$LINENO" "gmtime_r" "ac_cv_func_gmtime_r"
  8626. if test "x$ac_cv_func_gmtime_r" = xyes; then :
  8627. cat >>confdefs.h <<_ACEOF
  8628. #define HAVE_GMTIME_R 1
  8629. _ACEOF
  8630. $as_echo "#define LOG4CPLUS_HAVE_GMTIME_R 1" >>confdefs.h
  8631. fi
  8632. done
  8633. for ac_func in localtime_r
  8634. do :
  8635. ac_fn_cxx_check_func "$LINENO" "localtime_r" "ac_cv_func_localtime_r"
  8636. if test "x$ac_cv_func_localtime_r" = xyes; then :
  8637. cat >>confdefs.h <<_ACEOF
  8638. #define HAVE_LOCALTIME_R 1
  8639. _ACEOF
  8640. $as_echo "#define LOG4CPLUS_HAVE_LOCALTIME_R 1" >>confdefs.h
  8641. fi
  8642. done
  8643. for ac_func in gettimeofday
  8644. do :
  8645. ac_fn_cxx_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
  8646. if test "x$ac_cv_func_gettimeofday" = xyes; then :
  8647. cat >>confdefs.h <<_ACEOF
  8648. #define HAVE_GETTIMEOFDAY 1
  8649. _ACEOF
  8650. $as_echo "#define LOG4CPLUS_HAVE_GETTIMEOFDAY 1" >>confdefs.h
  8651. fi
  8652. done
  8653. for ac_func in nanosleep
  8654. do :
  8655. ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
  8656. if test "x$ac_cv_func_nanosleep" = xyes; then :
  8657. cat >>confdefs.h <<_ACEOF
  8658. #define HAVE_NANOSLEEP 1
  8659. _ACEOF
  8660. $as_echo "#define LOG4CPLUS_HAVE_NANOSLEEP 1" >>confdefs.h
  8661. fi
  8662. done
  8663. for ac_func in clock_nanosleep
  8664. do :
  8665. ac_fn_cxx_check_func "$LINENO" "clock_nanosleep" "ac_cv_func_clock_nanosleep"
  8666. if test "x$ac_cv_func_clock_nanosleep" = xyes; then :
  8667. cat >>confdefs.h <<_ACEOF
  8668. #define HAVE_CLOCK_NANOSLEEP 1
  8669. _ACEOF
  8670. $as_echo "#define LOG4CPLUS_HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h
  8671. fi
  8672. done
  8673. for ac_func in clock_gettime
  8674. do :
  8675. ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
  8676. if test "x$ac_cv_func_clock_gettime" = xyes; then :
  8677. cat >>confdefs.h <<_ACEOF
  8678. #define HAVE_CLOCK_GETTIME 1
  8679. _ACEOF
  8680. $as_echo "#define LOG4CPLUS_HAVE_CLOCK_GETTIME 1" >>confdefs.h
  8681. fi
  8682. done
  8683. for ac_func in getpid
  8684. do :
  8685. ac_fn_cxx_check_func "$LINENO" "getpid" "ac_cv_func_getpid"
  8686. if test "x$ac_cv_func_getpid" = xyes; then :
  8687. cat >>confdefs.h <<_ACEOF
  8688. #define HAVE_GETPID 1
  8689. _ACEOF
  8690. $as_echo "#define LOG4CPLUS_HAVE_GETPID 1" >>confdefs.h
  8691. fi
  8692. done
  8693. for ac_func in poll
  8694. do :
  8695. ac_fn_cxx_check_func "$LINENO" "poll" "ac_cv_func_poll"
  8696. if test "x$ac_cv_func_poll" = xyes; then :
  8697. cat >>confdefs.h <<_ACEOF
  8698. #define HAVE_POLL 1
  8699. _ACEOF
  8700. $as_echo "#define LOG4CPLUS_HAVE_POLL 1" >>confdefs.h
  8701. fi
  8702. done
  8703. for ac_func in pipe
  8704. do :
  8705. ac_fn_cxx_check_func "$LINENO" "pipe" "ac_cv_func_pipe"
  8706. if test "x$ac_cv_func_pipe" = xyes; then :
  8707. cat >>confdefs.h <<_ACEOF
  8708. #define HAVE_PIPE 1
  8709. _ACEOF
  8710. $as_echo "#define LOG4CPLUS_HAVE_PIPE 1" >>confdefs.h
  8711. fi
  8712. done
  8713. for ac_func in pipe2
  8714. do :
  8715. ac_fn_cxx_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2"
  8716. if test "x$ac_cv_func_pipe2" = xyes; then :
  8717. cat >>confdefs.h <<_ACEOF
  8718. #define HAVE_PIPE2 1
  8719. _ACEOF
  8720. $as_echo "#define LOG4CPLUS_HAVE_PIPE2 1" >>confdefs.h
  8721. fi
  8722. done
  8723. for ac_func in ftime
  8724. do :
  8725. ac_fn_cxx_check_func "$LINENO" "ftime" "ac_cv_func_ftime"
  8726. if test "x$ac_cv_func_ftime" = xyes; then :
  8727. cat >>confdefs.h <<_ACEOF
  8728. #define HAVE_FTIME 1
  8729. _ACEOF
  8730. $as_echo "#define LOG4CPLUS_HAVE_FTIME 1" >>confdefs.h
  8731. fi
  8732. done
  8733. for ac_func in stat
  8734. do :
  8735. ac_fn_cxx_check_func "$LINENO" "stat" "ac_cv_func_stat"
  8736. if test "x$ac_cv_func_stat" = xyes; then :
  8737. cat >>confdefs.h <<_ACEOF
  8738. #define HAVE_STAT 1
  8739. _ACEOF
  8740. $as_echo "#define LOG4CPLUS_HAVE_STAT 1" >>confdefs.h
  8741. fi
  8742. done
  8743. for ac_func in lstat
  8744. do :
  8745. ac_fn_cxx_check_func "$LINENO" "lstat" "ac_cv_func_lstat"
  8746. if test "x$ac_cv_func_lstat" = xyes; then :
  8747. cat >>confdefs.h <<_ACEOF
  8748. #define HAVE_LSTAT 1
  8749. _ACEOF
  8750. $as_echo "#define LOG4CPLUS_HAVE_LSTAT 1" >>confdefs.h
  8751. fi
  8752. done
  8753. for ac_func in fcntl
  8754. do :
  8755. ac_fn_cxx_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
  8756. if test "x$ac_cv_func_fcntl" = xyes; then :
  8757. cat >>confdefs.h <<_ACEOF
  8758. #define HAVE_FCNTL 1
  8759. _ACEOF
  8760. $as_echo "#define LOG4CPLUS_HAVE_FCNTL 1" >>confdefs.h
  8761. fi
  8762. done
  8763. for ac_func in lockf
  8764. do :
  8765. ac_fn_cxx_check_func "$LINENO" "lockf" "ac_cv_func_lockf"
  8766. if test "x$ac_cv_func_lockf" = xyes; then :
  8767. cat >>confdefs.h <<_ACEOF
  8768. #define HAVE_LOCKF 1
  8769. _ACEOF
  8770. $as_echo "#define LOG4CPLUS_HAVE_LOCKF 1" >>confdefs.h
  8771. fi
  8772. done
  8773. for ac_func in flock
  8774. do :
  8775. ac_fn_cxx_check_func "$LINENO" "flock" "ac_cv_func_flock"
  8776. if test "x$ac_cv_func_flock" = xyes; then :
  8777. cat >>confdefs.h <<_ACEOF
  8778. #define HAVE_FLOCK 1
  8779. _ACEOF
  8780. $as_echo "#define LOG4CPLUS_HAVE_FLOCK 1" >>confdefs.h
  8781. fi
  8782. done
  8783. for ac_func in htons
  8784. do :
  8785. ac_fn_cxx_check_func "$LINENO" "htons" "ac_cv_func_htons"
  8786. if test "x$ac_cv_func_htons" = xyes; then :
  8787. cat >>confdefs.h <<_ACEOF
  8788. #define HAVE_HTONS 1
  8789. _ACEOF
  8790. $as_echo "#define LOG4CPLUS_HAVE_HTONS 1" >>confdefs.h
  8791. fi
  8792. done
  8793. for ac_func in ntohs
  8794. do :
  8795. ac_fn_cxx_check_func "$LINENO" "ntohs" "ac_cv_func_ntohs"
  8796. if test "x$ac_cv_func_ntohs" = xyes; then :
  8797. cat >>confdefs.h <<_ACEOF
  8798. #define HAVE_NTOHS 1
  8799. _ACEOF
  8800. $as_echo "#define LOG4CPLUS_HAVE_NTOHS 1" >>confdefs.h
  8801. fi
  8802. done
  8803. for ac_func in htonl
  8804. do :
  8805. ac_fn_cxx_check_func "$LINENO" "htonl" "ac_cv_func_htonl"
  8806. if test "x$ac_cv_func_htonl" = xyes; then :
  8807. cat >>confdefs.h <<_ACEOF
  8808. #define HAVE_HTONL 1
  8809. _ACEOF
  8810. $as_echo "#define LOG4CPLUS_HAVE_HTONL 1" >>confdefs.h
  8811. fi
  8812. done
  8813. for ac_func in ntohl
  8814. do :
  8815. ac_fn_cxx_check_func "$LINENO" "ntohl" "ac_cv_func_ntohl"
  8816. if test "x$ac_cv_func_ntohl" = xyes; then :
  8817. cat >>confdefs.h <<_ACEOF
  8818. #define HAVE_NTOHL 1
  8819. _ACEOF
  8820. $as_echo "#define LOG4CPLUS_HAVE_NTOHL 1" >>confdefs.h
  8821. fi
  8822. done
  8823. for ac_func in shutdown
  8824. do :
  8825. ac_fn_cxx_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown"
  8826. if test "x$ac_cv_func_shutdown" = xyes; then :
  8827. cat >>confdefs.h <<_ACEOF
  8828. #define HAVE_SHUTDOWN 1
  8829. _ACEOF
  8830. $as_echo "#define LOG4CPLUS_HAVE_SHUTDOWN 1" >>confdefs.h
  8831. fi
  8832. done
  8833. for ac_func in mbstowcs
  8834. do :
  8835. ac_fn_cxx_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs"
  8836. if test "x$ac_cv_func_mbstowcs" = xyes; then :
  8837. cat >>confdefs.h <<_ACEOF
  8838. #define HAVE_MBSTOWCS 1
  8839. _ACEOF
  8840. $as_echo "#define LOG4CPLUS_HAVE_MBSTOWCS 1" >>confdefs.h
  8841. fi
  8842. done
  8843. for ac_func in wcstombs
  8844. do :
  8845. ac_fn_cxx_check_func "$LINENO" "wcstombs" "ac_cv_func_wcstombs"
  8846. if test "x$ac_cv_func_wcstombs" = xyes; then :
  8847. cat >>confdefs.h <<_ACEOF
  8848. #define HAVE_WCSTOMBS 1
  8849. _ACEOF
  8850. $as_echo "#define LOG4CPLUS_HAVE_WCSTOMBS 1" >>confdefs.h
  8851. fi
  8852. done
  8853. if test "x$with_iconv" = "xyes"; then :
  8854. for ac_func in iconv_open
  8855. do :
  8856. ac_fn_cxx_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
  8857. if test "x$ac_cv_func_iconv_open" = xyes; then :
  8858. cat >>confdefs.h <<_ACEOF
  8859. #define HAVE_ICONV_OPEN 1
  8860. _ACEOF
  8861. $as_echo "#define LOG4CPLUS_HAVE_ICONV_OPEN 1" >>confdefs.h
  8862. fi
  8863. done
  8864. for ac_func in iconv_close
  8865. do :
  8866. ac_fn_cxx_check_func "$LINENO" "iconv_close" "ac_cv_func_iconv_close"
  8867. if test "x$ac_cv_func_iconv_close" = xyes; then :
  8868. cat >>confdefs.h <<_ACEOF
  8869. #define HAVE_ICONV_CLOSE 1
  8870. _ACEOF
  8871. $as_echo "#define LOG4CPLUS_HAVE_ICONV_CLOSE 1" >>confdefs.h
  8872. fi
  8873. done
  8874. for ac_func in iconv
  8875. do :
  8876. ac_fn_cxx_check_func "$LINENO" "iconv" "ac_cv_func_iconv"
  8877. if test "x$ac_cv_func_iconv" = xyes; then :
  8878. cat >>confdefs.h <<_ACEOF
  8879. #define HAVE_ICONV 1
  8880. _ACEOF
  8881. $as_echo "#define LOG4CPLUS_HAVE_ICONV 1" >>confdefs.h
  8882. fi
  8883. done
  8884. for ac_func in libiconv_open
  8885. do :
  8886. ac_fn_cxx_check_func "$LINENO" "libiconv_open" "ac_cv_func_libiconv_open"
  8887. if test "x$ac_cv_func_libiconv_open" = xyes; then :
  8888. cat >>confdefs.h <<_ACEOF
  8889. #define HAVE_LIBICONV_OPEN 1
  8890. _ACEOF
  8891. $as_echo "#define LOG4CPLUS_HAVE_ICONV_OPEN 1" >>confdefs.h
  8892. fi
  8893. done
  8894. for ac_func in libiconv_close
  8895. do :
  8896. ac_fn_cxx_check_func "$LINENO" "libiconv_close" "ac_cv_func_libiconv_close"
  8897. if test "x$ac_cv_func_libiconv_close" = xyes; then :
  8898. cat >>confdefs.h <<_ACEOF
  8899. #define HAVE_LIBICONV_CLOSE 1
  8900. _ACEOF
  8901. $as_echo "#define LOG4CPLUS_HAVE_ICONV_CLOSE 1" >>confdefs.h
  8902. fi
  8903. done
  8904. for ac_func in libiconv
  8905. do :
  8906. ac_fn_cxx_check_func "$LINENO" "libiconv" "ac_cv_func_libiconv"
  8907. if test "x$ac_cv_func_libiconv" = xyes; then :
  8908. cat >>confdefs.h <<_ACEOF
  8909. #define HAVE_LIBICONV 1
  8910. _ACEOF
  8911. $as_echo "#define LOG4CPLUS_HAVE_ICONV 1" >>confdefs.h
  8912. fi
  8913. done
  8914. fi
  8915. for ac_func in vsnprintf
  8916. do :
  8917. ac_fn_cxx_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
  8918. if test "x$ac_cv_func_vsnprintf" = xyes; then :
  8919. cat >>confdefs.h <<_ACEOF
  8920. #define HAVE_VSNPRINTF 1
  8921. _ACEOF
  8922. $as_echo "#define LOG4CPLUS_HAVE_VSNPRINTF 1" >>confdefs.h
  8923. fi
  8924. done
  8925. for ac_func in vsnwprintf
  8926. do :
  8927. ac_fn_cxx_check_func "$LINENO" "vsnwprintf" "ac_cv_func_vsnwprintf"
  8928. if test "x$ac_cv_func_vsnwprintf" = xyes; then :
  8929. cat >>confdefs.h <<_ACEOF
  8930. #define HAVE_VSNWPRINTF 1
  8931. _ACEOF
  8932. $as_echo "#define LOG4CPLUS_HAVE_VSNWPRINTF 1" >>confdefs.h
  8933. fi
  8934. done
  8935. for ac_func in _vsnwprintf
  8936. do :
  8937. ac_fn_cxx_check_func "$LINENO" "_vsnwprintf" "ac_cv_func__vsnwprintf"
  8938. if test "x$ac_cv_func__vsnwprintf" = xyes; then :
  8939. cat >>confdefs.h <<_ACEOF
  8940. #define HAVE__VSNWPRINTF 1
  8941. _ACEOF
  8942. $as_echo "#define LOG4CPLUS_HAVE__VSNWPRINTF 1" >>confdefs.h
  8943. fi
  8944. done
  8945. for ac_func in vsprintf_s
  8946. do :
  8947. ac_fn_cxx_check_func "$LINENO" "vsprintf_s" "ac_cv_func_vsprintf_s"
  8948. if test "x$ac_cv_func_vsprintf_s" = xyes; then :
  8949. cat >>confdefs.h <<_ACEOF
  8950. #define HAVE_VSPRINTF_S 1
  8951. _ACEOF
  8952. $as_echo "#define LOG4CPLUS_HAVE_VSPRINTF_S 1" >>confdefs.h
  8953. fi
  8954. done
  8955. for ac_func in vswprintf_s
  8956. do :
  8957. ac_fn_cxx_check_func "$LINENO" "vswprintf_s" "ac_cv_func_vswprintf_s"
  8958. if test "x$ac_cv_func_vswprintf_s" = xyes; then :
  8959. cat >>confdefs.h <<_ACEOF
  8960. #define HAVE_VSWPRINTF_S 1
  8961. _ACEOF
  8962. $as_echo "#define LOG4CPLUS_HAVE_VSWPRINTF_S 1" >>confdefs.h
  8963. fi
  8964. done
  8965. for ac_func in vfprintf_s
  8966. do :
  8967. ac_fn_cxx_check_func "$LINENO" "vfprintf_s" "ac_cv_func_vfprintf_s"
  8968. if test "x$ac_cv_func_vfprintf_s" = xyes; then :
  8969. cat >>confdefs.h <<_ACEOF
  8970. #define HAVE_VFPRINTF_S 1
  8971. _ACEOF
  8972. $as_echo "#define LOG4CPLUS_HAVE_VFPRINTF_S 1" >>confdefs.h
  8973. fi
  8974. done
  8975. for ac_func in vfwprintf_s
  8976. do :
  8977. ac_fn_cxx_check_func "$LINENO" "vfwprintf_s" "ac_cv_func_vfwprintf_s"
  8978. if test "x$ac_cv_func_vfwprintf_s" = xyes; then :
  8979. cat >>confdefs.h <<_ACEOF
  8980. #define HAVE_VFWPRINTF_S 1
  8981. _ACEOF
  8982. $as_echo "#define LOG4CPLUS_HAVE_VFWPRINTF_S 1" >>confdefs.h
  8983. fi
  8984. done
  8985. for ac_func in _vsnprintf_s
  8986. do :
  8987. ac_fn_cxx_check_func "$LINENO" "_vsnprintf_s" "ac_cv_func__vsnprintf_s"
  8988. if test "x$ac_cv_func__vsnprintf_s" = xyes; then :
  8989. cat >>confdefs.h <<_ACEOF
  8990. #define HAVE__VSNPRINTF_S 1
  8991. _ACEOF
  8992. $as_echo "#define LOG4CPLUS_HAVE__VSNPRINTF_S 1" >>confdefs.h
  8993. fi
  8994. done
  8995. for ac_func in _vsnwprintf_s
  8996. do :
  8997. ac_fn_cxx_check_func "$LINENO" "_vsnwprintf_s" "ac_cv_func__vsnwprintf_s"
  8998. if test "x$ac_cv_func__vsnwprintf_s" = xyes; then :
  8999. cat >>confdefs.h <<_ACEOF
  9000. #define HAVE__VSNWPRINTF_S 1
  9001. _ACEOF
  9002. $as_echo "#define LOG4CPLUS_HAVE__VSNWPRINTF_S 1" >>confdefs.h
  9003. fi
  9004. done
  9005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ENAMETOOLONG" >&5
  9006. $as_echo_n "checking for ENAMETOOLONG... " >&6; }
  9007. if ${ax_cv_have_enametoolong+:} false; then :
  9008. $as_echo_n "(cached) " >&6
  9009. else
  9010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9011. /* end confdefs.h. */
  9012. #include <errno.h>
  9013. int
  9014. main ()
  9015. {
  9016. int value = ENAMETOOLONG;
  9017. ;
  9018. return 0;
  9019. }
  9020. _ACEOF
  9021. if ac_fn_cxx_try_compile "$LINENO"; then :
  9022. ax_cv_have_enametoolong=yes
  9023. else
  9024. ax_cv_have_enametoolong=no
  9025. fi
  9026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9027. fi
  9028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_enametoolong" >&5
  9029. $as_echo "$ax_cv_have_enametoolong" >&6; }
  9030. if test "x$ax_cv_have_enametoolong" = "xyes"; then :
  9031. $as_echo "#define LOG4CPLUS_HAVE_ENAMETOOLONG 1" >>confdefs.h
  9032. fi
  9033. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
  9034. $as_echo_n "checking for getaddrinfo... " >&6; }
  9035. if ${ax_cv_have_getaddrinfo+:} false; then :
  9036. $as_echo_n "(cached) " >&6
  9037. else
  9038. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9039. /* end confdefs.h. */
  9040. #ifdef __cplusplus
  9041. #include <cstddef>
  9042. #else
  9043. #include <stddef.h>
  9044. #endif
  9045. #include <sys/types.h>
  9046. #include <sys/socket.h>
  9047. #include <netdb.h>
  9048. int
  9049. main ()
  9050. {
  9051. getaddrinfo (NULL, NULL, NULL, NULL);
  9052. ;
  9053. return 0;
  9054. }
  9055. _ACEOF
  9056. if ac_fn_cxx_try_compile "$LINENO"; then :
  9057. ax_cv_have_getaddrinfo=yes
  9058. else
  9059. ax_cv_have_getaddrinfo=no
  9060. fi
  9061. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9062. fi
  9063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_getaddrinfo" >&5
  9064. $as_echo "$ax_cv_have_getaddrinfo" >&6; }
  9065. if test "x$ax_cv_have_getaddrinfo" = "xyes"; then :
  9066. $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
  9067. fi
  9068. if test "x$ax_cv_have_getaddrinfo" = "xyes"; then :
  9069. $as_echo "#define LOG4CPLUS_HAVE_GETADDRINFO 1" >>confdefs.h
  9070. fi
  9071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r" >&5
  9072. $as_echo_n "checking for gethostbyname_r... " >&6; }
  9073. if ${ax_cv_have_gethostbyname_r+:} false; then :
  9074. $as_echo_n "(cached) " >&6
  9075. else
  9076. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9077. /* end confdefs.h. */
  9078. #ifdef __cplusplus
  9079. #include <cstddef>
  9080. #else
  9081. #include <stddef.h>
  9082. #endif
  9083. #include <sys/types.h>
  9084. #include <sys/socket.h>
  9085. #include <netdb.h>
  9086. int
  9087. main ()
  9088. {
  9089. gethostbyname_r (NULL, NULL, NULL, 0, NULL, NULL);
  9090. ;
  9091. return 0;
  9092. }
  9093. _ACEOF
  9094. if ac_fn_cxx_try_compile "$LINENO"; then :
  9095. ax_cv_have_gethostbyname_r=yes
  9096. else
  9097. ax_cv_have_gethostbyname_r=no
  9098. fi
  9099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9100. fi
  9101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_gethostbyname_r" >&5
  9102. $as_echo "$ax_cv_have_gethostbyname_r" >&6; }
  9103. if test "x$ax_cv_have_gethostbyname_r" = "xyes"; then :
  9104. $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
  9105. fi
  9106. if test "x$ax_cv_have_gethostbyname_r" = "xyes"; then :
  9107. $as_echo "#define LOG4CPLUS_HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
  9108. fi
  9109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettid" >&5
  9110. $as_echo_n "checking for gettid... " >&6; }
  9111. if ${ax_cv_have_gettid+:} false; then :
  9112. $as_echo_n "(cached) " >&6
  9113. else
  9114. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9115. /* end confdefs.h. */
  9116. #include <sys/types.h>
  9117. #include <sys/syscall.h>
  9118. #include <unistd.h>
  9119. int
  9120. main ()
  9121. {
  9122. int rv = syscall(SYS_gettid);
  9123. ;
  9124. return 0;
  9125. }
  9126. _ACEOF
  9127. if ac_fn_cxx_try_compile "$LINENO"; then :
  9128. ax_cv_have_gettid=yes
  9129. else
  9130. ax_cv_have_gettid=no
  9131. fi
  9132. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9133. fi
  9134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_gettid" >&5
  9135. $as_echo "$ax_cv_have_gettid" >&6; }
  9136. if test "x$ax_cv_have_gettid" = "xyes"; then :
  9137. $as_echo "#define LOG4CPLUS_HAVE_GETTID 1" >>confdefs.h
  9138. fi
  9139. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  9140. if test -n "$ac_tool_prefix"; then
  9141. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  9142. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  9143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9144. $as_echo_n "checking for $ac_word... " >&6; }
  9145. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  9146. $as_echo_n "(cached) " >&6
  9147. else
  9148. case $PKG_CONFIG in
  9149. [\\/]* | ?:[\\/]*)
  9150. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  9151. ;;
  9152. *)
  9153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9154. for as_dir in $PATH
  9155. do
  9156. IFS=$as_save_IFS
  9157. test -z "$as_dir" && as_dir=.
  9158. for ac_exec_ext in '' $ac_executable_extensions; do
  9159. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9160. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9161. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9162. break 2
  9163. fi
  9164. done
  9165. done
  9166. IFS=$as_save_IFS
  9167. ;;
  9168. esac
  9169. fi
  9170. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  9171. if test -n "$PKG_CONFIG"; then
  9172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  9173. $as_echo "$PKG_CONFIG" >&6; }
  9174. else
  9175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9176. $as_echo "no" >&6; }
  9177. fi
  9178. fi
  9179. if test -z "$ac_cv_path_PKG_CONFIG"; then
  9180. ac_pt_PKG_CONFIG=$PKG_CONFIG
  9181. # Extract the first word of "pkg-config", so it can be a program name with args.
  9182. set dummy pkg-config; ac_word=$2
  9183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9184. $as_echo_n "checking for $ac_word... " >&6; }
  9185. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  9186. $as_echo_n "(cached) " >&6
  9187. else
  9188. case $ac_pt_PKG_CONFIG in
  9189. [\\/]* | ?:[\\/]*)
  9190. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  9191. ;;
  9192. *)
  9193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9194. for as_dir in $PATH
  9195. do
  9196. IFS=$as_save_IFS
  9197. test -z "$as_dir" && as_dir=.
  9198. for ac_exec_ext in '' $ac_executable_extensions; do
  9199. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9200. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  9201. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9202. break 2
  9203. fi
  9204. done
  9205. done
  9206. IFS=$as_save_IFS
  9207. ;;
  9208. esac
  9209. fi
  9210. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  9211. if test -n "$ac_pt_PKG_CONFIG"; then
  9212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  9213. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  9214. else
  9215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9216. $as_echo "no" >&6; }
  9217. fi
  9218. if test "x$ac_pt_PKG_CONFIG" = x; then
  9219. PKG_CONFIG=""
  9220. else
  9221. case $cross_compiling:$ac_tool_warned in
  9222. yes:)
  9223. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9224. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9225. ac_tool_warned=yes ;;
  9226. esac
  9227. PKG_CONFIG=$ac_pt_PKG_CONFIG
  9228. fi
  9229. else
  9230. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  9231. fi
  9232. fi
  9233. if test -n "$PKG_CONFIG"; then
  9234. _pkg_min_version=0.9.0
  9235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  9236. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  9237. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  9238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9239. $as_echo "yes" >&6; }
  9240. else
  9241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9242. $as_echo "no" >&6; }
  9243. PKG_CONFIG=""
  9244. fi
  9245. fi
  9246. # Check whether --with-qt was given.
  9247. if test "${with_qt+set}" = set; then :
  9248. withval=$with_qt; case "${withval}" in #(
  9249. yes) :
  9250. ;; #(
  9251. no) :
  9252. ;; #(
  9253. *) :
  9254. as_fn_error $? "bad value ${withval} for --with-qt" "$LINENO" 5 ;;
  9255. esac
  9256. else
  9257. with_qt=no
  9258. fi
  9259. if test "x$with_qt" = "xyes"; then :
  9260. pkg_failed=no
  9261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT" >&5
  9262. $as_echo_n "checking for QT... " >&6; }
  9263. if test -n "$QT_CFLAGS"; then
  9264. pkg_cv_QT_CFLAGS="$QT_CFLAGS"
  9265. elif test -n "$PKG_CONFIG"; then
  9266. if test -n "$PKG_CONFIG" && \
  9267. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.0.0\""; } >&5
  9268. ($PKG_CONFIG --exists --print-errors "QtCore >= 4.0.0") 2>&5
  9269. ac_status=$?
  9270. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9271. test $ac_status = 0; }; then
  9272. pkg_cv_QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore >= 4.0.0" 2>/dev/null`
  9273. test "x$?" != "x0" && pkg_failed=yes
  9274. else
  9275. pkg_failed=yes
  9276. fi
  9277. else
  9278. pkg_failed=untried
  9279. fi
  9280. if test -n "$QT_LIBS"; then
  9281. pkg_cv_QT_LIBS="$QT_LIBS"
  9282. elif test -n "$PKG_CONFIG"; then
  9283. if test -n "$PKG_CONFIG" && \
  9284. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore >= 4.0.0\""; } >&5
  9285. ($PKG_CONFIG --exists --print-errors "QtCore >= 4.0.0") 2>&5
  9286. ac_status=$?
  9287. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9288. test $ac_status = 0; }; then
  9289. pkg_cv_QT_LIBS=`$PKG_CONFIG --libs "QtCore >= 4.0.0" 2>/dev/null`
  9290. test "x$?" != "x0" && pkg_failed=yes
  9291. else
  9292. pkg_failed=yes
  9293. fi
  9294. else
  9295. pkg_failed=untried
  9296. fi
  9297. if test $pkg_failed = yes; then
  9298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9299. $as_echo "no" >&6; }
  9300. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  9301. _pkg_short_errors_supported=yes
  9302. else
  9303. _pkg_short_errors_supported=no
  9304. fi
  9305. if test $_pkg_short_errors_supported = yes; then
  9306. QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "QtCore >= 4.0.0" 2>&1`
  9307. else
  9308. QT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "QtCore >= 4.0.0" 2>&1`
  9309. fi
  9310. # Put the nasty error message in config.log where it belongs
  9311. echo "$QT_PKG_ERRORS" >&5
  9312. as_fn_error $? "Package requirements (QtCore >= 4.0.0) were not met:
  9313. $QT_PKG_ERRORS
  9314. Consider adjusting the PKG_CONFIG_PATH environment variable if you
  9315. installed software in a non-standard prefix.
  9316. Alternatively, you may set the environment variables QT_CFLAGS
  9317. and QT_LIBS to avoid the need to call pkg-config.
  9318. See the pkg-config man page for more details." "$LINENO" 5
  9319. elif test $pkg_failed = untried; then
  9320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9321. $as_echo "no" >&6; }
  9322. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9323. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9324. as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
  9325. is in your PATH or set the PKG_CONFIG environment variable to the full
  9326. path to pkg-config.
  9327. Alternatively, you may set the environment variables QT_CFLAGS
  9328. and QT_LIBS to avoid the need to call pkg-config.
  9329. See the pkg-config man page for more details.
  9330. To get pkg-config, see <http://pkg-config.freedesktop.org/>.
  9331. See \`config.log' for more details" "$LINENO" 5; }
  9332. else
  9333. QT_CFLAGS=$pkg_cv_QT_CFLAGS
  9334. QT_LIBS=$pkg_cv_QT_LIBS
  9335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9336. $as_echo "yes" >&6; }
  9337. fi
  9338. else
  9339. QT_CFLAGS=
  9340. QT_LIBS=
  9341. fi
  9342. if test "x$with_qt" = "xyes"; then
  9343. QT_TRUE=
  9344. QT_FALSE='#'
  9345. else
  9346. QT_TRUE='#'
  9347. QT_FALSE=
  9348. fi
  9349. case `pwd` in
  9350. *\ * | *\ *)
  9351. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  9352. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  9353. esac
  9354. macro_version='2.4.2'
  9355. macro_revision='1.3337'
  9356. ltmain="$ac_aux_dir/ltmain.sh"
  9357. # Backslashify metacharacters that are still active within
  9358. # double-quoted strings.
  9359. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  9360. # Same as above, but do not quote variable references.
  9361. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  9362. # Sed substitution to delay expansion of an escaped shell variable in a
  9363. # double_quote_subst'ed string.
  9364. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  9365. # Sed substitution to delay expansion of an escaped single quote.
  9366. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  9367. # Sed substitution to avoid accidental globbing in evaled expressions
  9368. no_glob_subst='s/\*/\\\*/g'
  9369. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9370. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  9371. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  9372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  9373. $as_echo_n "checking how to print strings... " >&6; }
  9374. # Test print first, because it will be a builtin if present.
  9375. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  9376. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  9377. ECHO='print -r --'
  9378. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  9379. ECHO='printf %s\n'
  9380. else
  9381. # Use this function as a fallback that always works.
  9382. func_fallback_echo ()
  9383. {
  9384. eval 'cat <<_LTECHO_EOF
  9385. $1
  9386. _LTECHO_EOF'
  9387. }
  9388. ECHO='func_fallback_echo'
  9389. fi
  9390. # func_echo_all arg...
  9391. # Invoke $ECHO with all args, space-separated.
  9392. func_echo_all ()
  9393. {
  9394. $ECHO ""
  9395. }
  9396. case "$ECHO" in
  9397. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  9398. $as_echo "printf" >&6; } ;;
  9399. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  9400. $as_echo "print -r" >&6; } ;;
  9401. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  9402. $as_echo "cat" >&6; } ;;
  9403. esac
  9404. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  9405. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  9406. if ${ac_cv_path_SED+:} false; then :
  9407. $as_echo_n "(cached) " >&6
  9408. else
  9409. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  9410. for ac_i in 1 2 3 4 5 6 7; do
  9411. ac_script="$ac_script$as_nl$ac_script"
  9412. done
  9413. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  9414. { ac_script=; unset ac_script;}
  9415. if test -z "$SED"; then
  9416. ac_path_SED_found=false
  9417. # Loop through the user's path and test for each of PROGNAME-LIST
  9418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9419. for as_dir in $PATH
  9420. do
  9421. IFS=$as_save_IFS
  9422. test -z "$as_dir" && as_dir=.
  9423. for ac_prog in sed gsed; do
  9424. for ac_exec_ext in '' $ac_executable_extensions; do
  9425. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  9426. as_fn_executable_p "$ac_path_SED" || continue
  9427. # Check for GNU ac_path_SED and select it if it is found.
  9428. # Check for GNU $ac_path_SED
  9429. case `"$ac_path_SED" --version 2>&1` in
  9430. *GNU*)
  9431. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  9432. *)
  9433. ac_count=0
  9434. $as_echo_n 0123456789 >"conftest.in"
  9435. while :
  9436. do
  9437. cat "conftest.in" "conftest.in" >"conftest.tmp"
  9438. mv "conftest.tmp" "conftest.in"
  9439. cp "conftest.in" "conftest.nl"
  9440. $as_echo '' >> "conftest.nl"
  9441. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  9442. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  9443. as_fn_arith $ac_count + 1 && ac_count=$as_val
  9444. if test $ac_count -gt ${ac_path_SED_max-0}; then
  9445. # Best one so far, save it but keep looking for a better one
  9446. ac_cv_path_SED="$ac_path_SED"
  9447. ac_path_SED_max=$ac_count
  9448. fi
  9449. # 10*(2^10) chars as input seems more than enough
  9450. test $ac_count -gt 10 && break
  9451. done
  9452. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  9453. esac
  9454. $ac_path_SED_found && break 3
  9455. done
  9456. done
  9457. done
  9458. IFS=$as_save_IFS
  9459. if test -z "$ac_cv_path_SED"; then
  9460. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  9461. fi
  9462. else
  9463. ac_cv_path_SED=$SED
  9464. fi
  9465. fi
  9466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  9467. $as_echo "$ac_cv_path_SED" >&6; }
  9468. SED="$ac_cv_path_SED"
  9469. rm -f conftest.sed
  9470. test -z "$SED" && SED=sed
  9471. Xsed="$SED -e 1s/^X//"
  9472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  9473. $as_echo_n "checking for fgrep... " >&6; }
  9474. if ${ac_cv_path_FGREP+:} false; then :
  9475. $as_echo_n "(cached) " >&6
  9476. else
  9477. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  9478. then ac_cv_path_FGREP="$GREP -F"
  9479. else
  9480. if test -z "$FGREP"; then
  9481. ac_path_FGREP_found=false
  9482. # Loop through the user's path and test for each of PROGNAME-LIST
  9483. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9484. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  9485. do
  9486. IFS=$as_save_IFS
  9487. test -z "$as_dir" && as_dir=.
  9488. for ac_prog in fgrep; do
  9489. for ac_exec_ext in '' $ac_executable_extensions; do
  9490. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  9491. as_fn_executable_p "$ac_path_FGREP" || continue
  9492. # Check for GNU ac_path_FGREP and select it if it is found.
  9493. # Check for GNU $ac_path_FGREP
  9494. case `"$ac_path_FGREP" --version 2>&1` in
  9495. *GNU*)
  9496. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  9497. *)
  9498. ac_count=0
  9499. $as_echo_n 0123456789 >"conftest.in"
  9500. while :
  9501. do
  9502. cat "conftest.in" "conftest.in" >"conftest.tmp"
  9503. mv "conftest.tmp" "conftest.in"
  9504. cp "conftest.in" "conftest.nl"
  9505. $as_echo 'FGREP' >> "conftest.nl"
  9506. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  9507. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  9508. as_fn_arith $ac_count + 1 && ac_count=$as_val
  9509. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  9510. # Best one so far, save it but keep looking for a better one
  9511. ac_cv_path_FGREP="$ac_path_FGREP"
  9512. ac_path_FGREP_max=$ac_count
  9513. fi
  9514. # 10*(2^10) chars as input seems more than enough
  9515. test $ac_count -gt 10 && break
  9516. done
  9517. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  9518. esac
  9519. $ac_path_FGREP_found && break 3
  9520. done
  9521. done
  9522. done
  9523. IFS=$as_save_IFS
  9524. if test -z "$ac_cv_path_FGREP"; then
  9525. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  9526. fi
  9527. else
  9528. ac_cv_path_FGREP=$FGREP
  9529. fi
  9530. fi
  9531. fi
  9532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  9533. $as_echo "$ac_cv_path_FGREP" >&6; }
  9534. FGREP="$ac_cv_path_FGREP"
  9535. test -z "$GREP" && GREP=grep
  9536. # Check whether --with-gnu-ld was given.
  9537. if test "${with_gnu_ld+set}" = set; then :
  9538. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  9539. else
  9540. with_gnu_ld=no
  9541. fi
  9542. ac_prog=ld
  9543. if test "$GCC" = yes; then
  9544. # Check if gcc -print-prog-name=ld gives a path.
  9545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  9546. $as_echo_n "checking for ld used by $CC... " >&6; }
  9547. case $host in
  9548. *-*-mingw*)
  9549. # gcc leaves a trailing carriage return which upsets mingw
  9550. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  9551. *)
  9552. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  9553. esac
  9554. case $ac_prog in
  9555. # Accept absolute paths.
  9556. [\\/]* | ?:[\\/]*)
  9557. re_direlt='/[^/][^/]*/\.\./'
  9558. # Canonicalize the pathname of ld
  9559. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  9560. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  9561. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  9562. done
  9563. test -z "$LD" && LD="$ac_prog"
  9564. ;;
  9565. "")
  9566. # If it fails, then pretend we aren't using GCC.
  9567. ac_prog=ld
  9568. ;;
  9569. *)
  9570. # If it is relative, then search for the first ld in PATH.
  9571. with_gnu_ld=unknown
  9572. ;;
  9573. esac
  9574. elif test "$with_gnu_ld" = yes; then
  9575. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  9576. $as_echo_n "checking for GNU ld... " >&6; }
  9577. else
  9578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  9579. $as_echo_n "checking for non-GNU ld... " >&6; }
  9580. fi
  9581. if ${lt_cv_path_LD+:} false; then :
  9582. $as_echo_n "(cached) " >&6
  9583. else
  9584. if test -z "$LD"; then
  9585. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9586. for ac_dir in $PATH; do
  9587. IFS="$lt_save_ifs"
  9588. test -z "$ac_dir" && ac_dir=.
  9589. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  9590. lt_cv_path_LD="$ac_dir/$ac_prog"
  9591. # Check to see if the program is GNU ld. I'd rather use --version,
  9592. # but apparently some variants of GNU ld only accept -v.
  9593. # Break only if it was the GNU/non-GNU ld that we prefer.
  9594. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  9595. *GNU* | *'with BFD'*)
  9596. test "$with_gnu_ld" != no && break
  9597. ;;
  9598. *)
  9599. test "$with_gnu_ld" != yes && break
  9600. ;;
  9601. esac
  9602. fi
  9603. done
  9604. IFS="$lt_save_ifs"
  9605. else
  9606. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  9607. fi
  9608. fi
  9609. LD="$lt_cv_path_LD"
  9610. if test -n "$LD"; then
  9611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  9612. $as_echo "$LD" >&6; }
  9613. else
  9614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9615. $as_echo "no" >&6; }
  9616. fi
  9617. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  9618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  9619. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  9620. if ${lt_cv_prog_gnu_ld+:} false; then :
  9621. $as_echo_n "(cached) " >&6
  9622. else
  9623. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  9624. case `$LD -v 2>&1 </dev/null` in
  9625. *GNU* | *'with BFD'*)
  9626. lt_cv_prog_gnu_ld=yes
  9627. ;;
  9628. *)
  9629. lt_cv_prog_gnu_ld=no
  9630. ;;
  9631. esac
  9632. fi
  9633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  9634. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  9635. with_gnu_ld=$lt_cv_prog_gnu_ld
  9636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  9637. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  9638. if ${lt_cv_path_NM+:} false; then :
  9639. $as_echo_n "(cached) " >&6
  9640. else
  9641. if test -n "$NM"; then
  9642. # Let the user override the test.
  9643. lt_cv_path_NM="$NM"
  9644. else
  9645. lt_nm_to_check="${ac_tool_prefix}nm"
  9646. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  9647. lt_nm_to_check="$lt_nm_to_check nm"
  9648. fi
  9649. for lt_tmp_nm in $lt_nm_to_check; do
  9650. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  9651. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  9652. IFS="$lt_save_ifs"
  9653. test -z "$ac_dir" && ac_dir=.
  9654. tmp_nm="$ac_dir/$lt_tmp_nm"
  9655. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  9656. # Check to see if the nm accepts a BSD-compat flag.
  9657. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  9658. # nm: unknown option "B" ignored
  9659. # Tru64's nm complains that /dev/null is an invalid object file
  9660. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  9661. */dev/null* | *'Invalid file or object type'*)
  9662. lt_cv_path_NM="$tmp_nm -B"
  9663. break
  9664. ;;
  9665. *)
  9666. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  9667. */dev/null*)
  9668. lt_cv_path_NM="$tmp_nm -p"
  9669. break
  9670. ;;
  9671. *)
  9672. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  9673. continue # so that we can try to find one that supports BSD flags
  9674. ;;
  9675. esac
  9676. ;;
  9677. esac
  9678. fi
  9679. done
  9680. IFS="$lt_save_ifs"
  9681. done
  9682. : ${lt_cv_path_NM=no}
  9683. fi
  9684. fi
  9685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  9686. $as_echo "$lt_cv_path_NM" >&6; }
  9687. if test "$lt_cv_path_NM" != "no"; then
  9688. NM="$lt_cv_path_NM"
  9689. else
  9690. # Didn't find any BSD compatible name lister, look for dumpbin.
  9691. if test -n "$DUMPBIN"; then :
  9692. # Let the user override the test.
  9693. else
  9694. if test -n "$ac_tool_prefix"; then
  9695. for ac_prog in dumpbin "link -dump"
  9696. do
  9697. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  9698. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  9699. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9700. $as_echo_n "checking for $ac_word... " >&6; }
  9701. if ${ac_cv_prog_DUMPBIN+:} false; then :
  9702. $as_echo_n "(cached) " >&6
  9703. else
  9704. if test -n "$DUMPBIN"; then
  9705. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  9706. else
  9707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9708. for as_dir in $PATH
  9709. do
  9710. IFS=$as_save_IFS
  9711. test -z "$as_dir" && as_dir=.
  9712. for ac_exec_ext in '' $ac_executable_extensions; do
  9713. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9714. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  9715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9716. break 2
  9717. fi
  9718. done
  9719. done
  9720. IFS=$as_save_IFS
  9721. fi
  9722. fi
  9723. DUMPBIN=$ac_cv_prog_DUMPBIN
  9724. if test -n "$DUMPBIN"; then
  9725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  9726. $as_echo "$DUMPBIN" >&6; }
  9727. else
  9728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9729. $as_echo "no" >&6; }
  9730. fi
  9731. test -n "$DUMPBIN" && break
  9732. done
  9733. fi
  9734. if test -z "$DUMPBIN"; then
  9735. ac_ct_DUMPBIN=$DUMPBIN
  9736. for ac_prog in dumpbin "link -dump"
  9737. do
  9738. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9739. set dummy $ac_prog; ac_word=$2
  9740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9741. $as_echo_n "checking for $ac_word... " >&6; }
  9742. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  9743. $as_echo_n "(cached) " >&6
  9744. else
  9745. if test -n "$ac_ct_DUMPBIN"; then
  9746. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  9747. else
  9748. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9749. for as_dir in $PATH
  9750. do
  9751. IFS=$as_save_IFS
  9752. test -z "$as_dir" && as_dir=.
  9753. for ac_exec_ext in '' $ac_executable_extensions; do
  9754. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  9755. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  9756. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9757. break 2
  9758. fi
  9759. done
  9760. done
  9761. IFS=$as_save_IFS
  9762. fi
  9763. fi
  9764. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  9765. if test -n "$ac_ct_DUMPBIN"; then
  9766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  9767. $as_echo "$ac_ct_DUMPBIN" >&6; }
  9768. else
  9769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9770. $as_echo "no" >&6; }
  9771. fi
  9772. test -n "$ac_ct_DUMPBIN" && break
  9773. done
  9774. if test "x$ac_ct_DUMPBIN" = x; then
  9775. DUMPBIN=":"
  9776. else
  9777. case $cross_compiling:$ac_tool_warned in
  9778. yes:)
  9779. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  9780. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  9781. ac_tool_warned=yes ;;
  9782. esac
  9783. DUMPBIN=$ac_ct_DUMPBIN
  9784. fi
  9785. fi
  9786. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  9787. *COFF*)
  9788. DUMPBIN="$DUMPBIN -symbols"
  9789. ;;
  9790. *)
  9791. DUMPBIN=:
  9792. ;;
  9793. esac
  9794. fi
  9795. if test "$DUMPBIN" != ":"; then
  9796. NM="$DUMPBIN"
  9797. fi
  9798. fi
  9799. test -z "$NM" && NM=nm
  9800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  9801. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  9802. if ${lt_cv_nm_interface+:} false; then :
  9803. $as_echo_n "(cached) " >&6
  9804. else
  9805. lt_cv_nm_interface="BSD nm"
  9806. echo "int some_variable = 0;" > conftest.$ac_ext
  9807. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  9808. (eval "$ac_compile" 2>conftest.err)
  9809. cat conftest.err >&5
  9810. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  9811. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  9812. cat conftest.err >&5
  9813. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  9814. cat conftest.out >&5
  9815. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  9816. lt_cv_nm_interface="MS dumpbin"
  9817. fi
  9818. rm -f conftest*
  9819. fi
  9820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  9821. $as_echo "$lt_cv_nm_interface" >&6; }
  9822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  9823. $as_echo_n "checking whether ln -s works... " >&6; }
  9824. LN_S=$as_ln_s
  9825. if test "$LN_S" = "ln -s"; then
  9826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9827. $as_echo "yes" >&6; }
  9828. else
  9829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  9830. $as_echo "no, using $LN_S" >&6; }
  9831. fi
  9832. # find the maximum length of command line arguments
  9833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  9834. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  9835. if ${lt_cv_sys_max_cmd_len+:} false; then :
  9836. $as_echo_n "(cached) " >&6
  9837. else
  9838. i=0
  9839. teststring="ABCD"
  9840. case $build_os in
  9841. msdosdjgpp*)
  9842. # On DJGPP, this test can blow up pretty badly due to problems in libc
  9843. # (any single argument exceeding 2000 bytes causes a buffer overrun
  9844. # during glob expansion). Even if it were fixed, the result of this
  9845. # check would be larger than it should be.
  9846. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  9847. ;;
  9848. gnu*)
  9849. # Under GNU Hurd, this test is not required because there is
  9850. # no limit to the length of command line arguments.
  9851. # Libtool will interpret -1 as no limit whatsoever
  9852. lt_cv_sys_max_cmd_len=-1;
  9853. ;;
  9854. cygwin* | mingw* | cegcc*)
  9855. # On Win9x/ME, this test blows up -- it succeeds, but takes
  9856. # about 5 minutes as the teststring grows exponentially.
  9857. # Worse, since 9x/ME are not pre-emptively multitasking,
  9858. # you end up with a "frozen" computer, even though with patience
  9859. # the test eventually succeeds (with a max line length of 256k).
  9860. # Instead, let's just punt: use the minimum linelength reported by
  9861. # all of the supported platforms: 8192 (on NT/2K/XP).
  9862. lt_cv_sys_max_cmd_len=8192;
  9863. ;;
  9864. mint*)
  9865. # On MiNT this can take a long time and run out of memory.
  9866. lt_cv_sys_max_cmd_len=8192;
  9867. ;;
  9868. amigaos*)
  9869. # On AmigaOS with pdksh, this test takes hours, literally.
  9870. # So we just punt and use a minimum line length of 8192.
  9871. lt_cv_sys_max_cmd_len=8192;
  9872. ;;
  9873. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  9874. # This has been around since 386BSD, at least. Likely further.
  9875. if test -x /sbin/sysctl; then
  9876. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  9877. elif test -x /usr/sbin/sysctl; then
  9878. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  9879. else
  9880. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  9881. fi
  9882. # And add a safety zone
  9883. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  9884. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  9885. ;;
  9886. interix*)
  9887. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  9888. lt_cv_sys_max_cmd_len=196608
  9889. ;;
  9890. os2*)
  9891. # The test takes a long time on OS/2.
  9892. lt_cv_sys_max_cmd_len=8192
  9893. ;;
  9894. osf*)
  9895. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  9896. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  9897. # nice to cause kernel panics so lets avoid the loop below.
  9898. # First set a reasonable default.
  9899. lt_cv_sys_max_cmd_len=16384
  9900. #
  9901. if test -x /sbin/sysconfig; then
  9902. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  9903. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  9904. esac
  9905. fi
  9906. ;;
  9907. sco3.2v5*)
  9908. lt_cv_sys_max_cmd_len=102400
  9909. ;;
  9910. sysv5* | sco5v6* | sysv4.2uw2*)
  9911. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  9912. if test -n "$kargmax"; then
  9913. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  9914. else
  9915. lt_cv_sys_max_cmd_len=32768
  9916. fi
  9917. ;;
  9918. *)
  9919. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  9920. if test -n "$lt_cv_sys_max_cmd_len"; then
  9921. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  9922. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  9923. else
  9924. # Make teststring a little bigger before we do anything with it.
  9925. # a 1K string should be a reasonable start.
  9926. for i in 1 2 3 4 5 6 7 8 ; do
  9927. teststring=$teststring$teststring
  9928. done
  9929. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  9930. # If test is not a shell built-in, we'll probably end up computing a
  9931. # maximum length that is only half of the actual maximum length, but
  9932. # we can't tell.
  9933. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  9934. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  9935. test $i != 17 # 1/2 MB should be enough
  9936. do
  9937. i=`expr $i + 1`
  9938. teststring=$teststring$teststring
  9939. done
  9940. # Only check the string length outside the loop.
  9941. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  9942. teststring=
  9943. # Add a significant safety factor because C++ compilers can tack on
  9944. # massive amounts of additional arguments before passing them to the
  9945. # linker. It appears as though 1/2 is a usable value.
  9946. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  9947. fi
  9948. ;;
  9949. esac
  9950. fi
  9951. if test -n $lt_cv_sys_max_cmd_len ; then
  9952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  9953. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  9954. else
  9955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  9956. $as_echo "none" >&6; }
  9957. fi
  9958. max_cmd_len=$lt_cv_sys_max_cmd_len
  9959. : ${CP="cp -f"}
  9960. : ${MV="mv -f"}
  9961. : ${RM="rm -f"}
  9962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  9963. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  9964. # Try some XSI features
  9965. xsi_shell=no
  9966. ( _lt_dummy="a/b/c"
  9967. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  9968. = c,a/b,b/c, \
  9969. && eval 'test $(( 1 + 1 )) -eq 2 \
  9970. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  9971. && xsi_shell=yes
  9972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  9973. $as_echo "$xsi_shell" >&6; }
  9974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  9975. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  9976. lt_shell_append=no
  9977. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  9978. >/dev/null 2>&1 \
  9979. && lt_shell_append=yes
  9980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  9981. $as_echo "$lt_shell_append" >&6; }
  9982. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9983. lt_unset=unset
  9984. else
  9985. lt_unset=false
  9986. fi
  9987. # test EBCDIC or ASCII
  9988. case `echo X|tr X '\101'` in
  9989. A) # ASCII based system
  9990. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  9991. lt_SP2NL='tr \040 \012'
  9992. lt_NL2SP='tr \015\012 \040\040'
  9993. ;;
  9994. *) # EBCDIC based system
  9995. lt_SP2NL='tr \100 \n'
  9996. lt_NL2SP='tr \r\n \100\100'
  9997. ;;
  9998. esac
  9999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  10000. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  10001. if ${lt_cv_to_host_file_cmd+:} false; then :
  10002. $as_echo_n "(cached) " >&6
  10003. else
  10004. case $host in
  10005. *-*-mingw* )
  10006. case $build in
  10007. *-*-mingw* ) # actually msys
  10008. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  10009. ;;
  10010. *-*-cygwin* )
  10011. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  10012. ;;
  10013. * ) # otherwise, assume *nix
  10014. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  10015. ;;
  10016. esac
  10017. ;;
  10018. *-*-cygwin* )
  10019. case $build in
  10020. *-*-mingw* ) # actually msys
  10021. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  10022. ;;
  10023. *-*-cygwin* )
  10024. lt_cv_to_host_file_cmd=func_convert_file_noop
  10025. ;;
  10026. * ) # otherwise, assume *nix
  10027. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  10028. ;;
  10029. esac
  10030. ;;
  10031. * ) # unhandled hosts (and "normal" native builds)
  10032. lt_cv_to_host_file_cmd=func_convert_file_noop
  10033. ;;
  10034. esac
  10035. fi
  10036. to_host_file_cmd=$lt_cv_to_host_file_cmd
  10037. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  10038. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  10039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  10040. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  10041. if ${lt_cv_to_tool_file_cmd+:} false; then :
  10042. $as_echo_n "(cached) " >&6
  10043. else
  10044. #assume ordinary cross tools, or native build.
  10045. lt_cv_to_tool_file_cmd=func_convert_file_noop
  10046. case $host in
  10047. *-*-mingw* )
  10048. case $build in
  10049. *-*-mingw* ) # actually msys
  10050. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  10051. ;;
  10052. esac
  10053. ;;
  10054. esac
  10055. fi
  10056. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  10057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  10058. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  10059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  10060. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  10061. if ${lt_cv_ld_reload_flag+:} false; then :
  10062. $as_echo_n "(cached) " >&6
  10063. else
  10064. lt_cv_ld_reload_flag='-r'
  10065. fi
  10066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  10067. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  10068. reload_flag=$lt_cv_ld_reload_flag
  10069. case $reload_flag in
  10070. "" | " "*) ;;
  10071. *) reload_flag=" $reload_flag" ;;
  10072. esac
  10073. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  10074. case $host_os in
  10075. cygwin* | mingw* | pw32* | cegcc*)
  10076. if test "$GCC" != yes; then
  10077. reload_cmds=false
  10078. fi
  10079. ;;
  10080. darwin*)
  10081. if test "$GCC" = yes; then
  10082. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  10083. else
  10084. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  10085. fi
  10086. ;;
  10087. esac
  10088. if test -n "$ac_tool_prefix"; then
  10089. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  10090. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  10091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10092. $as_echo_n "checking for $ac_word... " >&6; }
  10093. if ${ac_cv_prog_OBJDUMP+:} false; then :
  10094. $as_echo_n "(cached) " >&6
  10095. else
  10096. if test -n "$OBJDUMP"; then
  10097. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  10098. else
  10099. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10100. for as_dir in $PATH
  10101. do
  10102. IFS=$as_save_IFS
  10103. test -z "$as_dir" && as_dir=.
  10104. for ac_exec_ext in '' $ac_executable_extensions; do
  10105. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10106. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  10107. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10108. break 2
  10109. fi
  10110. done
  10111. done
  10112. IFS=$as_save_IFS
  10113. fi
  10114. fi
  10115. OBJDUMP=$ac_cv_prog_OBJDUMP
  10116. if test -n "$OBJDUMP"; then
  10117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  10118. $as_echo "$OBJDUMP" >&6; }
  10119. else
  10120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10121. $as_echo "no" >&6; }
  10122. fi
  10123. fi
  10124. if test -z "$ac_cv_prog_OBJDUMP"; then
  10125. ac_ct_OBJDUMP=$OBJDUMP
  10126. # Extract the first word of "objdump", so it can be a program name with args.
  10127. set dummy objdump; ac_word=$2
  10128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10129. $as_echo_n "checking for $ac_word... " >&6; }
  10130. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  10131. $as_echo_n "(cached) " >&6
  10132. else
  10133. if test -n "$ac_ct_OBJDUMP"; then
  10134. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  10135. else
  10136. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10137. for as_dir in $PATH
  10138. do
  10139. IFS=$as_save_IFS
  10140. test -z "$as_dir" && as_dir=.
  10141. for ac_exec_ext in '' $ac_executable_extensions; do
  10142. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10143. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  10144. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10145. break 2
  10146. fi
  10147. done
  10148. done
  10149. IFS=$as_save_IFS
  10150. fi
  10151. fi
  10152. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  10153. if test -n "$ac_ct_OBJDUMP"; then
  10154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  10155. $as_echo "$ac_ct_OBJDUMP" >&6; }
  10156. else
  10157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10158. $as_echo "no" >&6; }
  10159. fi
  10160. if test "x$ac_ct_OBJDUMP" = x; then
  10161. OBJDUMP="false"
  10162. else
  10163. case $cross_compiling:$ac_tool_warned in
  10164. yes:)
  10165. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10166. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10167. ac_tool_warned=yes ;;
  10168. esac
  10169. OBJDUMP=$ac_ct_OBJDUMP
  10170. fi
  10171. else
  10172. OBJDUMP="$ac_cv_prog_OBJDUMP"
  10173. fi
  10174. test -z "$OBJDUMP" && OBJDUMP=objdump
  10175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  10176. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  10177. if ${lt_cv_deplibs_check_method+:} false; then :
  10178. $as_echo_n "(cached) " >&6
  10179. else
  10180. lt_cv_file_magic_cmd='$MAGIC_CMD'
  10181. lt_cv_file_magic_test_file=
  10182. lt_cv_deplibs_check_method='unknown'
  10183. # Need to set the preceding variable on all platforms that support
  10184. # interlibrary dependencies.
  10185. # 'none' -- dependencies not supported.
  10186. # `unknown' -- same as none, but documents that we really don't know.
  10187. # 'pass_all' -- all dependencies passed with no checks.
  10188. # 'test_compile' -- check by making test program.
  10189. # 'file_magic [[regex]]' -- check by looking for files in library path
  10190. # which responds to the $file_magic_cmd with a given extended regex.
  10191. # If you have `file' or equivalent on your system and you're not sure
  10192. # whether `pass_all' will *always* work, you probably want this one.
  10193. case $host_os in
  10194. aix[4-9]*)
  10195. lt_cv_deplibs_check_method=pass_all
  10196. ;;
  10197. beos*)
  10198. lt_cv_deplibs_check_method=pass_all
  10199. ;;
  10200. bsdi[45]*)
  10201. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  10202. lt_cv_file_magic_cmd='/usr/bin/file -L'
  10203. lt_cv_file_magic_test_file=/shlib/libc.so
  10204. ;;
  10205. cygwin*)
  10206. # func_win32_libid is a shell function defined in ltmain.sh
  10207. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  10208. lt_cv_file_magic_cmd='func_win32_libid'
  10209. ;;
  10210. mingw* | pw32*)
  10211. # Base MSYS/MinGW do not provide the 'file' command needed by
  10212. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  10213. # unless we find 'file', for example because we are cross-compiling.
  10214. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  10215. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  10216. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  10217. lt_cv_file_magic_cmd='func_win32_libid'
  10218. else
  10219. # Keep this pattern in sync with the one in func_win32_libid.
  10220. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  10221. lt_cv_file_magic_cmd='$OBJDUMP -f'
  10222. fi
  10223. ;;
  10224. cegcc*)
  10225. # use the weaker test based on 'objdump'. See mingw*.
  10226. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  10227. lt_cv_file_magic_cmd='$OBJDUMP -f'
  10228. ;;
  10229. darwin* | rhapsody*)
  10230. lt_cv_deplibs_check_method=pass_all
  10231. ;;
  10232. freebsd* | dragonfly*)
  10233. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  10234. case $host_cpu in
  10235. i*86 )
  10236. # Not sure whether the presence of OpenBSD here was a mistake.
  10237. # Let's accept both of them until this is cleared up.
  10238. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  10239. lt_cv_file_magic_cmd=/usr/bin/file
  10240. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  10241. ;;
  10242. esac
  10243. else
  10244. lt_cv_deplibs_check_method=pass_all
  10245. fi
  10246. ;;
  10247. gnu*)
  10248. lt_cv_deplibs_check_method=pass_all
  10249. ;;
  10250. haiku*)
  10251. lt_cv_deplibs_check_method=pass_all
  10252. ;;
  10253. hpux10.20* | hpux11*)
  10254. lt_cv_file_magic_cmd=/usr/bin/file
  10255. case $host_cpu in
  10256. ia64*)
  10257. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  10258. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  10259. ;;
  10260. hppa*64*)
  10261. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  10262. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  10263. ;;
  10264. *)
  10265. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  10266. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  10267. ;;
  10268. esac
  10269. ;;
  10270. interix[3-9]*)
  10271. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  10272. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  10273. ;;
  10274. irix5* | irix6* | nonstopux*)
  10275. case $LD in
  10276. *-32|*"-32 ") libmagic=32-bit;;
  10277. *-n32|*"-n32 ") libmagic=N32;;
  10278. *-64|*"-64 ") libmagic=64-bit;;
  10279. *) libmagic=never-match;;
  10280. esac
  10281. lt_cv_deplibs_check_method=pass_all
  10282. ;;
  10283. # This must be glibc/ELF.
  10284. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  10285. lt_cv_deplibs_check_method=pass_all
  10286. ;;
  10287. netbsd*)
  10288. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  10289. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  10290. else
  10291. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  10292. fi
  10293. ;;
  10294. newos6*)
  10295. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  10296. lt_cv_file_magic_cmd=/usr/bin/file
  10297. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  10298. ;;
  10299. *nto* | *qnx*)
  10300. lt_cv_deplibs_check_method=pass_all
  10301. ;;
  10302. openbsd*)
  10303. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10304. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  10305. else
  10306. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  10307. fi
  10308. ;;
  10309. osf3* | osf4* | osf5*)
  10310. lt_cv_deplibs_check_method=pass_all
  10311. ;;
  10312. rdos*)
  10313. lt_cv_deplibs_check_method=pass_all
  10314. ;;
  10315. solaris*)
  10316. lt_cv_deplibs_check_method=pass_all
  10317. ;;
  10318. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10319. lt_cv_deplibs_check_method=pass_all
  10320. ;;
  10321. sysv4 | sysv4.3*)
  10322. case $host_vendor in
  10323. motorola)
  10324. 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]'
  10325. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  10326. ;;
  10327. ncr)
  10328. lt_cv_deplibs_check_method=pass_all
  10329. ;;
  10330. sequent)
  10331. lt_cv_file_magic_cmd='/bin/file'
  10332. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  10333. ;;
  10334. sni)
  10335. lt_cv_file_magic_cmd='/bin/file'
  10336. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  10337. lt_cv_file_magic_test_file=/lib/libc.so
  10338. ;;
  10339. siemens)
  10340. lt_cv_deplibs_check_method=pass_all
  10341. ;;
  10342. pc)
  10343. lt_cv_deplibs_check_method=pass_all
  10344. ;;
  10345. esac
  10346. ;;
  10347. tpf*)
  10348. lt_cv_deplibs_check_method=pass_all
  10349. ;;
  10350. esac
  10351. fi
  10352. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  10353. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  10354. file_magic_glob=
  10355. want_nocaseglob=no
  10356. if test "$build" = "$host"; then
  10357. case $host_os in
  10358. mingw* | pw32*)
  10359. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  10360. want_nocaseglob=yes
  10361. else
  10362. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  10363. fi
  10364. ;;
  10365. esac
  10366. fi
  10367. file_magic_cmd=$lt_cv_file_magic_cmd
  10368. deplibs_check_method=$lt_cv_deplibs_check_method
  10369. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  10370. if test -n "$ac_tool_prefix"; then
  10371. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  10372. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  10373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10374. $as_echo_n "checking for $ac_word... " >&6; }
  10375. if ${ac_cv_prog_DLLTOOL+:} false; then :
  10376. $as_echo_n "(cached) " >&6
  10377. else
  10378. if test -n "$DLLTOOL"; then
  10379. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  10380. else
  10381. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10382. for as_dir in $PATH
  10383. do
  10384. IFS=$as_save_IFS
  10385. test -z "$as_dir" && as_dir=.
  10386. for ac_exec_ext in '' $ac_executable_extensions; do
  10387. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10388. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  10389. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10390. break 2
  10391. fi
  10392. done
  10393. done
  10394. IFS=$as_save_IFS
  10395. fi
  10396. fi
  10397. DLLTOOL=$ac_cv_prog_DLLTOOL
  10398. if test -n "$DLLTOOL"; then
  10399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  10400. $as_echo "$DLLTOOL" >&6; }
  10401. else
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10403. $as_echo "no" >&6; }
  10404. fi
  10405. fi
  10406. if test -z "$ac_cv_prog_DLLTOOL"; then
  10407. ac_ct_DLLTOOL=$DLLTOOL
  10408. # Extract the first word of "dlltool", so it can be a program name with args.
  10409. set dummy dlltool; ac_word=$2
  10410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10411. $as_echo_n "checking for $ac_word... " >&6; }
  10412. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  10413. $as_echo_n "(cached) " >&6
  10414. else
  10415. if test -n "$ac_ct_DLLTOOL"; then
  10416. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  10417. else
  10418. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10419. for as_dir in $PATH
  10420. do
  10421. IFS=$as_save_IFS
  10422. test -z "$as_dir" && as_dir=.
  10423. for ac_exec_ext in '' $ac_executable_extensions; do
  10424. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10425. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  10426. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10427. break 2
  10428. fi
  10429. done
  10430. done
  10431. IFS=$as_save_IFS
  10432. fi
  10433. fi
  10434. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  10435. if test -n "$ac_ct_DLLTOOL"; then
  10436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  10437. $as_echo "$ac_ct_DLLTOOL" >&6; }
  10438. else
  10439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10440. $as_echo "no" >&6; }
  10441. fi
  10442. if test "x$ac_ct_DLLTOOL" = x; then
  10443. DLLTOOL="false"
  10444. else
  10445. case $cross_compiling:$ac_tool_warned in
  10446. yes:)
  10447. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10448. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10449. ac_tool_warned=yes ;;
  10450. esac
  10451. DLLTOOL=$ac_ct_DLLTOOL
  10452. fi
  10453. else
  10454. DLLTOOL="$ac_cv_prog_DLLTOOL"
  10455. fi
  10456. test -z "$DLLTOOL" && DLLTOOL=dlltool
  10457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  10458. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  10459. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  10460. $as_echo_n "(cached) " >&6
  10461. else
  10462. lt_cv_sharedlib_from_linklib_cmd='unknown'
  10463. case $host_os in
  10464. cygwin* | mingw* | pw32* | cegcc*)
  10465. # two different shell functions defined in ltmain.sh
  10466. # decide which to use based on capabilities of $DLLTOOL
  10467. case `$DLLTOOL --help 2>&1` in
  10468. *--identify-strict*)
  10469. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  10470. ;;
  10471. *)
  10472. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  10473. ;;
  10474. esac
  10475. ;;
  10476. *)
  10477. # fallback: assume linklib IS sharedlib
  10478. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  10479. ;;
  10480. esac
  10481. fi
  10482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  10483. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  10484. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  10485. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  10486. if test -n "$ac_tool_prefix"; then
  10487. for ac_prog in ar
  10488. do
  10489. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  10490. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  10491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10492. $as_echo_n "checking for $ac_word... " >&6; }
  10493. if ${ac_cv_prog_AR+:} false; then :
  10494. $as_echo_n "(cached) " >&6
  10495. else
  10496. if test -n "$AR"; then
  10497. ac_cv_prog_AR="$AR" # Let the user override the test.
  10498. else
  10499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10500. for as_dir in $PATH
  10501. do
  10502. IFS=$as_save_IFS
  10503. test -z "$as_dir" && as_dir=.
  10504. for ac_exec_ext in '' $ac_executable_extensions; do
  10505. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10506. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  10507. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10508. break 2
  10509. fi
  10510. done
  10511. done
  10512. IFS=$as_save_IFS
  10513. fi
  10514. fi
  10515. AR=$ac_cv_prog_AR
  10516. if test -n "$AR"; then
  10517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  10518. $as_echo "$AR" >&6; }
  10519. else
  10520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10521. $as_echo "no" >&6; }
  10522. fi
  10523. test -n "$AR" && break
  10524. done
  10525. fi
  10526. if test -z "$AR"; then
  10527. ac_ct_AR=$AR
  10528. for ac_prog in ar
  10529. do
  10530. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10531. set dummy $ac_prog; ac_word=$2
  10532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10533. $as_echo_n "checking for $ac_word... " >&6; }
  10534. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  10535. $as_echo_n "(cached) " >&6
  10536. else
  10537. if test -n "$ac_ct_AR"; then
  10538. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  10539. else
  10540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10541. for as_dir in $PATH
  10542. do
  10543. IFS=$as_save_IFS
  10544. test -z "$as_dir" && as_dir=.
  10545. for ac_exec_ext in '' $ac_executable_extensions; do
  10546. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10547. ac_cv_prog_ac_ct_AR="$ac_prog"
  10548. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10549. break 2
  10550. fi
  10551. done
  10552. done
  10553. IFS=$as_save_IFS
  10554. fi
  10555. fi
  10556. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  10557. if test -n "$ac_ct_AR"; then
  10558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  10559. $as_echo "$ac_ct_AR" >&6; }
  10560. else
  10561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10562. $as_echo "no" >&6; }
  10563. fi
  10564. test -n "$ac_ct_AR" && break
  10565. done
  10566. if test "x$ac_ct_AR" = x; then
  10567. AR="false"
  10568. else
  10569. case $cross_compiling:$ac_tool_warned in
  10570. yes:)
  10571. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10572. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10573. ac_tool_warned=yes ;;
  10574. esac
  10575. AR=$ac_ct_AR
  10576. fi
  10577. fi
  10578. : ${AR=ar}
  10579. : ${AR_FLAGS=cru}
  10580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  10581. $as_echo_n "checking for archiver @FILE support... " >&6; }
  10582. if ${lt_cv_ar_at_file+:} false; then :
  10583. $as_echo_n "(cached) " >&6
  10584. else
  10585. lt_cv_ar_at_file=no
  10586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10587. /* end confdefs.h. */
  10588. int
  10589. main ()
  10590. {
  10591. ;
  10592. return 0;
  10593. }
  10594. _ACEOF
  10595. if ac_fn_cxx_try_compile "$LINENO"; then :
  10596. echo conftest.$ac_objext > conftest.lst
  10597. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  10598. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  10599. (eval $lt_ar_try) 2>&5
  10600. ac_status=$?
  10601. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10602. test $ac_status = 0; }
  10603. if test "$ac_status" -eq 0; then
  10604. # Ensure the archiver fails upon bogus file names.
  10605. rm -f conftest.$ac_objext libconftest.a
  10606. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  10607. (eval $lt_ar_try) 2>&5
  10608. ac_status=$?
  10609. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10610. test $ac_status = 0; }
  10611. if test "$ac_status" -ne 0; then
  10612. lt_cv_ar_at_file=@
  10613. fi
  10614. fi
  10615. rm -f conftest.* libconftest.a
  10616. fi
  10617. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10618. fi
  10619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  10620. $as_echo "$lt_cv_ar_at_file" >&6; }
  10621. if test "x$lt_cv_ar_at_file" = xno; then
  10622. archiver_list_spec=
  10623. else
  10624. archiver_list_spec=$lt_cv_ar_at_file
  10625. fi
  10626. if test -n "$ac_tool_prefix"; then
  10627. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  10628. set dummy ${ac_tool_prefix}strip; ac_word=$2
  10629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10630. $as_echo_n "checking for $ac_word... " >&6; }
  10631. if ${ac_cv_prog_STRIP+:} false; then :
  10632. $as_echo_n "(cached) " >&6
  10633. else
  10634. if test -n "$STRIP"; then
  10635. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  10636. else
  10637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10638. for as_dir in $PATH
  10639. do
  10640. IFS=$as_save_IFS
  10641. test -z "$as_dir" && as_dir=.
  10642. for ac_exec_ext in '' $ac_executable_extensions; do
  10643. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10644. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  10645. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10646. break 2
  10647. fi
  10648. done
  10649. done
  10650. IFS=$as_save_IFS
  10651. fi
  10652. fi
  10653. STRIP=$ac_cv_prog_STRIP
  10654. if test -n "$STRIP"; then
  10655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  10656. $as_echo "$STRIP" >&6; }
  10657. else
  10658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10659. $as_echo "no" >&6; }
  10660. fi
  10661. fi
  10662. if test -z "$ac_cv_prog_STRIP"; then
  10663. ac_ct_STRIP=$STRIP
  10664. # Extract the first word of "strip", so it can be a program name with args.
  10665. set dummy strip; ac_word=$2
  10666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10667. $as_echo_n "checking for $ac_word... " >&6; }
  10668. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  10669. $as_echo_n "(cached) " >&6
  10670. else
  10671. if test -n "$ac_ct_STRIP"; then
  10672. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  10673. else
  10674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10675. for as_dir in $PATH
  10676. do
  10677. IFS=$as_save_IFS
  10678. test -z "$as_dir" && as_dir=.
  10679. for ac_exec_ext in '' $ac_executable_extensions; do
  10680. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10681. ac_cv_prog_ac_ct_STRIP="strip"
  10682. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10683. break 2
  10684. fi
  10685. done
  10686. done
  10687. IFS=$as_save_IFS
  10688. fi
  10689. fi
  10690. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  10691. if test -n "$ac_ct_STRIP"; then
  10692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  10693. $as_echo "$ac_ct_STRIP" >&6; }
  10694. else
  10695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10696. $as_echo "no" >&6; }
  10697. fi
  10698. if test "x$ac_ct_STRIP" = x; then
  10699. STRIP=":"
  10700. else
  10701. case $cross_compiling:$ac_tool_warned in
  10702. yes:)
  10703. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10704. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10705. ac_tool_warned=yes ;;
  10706. esac
  10707. STRIP=$ac_ct_STRIP
  10708. fi
  10709. else
  10710. STRIP="$ac_cv_prog_STRIP"
  10711. fi
  10712. test -z "$STRIP" && STRIP=:
  10713. if test -n "$ac_tool_prefix"; then
  10714. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  10715. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  10716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10717. $as_echo_n "checking for $ac_word... " >&6; }
  10718. if ${ac_cv_prog_RANLIB+:} false; then :
  10719. $as_echo_n "(cached) " >&6
  10720. else
  10721. if test -n "$RANLIB"; then
  10722. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  10723. else
  10724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10725. for as_dir in $PATH
  10726. do
  10727. IFS=$as_save_IFS
  10728. test -z "$as_dir" && as_dir=.
  10729. for ac_exec_ext in '' $ac_executable_extensions; do
  10730. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10731. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  10732. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10733. break 2
  10734. fi
  10735. done
  10736. done
  10737. IFS=$as_save_IFS
  10738. fi
  10739. fi
  10740. RANLIB=$ac_cv_prog_RANLIB
  10741. if test -n "$RANLIB"; then
  10742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  10743. $as_echo "$RANLIB" >&6; }
  10744. else
  10745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10746. $as_echo "no" >&6; }
  10747. fi
  10748. fi
  10749. if test -z "$ac_cv_prog_RANLIB"; then
  10750. ac_ct_RANLIB=$RANLIB
  10751. # Extract the first word of "ranlib", so it can be a program name with args.
  10752. set dummy ranlib; ac_word=$2
  10753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10754. $as_echo_n "checking for $ac_word... " >&6; }
  10755. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  10756. $as_echo_n "(cached) " >&6
  10757. else
  10758. if test -n "$ac_ct_RANLIB"; then
  10759. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  10760. else
  10761. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10762. for as_dir in $PATH
  10763. do
  10764. IFS=$as_save_IFS
  10765. test -z "$as_dir" && as_dir=.
  10766. for ac_exec_ext in '' $ac_executable_extensions; do
  10767. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10768. ac_cv_prog_ac_ct_RANLIB="ranlib"
  10769. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10770. break 2
  10771. fi
  10772. done
  10773. done
  10774. IFS=$as_save_IFS
  10775. fi
  10776. fi
  10777. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  10778. if test -n "$ac_ct_RANLIB"; then
  10779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  10780. $as_echo "$ac_ct_RANLIB" >&6; }
  10781. else
  10782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10783. $as_echo "no" >&6; }
  10784. fi
  10785. if test "x$ac_ct_RANLIB" = x; then
  10786. RANLIB=":"
  10787. else
  10788. case $cross_compiling:$ac_tool_warned in
  10789. yes:)
  10790. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10791. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10792. ac_tool_warned=yes ;;
  10793. esac
  10794. RANLIB=$ac_ct_RANLIB
  10795. fi
  10796. else
  10797. RANLIB="$ac_cv_prog_RANLIB"
  10798. fi
  10799. test -z "$RANLIB" && RANLIB=:
  10800. # Determine commands to create old-style static archives.
  10801. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  10802. old_postinstall_cmds='chmod 644 $oldlib'
  10803. old_postuninstall_cmds=
  10804. if test -n "$RANLIB"; then
  10805. case $host_os in
  10806. openbsd*)
  10807. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  10808. ;;
  10809. *)
  10810. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  10811. ;;
  10812. esac
  10813. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  10814. fi
  10815. case $host_os in
  10816. darwin*)
  10817. lock_old_archive_extraction=yes ;;
  10818. *)
  10819. lock_old_archive_extraction=no ;;
  10820. esac
  10821. # If no C compiler was specified, use CC.
  10822. LTCC=${LTCC-"$CC"}
  10823. # If no C compiler flags were specified, use CFLAGS.
  10824. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10825. # Allow CC to be a program name with arguments.
  10826. compiler=$CC
  10827. # Check for command to grab the raw symbol name followed by C symbol from nm.
  10828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  10829. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  10830. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  10831. $as_echo_n "(cached) " >&6
  10832. else
  10833. # These are sane defaults that work on at least a few old systems.
  10834. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  10835. # Character class describing NM global symbol codes.
  10836. symcode='[BCDEGRST]'
  10837. # Regexp to match symbols that can be accessed directly from C.
  10838. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  10839. # Define system-specific variables.
  10840. case $host_os in
  10841. aix*)
  10842. symcode='[BCDT]'
  10843. ;;
  10844. cygwin* | mingw* | pw32* | cegcc*)
  10845. symcode='[ABCDGISTW]'
  10846. ;;
  10847. hpux*)
  10848. if test "$host_cpu" = ia64; then
  10849. symcode='[ABCDEGRST]'
  10850. fi
  10851. ;;
  10852. irix* | nonstopux*)
  10853. symcode='[BCDEGRST]'
  10854. ;;
  10855. osf*)
  10856. symcode='[BCDEGQRST]'
  10857. ;;
  10858. solaris*)
  10859. symcode='[BDRT]'
  10860. ;;
  10861. sco3.2v5*)
  10862. symcode='[DT]'
  10863. ;;
  10864. sysv4.2uw2*)
  10865. symcode='[DT]'
  10866. ;;
  10867. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  10868. symcode='[ABDT]'
  10869. ;;
  10870. sysv4)
  10871. symcode='[DFNSTU]'
  10872. ;;
  10873. esac
  10874. # If we're using GNU nm, then use its standard symbol codes.
  10875. case `$NM -V 2>&1` in
  10876. *GNU* | *'with BFD'*)
  10877. symcode='[ABCDGIRSTW]' ;;
  10878. esac
  10879. # Transform an extracted symbol line into a proper C declaration.
  10880. # Some systems (esp. on ia64) link data and code symbols differently,
  10881. # so use this general approach.
  10882. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  10883. # Transform an extracted symbol line into symbol name and symbol address
  10884. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  10885. 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'"
  10886. # Handle CRLF in mingw tool chain
  10887. opt_cr=
  10888. case $build_os in
  10889. mingw*)
  10890. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  10891. ;;
  10892. esac
  10893. # Try without a prefix underscore, then with it.
  10894. for ac_symprfx in "" "_"; do
  10895. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  10896. symxfrm="\\1 $ac_symprfx\\2 \\2"
  10897. # Write the raw and C identifiers.
  10898. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  10899. # Fake it for dumpbin and say T for any non-static function
  10900. # and D for any global variable.
  10901. # Also find C++ and __fastcall symbols from MSVC++,
  10902. # which start with @ or ?.
  10903. lt_cv_sys_global_symbol_pipe="$AWK '"\
  10904. " {last_section=section; section=\$ 3};"\
  10905. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  10906. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  10907. " \$ 0!~/External *\|/{next};"\
  10908. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  10909. " {if(hide[section]) next};"\
  10910. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  10911. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  10912. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  10913. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  10914. " ' prfx=^$ac_symprfx"
  10915. else
  10916. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  10917. fi
  10918. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  10919. # Check to see that the pipe works correctly.
  10920. pipe_works=no
  10921. rm -f conftest*
  10922. cat > conftest.$ac_ext <<_LT_EOF
  10923. #ifdef __cplusplus
  10924. extern "C" {
  10925. #endif
  10926. char nm_test_var;
  10927. void nm_test_func(void);
  10928. void nm_test_func(void){}
  10929. #ifdef __cplusplus
  10930. }
  10931. #endif
  10932. int main(){nm_test_var='a';nm_test_func();return(0);}
  10933. _LT_EOF
  10934. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  10935. (eval $ac_compile) 2>&5
  10936. ac_status=$?
  10937. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10938. test $ac_status = 0; }; then
  10939. # Now try to grab the symbols.
  10940. nlist=conftest.nm
  10941. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  10942. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  10943. ac_status=$?
  10944. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10945. test $ac_status = 0; } && test -s "$nlist"; then
  10946. # Try sorting and uniquifying the output.
  10947. if sort "$nlist" | uniq > "$nlist"T; then
  10948. mv -f "$nlist"T "$nlist"
  10949. else
  10950. rm -f "$nlist"T
  10951. fi
  10952. # Make sure that we snagged all the symbols we need.
  10953. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  10954. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  10955. cat <<_LT_EOF > conftest.$ac_ext
  10956. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  10957. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  10958. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  10959. relocations are performed -- see ld's documentation on pseudo-relocs. */
  10960. # define LT_DLSYM_CONST
  10961. #elif defined(__osf__)
  10962. /* This system does not cope well with relocations in const data. */
  10963. # define LT_DLSYM_CONST
  10964. #else
  10965. # define LT_DLSYM_CONST const
  10966. #endif
  10967. #ifdef __cplusplus
  10968. extern "C" {
  10969. #endif
  10970. _LT_EOF
  10971. # Now generate the symbol file.
  10972. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  10973. cat <<_LT_EOF >> conftest.$ac_ext
  10974. /* The mapping between symbol names and symbols. */
  10975. LT_DLSYM_CONST struct {
  10976. const char *name;
  10977. void *address;
  10978. }
  10979. lt__PROGRAM__LTX_preloaded_symbols[] =
  10980. {
  10981. { "@PROGRAM@", (void *) 0 },
  10982. _LT_EOF
  10983. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  10984. cat <<\_LT_EOF >> conftest.$ac_ext
  10985. {0, (void *) 0}
  10986. };
  10987. /* This works around a problem in FreeBSD linker */
  10988. #ifdef FREEBSD_WORKAROUND
  10989. static const void *lt_preloaded_setup() {
  10990. return lt__PROGRAM__LTX_preloaded_symbols;
  10991. }
  10992. #endif
  10993. #ifdef __cplusplus
  10994. }
  10995. #endif
  10996. _LT_EOF
  10997. # Now try linking the two files.
  10998. mv conftest.$ac_objext conftstm.$ac_objext
  10999. lt_globsym_save_LIBS=$LIBS
  11000. lt_globsym_save_CFLAGS=$CFLAGS
  11001. LIBS="conftstm.$ac_objext"
  11002. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  11003. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  11004. (eval $ac_link) 2>&5
  11005. ac_status=$?
  11006. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11007. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  11008. pipe_works=yes
  11009. fi
  11010. LIBS=$lt_globsym_save_LIBS
  11011. CFLAGS=$lt_globsym_save_CFLAGS
  11012. else
  11013. echo "cannot find nm_test_func in $nlist" >&5
  11014. fi
  11015. else
  11016. echo "cannot find nm_test_var in $nlist" >&5
  11017. fi
  11018. else
  11019. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  11020. fi
  11021. else
  11022. echo "$progname: failed program was:" >&5
  11023. cat conftest.$ac_ext >&5
  11024. fi
  11025. rm -rf conftest* conftst*
  11026. # Do not use the global_symbol_pipe unless it works.
  11027. if test "$pipe_works" = yes; then
  11028. break
  11029. else
  11030. lt_cv_sys_global_symbol_pipe=
  11031. fi
  11032. done
  11033. fi
  11034. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  11035. lt_cv_sys_global_symbol_to_cdecl=
  11036. fi
  11037. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  11038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  11039. $as_echo "failed" >&6; }
  11040. else
  11041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  11042. $as_echo "ok" >&6; }
  11043. fi
  11044. # Response file support.
  11045. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  11046. nm_file_list_spec='@'
  11047. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  11048. nm_file_list_spec='@'
  11049. fi
  11050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  11051. $as_echo_n "checking for sysroot... " >&6; }
  11052. # Check whether --with-sysroot was given.
  11053. if test "${with_sysroot+set}" = set; then :
  11054. withval=$with_sysroot;
  11055. else
  11056. with_sysroot=no
  11057. fi
  11058. lt_sysroot=
  11059. case ${with_sysroot} in #(
  11060. yes)
  11061. if test "$GCC" = yes; then
  11062. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  11063. fi
  11064. ;; #(
  11065. /*)
  11066. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  11067. ;; #(
  11068. no|'')
  11069. ;; #(
  11070. *)
  11071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  11072. $as_echo "${with_sysroot}" >&6; }
  11073. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  11074. ;;
  11075. esac
  11076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  11077. $as_echo "${lt_sysroot:-no}" >&6; }
  11078. # Check whether --enable-libtool-lock was given.
  11079. if test "${enable_libtool_lock+set}" = set; then :
  11080. enableval=$enable_libtool_lock;
  11081. fi
  11082. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  11083. # Some flags need to be propagated to the compiler or linker for good
  11084. # libtool support.
  11085. case $host in
  11086. ia64-*-hpux*)
  11087. # Find out which ABI we are using.
  11088. echo 'int i;' > conftest.$ac_ext
  11089. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11090. (eval $ac_compile) 2>&5
  11091. ac_status=$?
  11092. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11093. test $ac_status = 0; }; then
  11094. case `/usr/bin/file conftest.$ac_objext` in
  11095. *ELF-32*)
  11096. HPUX_IA64_MODE="32"
  11097. ;;
  11098. *ELF-64*)
  11099. HPUX_IA64_MODE="64"
  11100. ;;
  11101. esac
  11102. fi
  11103. rm -rf conftest*
  11104. ;;
  11105. *-*-irix6*)
  11106. # Find out which ABI we are using.
  11107. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  11108. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11109. (eval $ac_compile) 2>&5
  11110. ac_status=$?
  11111. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11112. test $ac_status = 0; }; then
  11113. if test "$lt_cv_prog_gnu_ld" = yes; then
  11114. case `/usr/bin/file conftest.$ac_objext` in
  11115. *32-bit*)
  11116. LD="${LD-ld} -melf32bsmip"
  11117. ;;
  11118. *N32*)
  11119. LD="${LD-ld} -melf32bmipn32"
  11120. ;;
  11121. *64-bit*)
  11122. LD="${LD-ld} -melf64bmip"
  11123. ;;
  11124. esac
  11125. else
  11126. case `/usr/bin/file conftest.$ac_objext` in
  11127. *32-bit*)
  11128. LD="${LD-ld} -32"
  11129. ;;
  11130. *N32*)
  11131. LD="${LD-ld} -n32"
  11132. ;;
  11133. *64-bit*)
  11134. LD="${LD-ld} -64"
  11135. ;;
  11136. esac
  11137. fi
  11138. fi
  11139. rm -rf conftest*
  11140. ;;
  11141. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  11142. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  11143. # Find out which ABI we are using.
  11144. echo 'int i;' > conftest.$ac_ext
  11145. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11146. (eval $ac_compile) 2>&5
  11147. ac_status=$?
  11148. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11149. test $ac_status = 0; }; then
  11150. case `/usr/bin/file conftest.o` in
  11151. *32-bit*)
  11152. case $host in
  11153. x86_64-*kfreebsd*-gnu)
  11154. LD="${LD-ld} -m elf_i386_fbsd"
  11155. ;;
  11156. x86_64-*linux*)
  11157. LD="${LD-ld} -m elf_i386"
  11158. ;;
  11159. ppc64-*linux*|powerpc64-*linux*)
  11160. LD="${LD-ld} -m elf32ppclinux"
  11161. ;;
  11162. s390x-*linux*)
  11163. LD="${LD-ld} -m elf_s390"
  11164. ;;
  11165. sparc64-*linux*)
  11166. LD="${LD-ld} -m elf32_sparc"
  11167. ;;
  11168. esac
  11169. ;;
  11170. *64-bit*)
  11171. case $host in
  11172. x86_64-*kfreebsd*-gnu)
  11173. LD="${LD-ld} -m elf_x86_64_fbsd"
  11174. ;;
  11175. x86_64-*linux*)
  11176. LD="${LD-ld} -m elf_x86_64"
  11177. ;;
  11178. ppc*-*linux*|powerpc*-*linux*)
  11179. LD="${LD-ld} -m elf64ppc"
  11180. ;;
  11181. s390*-*linux*|s390*-*tpf*)
  11182. LD="${LD-ld} -m elf64_s390"
  11183. ;;
  11184. sparc*-*linux*)
  11185. LD="${LD-ld} -m elf64_sparc"
  11186. ;;
  11187. esac
  11188. ;;
  11189. esac
  11190. fi
  11191. rm -rf conftest*
  11192. ;;
  11193. *-*-sco3.2v5*)
  11194. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  11195. SAVE_CFLAGS="$CFLAGS"
  11196. CFLAGS="$CFLAGS -belf"
  11197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  11198. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  11199. if ${lt_cv_cc_needs_belf+:} false; then :
  11200. $as_echo_n "(cached) " >&6
  11201. else
  11202. ac_ext=c
  11203. ac_cpp='$CPP $CPPFLAGS'
  11204. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11205. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11206. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11207. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11208. /* end confdefs.h. */
  11209. int
  11210. main ()
  11211. {
  11212. ;
  11213. return 0;
  11214. }
  11215. _ACEOF
  11216. if ac_fn_c_try_link "$LINENO"; then :
  11217. lt_cv_cc_needs_belf=yes
  11218. else
  11219. lt_cv_cc_needs_belf=no
  11220. fi
  11221. rm -f core conftest.err conftest.$ac_objext \
  11222. conftest$ac_exeext conftest.$ac_ext
  11223. ac_ext=c
  11224. ac_cpp='$CPP $CPPFLAGS'
  11225. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11226. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11227. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11228. fi
  11229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  11230. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  11231. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  11232. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  11233. CFLAGS="$SAVE_CFLAGS"
  11234. fi
  11235. ;;
  11236. *-*solaris*)
  11237. # Find out which ABI we are using.
  11238. echo 'int i;' > conftest.$ac_ext
  11239. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11240. (eval $ac_compile) 2>&5
  11241. ac_status=$?
  11242. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11243. test $ac_status = 0; }; then
  11244. case `/usr/bin/file conftest.o` in
  11245. *64-bit*)
  11246. case $lt_cv_prog_gnu_ld in
  11247. yes*)
  11248. case $host in
  11249. i?86-*-solaris*)
  11250. LD="${LD-ld} -m elf_x86_64"
  11251. ;;
  11252. sparc*-*-solaris*)
  11253. LD="${LD-ld} -m elf64_sparc"
  11254. ;;
  11255. esac
  11256. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  11257. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  11258. LD="${LD-ld}_sol2"
  11259. fi
  11260. ;;
  11261. *)
  11262. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  11263. LD="${LD-ld} -64"
  11264. fi
  11265. ;;
  11266. esac
  11267. ;;
  11268. esac
  11269. fi
  11270. rm -rf conftest*
  11271. ;;
  11272. esac
  11273. need_locks="$enable_libtool_lock"
  11274. if test -n "$ac_tool_prefix"; then
  11275. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  11276. set dummy ${ac_tool_prefix}mt; ac_word=$2
  11277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11278. $as_echo_n "checking for $ac_word... " >&6; }
  11279. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  11280. $as_echo_n "(cached) " >&6
  11281. else
  11282. if test -n "$MANIFEST_TOOL"; then
  11283. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  11284. else
  11285. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11286. for as_dir in $PATH
  11287. do
  11288. IFS=$as_save_IFS
  11289. test -z "$as_dir" && as_dir=.
  11290. for ac_exec_ext in '' $ac_executable_extensions; do
  11291. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11292. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  11293. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11294. break 2
  11295. fi
  11296. done
  11297. done
  11298. IFS=$as_save_IFS
  11299. fi
  11300. fi
  11301. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  11302. if test -n "$MANIFEST_TOOL"; then
  11303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  11304. $as_echo "$MANIFEST_TOOL" >&6; }
  11305. else
  11306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11307. $as_echo "no" >&6; }
  11308. fi
  11309. fi
  11310. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  11311. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  11312. # Extract the first word of "mt", so it can be a program name with args.
  11313. set dummy mt; ac_word=$2
  11314. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11315. $as_echo_n "checking for $ac_word... " >&6; }
  11316. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  11317. $as_echo_n "(cached) " >&6
  11318. else
  11319. if test -n "$ac_ct_MANIFEST_TOOL"; then
  11320. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  11321. else
  11322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11323. for as_dir in $PATH
  11324. do
  11325. IFS=$as_save_IFS
  11326. test -z "$as_dir" && as_dir=.
  11327. for ac_exec_ext in '' $ac_executable_extensions; do
  11328. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11329. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  11330. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11331. break 2
  11332. fi
  11333. done
  11334. done
  11335. IFS=$as_save_IFS
  11336. fi
  11337. fi
  11338. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  11339. if test -n "$ac_ct_MANIFEST_TOOL"; then
  11340. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  11341. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  11342. else
  11343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11344. $as_echo "no" >&6; }
  11345. fi
  11346. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  11347. MANIFEST_TOOL=":"
  11348. else
  11349. case $cross_compiling:$ac_tool_warned in
  11350. yes:)
  11351. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11352. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11353. ac_tool_warned=yes ;;
  11354. esac
  11355. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  11356. fi
  11357. else
  11358. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  11359. fi
  11360. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  11361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  11362. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  11363. if ${lt_cv_path_mainfest_tool+:} false; then :
  11364. $as_echo_n "(cached) " >&6
  11365. else
  11366. lt_cv_path_mainfest_tool=no
  11367. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  11368. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  11369. cat conftest.err >&5
  11370. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  11371. lt_cv_path_mainfest_tool=yes
  11372. fi
  11373. rm -f conftest*
  11374. fi
  11375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  11376. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  11377. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  11378. MANIFEST_TOOL=:
  11379. fi
  11380. case $host_os in
  11381. rhapsody* | darwin*)
  11382. if test -n "$ac_tool_prefix"; then
  11383. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  11384. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  11385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11386. $as_echo_n "checking for $ac_word... " >&6; }
  11387. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  11388. $as_echo_n "(cached) " >&6
  11389. else
  11390. if test -n "$DSYMUTIL"; then
  11391. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  11392. else
  11393. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11394. for as_dir in $PATH
  11395. do
  11396. IFS=$as_save_IFS
  11397. test -z "$as_dir" && as_dir=.
  11398. for ac_exec_ext in '' $ac_executable_extensions; do
  11399. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11400. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  11401. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11402. break 2
  11403. fi
  11404. done
  11405. done
  11406. IFS=$as_save_IFS
  11407. fi
  11408. fi
  11409. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  11410. if test -n "$DSYMUTIL"; then
  11411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  11412. $as_echo "$DSYMUTIL" >&6; }
  11413. else
  11414. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11415. $as_echo "no" >&6; }
  11416. fi
  11417. fi
  11418. if test -z "$ac_cv_prog_DSYMUTIL"; then
  11419. ac_ct_DSYMUTIL=$DSYMUTIL
  11420. # Extract the first word of "dsymutil", so it can be a program name with args.
  11421. set dummy dsymutil; ac_word=$2
  11422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11423. $as_echo_n "checking for $ac_word... " >&6; }
  11424. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  11425. $as_echo_n "(cached) " >&6
  11426. else
  11427. if test -n "$ac_ct_DSYMUTIL"; then
  11428. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  11429. else
  11430. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11431. for as_dir in $PATH
  11432. do
  11433. IFS=$as_save_IFS
  11434. test -z "$as_dir" && as_dir=.
  11435. for ac_exec_ext in '' $ac_executable_extensions; do
  11436. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11437. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  11438. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11439. break 2
  11440. fi
  11441. done
  11442. done
  11443. IFS=$as_save_IFS
  11444. fi
  11445. fi
  11446. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  11447. if test -n "$ac_ct_DSYMUTIL"; then
  11448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  11449. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  11450. else
  11451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11452. $as_echo "no" >&6; }
  11453. fi
  11454. if test "x$ac_ct_DSYMUTIL" = x; then
  11455. DSYMUTIL=":"
  11456. else
  11457. case $cross_compiling:$ac_tool_warned in
  11458. yes:)
  11459. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11460. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11461. ac_tool_warned=yes ;;
  11462. esac
  11463. DSYMUTIL=$ac_ct_DSYMUTIL
  11464. fi
  11465. else
  11466. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  11467. fi
  11468. if test -n "$ac_tool_prefix"; then
  11469. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  11470. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  11471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11472. $as_echo_n "checking for $ac_word... " >&6; }
  11473. if ${ac_cv_prog_NMEDIT+:} false; then :
  11474. $as_echo_n "(cached) " >&6
  11475. else
  11476. if test -n "$NMEDIT"; then
  11477. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  11478. else
  11479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11480. for as_dir in $PATH
  11481. do
  11482. IFS=$as_save_IFS
  11483. test -z "$as_dir" && as_dir=.
  11484. for ac_exec_ext in '' $ac_executable_extensions; do
  11485. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11486. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  11487. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11488. break 2
  11489. fi
  11490. done
  11491. done
  11492. IFS=$as_save_IFS
  11493. fi
  11494. fi
  11495. NMEDIT=$ac_cv_prog_NMEDIT
  11496. if test -n "$NMEDIT"; then
  11497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  11498. $as_echo "$NMEDIT" >&6; }
  11499. else
  11500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11501. $as_echo "no" >&6; }
  11502. fi
  11503. fi
  11504. if test -z "$ac_cv_prog_NMEDIT"; then
  11505. ac_ct_NMEDIT=$NMEDIT
  11506. # Extract the first word of "nmedit", so it can be a program name with args.
  11507. set dummy nmedit; ac_word=$2
  11508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11509. $as_echo_n "checking for $ac_word... " >&6; }
  11510. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  11511. $as_echo_n "(cached) " >&6
  11512. else
  11513. if test -n "$ac_ct_NMEDIT"; then
  11514. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  11515. else
  11516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11517. for as_dir in $PATH
  11518. do
  11519. IFS=$as_save_IFS
  11520. test -z "$as_dir" && as_dir=.
  11521. for ac_exec_ext in '' $ac_executable_extensions; do
  11522. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11523. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  11524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11525. break 2
  11526. fi
  11527. done
  11528. done
  11529. IFS=$as_save_IFS
  11530. fi
  11531. fi
  11532. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  11533. if test -n "$ac_ct_NMEDIT"; then
  11534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  11535. $as_echo "$ac_ct_NMEDIT" >&6; }
  11536. else
  11537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11538. $as_echo "no" >&6; }
  11539. fi
  11540. if test "x$ac_ct_NMEDIT" = x; then
  11541. NMEDIT=":"
  11542. else
  11543. case $cross_compiling:$ac_tool_warned in
  11544. yes:)
  11545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11546. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11547. ac_tool_warned=yes ;;
  11548. esac
  11549. NMEDIT=$ac_ct_NMEDIT
  11550. fi
  11551. else
  11552. NMEDIT="$ac_cv_prog_NMEDIT"
  11553. fi
  11554. if test -n "$ac_tool_prefix"; then
  11555. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  11556. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  11557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11558. $as_echo_n "checking for $ac_word... " >&6; }
  11559. if ${ac_cv_prog_LIPO+:} false; then :
  11560. $as_echo_n "(cached) " >&6
  11561. else
  11562. if test -n "$LIPO"; then
  11563. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  11564. else
  11565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11566. for as_dir in $PATH
  11567. do
  11568. IFS=$as_save_IFS
  11569. test -z "$as_dir" && as_dir=.
  11570. for ac_exec_ext in '' $ac_executable_extensions; do
  11571. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11572. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  11573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11574. break 2
  11575. fi
  11576. done
  11577. done
  11578. IFS=$as_save_IFS
  11579. fi
  11580. fi
  11581. LIPO=$ac_cv_prog_LIPO
  11582. if test -n "$LIPO"; then
  11583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  11584. $as_echo "$LIPO" >&6; }
  11585. else
  11586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11587. $as_echo "no" >&6; }
  11588. fi
  11589. fi
  11590. if test -z "$ac_cv_prog_LIPO"; then
  11591. ac_ct_LIPO=$LIPO
  11592. # Extract the first word of "lipo", so it can be a program name with args.
  11593. set dummy lipo; ac_word=$2
  11594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11595. $as_echo_n "checking for $ac_word... " >&6; }
  11596. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  11597. $as_echo_n "(cached) " >&6
  11598. else
  11599. if test -n "$ac_ct_LIPO"; then
  11600. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  11601. else
  11602. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11603. for as_dir in $PATH
  11604. do
  11605. IFS=$as_save_IFS
  11606. test -z "$as_dir" && as_dir=.
  11607. for ac_exec_ext in '' $ac_executable_extensions; do
  11608. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11609. ac_cv_prog_ac_ct_LIPO="lipo"
  11610. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11611. break 2
  11612. fi
  11613. done
  11614. done
  11615. IFS=$as_save_IFS
  11616. fi
  11617. fi
  11618. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  11619. if test -n "$ac_ct_LIPO"; then
  11620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  11621. $as_echo "$ac_ct_LIPO" >&6; }
  11622. else
  11623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11624. $as_echo "no" >&6; }
  11625. fi
  11626. if test "x$ac_ct_LIPO" = x; then
  11627. LIPO=":"
  11628. else
  11629. case $cross_compiling:$ac_tool_warned in
  11630. yes:)
  11631. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11632. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11633. ac_tool_warned=yes ;;
  11634. esac
  11635. LIPO=$ac_ct_LIPO
  11636. fi
  11637. else
  11638. LIPO="$ac_cv_prog_LIPO"
  11639. fi
  11640. if test -n "$ac_tool_prefix"; then
  11641. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  11642. set dummy ${ac_tool_prefix}otool; ac_word=$2
  11643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11644. $as_echo_n "checking for $ac_word... " >&6; }
  11645. if ${ac_cv_prog_OTOOL+:} false; then :
  11646. $as_echo_n "(cached) " >&6
  11647. else
  11648. if test -n "$OTOOL"; then
  11649. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  11650. else
  11651. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11652. for as_dir in $PATH
  11653. do
  11654. IFS=$as_save_IFS
  11655. test -z "$as_dir" && as_dir=.
  11656. for ac_exec_ext in '' $ac_executable_extensions; do
  11657. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11658. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  11659. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11660. break 2
  11661. fi
  11662. done
  11663. done
  11664. IFS=$as_save_IFS
  11665. fi
  11666. fi
  11667. OTOOL=$ac_cv_prog_OTOOL
  11668. if test -n "$OTOOL"; then
  11669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  11670. $as_echo "$OTOOL" >&6; }
  11671. else
  11672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11673. $as_echo "no" >&6; }
  11674. fi
  11675. fi
  11676. if test -z "$ac_cv_prog_OTOOL"; then
  11677. ac_ct_OTOOL=$OTOOL
  11678. # Extract the first word of "otool", so it can be a program name with args.
  11679. set dummy otool; ac_word=$2
  11680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11681. $as_echo_n "checking for $ac_word... " >&6; }
  11682. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  11683. $as_echo_n "(cached) " >&6
  11684. else
  11685. if test -n "$ac_ct_OTOOL"; then
  11686. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  11687. else
  11688. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11689. for as_dir in $PATH
  11690. do
  11691. IFS=$as_save_IFS
  11692. test -z "$as_dir" && as_dir=.
  11693. for ac_exec_ext in '' $ac_executable_extensions; do
  11694. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11695. ac_cv_prog_ac_ct_OTOOL="otool"
  11696. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11697. break 2
  11698. fi
  11699. done
  11700. done
  11701. IFS=$as_save_IFS
  11702. fi
  11703. fi
  11704. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  11705. if test -n "$ac_ct_OTOOL"; then
  11706. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  11707. $as_echo "$ac_ct_OTOOL" >&6; }
  11708. else
  11709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11710. $as_echo "no" >&6; }
  11711. fi
  11712. if test "x$ac_ct_OTOOL" = x; then
  11713. OTOOL=":"
  11714. else
  11715. case $cross_compiling:$ac_tool_warned in
  11716. yes:)
  11717. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11718. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11719. ac_tool_warned=yes ;;
  11720. esac
  11721. OTOOL=$ac_ct_OTOOL
  11722. fi
  11723. else
  11724. OTOOL="$ac_cv_prog_OTOOL"
  11725. fi
  11726. if test -n "$ac_tool_prefix"; then
  11727. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  11728. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  11729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11730. $as_echo_n "checking for $ac_word... " >&6; }
  11731. if ${ac_cv_prog_OTOOL64+:} false; then :
  11732. $as_echo_n "(cached) " >&6
  11733. else
  11734. if test -n "$OTOOL64"; then
  11735. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  11736. else
  11737. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11738. for as_dir in $PATH
  11739. do
  11740. IFS=$as_save_IFS
  11741. test -z "$as_dir" && as_dir=.
  11742. for ac_exec_ext in '' $ac_executable_extensions; do
  11743. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11744. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  11745. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11746. break 2
  11747. fi
  11748. done
  11749. done
  11750. IFS=$as_save_IFS
  11751. fi
  11752. fi
  11753. OTOOL64=$ac_cv_prog_OTOOL64
  11754. if test -n "$OTOOL64"; then
  11755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  11756. $as_echo "$OTOOL64" >&6; }
  11757. else
  11758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11759. $as_echo "no" >&6; }
  11760. fi
  11761. fi
  11762. if test -z "$ac_cv_prog_OTOOL64"; then
  11763. ac_ct_OTOOL64=$OTOOL64
  11764. # Extract the first word of "otool64", so it can be a program name with args.
  11765. set dummy otool64; ac_word=$2
  11766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11767. $as_echo_n "checking for $ac_word... " >&6; }
  11768. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  11769. $as_echo_n "(cached) " >&6
  11770. else
  11771. if test -n "$ac_ct_OTOOL64"; then
  11772. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  11773. else
  11774. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11775. for as_dir in $PATH
  11776. do
  11777. IFS=$as_save_IFS
  11778. test -z "$as_dir" && as_dir=.
  11779. for ac_exec_ext in '' $ac_executable_extensions; do
  11780. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11781. ac_cv_prog_ac_ct_OTOOL64="otool64"
  11782. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11783. break 2
  11784. fi
  11785. done
  11786. done
  11787. IFS=$as_save_IFS
  11788. fi
  11789. fi
  11790. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  11791. if test -n "$ac_ct_OTOOL64"; then
  11792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  11793. $as_echo "$ac_ct_OTOOL64" >&6; }
  11794. else
  11795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11796. $as_echo "no" >&6; }
  11797. fi
  11798. if test "x$ac_ct_OTOOL64" = x; then
  11799. OTOOL64=":"
  11800. else
  11801. case $cross_compiling:$ac_tool_warned in
  11802. yes:)
  11803. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  11804. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  11805. ac_tool_warned=yes ;;
  11806. esac
  11807. OTOOL64=$ac_ct_OTOOL64
  11808. fi
  11809. else
  11810. OTOOL64="$ac_cv_prog_OTOOL64"
  11811. fi
  11812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  11813. $as_echo_n "checking for -single_module linker flag... " >&6; }
  11814. if ${lt_cv_apple_cc_single_mod+:} false; then :
  11815. $as_echo_n "(cached) " >&6
  11816. else
  11817. lt_cv_apple_cc_single_mod=no
  11818. if test -z "${LT_MULTI_MODULE}"; then
  11819. # By default we will add the -single_module flag. You can override
  11820. # by either setting the environment variable LT_MULTI_MODULE
  11821. # non-empty at configure time, or by adding -multi_module to the
  11822. # link flags.
  11823. rm -rf libconftest.dylib*
  11824. echo "int foo(void){return 1;}" > conftest.c
  11825. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  11826. -dynamiclib -Wl,-single_module conftest.c" >&5
  11827. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  11828. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  11829. _lt_result=$?
  11830. # If there is a non-empty error log, and "single_module"
  11831. # appears in it, assume the flag caused a linker warning
  11832. if test -s conftest.err && $GREP single_module conftest.err; then
  11833. cat conftest.err >&5
  11834. # Otherwise, if the output was created with a 0 exit code from
  11835. # the compiler, it worked.
  11836. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  11837. lt_cv_apple_cc_single_mod=yes
  11838. else
  11839. cat conftest.err >&5
  11840. fi
  11841. rm -rf libconftest.dylib*
  11842. rm -f conftest.*
  11843. fi
  11844. fi
  11845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  11846. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  11847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  11848. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  11849. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  11850. $as_echo_n "(cached) " >&6
  11851. else
  11852. lt_cv_ld_exported_symbols_list=no
  11853. save_LDFLAGS=$LDFLAGS
  11854. echo "_main" > conftest.sym
  11855. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  11856. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11857. /* end confdefs.h. */
  11858. int
  11859. main ()
  11860. {
  11861. ;
  11862. return 0;
  11863. }
  11864. _ACEOF
  11865. if ac_fn_c_try_link "$LINENO"; then :
  11866. lt_cv_ld_exported_symbols_list=yes
  11867. else
  11868. lt_cv_ld_exported_symbols_list=no
  11869. fi
  11870. rm -f core conftest.err conftest.$ac_objext \
  11871. conftest$ac_exeext conftest.$ac_ext
  11872. LDFLAGS="$save_LDFLAGS"
  11873. fi
  11874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  11875. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  11876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  11877. $as_echo_n "checking for -force_load linker flag... " >&6; }
  11878. if ${lt_cv_ld_force_load+:} false; then :
  11879. $as_echo_n "(cached) " >&6
  11880. else
  11881. lt_cv_ld_force_load=no
  11882. cat > conftest.c << _LT_EOF
  11883. int forced_loaded() { return 2;}
  11884. _LT_EOF
  11885. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  11886. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  11887. echo "$AR cru libconftest.a conftest.o" >&5
  11888. $AR cru libconftest.a conftest.o 2>&5
  11889. echo "$RANLIB libconftest.a" >&5
  11890. $RANLIB libconftest.a 2>&5
  11891. cat > conftest.c << _LT_EOF
  11892. int main() { return 0;}
  11893. _LT_EOF
  11894. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  11895. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  11896. _lt_result=$?
  11897. if test -s conftest.err && $GREP force_load conftest.err; then
  11898. cat conftest.err >&5
  11899. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  11900. lt_cv_ld_force_load=yes
  11901. else
  11902. cat conftest.err >&5
  11903. fi
  11904. rm -f conftest.err libconftest.a conftest conftest.c
  11905. rm -rf conftest.dSYM
  11906. fi
  11907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  11908. $as_echo "$lt_cv_ld_force_load" >&6; }
  11909. case $host_os in
  11910. rhapsody* | darwin1.[012])
  11911. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  11912. darwin1.*)
  11913. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  11914. darwin*) # darwin 5.x on
  11915. # if running on 10.5 or later, the deployment target defaults
  11916. # to the OS version, if on x86, and 10.4, the deployment
  11917. # target defaults to 10.4. Don't you love it?
  11918. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  11919. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  11920. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  11921. 10.[012]*)
  11922. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  11923. 10.*)
  11924. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  11925. esac
  11926. ;;
  11927. esac
  11928. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  11929. _lt_dar_single_mod='$single_module'
  11930. fi
  11931. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  11932. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  11933. else
  11934. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  11935. fi
  11936. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  11937. _lt_dsymutil='~$DSYMUTIL $lib || :'
  11938. else
  11939. _lt_dsymutil=
  11940. fi
  11941. ;;
  11942. esac
  11943. for ac_header in dlfcn.h
  11944. do :
  11945. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  11946. "
  11947. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  11948. cat >>confdefs.h <<_ACEOF
  11949. #define HAVE_DLFCN_H 1
  11950. _ACEOF
  11951. fi
  11952. done
  11953. func_stripname_cnf ()
  11954. {
  11955. case ${2} in
  11956. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  11957. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  11958. esac
  11959. } # func_stripname_cnf
  11960. # Set options
  11961. enable_win32_dll=yes
  11962. case $host in
  11963. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  11964. if test -n "$ac_tool_prefix"; then
  11965. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  11966. set dummy ${ac_tool_prefix}as; ac_word=$2
  11967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11968. $as_echo_n "checking for $ac_word... " >&6; }
  11969. if ${ac_cv_prog_AS+:} false; then :
  11970. $as_echo_n "(cached) " >&6
  11971. else
  11972. if test -n "$AS"; then
  11973. ac_cv_prog_AS="$AS" # Let the user override the test.
  11974. else
  11975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11976. for as_dir in $PATH
  11977. do
  11978. IFS=$as_save_IFS
  11979. test -z "$as_dir" && as_dir=.
  11980. for ac_exec_ext in '' $ac_executable_extensions; do
  11981. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11982. ac_cv_prog_AS="${ac_tool_prefix}as"
  11983. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11984. break 2
  11985. fi
  11986. done
  11987. done
  11988. IFS=$as_save_IFS
  11989. fi
  11990. fi
  11991. AS=$ac_cv_prog_AS
  11992. if test -n "$AS"; then
  11993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  11994. $as_echo "$AS" >&6; }
  11995. else
  11996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11997. $as_echo "no" >&6; }
  11998. fi
  11999. fi
  12000. if test -z "$ac_cv_prog_AS"; then
  12001. ac_ct_AS=$AS
  12002. # Extract the first word of "as", so it can be a program name with args.
  12003. set dummy as; ac_word=$2
  12004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12005. $as_echo_n "checking for $ac_word... " >&6; }
  12006. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  12007. $as_echo_n "(cached) " >&6
  12008. else
  12009. if test -n "$ac_ct_AS"; then
  12010. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  12011. else
  12012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12013. for as_dir in $PATH
  12014. do
  12015. IFS=$as_save_IFS
  12016. test -z "$as_dir" && as_dir=.
  12017. for ac_exec_ext in '' $ac_executable_extensions; do
  12018. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12019. ac_cv_prog_ac_ct_AS="as"
  12020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12021. break 2
  12022. fi
  12023. done
  12024. done
  12025. IFS=$as_save_IFS
  12026. fi
  12027. fi
  12028. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  12029. if test -n "$ac_ct_AS"; then
  12030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  12031. $as_echo "$ac_ct_AS" >&6; }
  12032. else
  12033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12034. $as_echo "no" >&6; }
  12035. fi
  12036. if test "x$ac_ct_AS" = x; then
  12037. AS="false"
  12038. else
  12039. case $cross_compiling:$ac_tool_warned in
  12040. yes:)
  12041. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12042. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12043. ac_tool_warned=yes ;;
  12044. esac
  12045. AS=$ac_ct_AS
  12046. fi
  12047. else
  12048. AS="$ac_cv_prog_AS"
  12049. fi
  12050. if test -n "$ac_tool_prefix"; then
  12051. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  12052. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  12053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12054. $as_echo_n "checking for $ac_word... " >&6; }
  12055. if ${ac_cv_prog_DLLTOOL+:} false; then :
  12056. $as_echo_n "(cached) " >&6
  12057. else
  12058. if test -n "$DLLTOOL"; then
  12059. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  12060. else
  12061. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12062. for as_dir in $PATH
  12063. do
  12064. IFS=$as_save_IFS
  12065. test -z "$as_dir" && as_dir=.
  12066. for ac_exec_ext in '' $ac_executable_extensions; do
  12067. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12068. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  12069. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12070. break 2
  12071. fi
  12072. done
  12073. done
  12074. IFS=$as_save_IFS
  12075. fi
  12076. fi
  12077. DLLTOOL=$ac_cv_prog_DLLTOOL
  12078. if test -n "$DLLTOOL"; then
  12079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  12080. $as_echo "$DLLTOOL" >&6; }
  12081. else
  12082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12083. $as_echo "no" >&6; }
  12084. fi
  12085. fi
  12086. if test -z "$ac_cv_prog_DLLTOOL"; then
  12087. ac_ct_DLLTOOL=$DLLTOOL
  12088. # Extract the first word of "dlltool", so it can be a program name with args.
  12089. set dummy dlltool; ac_word=$2
  12090. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12091. $as_echo_n "checking for $ac_word... " >&6; }
  12092. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  12093. $as_echo_n "(cached) " >&6
  12094. else
  12095. if test -n "$ac_ct_DLLTOOL"; then
  12096. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  12097. else
  12098. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12099. for as_dir in $PATH
  12100. do
  12101. IFS=$as_save_IFS
  12102. test -z "$as_dir" && as_dir=.
  12103. for ac_exec_ext in '' $ac_executable_extensions; do
  12104. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12105. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  12106. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12107. break 2
  12108. fi
  12109. done
  12110. done
  12111. IFS=$as_save_IFS
  12112. fi
  12113. fi
  12114. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  12115. if test -n "$ac_ct_DLLTOOL"; then
  12116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  12117. $as_echo "$ac_ct_DLLTOOL" >&6; }
  12118. else
  12119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12120. $as_echo "no" >&6; }
  12121. fi
  12122. if test "x$ac_ct_DLLTOOL" = x; then
  12123. DLLTOOL="false"
  12124. else
  12125. case $cross_compiling:$ac_tool_warned in
  12126. yes:)
  12127. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12128. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12129. ac_tool_warned=yes ;;
  12130. esac
  12131. DLLTOOL=$ac_ct_DLLTOOL
  12132. fi
  12133. else
  12134. DLLTOOL="$ac_cv_prog_DLLTOOL"
  12135. fi
  12136. if test -n "$ac_tool_prefix"; then
  12137. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  12138. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  12139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12140. $as_echo_n "checking for $ac_word... " >&6; }
  12141. if ${ac_cv_prog_OBJDUMP+:} false; then :
  12142. $as_echo_n "(cached) " >&6
  12143. else
  12144. if test -n "$OBJDUMP"; then
  12145. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  12146. else
  12147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12148. for as_dir in $PATH
  12149. do
  12150. IFS=$as_save_IFS
  12151. test -z "$as_dir" && as_dir=.
  12152. for ac_exec_ext in '' $ac_executable_extensions; do
  12153. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12154. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  12155. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12156. break 2
  12157. fi
  12158. done
  12159. done
  12160. IFS=$as_save_IFS
  12161. fi
  12162. fi
  12163. OBJDUMP=$ac_cv_prog_OBJDUMP
  12164. if test -n "$OBJDUMP"; then
  12165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  12166. $as_echo "$OBJDUMP" >&6; }
  12167. else
  12168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12169. $as_echo "no" >&6; }
  12170. fi
  12171. fi
  12172. if test -z "$ac_cv_prog_OBJDUMP"; then
  12173. ac_ct_OBJDUMP=$OBJDUMP
  12174. # Extract the first word of "objdump", so it can be a program name with args.
  12175. set dummy objdump; ac_word=$2
  12176. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12177. $as_echo_n "checking for $ac_word... " >&6; }
  12178. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  12179. $as_echo_n "(cached) " >&6
  12180. else
  12181. if test -n "$ac_ct_OBJDUMP"; then
  12182. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  12183. else
  12184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12185. for as_dir in $PATH
  12186. do
  12187. IFS=$as_save_IFS
  12188. test -z "$as_dir" && as_dir=.
  12189. for ac_exec_ext in '' $ac_executable_extensions; do
  12190. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12191. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  12192. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12193. break 2
  12194. fi
  12195. done
  12196. done
  12197. IFS=$as_save_IFS
  12198. fi
  12199. fi
  12200. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  12201. if test -n "$ac_ct_OBJDUMP"; then
  12202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  12203. $as_echo "$ac_ct_OBJDUMP" >&6; }
  12204. else
  12205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12206. $as_echo "no" >&6; }
  12207. fi
  12208. if test "x$ac_ct_OBJDUMP" = x; then
  12209. OBJDUMP="false"
  12210. else
  12211. case $cross_compiling:$ac_tool_warned in
  12212. yes:)
  12213. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  12214. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  12215. ac_tool_warned=yes ;;
  12216. esac
  12217. OBJDUMP=$ac_ct_OBJDUMP
  12218. fi
  12219. else
  12220. OBJDUMP="$ac_cv_prog_OBJDUMP"
  12221. fi
  12222. ;;
  12223. esac
  12224. test -z "$AS" && AS=as
  12225. test -z "$DLLTOOL" && DLLTOOL=dlltool
  12226. test -z "$OBJDUMP" && OBJDUMP=objdump
  12227. enable_dlopen=no
  12228. # Check whether --enable-shared was given.
  12229. if test "${enable_shared+set}" = set; then :
  12230. enableval=$enable_shared; p=${PACKAGE-default}
  12231. case $enableval in
  12232. yes) enable_shared=yes ;;
  12233. no) enable_shared=no ;;
  12234. *)
  12235. enable_shared=no
  12236. # Look at the argument we got. We use all the common list separators.
  12237. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12238. for pkg in $enableval; do
  12239. IFS="$lt_save_ifs"
  12240. if test "X$pkg" = "X$p"; then
  12241. enable_shared=yes
  12242. fi
  12243. done
  12244. IFS="$lt_save_ifs"
  12245. ;;
  12246. esac
  12247. else
  12248. enable_shared=yes
  12249. fi
  12250. # Check whether --enable-static was given.
  12251. if test "${enable_static+set}" = set; then :
  12252. enableval=$enable_static; p=${PACKAGE-default}
  12253. case $enableval in
  12254. yes) enable_static=yes ;;
  12255. no) enable_static=no ;;
  12256. *)
  12257. enable_static=no
  12258. # Look at the argument we got. We use all the common list separators.
  12259. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12260. for pkg in $enableval; do
  12261. IFS="$lt_save_ifs"
  12262. if test "X$pkg" = "X$p"; then
  12263. enable_static=yes
  12264. fi
  12265. done
  12266. IFS="$lt_save_ifs"
  12267. ;;
  12268. esac
  12269. else
  12270. enable_static=yes
  12271. fi
  12272. # Check whether --with-pic was given.
  12273. if test "${with_pic+set}" = set; then :
  12274. withval=$with_pic; lt_p=${PACKAGE-default}
  12275. case $withval in
  12276. yes|no) pic_mode=$withval ;;
  12277. *)
  12278. pic_mode=default
  12279. # Look at the argument we got. We use all the common list separators.
  12280. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12281. for lt_pkg in $withval; do
  12282. IFS="$lt_save_ifs"
  12283. if test "X$lt_pkg" = "X$lt_p"; then
  12284. pic_mode=yes
  12285. fi
  12286. done
  12287. IFS="$lt_save_ifs"
  12288. ;;
  12289. esac
  12290. else
  12291. pic_mode=default
  12292. fi
  12293. test -z "$pic_mode" && pic_mode=default
  12294. # Check whether --enable-fast-install was given.
  12295. if test "${enable_fast_install+set}" = set; then :
  12296. enableval=$enable_fast_install; p=${PACKAGE-default}
  12297. case $enableval in
  12298. yes) enable_fast_install=yes ;;
  12299. no) enable_fast_install=no ;;
  12300. *)
  12301. enable_fast_install=no
  12302. # Look at the argument we got. We use all the common list separators.
  12303. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12304. for pkg in $enableval; do
  12305. IFS="$lt_save_ifs"
  12306. if test "X$pkg" = "X$p"; then
  12307. enable_fast_install=yes
  12308. fi
  12309. done
  12310. IFS="$lt_save_ifs"
  12311. ;;
  12312. esac
  12313. else
  12314. enable_fast_install=yes
  12315. fi
  12316. # This can be used to rebuild libtool when needed
  12317. LIBTOOL_DEPS="$ltmain"
  12318. # Always use our own libtool.
  12319. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  12320. test -z "$LN_S" && LN_S="ln -s"
  12321. if test -n "${ZSH_VERSION+set}" ; then
  12322. setopt NO_GLOB_SUBST
  12323. fi
  12324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  12325. $as_echo_n "checking for objdir... " >&6; }
  12326. if ${lt_cv_objdir+:} false; then :
  12327. $as_echo_n "(cached) " >&6
  12328. else
  12329. rm -f .libs 2>/dev/null
  12330. mkdir .libs 2>/dev/null
  12331. if test -d .libs; then
  12332. lt_cv_objdir=.libs
  12333. else
  12334. # MS-DOS does not allow filenames that begin with a dot.
  12335. lt_cv_objdir=_libs
  12336. fi
  12337. rmdir .libs 2>/dev/null
  12338. fi
  12339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  12340. $as_echo "$lt_cv_objdir" >&6; }
  12341. objdir=$lt_cv_objdir
  12342. cat >>confdefs.h <<_ACEOF
  12343. #define LT_OBJDIR "$lt_cv_objdir/"
  12344. _ACEOF
  12345. case $host_os in
  12346. aix3*)
  12347. # AIX sometimes has problems with the GCC collect2 program. For some
  12348. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12349. # vanish in a puff of smoke.
  12350. if test "X${COLLECT_NAMES+set}" != Xset; then
  12351. COLLECT_NAMES=
  12352. export COLLECT_NAMES
  12353. fi
  12354. ;;
  12355. esac
  12356. # Global variables:
  12357. ofile=libtool
  12358. can_build_shared=yes
  12359. # All known linkers require a `.a' archive for static linking (except MSVC,
  12360. # which needs '.lib').
  12361. libext=a
  12362. with_gnu_ld="$lt_cv_prog_gnu_ld"
  12363. old_CC="$CC"
  12364. old_CFLAGS="$CFLAGS"
  12365. # Set sane defaults for various variables
  12366. test -z "$CC" && CC=cc
  12367. test -z "$LTCC" && LTCC=$CC
  12368. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  12369. test -z "$LD" && LD=ld
  12370. test -z "$ac_objext" && ac_objext=o
  12371. for cc_temp in $compiler""; do
  12372. case $cc_temp in
  12373. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  12374. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  12375. \-*) ;;
  12376. *) break;;
  12377. esac
  12378. done
  12379. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  12380. # Only perform the check for file, if the check method requires it
  12381. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  12382. case $deplibs_check_method in
  12383. file_magic*)
  12384. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  12385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  12386. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  12387. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  12388. $as_echo_n "(cached) " >&6
  12389. else
  12390. case $MAGIC_CMD in
  12391. [\\/*] | ?:[\\/]*)
  12392. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  12393. ;;
  12394. *)
  12395. lt_save_MAGIC_CMD="$MAGIC_CMD"
  12396. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12397. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  12398. for ac_dir in $ac_dummy; do
  12399. IFS="$lt_save_ifs"
  12400. test -z "$ac_dir" && ac_dir=.
  12401. if test -f $ac_dir/${ac_tool_prefix}file; then
  12402. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  12403. if test -n "$file_magic_test_file"; then
  12404. case $deplibs_check_method in
  12405. "file_magic "*)
  12406. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  12407. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  12408. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  12409. $EGREP "$file_magic_regex" > /dev/null; then
  12410. :
  12411. else
  12412. cat <<_LT_EOF 1>&2
  12413. *** Warning: the command libtool uses to detect shared libraries,
  12414. *** $file_magic_cmd, produces output that libtool cannot recognize.
  12415. *** The result is that libtool may fail to recognize shared libraries
  12416. *** as such. This will affect the creation of libtool libraries that
  12417. *** depend on shared libraries, but programs linked with such libtool
  12418. *** libraries will work regardless of this problem. Nevertheless, you
  12419. *** may want to report the problem to your system manager and/or to
  12420. *** bug-libtool@gnu.org
  12421. _LT_EOF
  12422. fi ;;
  12423. esac
  12424. fi
  12425. break
  12426. fi
  12427. done
  12428. IFS="$lt_save_ifs"
  12429. MAGIC_CMD="$lt_save_MAGIC_CMD"
  12430. ;;
  12431. esac
  12432. fi
  12433. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  12434. if test -n "$MAGIC_CMD"; then
  12435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  12436. $as_echo "$MAGIC_CMD" >&6; }
  12437. else
  12438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12439. $as_echo "no" >&6; }
  12440. fi
  12441. if test -z "$lt_cv_path_MAGIC_CMD"; then
  12442. if test -n "$ac_tool_prefix"; then
  12443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  12444. $as_echo_n "checking for file... " >&6; }
  12445. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  12446. $as_echo_n "(cached) " >&6
  12447. else
  12448. case $MAGIC_CMD in
  12449. [\\/*] | ?:[\\/]*)
  12450. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  12451. ;;
  12452. *)
  12453. lt_save_MAGIC_CMD="$MAGIC_CMD"
  12454. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12455. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  12456. for ac_dir in $ac_dummy; do
  12457. IFS="$lt_save_ifs"
  12458. test -z "$ac_dir" && ac_dir=.
  12459. if test -f $ac_dir/file; then
  12460. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  12461. if test -n "$file_magic_test_file"; then
  12462. case $deplibs_check_method in
  12463. "file_magic "*)
  12464. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  12465. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  12466. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  12467. $EGREP "$file_magic_regex" > /dev/null; then
  12468. :
  12469. else
  12470. cat <<_LT_EOF 1>&2
  12471. *** Warning: the command libtool uses to detect shared libraries,
  12472. *** $file_magic_cmd, produces output that libtool cannot recognize.
  12473. *** The result is that libtool may fail to recognize shared libraries
  12474. *** as such. This will affect the creation of libtool libraries that
  12475. *** depend on shared libraries, but programs linked with such libtool
  12476. *** libraries will work regardless of this problem. Nevertheless, you
  12477. *** may want to report the problem to your system manager and/or to
  12478. *** bug-libtool@gnu.org
  12479. _LT_EOF
  12480. fi ;;
  12481. esac
  12482. fi
  12483. break
  12484. fi
  12485. done
  12486. IFS="$lt_save_ifs"
  12487. MAGIC_CMD="$lt_save_MAGIC_CMD"
  12488. ;;
  12489. esac
  12490. fi
  12491. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  12492. if test -n "$MAGIC_CMD"; then
  12493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  12494. $as_echo "$MAGIC_CMD" >&6; }
  12495. else
  12496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12497. $as_echo "no" >&6; }
  12498. fi
  12499. else
  12500. MAGIC_CMD=:
  12501. fi
  12502. fi
  12503. fi
  12504. ;;
  12505. esac
  12506. # Use C for the default configuration in the libtool script
  12507. lt_save_CC="$CC"
  12508. ac_ext=c
  12509. ac_cpp='$CPP $CPPFLAGS'
  12510. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12511. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12512. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12513. # Source file extension for C test sources.
  12514. ac_ext=c
  12515. # Object file extension for compiled C test sources.
  12516. objext=o
  12517. objext=$objext
  12518. # Code to be used in simple compile tests
  12519. lt_simple_compile_test_code="int some_variable = 0;"
  12520. # Code to be used in simple link tests
  12521. lt_simple_link_test_code='int main(){return(0);}'
  12522. # If no C compiler was specified, use CC.
  12523. LTCC=${LTCC-"$CC"}
  12524. # If no C compiler flags were specified, use CFLAGS.
  12525. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  12526. # Allow CC to be a program name with arguments.
  12527. compiler=$CC
  12528. # Save the default compiler, since it gets overwritten when the other
  12529. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  12530. compiler_DEFAULT=$CC
  12531. # save warnings/boilerplate of simple test code
  12532. ac_outfile=conftest.$ac_objext
  12533. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  12534. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12535. _lt_compiler_boilerplate=`cat conftest.err`
  12536. $RM conftest*
  12537. ac_outfile=conftest.$ac_objext
  12538. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  12539. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  12540. _lt_linker_boilerplate=`cat conftest.err`
  12541. $RM -r conftest*
  12542. ## CAVEAT EMPTOR:
  12543. ## There is no encapsulation within the following macros, do not change
  12544. ## the running order or otherwise move them around unless you know exactly
  12545. ## what you are doing...
  12546. if test -n "$compiler"; then
  12547. lt_prog_compiler_no_builtin_flag=
  12548. if test "$GCC" = yes; then
  12549. case $cc_basename in
  12550. nvcc*)
  12551. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  12552. *)
  12553. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  12554. esac
  12555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  12556. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  12557. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  12558. $as_echo_n "(cached) " >&6
  12559. else
  12560. lt_cv_prog_compiler_rtti_exceptions=no
  12561. ac_outfile=conftest.$ac_objext
  12562. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12563. lt_compiler_flag="-fno-rtti -fno-exceptions"
  12564. # Insert the option either (1) after the last *FLAGS variable, or
  12565. # (2) before a word containing "conftest.", or (3) at the end.
  12566. # Note that $ac_compile itself does not contain backslashes and begins
  12567. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12568. # The option is referenced via a variable to avoid confusing sed.
  12569. lt_compile=`echo "$ac_compile" | $SED \
  12570. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12571. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12572. -e 's:$: $lt_compiler_flag:'`
  12573. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12574. (eval "$lt_compile" 2>conftest.err)
  12575. ac_status=$?
  12576. cat conftest.err >&5
  12577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12578. if (exit $ac_status) && test -s "$ac_outfile"; then
  12579. # The compiler can only warn and ignore the option if not recognized
  12580. # So say no if there are warnings other than the usual output.
  12581. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12582. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12583. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12584. lt_cv_prog_compiler_rtti_exceptions=yes
  12585. fi
  12586. fi
  12587. $RM conftest*
  12588. fi
  12589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  12590. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  12591. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  12592. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  12593. else
  12594. :
  12595. fi
  12596. fi
  12597. lt_prog_compiler_wl=
  12598. lt_prog_compiler_pic=
  12599. lt_prog_compiler_static=
  12600. if test "$GCC" = yes; then
  12601. lt_prog_compiler_wl='-Wl,'
  12602. lt_prog_compiler_static='-static'
  12603. case $host_os in
  12604. aix*)
  12605. # All AIX code is PIC.
  12606. if test "$host_cpu" = ia64; then
  12607. # AIX 5 now supports IA64 processor
  12608. lt_prog_compiler_static='-Bstatic'
  12609. fi
  12610. ;;
  12611. amigaos*)
  12612. case $host_cpu in
  12613. powerpc)
  12614. # see comment about AmigaOS4 .so support
  12615. lt_prog_compiler_pic='-fPIC'
  12616. ;;
  12617. m68k)
  12618. # FIXME: we need at least 68020 code to build shared libraries, but
  12619. # adding the `-m68020' flag to GCC prevents building anything better,
  12620. # like `-m68040'.
  12621. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  12622. ;;
  12623. esac
  12624. ;;
  12625. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  12626. # PIC is the default for these OSes.
  12627. ;;
  12628. mingw* | cygwin* | pw32* | os2* | cegcc*)
  12629. # This hack is so that the source file can tell whether it is being
  12630. # built for inclusion in a dll (and should export symbols for example).
  12631. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  12632. # (--disable-auto-import) libraries
  12633. lt_prog_compiler_pic='-DDLL_EXPORT'
  12634. ;;
  12635. darwin* | rhapsody*)
  12636. # PIC is the default on this platform
  12637. # Common symbols not allowed in MH_DYLIB files
  12638. lt_prog_compiler_pic='-fno-common'
  12639. ;;
  12640. haiku*)
  12641. # PIC is the default for Haiku.
  12642. # The "-static" flag exists, but is broken.
  12643. lt_prog_compiler_static=
  12644. ;;
  12645. hpux*)
  12646. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  12647. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  12648. # sets the default TLS model and affects inlining.
  12649. case $host_cpu in
  12650. hppa*64*)
  12651. # +Z the default
  12652. ;;
  12653. *)
  12654. lt_prog_compiler_pic='-fPIC'
  12655. ;;
  12656. esac
  12657. ;;
  12658. interix[3-9]*)
  12659. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  12660. # Instead, we relocate shared libraries at runtime.
  12661. ;;
  12662. msdosdjgpp*)
  12663. # Just because we use GCC doesn't mean we suddenly get shared libraries
  12664. # on systems that don't support them.
  12665. lt_prog_compiler_can_build_shared=no
  12666. enable_shared=no
  12667. ;;
  12668. *nto* | *qnx*)
  12669. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12670. # it will coredump.
  12671. lt_prog_compiler_pic='-fPIC -shared'
  12672. ;;
  12673. sysv4*MP*)
  12674. if test -d /usr/nec; then
  12675. lt_prog_compiler_pic=-Kconform_pic
  12676. fi
  12677. ;;
  12678. *)
  12679. lt_prog_compiler_pic='-fPIC'
  12680. ;;
  12681. esac
  12682. case $cc_basename in
  12683. nvcc*) # Cuda Compiler Driver 2.2
  12684. lt_prog_compiler_wl='-Xlinker '
  12685. if test -n "$lt_prog_compiler_pic"; then
  12686. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  12687. fi
  12688. ;;
  12689. esac
  12690. else
  12691. # PORTME Check for flag to pass linker flags through the system compiler.
  12692. case $host_os in
  12693. aix*)
  12694. lt_prog_compiler_wl='-Wl,'
  12695. if test "$host_cpu" = ia64; then
  12696. # AIX 5 now supports IA64 processor
  12697. lt_prog_compiler_static='-Bstatic'
  12698. else
  12699. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  12700. fi
  12701. ;;
  12702. mingw* | cygwin* | pw32* | os2* | cegcc*)
  12703. # This hack is so that the source file can tell whether it is being
  12704. # built for inclusion in a dll (and should export symbols for example).
  12705. lt_prog_compiler_pic='-DDLL_EXPORT'
  12706. ;;
  12707. hpux9* | hpux10* | hpux11*)
  12708. lt_prog_compiler_wl='-Wl,'
  12709. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  12710. # not for PA HP-UX.
  12711. case $host_cpu in
  12712. hppa*64*|ia64*)
  12713. # +Z the default
  12714. ;;
  12715. *)
  12716. lt_prog_compiler_pic='+Z'
  12717. ;;
  12718. esac
  12719. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  12720. lt_prog_compiler_static='${wl}-a ${wl}archive'
  12721. ;;
  12722. irix5* | irix6* | nonstopux*)
  12723. lt_prog_compiler_wl='-Wl,'
  12724. # PIC (with -KPIC) is the default.
  12725. lt_prog_compiler_static='-non_shared'
  12726. ;;
  12727. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12728. case $cc_basename in
  12729. # old Intel for x86_64 which still supported -KPIC.
  12730. ecc*)
  12731. lt_prog_compiler_wl='-Wl,'
  12732. lt_prog_compiler_pic='-KPIC'
  12733. lt_prog_compiler_static='-static'
  12734. ;;
  12735. # icc used to be incompatible with GCC.
  12736. # ICC 10 doesn't accept -KPIC any more.
  12737. icc* | ifort*)
  12738. lt_prog_compiler_wl='-Wl,'
  12739. lt_prog_compiler_pic='-fPIC'
  12740. lt_prog_compiler_static='-static'
  12741. ;;
  12742. # Lahey Fortran 8.1.
  12743. lf95*)
  12744. lt_prog_compiler_wl='-Wl,'
  12745. lt_prog_compiler_pic='--shared'
  12746. lt_prog_compiler_static='--static'
  12747. ;;
  12748. nagfor*)
  12749. # NAG Fortran compiler
  12750. lt_prog_compiler_wl='-Wl,-Wl,,'
  12751. lt_prog_compiler_pic='-PIC'
  12752. lt_prog_compiler_static='-Bstatic'
  12753. ;;
  12754. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  12755. # Portland Group compilers (*not* the Pentium gcc compiler,
  12756. # which looks to be a dead project)
  12757. lt_prog_compiler_wl='-Wl,'
  12758. lt_prog_compiler_pic='-fpic'
  12759. lt_prog_compiler_static='-Bstatic'
  12760. ;;
  12761. ccc*)
  12762. lt_prog_compiler_wl='-Wl,'
  12763. # All Alpha code is PIC.
  12764. lt_prog_compiler_static='-non_shared'
  12765. ;;
  12766. xl* | bgxl* | bgf* | mpixl*)
  12767. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  12768. lt_prog_compiler_wl='-Wl,'
  12769. lt_prog_compiler_pic='-qpic'
  12770. lt_prog_compiler_static='-qstaticlink'
  12771. ;;
  12772. *)
  12773. case `$CC -V 2>&1 | sed 5q` in
  12774. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  12775. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  12776. lt_prog_compiler_pic='-KPIC'
  12777. lt_prog_compiler_static='-Bstatic'
  12778. lt_prog_compiler_wl=''
  12779. ;;
  12780. *Sun\ F* | *Sun*Fortran*)
  12781. lt_prog_compiler_pic='-KPIC'
  12782. lt_prog_compiler_static='-Bstatic'
  12783. lt_prog_compiler_wl='-Qoption ld '
  12784. ;;
  12785. *Sun\ C*)
  12786. # Sun C 5.9
  12787. lt_prog_compiler_pic='-KPIC'
  12788. lt_prog_compiler_static='-Bstatic'
  12789. lt_prog_compiler_wl='-Wl,'
  12790. ;;
  12791. *Intel*\ [CF]*Compiler*)
  12792. lt_prog_compiler_wl='-Wl,'
  12793. lt_prog_compiler_pic='-fPIC'
  12794. lt_prog_compiler_static='-static'
  12795. ;;
  12796. *Portland\ Group*)
  12797. lt_prog_compiler_wl='-Wl,'
  12798. lt_prog_compiler_pic='-fpic'
  12799. lt_prog_compiler_static='-Bstatic'
  12800. ;;
  12801. esac
  12802. ;;
  12803. esac
  12804. ;;
  12805. newsos6)
  12806. lt_prog_compiler_pic='-KPIC'
  12807. lt_prog_compiler_static='-Bstatic'
  12808. ;;
  12809. *nto* | *qnx*)
  12810. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12811. # it will coredump.
  12812. lt_prog_compiler_pic='-fPIC -shared'
  12813. ;;
  12814. osf3* | osf4* | osf5*)
  12815. lt_prog_compiler_wl='-Wl,'
  12816. # All OSF/1 code is PIC.
  12817. lt_prog_compiler_static='-non_shared'
  12818. ;;
  12819. rdos*)
  12820. lt_prog_compiler_static='-non_shared'
  12821. ;;
  12822. solaris*)
  12823. lt_prog_compiler_pic='-KPIC'
  12824. lt_prog_compiler_static='-Bstatic'
  12825. case $cc_basename in
  12826. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  12827. lt_prog_compiler_wl='-Qoption ld ';;
  12828. *)
  12829. lt_prog_compiler_wl='-Wl,';;
  12830. esac
  12831. ;;
  12832. sunos4*)
  12833. lt_prog_compiler_wl='-Qoption ld '
  12834. lt_prog_compiler_pic='-PIC'
  12835. lt_prog_compiler_static='-Bstatic'
  12836. ;;
  12837. sysv4 | sysv4.2uw2* | sysv4.3*)
  12838. lt_prog_compiler_wl='-Wl,'
  12839. lt_prog_compiler_pic='-KPIC'
  12840. lt_prog_compiler_static='-Bstatic'
  12841. ;;
  12842. sysv4*MP*)
  12843. if test -d /usr/nec ;then
  12844. lt_prog_compiler_pic='-Kconform_pic'
  12845. lt_prog_compiler_static='-Bstatic'
  12846. fi
  12847. ;;
  12848. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12849. lt_prog_compiler_wl='-Wl,'
  12850. lt_prog_compiler_pic='-KPIC'
  12851. lt_prog_compiler_static='-Bstatic'
  12852. ;;
  12853. unicos*)
  12854. lt_prog_compiler_wl='-Wl,'
  12855. lt_prog_compiler_can_build_shared=no
  12856. ;;
  12857. uts4*)
  12858. lt_prog_compiler_pic='-pic'
  12859. lt_prog_compiler_static='-Bstatic'
  12860. ;;
  12861. *)
  12862. lt_prog_compiler_can_build_shared=no
  12863. ;;
  12864. esac
  12865. fi
  12866. case $host_os in
  12867. # For platforms which do not support PIC, -DPIC is meaningless:
  12868. *djgpp*)
  12869. lt_prog_compiler_pic=
  12870. ;;
  12871. *)
  12872. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  12873. ;;
  12874. esac
  12875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12876. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12877. if ${lt_cv_prog_compiler_pic+:} false; then :
  12878. $as_echo_n "(cached) " >&6
  12879. else
  12880. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  12881. fi
  12882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  12883. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  12884. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  12885. #
  12886. # Check to make sure the PIC flag actually works.
  12887. #
  12888. if test -n "$lt_prog_compiler_pic"; then
  12889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  12890. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  12891. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  12892. $as_echo_n "(cached) " >&6
  12893. else
  12894. lt_cv_prog_compiler_pic_works=no
  12895. ac_outfile=conftest.$ac_objext
  12896. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12897. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  12898. # Insert the option either (1) after the last *FLAGS variable, or
  12899. # (2) before a word containing "conftest.", or (3) at the end.
  12900. # Note that $ac_compile itself does not contain backslashes and begins
  12901. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12902. # The option is referenced via a variable to avoid confusing sed.
  12903. lt_compile=`echo "$ac_compile" | $SED \
  12904. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12905. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12906. -e 's:$: $lt_compiler_flag:'`
  12907. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12908. (eval "$lt_compile" 2>conftest.err)
  12909. ac_status=$?
  12910. cat conftest.err >&5
  12911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12912. if (exit $ac_status) && test -s "$ac_outfile"; then
  12913. # The compiler can only warn and ignore the option if not recognized
  12914. # So say no if there are warnings other than the usual output.
  12915. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12916. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12917. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12918. lt_cv_prog_compiler_pic_works=yes
  12919. fi
  12920. fi
  12921. $RM conftest*
  12922. fi
  12923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  12924. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  12925. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  12926. case $lt_prog_compiler_pic in
  12927. "" | " "*) ;;
  12928. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  12929. esac
  12930. else
  12931. lt_prog_compiler_pic=
  12932. lt_prog_compiler_can_build_shared=no
  12933. fi
  12934. fi
  12935. #
  12936. # Check to make sure the static flag actually works.
  12937. #
  12938. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  12939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12940. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12941. if ${lt_cv_prog_compiler_static_works+:} false; then :
  12942. $as_echo_n "(cached) " >&6
  12943. else
  12944. lt_cv_prog_compiler_static_works=no
  12945. save_LDFLAGS="$LDFLAGS"
  12946. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12947. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12948. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12949. # The linker can only warn and ignore the option if not recognized
  12950. # So say no if there are warnings
  12951. if test -s conftest.err; then
  12952. # Append any errors to the config.log.
  12953. cat conftest.err 1>&5
  12954. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12955. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12956. if diff conftest.exp conftest.er2 >/dev/null; then
  12957. lt_cv_prog_compiler_static_works=yes
  12958. fi
  12959. else
  12960. lt_cv_prog_compiler_static_works=yes
  12961. fi
  12962. fi
  12963. $RM -r conftest*
  12964. LDFLAGS="$save_LDFLAGS"
  12965. fi
  12966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  12967. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  12968. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  12969. :
  12970. else
  12971. lt_prog_compiler_static=
  12972. fi
  12973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12974. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12975. if ${lt_cv_prog_compiler_c_o+:} false; then :
  12976. $as_echo_n "(cached) " >&6
  12977. else
  12978. lt_cv_prog_compiler_c_o=no
  12979. $RM -r conftest 2>/dev/null
  12980. mkdir conftest
  12981. cd conftest
  12982. mkdir out
  12983. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12984. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12985. # Insert the option either (1) after the last *FLAGS variable, or
  12986. # (2) before a word containing "conftest.", or (3) at the end.
  12987. # Note that $ac_compile itself does not contain backslashes and begins
  12988. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12989. lt_compile=`echo "$ac_compile" | $SED \
  12990. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12991. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12992. -e 's:$: $lt_compiler_flag:'`
  12993. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12994. (eval "$lt_compile" 2>out/conftest.err)
  12995. ac_status=$?
  12996. cat out/conftest.err >&5
  12997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12998. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12999. then
  13000. # The compiler can only warn and ignore the option if not recognized
  13001. # So say no if there are warnings
  13002. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13003. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13004. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13005. lt_cv_prog_compiler_c_o=yes
  13006. fi
  13007. fi
  13008. chmod u+w . 2>&5
  13009. $RM conftest*
  13010. # SGI C++ compiler will create directory out/ii_files/ for
  13011. # template instantiation
  13012. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13013. $RM out/* && rmdir out
  13014. cd ..
  13015. $RM -r conftest
  13016. $RM conftest*
  13017. fi
  13018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  13019. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  13020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  13021. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  13022. if ${lt_cv_prog_compiler_c_o+:} false; then :
  13023. $as_echo_n "(cached) " >&6
  13024. else
  13025. lt_cv_prog_compiler_c_o=no
  13026. $RM -r conftest 2>/dev/null
  13027. mkdir conftest
  13028. cd conftest
  13029. mkdir out
  13030. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  13031. lt_compiler_flag="-o out/conftest2.$ac_objext"
  13032. # Insert the option either (1) after the last *FLAGS variable, or
  13033. # (2) before a word containing "conftest.", or (3) at the end.
  13034. # Note that $ac_compile itself does not contain backslashes and begins
  13035. # with a dollar sign (not a hyphen), so the echo should work correctly.
  13036. lt_compile=`echo "$ac_compile" | $SED \
  13037. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  13038. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  13039. -e 's:$: $lt_compiler_flag:'`
  13040. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  13041. (eval "$lt_compile" 2>out/conftest.err)
  13042. ac_status=$?
  13043. cat out/conftest.err >&5
  13044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13045. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  13046. then
  13047. # The compiler can only warn and ignore the option if not recognized
  13048. # So say no if there are warnings
  13049. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  13050. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  13051. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  13052. lt_cv_prog_compiler_c_o=yes
  13053. fi
  13054. fi
  13055. chmod u+w . 2>&5
  13056. $RM conftest*
  13057. # SGI C++ compiler will create directory out/ii_files/ for
  13058. # template instantiation
  13059. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  13060. $RM out/* && rmdir out
  13061. cd ..
  13062. $RM -r conftest
  13063. $RM conftest*
  13064. fi
  13065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  13066. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  13067. hard_links="nottested"
  13068. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  13069. # do not overwrite the value of need_locks provided by the user
  13070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  13071. $as_echo_n "checking if we can lock with hard links... " >&6; }
  13072. hard_links=yes
  13073. $RM conftest*
  13074. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13075. touch conftest.a
  13076. ln conftest.a conftest.b 2>&5 || hard_links=no
  13077. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  13078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  13079. $as_echo "$hard_links" >&6; }
  13080. if test "$hard_links" = no; then
  13081. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  13082. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  13083. need_locks=warn
  13084. fi
  13085. else
  13086. need_locks=no
  13087. fi
  13088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  13089. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  13090. runpath_var=
  13091. allow_undefined_flag=
  13092. always_export_symbols=no
  13093. archive_cmds=
  13094. archive_expsym_cmds=
  13095. compiler_needs_object=no
  13096. enable_shared_with_static_runtimes=no
  13097. export_dynamic_flag_spec=
  13098. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  13099. hardcode_automatic=no
  13100. hardcode_direct=no
  13101. hardcode_direct_absolute=no
  13102. hardcode_libdir_flag_spec=
  13103. hardcode_libdir_separator=
  13104. hardcode_minus_L=no
  13105. hardcode_shlibpath_var=unsupported
  13106. inherit_rpath=no
  13107. link_all_deplibs=unknown
  13108. module_cmds=
  13109. module_expsym_cmds=
  13110. old_archive_from_new_cmds=
  13111. old_archive_from_expsyms_cmds=
  13112. thread_safe_flag_spec=
  13113. whole_archive_flag_spec=
  13114. # include_expsyms should be a list of space-separated symbols to be *always*
  13115. # included in the symbol list
  13116. include_expsyms=
  13117. # exclude_expsyms can be an extended regexp of symbols to exclude
  13118. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  13119. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  13120. # as well as any symbol that contains `d'.
  13121. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  13122. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  13123. # platforms (ab)use it in PIC code, but their linkers get confused if
  13124. # the symbol is explicitly referenced. Since portable code cannot
  13125. # rely on this symbol name, it's probably fine to never include it in
  13126. # preloaded symbol tables.
  13127. # Exclude shared library initialization/finalization symbols.
  13128. extract_expsyms_cmds=
  13129. case $host_os in
  13130. cygwin* | mingw* | pw32* | cegcc*)
  13131. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  13132. # When not using gcc, we currently assume that we are using
  13133. # Microsoft Visual C++.
  13134. if test "$GCC" != yes; then
  13135. with_gnu_ld=no
  13136. fi
  13137. ;;
  13138. interix*)
  13139. # we just hope/assume this is gcc and not c89 (= MSVC++)
  13140. with_gnu_ld=yes
  13141. ;;
  13142. openbsd*)
  13143. with_gnu_ld=no
  13144. ;;
  13145. esac
  13146. ld_shlibs=yes
  13147. # On some targets, GNU ld is compatible enough with the native linker
  13148. # that we're better off using the native interface for both.
  13149. lt_use_gnu_ld_interface=no
  13150. if test "$with_gnu_ld" = yes; then
  13151. case $host_os in
  13152. aix*)
  13153. # The AIX port of GNU ld has always aspired to compatibility
  13154. # with the native linker. However, as the warning in the GNU ld
  13155. # block says, versions before 2.19.5* couldn't really create working
  13156. # shared libraries, regardless of the interface used.
  13157. case `$LD -v 2>&1` in
  13158. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  13159. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  13160. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  13161. *)
  13162. lt_use_gnu_ld_interface=yes
  13163. ;;
  13164. esac
  13165. ;;
  13166. *)
  13167. lt_use_gnu_ld_interface=yes
  13168. ;;
  13169. esac
  13170. fi
  13171. if test "$lt_use_gnu_ld_interface" = yes; then
  13172. # If archive_cmds runs LD, not CC, wlarc should be empty
  13173. wlarc='${wl}'
  13174. # Set some defaults for GNU ld with shared library support. These
  13175. # are reset later if shared libraries are not supported. Putting them
  13176. # here allows them to be overridden if necessary.
  13177. runpath_var=LD_RUN_PATH
  13178. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13179. export_dynamic_flag_spec='${wl}--export-dynamic'
  13180. # ancient GNU ld didn't support --whole-archive et. al.
  13181. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  13182. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  13183. else
  13184. whole_archive_flag_spec=
  13185. fi
  13186. supports_anon_versioning=no
  13187. case `$LD -v 2>&1` in
  13188. *GNU\ gold*) supports_anon_versioning=yes ;;
  13189. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  13190. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  13191. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  13192. *\ 2.11.*) ;; # other 2.11 versions
  13193. *) supports_anon_versioning=yes ;;
  13194. esac
  13195. # See if GNU ld supports shared libraries.
  13196. case $host_os in
  13197. aix[3-9]*)
  13198. # On AIX/PPC, the GNU linker is very broken
  13199. if test "$host_cpu" != ia64; then
  13200. ld_shlibs=no
  13201. cat <<_LT_EOF 1>&2
  13202. *** Warning: the GNU linker, at least up to release 2.19, is reported
  13203. *** to be unable to reliably create shared libraries on AIX.
  13204. *** Therefore, libtool is disabling shared libraries support. If you
  13205. *** really care for shared libraries, you may want to install binutils
  13206. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  13207. *** You will then need to restart the configuration process.
  13208. _LT_EOF
  13209. fi
  13210. ;;
  13211. amigaos*)
  13212. case $host_cpu in
  13213. powerpc)
  13214. # see comment about AmigaOS4 .so support
  13215. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13216. archive_expsym_cmds=''
  13217. ;;
  13218. m68k)
  13219. 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)'
  13220. hardcode_libdir_flag_spec='-L$libdir'
  13221. hardcode_minus_L=yes
  13222. ;;
  13223. esac
  13224. ;;
  13225. beos*)
  13226. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13227. allow_undefined_flag=unsupported
  13228. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  13229. # support --undefined. This deserves some investigation. FIXME
  13230. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13231. else
  13232. ld_shlibs=no
  13233. fi
  13234. ;;
  13235. cygwin* | mingw* | pw32* | cegcc*)
  13236. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  13237. # as there is no search path for DLLs.
  13238. hardcode_libdir_flag_spec='-L$libdir'
  13239. export_dynamic_flag_spec='${wl}--export-all-symbols'
  13240. allow_undefined_flag=unsupported
  13241. always_export_symbols=no
  13242. enable_shared_with_static_runtimes=yes
  13243. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  13244. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  13245. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  13246. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13247. # If the export-symbols file already is a .def file (1st line
  13248. # is EXPORTS), use it as is; otherwise, prepend...
  13249. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13250. cp $export_symbols $output_objdir/$soname.def;
  13251. else
  13252. echo EXPORTS > $output_objdir/$soname.def;
  13253. cat $export_symbols >> $output_objdir/$soname.def;
  13254. fi~
  13255. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  13256. else
  13257. ld_shlibs=no
  13258. fi
  13259. ;;
  13260. haiku*)
  13261. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13262. link_all_deplibs=yes
  13263. ;;
  13264. interix[3-9]*)
  13265. hardcode_direct=no
  13266. hardcode_shlibpath_var=no
  13267. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  13268. export_dynamic_flag_spec='${wl}-E'
  13269. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  13270. # Instead, shared libraries are loaded at an image base (0x10000000 by
  13271. # default) and relocated if they conflict, which is a slow very memory
  13272. # consuming and fragmenting process. To avoid this, we pick a random,
  13273. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  13274. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  13275. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  13276. 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'
  13277. ;;
  13278. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  13279. tmp_diet=no
  13280. if test "$host_os" = linux-dietlibc; then
  13281. case $cc_basename in
  13282. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  13283. esac
  13284. fi
  13285. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  13286. && test "$tmp_diet" = no
  13287. then
  13288. tmp_addflag=' $pic_flag'
  13289. tmp_sharedflag='-shared'
  13290. case $cc_basename,$host_cpu in
  13291. pgcc*) # Portland Group C compiler
  13292. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  13293. tmp_addflag=' $pic_flag'
  13294. ;;
  13295. pgf77* | pgf90* | pgf95* | pgfortran*)
  13296. # Portland Group f77 and f90 compilers
  13297. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  13298. tmp_addflag=' $pic_flag -Mnomain' ;;
  13299. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  13300. tmp_addflag=' -i_dynamic' ;;
  13301. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  13302. tmp_addflag=' -i_dynamic -nofor_main' ;;
  13303. ifc* | ifort*) # Intel Fortran compiler
  13304. tmp_addflag=' -nofor_main' ;;
  13305. lf95*) # Lahey Fortran 8.1
  13306. whole_archive_flag_spec=
  13307. tmp_sharedflag='--shared' ;;
  13308. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  13309. tmp_sharedflag='-qmkshrobj'
  13310. tmp_addflag= ;;
  13311. nvcc*) # Cuda Compiler Driver 2.2
  13312. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  13313. compiler_needs_object=yes
  13314. ;;
  13315. esac
  13316. case `$CC -V 2>&1 | sed 5q` in
  13317. *Sun\ C*) # Sun C 5.9
  13318. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  13319. compiler_needs_object=yes
  13320. tmp_sharedflag='-G' ;;
  13321. *Sun\ F*) # Sun Fortran 8.3
  13322. tmp_sharedflag='-G' ;;
  13323. esac
  13324. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13325. if test "x$supports_anon_versioning" = xyes; then
  13326. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  13327. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13328. echo "local: *; };" >> $output_objdir/$libname.ver~
  13329. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  13330. fi
  13331. case $cc_basename in
  13332. xlf* | bgf* | bgxlf* | mpixlf*)
  13333. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  13334. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  13335. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13336. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  13337. if test "x$supports_anon_versioning" = xyes; then
  13338. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  13339. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  13340. echo "local: *; };" >> $output_objdir/$libname.ver~
  13341. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  13342. fi
  13343. ;;
  13344. esac
  13345. else
  13346. ld_shlibs=no
  13347. fi
  13348. ;;
  13349. netbsd*)
  13350. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13351. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  13352. wlarc=
  13353. else
  13354. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13355. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13356. fi
  13357. ;;
  13358. solaris*)
  13359. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  13360. ld_shlibs=no
  13361. cat <<_LT_EOF 1>&2
  13362. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  13363. *** create shared libraries on Solaris systems. Therefore, libtool
  13364. *** is disabling shared libraries support. We urge you to upgrade GNU
  13365. *** binutils to release 2.9.1 or newer. Another option is to modify
  13366. *** your PATH or compiler configuration so that the native linker is
  13367. *** used, and then restart.
  13368. _LT_EOF
  13369. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13370. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13371. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13372. else
  13373. ld_shlibs=no
  13374. fi
  13375. ;;
  13376. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  13377. case `$LD -v 2>&1` in
  13378. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  13379. ld_shlibs=no
  13380. cat <<_LT_EOF 1>&2
  13381. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  13382. *** reliably create shared libraries on SCO systems. Therefore, libtool
  13383. *** is disabling shared libraries support. We urge you to upgrade GNU
  13384. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  13385. *** your PATH or compiler configuration so that the native linker is
  13386. *** used, and then restart.
  13387. _LT_EOF
  13388. ;;
  13389. *)
  13390. # For security reasons, it is highly recommended that you always
  13391. # use absolute paths for naming shared libraries, and exclude the
  13392. # DT_RUNPATH tag from executables and libraries. But doing so
  13393. # requires that you compile everything twice, which is a pain.
  13394. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13395. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13396. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13397. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13398. else
  13399. ld_shlibs=no
  13400. fi
  13401. ;;
  13402. esac
  13403. ;;
  13404. sunos4*)
  13405. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13406. wlarc=
  13407. hardcode_direct=yes
  13408. hardcode_shlibpath_var=no
  13409. ;;
  13410. *)
  13411. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  13412. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13413. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  13414. else
  13415. ld_shlibs=no
  13416. fi
  13417. ;;
  13418. esac
  13419. if test "$ld_shlibs" = no; then
  13420. runpath_var=
  13421. hardcode_libdir_flag_spec=
  13422. export_dynamic_flag_spec=
  13423. whole_archive_flag_spec=
  13424. fi
  13425. else
  13426. # PORTME fill in a description of your system's linker (not GNU ld)
  13427. case $host_os in
  13428. aix3*)
  13429. allow_undefined_flag=unsupported
  13430. always_export_symbols=yes
  13431. 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'
  13432. # Note: this linker hardcodes the directories in LIBPATH if there
  13433. # are no directories specified by -L.
  13434. hardcode_minus_L=yes
  13435. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  13436. # Neither direct hardcoding nor static linking is supported with a
  13437. # broken collect2.
  13438. hardcode_direct=unsupported
  13439. fi
  13440. ;;
  13441. aix[4-9]*)
  13442. if test "$host_cpu" = ia64; then
  13443. # On IA64, the linker does run time linking by default, so we don't
  13444. # have to do anything special.
  13445. aix_use_runtimelinking=no
  13446. exp_sym_flag='-Bexport'
  13447. no_entry_flag=""
  13448. else
  13449. # If we're using GNU nm, then we don't want the "-C" option.
  13450. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  13451. # Also, AIX nm treats weak defined symbols like other global
  13452. # defined symbols, whereas GNU nm marks them as "W".
  13453. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  13454. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  13455. else
  13456. 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'
  13457. fi
  13458. aix_use_runtimelinking=no
  13459. # Test if we are trying to use run time linking or normal
  13460. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  13461. # need to do runtime linking.
  13462. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  13463. for ld_flag in $LDFLAGS; do
  13464. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  13465. aix_use_runtimelinking=yes
  13466. break
  13467. fi
  13468. done
  13469. ;;
  13470. esac
  13471. exp_sym_flag='-bexport'
  13472. no_entry_flag='-bnoentry'
  13473. fi
  13474. # When large executables or shared objects are built, AIX ld can
  13475. # have problems creating the table of contents. If linking a library
  13476. # or program results in "error TOC overflow" add -mminimal-toc to
  13477. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  13478. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  13479. archive_cmds=''
  13480. hardcode_direct=yes
  13481. hardcode_direct_absolute=yes
  13482. hardcode_libdir_separator=':'
  13483. link_all_deplibs=yes
  13484. file_list_spec='${wl}-f,'
  13485. if test "$GCC" = yes; then
  13486. case $host_os in aix4.[012]|aix4.[012].*)
  13487. # We only want to do this on AIX 4.2 and lower, the check
  13488. # below for broken collect2 doesn't work under 4.3+
  13489. collect2name=`${CC} -print-prog-name=collect2`
  13490. if test -f "$collect2name" &&
  13491. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  13492. then
  13493. # We have reworked collect2
  13494. :
  13495. else
  13496. # We have old collect2
  13497. hardcode_direct=unsupported
  13498. # It fails to find uninstalled libraries when the uninstalled
  13499. # path is not listed in the libpath. Setting hardcode_minus_L
  13500. # to unsupported forces relinking
  13501. hardcode_minus_L=yes
  13502. hardcode_libdir_flag_spec='-L$libdir'
  13503. hardcode_libdir_separator=
  13504. fi
  13505. ;;
  13506. esac
  13507. shared_flag='-shared'
  13508. if test "$aix_use_runtimelinking" = yes; then
  13509. shared_flag="$shared_flag "'${wl}-G'
  13510. fi
  13511. else
  13512. # not using gcc
  13513. if test "$host_cpu" = ia64; then
  13514. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  13515. # chokes on -Wl,-G. The following line is correct:
  13516. shared_flag='-G'
  13517. else
  13518. if test "$aix_use_runtimelinking" = yes; then
  13519. shared_flag='${wl}-G'
  13520. else
  13521. shared_flag='${wl}-bM:SRE'
  13522. fi
  13523. fi
  13524. fi
  13525. export_dynamic_flag_spec='${wl}-bexpall'
  13526. # It seems that -bexpall does not export symbols beginning with
  13527. # underscore (_), so it is better to generate a list of symbols to export.
  13528. always_export_symbols=yes
  13529. if test "$aix_use_runtimelinking" = yes; then
  13530. # Warning - without using the other runtime loading flags (-brtl),
  13531. # -berok will link without error, but may produce a broken library.
  13532. allow_undefined_flag='-berok'
  13533. # Determine the default libpath from the value encoded in an
  13534. # empty executable.
  13535. if test "${lt_cv_aix_libpath+set}" = set; then
  13536. aix_libpath=$lt_cv_aix_libpath
  13537. else
  13538. if ${lt_cv_aix_libpath_+:} false; then :
  13539. $as_echo_n "(cached) " >&6
  13540. else
  13541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13542. /* end confdefs.h. */
  13543. int
  13544. main ()
  13545. {
  13546. ;
  13547. return 0;
  13548. }
  13549. _ACEOF
  13550. if ac_fn_c_try_link "$LINENO"; then :
  13551. lt_aix_libpath_sed='
  13552. /Import File Strings/,/^$/ {
  13553. /^0/ {
  13554. s/^0 *\([^ ]*\) *$/\1/
  13555. p
  13556. }
  13557. }'
  13558. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13559. # Check for a 64-bit object if we didn't find anything.
  13560. if test -z "$lt_cv_aix_libpath_"; then
  13561. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13562. fi
  13563. fi
  13564. rm -f core conftest.err conftest.$ac_objext \
  13565. conftest$ac_exeext conftest.$ac_ext
  13566. if test -z "$lt_cv_aix_libpath_"; then
  13567. lt_cv_aix_libpath_="/usr/lib:/lib"
  13568. fi
  13569. fi
  13570. aix_libpath=$lt_cv_aix_libpath_
  13571. fi
  13572. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  13573. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  13574. else
  13575. if test "$host_cpu" = ia64; then
  13576. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  13577. allow_undefined_flag="-z nodefs"
  13578. 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"
  13579. else
  13580. # Determine the default libpath from the value encoded in an
  13581. # empty executable.
  13582. if test "${lt_cv_aix_libpath+set}" = set; then
  13583. aix_libpath=$lt_cv_aix_libpath
  13584. else
  13585. if ${lt_cv_aix_libpath_+:} false; then :
  13586. $as_echo_n "(cached) " >&6
  13587. else
  13588. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13589. /* end confdefs.h. */
  13590. int
  13591. main ()
  13592. {
  13593. ;
  13594. return 0;
  13595. }
  13596. _ACEOF
  13597. if ac_fn_c_try_link "$LINENO"; then :
  13598. lt_aix_libpath_sed='
  13599. /Import File Strings/,/^$/ {
  13600. /^0/ {
  13601. s/^0 *\([^ ]*\) *$/\1/
  13602. p
  13603. }
  13604. }'
  13605. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13606. # Check for a 64-bit object if we didn't find anything.
  13607. if test -z "$lt_cv_aix_libpath_"; then
  13608. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  13609. fi
  13610. fi
  13611. rm -f core conftest.err conftest.$ac_objext \
  13612. conftest$ac_exeext conftest.$ac_ext
  13613. if test -z "$lt_cv_aix_libpath_"; then
  13614. lt_cv_aix_libpath_="/usr/lib:/lib"
  13615. fi
  13616. fi
  13617. aix_libpath=$lt_cv_aix_libpath_
  13618. fi
  13619. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  13620. # Warning - without using the other run time loading flags,
  13621. # -berok will link without error, but may produce a broken library.
  13622. no_undefined_flag=' ${wl}-bernotok'
  13623. allow_undefined_flag=' ${wl}-berok'
  13624. if test "$with_gnu_ld" = yes; then
  13625. # We only use this code for GNU lds that support --whole-archive.
  13626. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  13627. else
  13628. # Exported symbols can be pulled into shared objects from archives
  13629. whole_archive_flag_spec='$convenience'
  13630. fi
  13631. archive_cmds_need_lc=yes
  13632. # This is similar to how AIX traditionally builds its shared libraries.
  13633. 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'
  13634. fi
  13635. fi
  13636. ;;
  13637. amigaos*)
  13638. case $host_cpu in
  13639. powerpc)
  13640. # see comment about AmigaOS4 .so support
  13641. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  13642. archive_expsym_cmds=''
  13643. ;;
  13644. m68k)
  13645. 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)'
  13646. hardcode_libdir_flag_spec='-L$libdir'
  13647. hardcode_minus_L=yes
  13648. ;;
  13649. esac
  13650. ;;
  13651. bsdi[45]*)
  13652. export_dynamic_flag_spec=-rdynamic
  13653. ;;
  13654. cygwin* | mingw* | pw32* | cegcc*)
  13655. # When not using gcc, we currently assume that we are using
  13656. # Microsoft Visual C++.
  13657. # hardcode_libdir_flag_spec is actually meaningless, as there is
  13658. # no search path for DLLs.
  13659. case $cc_basename in
  13660. cl*)
  13661. # Native MSVC
  13662. hardcode_libdir_flag_spec=' '
  13663. allow_undefined_flag=unsupported
  13664. always_export_symbols=yes
  13665. file_list_spec='@'
  13666. # Tell ltmain to make .lib files, not .a files.
  13667. libext=lib
  13668. # Tell ltmain to make .dll files, not .so files.
  13669. shrext_cmds=".dll"
  13670. # FIXME: Setting linknames here is a bad hack.
  13671. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  13672. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  13673. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  13674. else
  13675. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  13676. fi~
  13677. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  13678. linknames='
  13679. # The linker will not automatically build a static lib if we build a DLL.
  13680. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  13681. enable_shared_with_static_runtimes=yes
  13682. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  13683. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  13684. # Don't use ranlib
  13685. old_postinstall_cmds='chmod 644 $oldlib'
  13686. postlink_cmds='lt_outputfile="@OUTPUT@"~
  13687. lt_tool_outputfile="@TOOL_OUTPUT@"~
  13688. case $lt_outputfile in
  13689. *.exe|*.EXE) ;;
  13690. *)
  13691. lt_outputfile="$lt_outputfile.exe"
  13692. lt_tool_outputfile="$lt_tool_outputfile.exe"
  13693. ;;
  13694. esac~
  13695. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  13696. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  13697. $RM "$lt_outputfile.manifest";
  13698. fi'
  13699. ;;
  13700. *)
  13701. # Assume MSVC wrapper
  13702. hardcode_libdir_flag_spec=' '
  13703. allow_undefined_flag=unsupported
  13704. # Tell ltmain to make .lib files, not .a files.
  13705. libext=lib
  13706. # Tell ltmain to make .dll files, not .so files.
  13707. shrext_cmds=".dll"
  13708. # FIXME: Setting linknames here is a bad hack.
  13709. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  13710. # The linker will automatically build a .lib file if we build a DLL.
  13711. old_archive_from_new_cmds='true'
  13712. # FIXME: Should let the user specify the lib program.
  13713. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  13714. enable_shared_with_static_runtimes=yes
  13715. ;;
  13716. esac
  13717. ;;
  13718. darwin* | rhapsody*)
  13719. archive_cmds_need_lc=no
  13720. hardcode_direct=no
  13721. hardcode_automatic=yes
  13722. hardcode_shlibpath_var=unsupported
  13723. if test "$lt_cv_ld_force_load" = "yes"; then
  13724. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  13725. else
  13726. whole_archive_flag_spec=''
  13727. fi
  13728. link_all_deplibs=yes
  13729. allow_undefined_flag="$_lt_dar_allow_undefined"
  13730. case $cc_basename in
  13731. ifort*) _lt_dar_can_shared=yes ;;
  13732. *) _lt_dar_can_shared=$GCC ;;
  13733. esac
  13734. if test "$_lt_dar_can_shared" = "yes"; then
  13735. output_verbose_link_cmd=func_echo_all
  13736. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  13737. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  13738. 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}"
  13739. 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}"
  13740. else
  13741. ld_shlibs=no
  13742. fi
  13743. ;;
  13744. dgux*)
  13745. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13746. hardcode_libdir_flag_spec='-L$libdir'
  13747. hardcode_shlibpath_var=no
  13748. ;;
  13749. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  13750. # support. Future versions do this automatically, but an explicit c++rt0.o
  13751. # does not break anything, and helps significantly (at the cost of a little
  13752. # extra space).
  13753. freebsd2.2*)
  13754. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  13755. hardcode_libdir_flag_spec='-R$libdir'
  13756. hardcode_direct=yes
  13757. hardcode_shlibpath_var=no
  13758. ;;
  13759. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  13760. freebsd2.*)
  13761. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13762. hardcode_direct=yes
  13763. hardcode_minus_L=yes
  13764. hardcode_shlibpath_var=no
  13765. ;;
  13766. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  13767. freebsd* | dragonfly*)
  13768. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13769. hardcode_libdir_flag_spec='-R$libdir'
  13770. hardcode_direct=yes
  13771. hardcode_shlibpath_var=no
  13772. ;;
  13773. hpux9*)
  13774. if test "$GCC" = yes; then
  13775. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  13776. else
  13777. 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'
  13778. fi
  13779. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  13780. hardcode_libdir_separator=:
  13781. hardcode_direct=yes
  13782. # hardcode_minus_L: Not really in the search PATH,
  13783. # but as the default location of the library.
  13784. hardcode_minus_L=yes
  13785. export_dynamic_flag_spec='${wl}-E'
  13786. ;;
  13787. hpux10*)
  13788. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  13789. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13790. else
  13791. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13792. fi
  13793. if test "$with_gnu_ld" = no; then
  13794. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  13795. hardcode_libdir_separator=:
  13796. hardcode_direct=yes
  13797. hardcode_direct_absolute=yes
  13798. export_dynamic_flag_spec='${wl}-E'
  13799. # hardcode_minus_L: Not really in the search PATH,
  13800. # but as the default location of the library.
  13801. hardcode_minus_L=yes
  13802. fi
  13803. ;;
  13804. hpux11*)
  13805. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  13806. case $host_cpu in
  13807. hppa*64*)
  13808. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13809. ;;
  13810. ia64*)
  13811. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13812. ;;
  13813. *)
  13814. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13815. ;;
  13816. esac
  13817. else
  13818. case $host_cpu in
  13819. hppa*64*)
  13820. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  13821. ;;
  13822. ia64*)
  13823. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  13824. ;;
  13825. *)
  13826. # Older versions of the 11.00 compiler do not understand -b yet
  13827. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  13828. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  13829. $as_echo_n "checking if $CC understands -b... " >&6; }
  13830. if ${lt_cv_prog_compiler__b+:} false; then :
  13831. $as_echo_n "(cached) " >&6
  13832. else
  13833. lt_cv_prog_compiler__b=no
  13834. save_LDFLAGS="$LDFLAGS"
  13835. LDFLAGS="$LDFLAGS -b"
  13836. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  13837. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  13838. # The linker can only warn and ignore the option if not recognized
  13839. # So say no if there are warnings
  13840. if test -s conftest.err; then
  13841. # Append any errors to the config.log.
  13842. cat conftest.err 1>&5
  13843. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  13844. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  13845. if diff conftest.exp conftest.er2 >/dev/null; then
  13846. lt_cv_prog_compiler__b=yes
  13847. fi
  13848. else
  13849. lt_cv_prog_compiler__b=yes
  13850. fi
  13851. fi
  13852. $RM -r conftest*
  13853. LDFLAGS="$save_LDFLAGS"
  13854. fi
  13855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  13856. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  13857. if test x"$lt_cv_prog_compiler__b" = xyes; then
  13858. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  13859. else
  13860. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  13861. fi
  13862. ;;
  13863. esac
  13864. fi
  13865. if test "$with_gnu_ld" = no; then
  13866. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  13867. hardcode_libdir_separator=:
  13868. case $host_cpu in
  13869. hppa*64*|ia64*)
  13870. hardcode_direct=no
  13871. hardcode_shlibpath_var=no
  13872. ;;
  13873. *)
  13874. hardcode_direct=yes
  13875. hardcode_direct_absolute=yes
  13876. export_dynamic_flag_spec='${wl}-E'
  13877. # hardcode_minus_L: Not really in the search PATH,
  13878. # but as the default location of the library.
  13879. hardcode_minus_L=yes
  13880. ;;
  13881. esac
  13882. fi
  13883. ;;
  13884. irix5* | irix6* | nonstopux*)
  13885. if test "$GCC" = yes; then
  13886. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13887. # Try to use the -exported_symbol ld option, if it does not
  13888. # work, assume that -exports_file does not work either and
  13889. # implicitly export all symbols.
  13890. # This should be the same for all languages, so no per-tag cache variable.
  13891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  13892. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  13893. if ${lt_cv_irix_exported_symbol+:} false; then :
  13894. $as_echo_n "(cached) " >&6
  13895. else
  13896. save_LDFLAGS="$LDFLAGS"
  13897. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  13898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13899. /* end confdefs.h. */
  13900. int foo (void) { return 0; }
  13901. _ACEOF
  13902. if ac_fn_c_try_link "$LINENO"; then :
  13903. lt_cv_irix_exported_symbol=yes
  13904. else
  13905. lt_cv_irix_exported_symbol=no
  13906. fi
  13907. rm -f core conftest.err conftest.$ac_objext \
  13908. conftest$ac_exeext conftest.$ac_ext
  13909. LDFLAGS="$save_LDFLAGS"
  13910. fi
  13911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  13912. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  13913. if test "$lt_cv_irix_exported_symbol" = yes; then
  13914. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  13915. fi
  13916. else
  13917. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  13918. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  13919. fi
  13920. archive_cmds_need_lc='no'
  13921. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13922. hardcode_libdir_separator=:
  13923. inherit_rpath=yes
  13924. link_all_deplibs=yes
  13925. ;;
  13926. netbsd*)
  13927. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  13928. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  13929. else
  13930. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  13931. fi
  13932. hardcode_libdir_flag_spec='-R$libdir'
  13933. hardcode_direct=yes
  13934. hardcode_shlibpath_var=no
  13935. ;;
  13936. newsos6)
  13937. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  13938. hardcode_direct=yes
  13939. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13940. hardcode_libdir_separator=:
  13941. hardcode_shlibpath_var=no
  13942. ;;
  13943. *nto* | *qnx*)
  13944. ;;
  13945. openbsd*)
  13946. if test -f /usr/libexec/ld.so; then
  13947. hardcode_direct=yes
  13948. hardcode_shlibpath_var=no
  13949. hardcode_direct_absolute=yes
  13950. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13951. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13952. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  13953. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  13954. export_dynamic_flag_spec='${wl}-E'
  13955. else
  13956. case $host_os in
  13957. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  13958. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  13959. hardcode_libdir_flag_spec='-R$libdir'
  13960. ;;
  13961. *)
  13962. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  13963. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  13964. ;;
  13965. esac
  13966. fi
  13967. else
  13968. ld_shlibs=no
  13969. fi
  13970. ;;
  13971. os2*)
  13972. hardcode_libdir_flag_spec='-L$libdir'
  13973. hardcode_minus_L=yes
  13974. allow_undefined_flag=unsupported
  13975. 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'
  13976. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  13977. ;;
  13978. osf3*)
  13979. if test "$GCC" = yes; then
  13980. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  13981. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13982. else
  13983. allow_undefined_flag=' -expect_unresolved \*'
  13984. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  13985. fi
  13986. archive_cmds_need_lc='no'
  13987. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13988. hardcode_libdir_separator=:
  13989. ;;
  13990. osf4* | osf5*) # as osf3* with the addition of -msym flag
  13991. if test "$GCC" = yes; then
  13992. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  13993. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  13994. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  13995. else
  13996. allow_undefined_flag=' -expect_unresolved \*'
  13997. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  13998. 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~
  13999. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  14000. # Both c and cxx compiler support -rpath directly
  14001. hardcode_libdir_flag_spec='-rpath $libdir'
  14002. fi
  14003. archive_cmds_need_lc='no'
  14004. hardcode_libdir_separator=:
  14005. ;;
  14006. solaris*)
  14007. no_undefined_flag=' -z defs'
  14008. if test "$GCC" = yes; then
  14009. wlarc='${wl}'
  14010. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  14011. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14012. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  14013. else
  14014. case `$CC -V 2>&1` in
  14015. *"Compilers 5.0"*)
  14016. wlarc=''
  14017. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14018. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14019. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  14020. ;;
  14021. *)
  14022. wlarc='${wl}'
  14023. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14024. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  14025. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  14026. ;;
  14027. esac
  14028. fi
  14029. hardcode_libdir_flag_spec='-R$libdir'
  14030. hardcode_shlibpath_var=no
  14031. case $host_os in
  14032. solaris2.[0-5] | solaris2.[0-5].*) ;;
  14033. *)
  14034. # The compiler driver will combine and reorder linker options,
  14035. # but understands `-z linker_flag'. GCC discards it without `$wl',
  14036. # but is careful enough not to reorder.
  14037. # Supported since Solaris 2.6 (maybe 2.5.1?)
  14038. if test "$GCC" = yes; then
  14039. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  14040. else
  14041. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  14042. fi
  14043. ;;
  14044. esac
  14045. link_all_deplibs=yes
  14046. ;;
  14047. sunos4*)
  14048. if test "x$host_vendor" = xsequent; then
  14049. # Use $CC to link under sequent, because it throws in some extra .o
  14050. # files that make .init and .fini sections work.
  14051. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  14052. else
  14053. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  14054. fi
  14055. hardcode_libdir_flag_spec='-L$libdir'
  14056. hardcode_direct=yes
  14057. hardcode_minus_L=yes
  14058. hardcode_shlibpath_var=no
  14059. ;;
  14060. sysv4)
  14061. case $host_vendor in
  14062. sni)
  14063. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14064. hardcode_direct=yes # is this really true???
  14065. ;;
  14066. siemens)
  14067. ## LD is ld it makes a PLAMLIB
  14068. ## CC just makes a GrossModule.
  14069. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  14070. reload_cmds='$CC -r -o $output$reload_objs'
  14071. hardcode_direct=no
  14072. ;;
  14073. motorola)
  14074. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14075. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  14076. ;;
  14077. esac
  14078. runpath_var='LD_RUN_PATH'
  14079. hardcode_shlibpath_var=no
  14080. ;;
  14081. sysv4.3*)
  14082. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14083. hardcode_shlibpath_var=no
  14084. export_dynamic_flag_spec='-Bexport'
  14085. ;;
  14086. sysv4*MP*)
  14087. if test -d /usr/nec; then
  14088. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14089. hardcode_shlibpath_var=no
  14090. runpath_var=LD_RUN_PATH
  14091. hardcode_runpath_var=yes
  14092. ld_shlibs=yes
  14093. fi
  14094. ;;
  14095. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  14096. no_undefined_flag='${wl}-z,text'
  14097. archive_cmds_need_lc=no
  14098. hardcode_shlibpath_var=no
  14099. runpath_var='LD_RUN_PATH'
  14100. if test "$GCC" = yes; then
  14101. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14102. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14103. else
  14104. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14105. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14106. fi
  14107. ;;
  14108. sysv5* | sco3.2v5* | sco5v6*)
  14109. # Note: We can NOT use -z defs as we might desire, because we do not
  14110. # link with -lc, and that would cause any symbols used from libc to
  14111. # always be unresolved, which means just about no library would
  14112. # ever link correctly. If we're not using GNU ld we use -z text
  14113. # though, which does catch some bad symbols but isn't as heavy-handed
  14114. # as -z defs.
  14115. no_undefined_flag='${wl}-z,text'
  14116. allow_undefined_flag='${wl}-z,nodefs'
  14117. archive_cmds_need_lc=no
  14118. hardcode_shlibpath_var=no
  14119. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  14120. hardcode_libdir_separator=':'
  14121. link_all_deplibs=yes
  14122. export_dynamic_flag_spec='${wl}-Bexport'
  14123. runpath_var='LD_RUN_PATH'
  14124. if test "$GCC" = yes; then
  14125. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14126. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14127. else
  14128. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14129. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  14130. fi
  14131. ;;
  14132. uts4*)
  14133. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  14134. hardcode_libdir_flag_spec='-L$libdir'
  14135. hardcode_shlibpath_var=no
  14136. ;;
  14137. *)
  14138. ld_shlibs=no
  14139. ;;
  14140. esac
  14141. if test x$host_vendor = xsni; then
  14142. case $host in
  14143. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  14144. export_dynamic_flag_spec='${wl}-Blargedynsym'
  14145. ;;
  14146. esac
  14147. fi
  14148. fi
  14149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  14150. $as_echo "$ld_shlibs" >&6; }
  14151. test "$ld_shlibs" = no && can_build_shared=no
  14152. with_gnu_ld=$with_gnu_ld
  14153. #
  14154. # Do we need to explicitly link libc?
  14155. #
  14156. case "x$archive_cmds_need_lc" in
  14157. x|xyes)
  14158. # Assume -lc should be added
  14159. archive_cmds_need_lc=yes
  14160. if test "$enable_shared" = yes && test "$GCC" = yes; then
  14161. case $archive_cmds in
  14162. *'~'*)
  14163. # FIXME: we may have to deal with multi-command sequences.
  14164. ;;
  14165. '$CC '*)
  14166. # Test whether the compiler implicitly links with -lc since on some
  14167. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  14168. # to ld, don't add -lc before -lgcc.
  14169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  14170. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  14171. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  14172. $as_echo_n "(cached) " >&6
  14173. else
  14174. $RM conftest*
  14175. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  14176. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  14177. (eval $ac_compile) 2>&5
  14178. ac_status=$?
  14179. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14180. test $ac_status = 0; } 2>conftest.err; then
  14181. soname=conftest
  14182. lib=conftest
  14183. libobjs=conftest.$ac_objext
  14184. deplibs=
  14185. wl=$lt_prog_compiler_wl
  14186. pic_flag=$lt_prog_compiler_pic
  14187. compiler_flags=-v
  14188. linker_flags=-v
  14189. verstring=
  14190. output_objdir=.
  14191. libname=conftest
  14192. lt_save_allow_undefined_flag=$allow_undefined_flag
  14193. allow_undefined_flag=
  14194. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  14195. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  14196. ac_status=$?
  14197. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  14198. test $ac_status = 0; }
  14199. then
  14200. lt_cv_archive_cmds_need_lc=no
  14201. else
  14202. lt_cv_archive_cmds_need_lc=yes
  14203. fi
  14204. allow_undefined_flag=$lt_save_allow_undefined_flag
  14205. else
  14206. cat conftest.err 1>&5
  14207. fi
  14208. $RM conftest*
  14209. fi
  14210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  14211. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  14212. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  14213. ;;
  14214. esac
  14215. fi
  14216. ;;
  14217. esac
  14218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  14219. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  14220. if test "$GCC" = yes; then
  14221. case $host_os in
  14222. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  14223. *) lt_awk_arg="/^libraries:/" ;;
  14224. esac
  14225. case $host_os in
  14226. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  14227. *) lt_sed_strip_eq="s,=/,/,g" ;;
  14228. esac
  14229. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  14230. case $lt_search_path_spec in
  14231. *\;*)
  14232. # if the path contains ";" then we assume it to be the separator
  14233. # otherwise default to the standard path separator (i.e. ":") - it is
  14234. # assumed that no part of a normal pathname contains ";" but that should
  14235. # okay in the real world where ";" in dirpaths is itself problematic.
  14236. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  14237. ;;
  14238. *)
  14239. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  14240. ;;
  14241. esac
  14242. # Ok, now we have the path, separated by spaces, we can step through it
  14243. # and add multilib dir if necessary.
  14244. lt_tmp_lt_search_path_spec=
  14245. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  14246. for lt_sys_path in $lt_search_path_spec; do
  14247. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  14248. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  14249. else
  14250. test -d "$lt_sys_path" && \
  14251. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  14252. fi
  14253. done
  14254. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  14255. BEGIN {RS=" "; FS="/|\n";} {
  14256. lt_foo="";
  14257. lt_count=0;
  14258. for (lt_i = NF; lt_i > 0; lt_i--) {
  14259. if ($lt_i != "" && $lt_i != ".") {
  14260. if ($lt_i == "..") {
  14261. lt_count++;
  14262. } else {
  14263. if (lt_count == 0) {
  14264. lt_foo="/" $lt_i lt_foo;
  14265. } else {
  14266. lt_count--;
  14267. }
  14268. }
  14269. }
  14270. }
  14271. if (lt_foo != "") { lt_freq[lt_foo]++; }
  14272. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  14273. }'`
  14274. # AWK program above erroneously prepends '/' to C:/dos/paths
  14275. # for these hosts.
  14276. case $host_os in
  14277. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  14278. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  14279. esac
  14280. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  14281. else
  14282. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  14283. fi
  14284. library_names_spec=
  14285. libname_spec='lib$name'
  14286. soname_spec=
  14287. shrext_cmds=".so"
  14288. postinstall_cmds=
  14289. postuninstall_cmds=
  14290. finish_cmds=
  14291. finish_eval=
  14292. shlibpath_var=
  14293. shlibpath_overrides_runpath=unknown
  14294. version_type=none
  14295. dynamic_linker="$host_os ld.so"
  14296. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  14297. need_lib_prefix=unknown
  14298. hardcode_into_libs=no
  14299. # when you set need_version to no, make sure it does not cause -set_version
  14300. # flags to be left without arguments
  14301. need_version=unknown
  14302. case $host_os in
  14303. aix3*)
  14304. version_type=linux # correct to gnu/linux during the next big refactor
  14305. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  14306. shlibpath_var=LIBPATH
  14307. # AIX 3 has no versioning support, so we append a major version to the name.
  14308. soname_spec='${libname}${release}${shared_ext}$major'
  14309. ;;
  14310. aix[4-9]*)
  14311. version_type=linux # correct to gnu/linux during the next big refactor
  14312. need_lib_prefix=no
  14313. need_version=no
  14314. hardcode_into_libs=yes
  14315. if test "$host_cpu" = ia64; then
  14316. # AIX 5 supports IA64
  14317. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  14318. shlibpath_var=LD_LIBRARY_PATH
  14319. else
  14320. # With GCC up to 2.95.x, collect2 would create an import file
  14321. # for dependence libraries. The import file would start with
  14322. # the line `#! .'. This would cause the generated library to
  14323. # depend on `.', always an invalid library. This was fixed in
  14324. # development snapshots of GCC prior to 3.0.
  14325. case $host_os in
  14326. aix4 | aix4.[01] | aix4.[01].*)
  14327. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  14328. echo ' yes '
  14329. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  14330. :
  14331. else
  14332. can_build_shared=no
  14333. fi
  14334. ;;
  14335. esac
  14336. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  14337. # soname into executable. Probably we can add versioning support to
  14338. # collect2, so additional links can be useful in future.
  14339. if test "$aix_use_runtimelinking" = yes; then
  14340. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  14341. # instead of lib<name>.a to let people know that these are not
  14342. # typical AIX shared libraries.
  14343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14344. else
  14345. # We preserve .a as extension for shared libraries through AIX4.2
  14346. # and later when we are not doing run time linking.
  14347. library_names_spec='${libname}${release}.a $libname.a'
  14348. soname_spec='${libname}${release}${shared_ext}$major'
  14349. fi
  14350. shlibpath_var=LIBPATH
  14351. fi
  14352. ;;
  14353. amigaos*)
  14354. case $host_cpu in
  14355. powerpc)
  14356. # Since July 2007 AmigaOS4 officially supports .so libraries.
  14357. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  14358. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14359. ;;
  14360. m68k)
  14361. library_names_spec='$libname.ixlibrary $libname.a'
  14362. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  14363. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  14364. ;;
  14365. esac
  14366. ;;
  14367. beos*)
  14368. library_names_spec='${libname}${shared_ext}'
  14369. dynamic_linker="$host_os ld.so"
  14370. shlibpath_var=LIBRARY_PATH
  14371. ;;
  14372. bsdi[45]*)
  14373. version_type=linux # correct to gnu/linux during the next big refactor
  14374. need_version=no
  14375. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14376. soname_spec='${libname}${release}${shared_ext}$major'
  14377. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  14378. shlibpath_var=LD_LIBRARY_PATH
  14379. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  14380. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  14381. # the default ld.so.conf also contains /usr/contrib/lib and
  14382. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  14383. # libtool to hard-code these into programs
  14384. ;;
  14385. cygwin* | mingw* | pw32* | cegcc*)
  14386. version_type=windows
  14387. shrext_cmds=".dll"
  14388. need_version=no
  14389. need_lib_prefix=no
  14390. case $GCC,$cc_basename in
  14391. yes,*)
  14392. # gcc
  14393. library_names_spec='$libname.dll.a'
  14394. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14395. postinstall_cmds='base_file=`basename \${file}`~
  14396. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  14397. dldir=$destdir/`dirname \$dlpath`~
  14398. test -d \$dldir || mkdir -p \$dldir~
  14399. $install_prog $dir/$dlname \$dldir/$dlname~
  14400. chmod a+x \$dldir/$dlname~
  14401. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  14402. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  14403. fi'
  14404. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14405. dlpath=$dir/\$dldll~
  14406. $RM \$dlpath'
  14407. shlibpath_overrides_runpath=yes
  14408. case $host_os in
  14409. cygwin*)
  14410. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  14411. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14412. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  14413. ;;
  14414. mingw* | cegcc*)
  14415. # MinGW DLLs use traditional 'lib' prefix
  14416. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14417. ;;
  14418. pw32*)
  14419. # pw32 DLLs use 'pw' prefix rather than 'lib'
  14420. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14421. ;;
  14422. esac
  14423. dynamic_linker='Win32 ld.exe'
  14424. ;;
  14425. *,cl*)
  14426. # Native MSVC
  14427. libname_spec='$name'
  14428. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  14429. library_names_spec='${libname}.dll.lib'
  14430. case $build_os in
  14431. mingw*)
  14432. sys_lib_search_path_spec=
  14433. lt_save_ifs=$IFS
  14434. IFS=';'
  14435. for lt_path in $LIB
  14436. do
  14437. IFS=$lt_save_ifs
  14438. # Let DOS variable expansion print the short 8.3 style file name.
  14439. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  14440. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  14441. done
  14442. IFS=$lt_save_ifs
  14443. # Convert to MSYS style.
  14444. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  14445. ;;
  14446. cygwin*)
  14447. # Convert to unix form, then to dos form, then back to unix form
  14448. # but this time dos style (no spaces!) so that the unix form looks
  14449. # like /cygdrive/c/PROGRA~1:/cygdr...
  14450. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  14451. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  14452. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14453. ;;
  14454. *)
  14455. sys_lib_search_path_spec="$LIB"
  14456. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  14457. # It is most probably a Windows format PATH.
  14458. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  14459. else
  14460. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  14461. fi
  14462. # FIXME: find the short name or the path components, as spaces are
  14463. # common. (e.g. "Program Files" -> "PROGRA~1")
  14464. ;;
  14465. esac
  14466. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  14467. postinstall_cmds='base_file=`basename \${file}`~
  14468. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  14469. dldir=$destdir/`dirname \$dlpath`~
  14470. test -d \$dldir || mkdir -p \$dldir~
  14471. $install_prog $dir/$dlname \$dldir/$dlname'
  14472. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  14473. dlpath=$dir/\$dldll~
  14474. $RM \$dlpath'
  14475. shlibpath_overrides_runpath=yes
  14476. dynamic_linker='Win32 link.exe'
  14477. ;;
  14478. *)
  14479. # Assume MSVC wrapper
  14480. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  14481. dynamic_linker='Win32 ld.exe'
  14482. ;;
  14483. esac
  14484. # FIXME: first we should search . and the directory the executable is in
  14485. shlibpath_var=PATH
  14486. ;;
  14487. darwin* | rhapsody*)
  14488. dynamic_linker="$host_os dyld"
  14489. version_type=darwin
  14490. need_lib_prefix=no
  14491. need_version=no
  14492. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  14493. soname_spec='${libname}${release}${major}$shared_ext'
  14494. shlibpath_overrides_runpath=yes
  14495. shlibpath_var=DYLD_LIBRARY_PATH
  14496. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  14497. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  14498. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  14499. ;;
  14500. dgux*)
  14501. version_type=linux # correct to gnu/linux during the next big refactor
  14502. need_lib_prefix=no
  14503. need_version=no
  14504. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  14505. soname_spec='${libname}${release}${shared_ext}$major'
  14506. shlibpath_var=LD_LIBRARY_PATH
  14507. ;;
  14508. freebsd* | dragonfly*)
  14509. # DragonFly does not have aout. When/if they implement a new
  14510. # versioning mechanism, adjust this.
  14511. if test -x /usr/bin/objformat; then
  14512. objformat=`/usr/bin/objformat`
  14513. else
  14514. case $host_os in
  14515. freebsd[23].*) objformat=aout ;;
  14516. *) objformat=elf ;;
  14517. esac
  14518. fi
  14519. version_type=freebsd-$objformat
  14520. case $version_type in
  14521. freebsd-elf*)
  14522. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14523. need_version=no
  14524. need_lib_prefix=no
  14525. ;;
  14526. freebsd-*)
  14527. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  14528. need_version=yes
  14529. ;;
  14530. esac
  14531. shlibpath_var=LD_LIBRARY_PATH
  14532. case $host_os in
  14533. freebsd2.*)
  14534. shlibpath_overrides_runpath=yes
  14535. ;;
  14536. freebsd3.[01]* | freebsdelf3.[01]*)
  14537. shlibpath_overrides_runpath=yes
  14538. hardcode_into_libs=yes
  14539. ;;
  14540. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  14541. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  14542. shlibpath_overrides_runpath=no
  14543. hardcode_into_libs=yes
  14544. ;;
  14545. *) # from 4.6 on, and DragonFly
  14546. shlibpath_overrides_runpath=yes
  14547. hardcode_into_libs=yes
  14548. ;;
  14549. esac
  14550. ;;
  14551. gnu*)
  14552. version_type=linux # correct to gnu/linux during the next big refactor
  14553. need_lib_prefix=no
  14554. need_version=no
  14555. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14556. soname_spec='${libname}${release}${shared_ext}$major'
  14557. shlibpath_var=LD_LIBRARY_PATH
  14558. shlibpath_overrides_runpath=no
  14559. hardcode_into_libs=yes
  14560. ;;
  14561. haiku*)
  14562. version_type=linux # correct to gnu/linux during the next big refactor
  14563. need_lib_prefix=no
  14564. need_version=no
  14565. dynamic_linker="$host_os runtime_loader"
  14566. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  14567. soname_spec='${libname}${release}${shared_ext}$major'
  14568. shlibpath_var=LIBRARY_PATH
  14569. shlibpath_overrides_runpath=yes
  14570. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  14571. hardcode_into_libs=yes
  14572. ;;
  14573. hpux9* | hpux10* | hpux11*)
  14574. # Give a soname corresponding to the major version so that dld.sl refuses to
  14575. # link against other versions.
  14576. version_type=sunos
  14577. need_lib_prefix=no
  14578. need_version=no
  14579. case $host_cpu in
  14580. ia64*)
  14581. shrext_cmds='.so'
  14582. hardcode_into_libs=yes
  14583. dynamic_linker="$host_os dld.so"
  14584. shlibpath_var=LD_LIBRARY_PATH
  14585. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14586. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14587. soname_spec='${libname}${release}${shared_ext}$major'
  14588. if test "X$HPUX_IA64_MODE" = X32; then
  14589. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  14590. else
  14591. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  14592. fi
  14593. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14594. ;;
  14595. hppa*64*)
  14596. shrext_cmds='.sl'
  14597. hardcode_into_libs=yes
  14598. dynamic_linker="$host_os dld.sl"
  14599. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  14600. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  14601. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14602. soname_spec='${libname}${release}${shared_ext}$major'
  14603. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  14604. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  14605. ;;
  14606. *)
  14607. shrext_cmds='.sl'
  14608. dynamic_linker="$host_os dld.sl"
  14609. shlibpath_var=SHLIB_PATH
  14610. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  14611. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14612. soname_spec='${libname}${release}${shared_ext}$major'
  14613. ;;
  14614. esac
  14615. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  14616. postinstall_cmds='chmod 555 $lib'
  14617. # or fails outright, so override atomically:
  14618. install_override_mode=555
  14619. ;;
  14620. interix[3-9]*)
  14621. version_type=linux # correct to gnu/linux during the next big refactor
  14622. need_lib_prefix=no
  14623. need_version=no
  14624. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14625. soname_spec='${libname}${release}${shared_ext}$major'
  14626. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  14627. shlibpath_var=LD_LIBRARY_PATH
  14628. shlibpath_overrides_runpath=no
  14629. hardcode_into_libs=yes
  14630. ;;
  14631. irix5* | irix6* | nonstopux*)
  14632. case $host_os in
  14633. nonstopux*) version_type=nonstopux ;;
  14634. *)
  14635. if test "$lt_cv_prog_gnu_ld" = yes; then
  14636. version_type=linux # correct to gnu/linux during the next big refactor
  14637. else
  14638. version_type=irix
  14639. fi ;;
  14640. esac
  14641. need_lib_prefix=no
  14642. need_version=no
  14643. soname_spec='${libname}${release}${shared_ext}$major'
  14644. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  14645. case $host_os in
  14646. irix5* | nonstopux*)
  14647. libsuff= shlibsuff=
  14648. ;;
  14649. *)
  14650. case $LD in # libtool.m4 will add one of these switches to LD
  14651. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  14652. libsuff= shlibsuff= libmagic=32-bit;;
  14653. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  14654. libsuff=32 shlibsuff=N32 libmagic=N32;;
  14655. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  14656. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  14657. *) libsuff= shlibsuff= libmagic=never-match;;
  14658. esac
  14659. ;;
  14660. esac
  14661. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  14662. shlibpath_overrides_runpath=no
  14663. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  14664. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  14665. hardcode_into_libs=yes
  14666. ;;
  14667. # No shared lib support for Linux oldld, aout, or coff.
  14668. linux*oldld* | linux*aout* | linux*coff*)
  14669. dynamic_linker=no
  14670. ;;
  14671. # This must be glibc/ELF.
  14672. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  14673. version_type=linux # correct to gnu/linux during the next big refactor
  14674. need_lib_prefix=no
  14675. need_version=no
  14676. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14677. soname_spec='${libname}${release}${shared_ext}$major'
  14678. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  14679. shlibpath_var=LD_LIBRARY_PATH
  14680. shlibpath_overrides_runpath=no
  14681. # Some binutils ld are patched to set DT_RUNPATH
  14682. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  14683. $as_echo_n "(cached) " >&6
  14684. else
  14685. lt_cv_shlibpath_overrides_runpath=no
  14686. save_LDFLAGS=$LDFLAGS
  14687. save_libdir=$libdir
  14688. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  14689. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  14690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14691. /* end confdefs.h. */
  14692. int
  14693. main ()
  14694. {
  14695. ;
  14696. return 0;
  14697. }
  14698. _ACEOF
  14699. if ac_fn_c_try_link "$LINENO"; then :
  14700. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  14701. lt_cv_shlibpath_overrides_runpath=yes
  14702. fi
  14703. fi
  14704. rm -f core conftest.err conftest.$ac_objext \
  14705. conftest$ac_exeext conftest.$ac_ext
  14706. LDFLAGS=$save_LDFLAGS
  14707. libdir=$save_libdir
  14708. fi
  14709. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  14710. # This implies no fast_install, which is unacceptable.
  14711. # Some rework will be needed to allow for fast_install
  14712. # before this can be enabled.
  14713. hardcode_into_libs=yes
  14714. # Append ld.so.conf contents to the search path
  14715. if test -f /etc/ld.so.conf; then
  14716. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  14717. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  14718. fi
  14719. # We used to test for /lib/ld.so.1 and disable shared libraries on
  14720. # powerpc, because MkLinux only supported shared libraries with the
  14721. # GNU dynamic linker. Since this was broken with cross compilers,
  14722. # most powerpc-linux boxes support dynamic linking these days and
  14723. # people can always --disable-shared, the test was removed, and we
  14724. # assume the GNU/Linux dynamic linker is in use.
  14725. dynamic_linker='GNU/Linux ld.so'
  14726. ;;
  14727. netbsd*)
  14728. version_type=sunos
  14729. need_lib_prefix=no
  14730. need_version=no
  14731. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  14732. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14733. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14734. dynamic_linker='NetBSD (a.out) ld.so'
  14735. else
  14736. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  14737. soname_spec='${libname}${release}${shared_ext}$major'
  14738. dynamic_linker='NetBSD ld.elf_so'
  14739. fi
  14740. shlibpath_var=LD_LIBRARY_PATH
  14741. shlibpath_overrides_runpath=yes
  14742. hardcode_into_libs=yes
  14743. ;;
  14744. newsos6)
  14745. version_type=linux # correct to gnu/linux during the next big refactor
  14746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14747. shlibpath_var=LD_LIBRARY_PATH
  14748. shlibpath_overrides_runpath=yes
  14749. ;;
  14750. *nto* | *qnx*)
  14751. version_type=qnx
  14752. need_lib_prefix=no
  14753. need_version=no
  14754. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14755. soname_spec='${libname}${release}${shared_ext}$major'
  14756. shlibpath_var=LD_LIBRARY_PATH
  14757. shlibpath_overrides_runpath=no
  14758. hardcode_into_libs=yes
  14759. dynamic_linker='ldqnx.so'
  14760. ;;
  14761. openbsd*)
  14762. version_type=sunos
  14763. sys_lib_dlsearch_path_spec="/usr/lib"
  14764. need_lib_prefix=no
  14765. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  14766. case $host_os in
  14767. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  14768. *) need_version=no ;;
  14769. esac
  14770. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14771. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  14772. shlibpath_var=LD_LIBRARY_PATH
  14773. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  14774. case $host_os in
  14775. openbsd2.[89] | openbsd2.[89].*)
  14776. shlibpath_overrides_runpath=no
  14777. ;;
  14778. *)
  14779. shlibpath_overrides_runpath=yes
  14780. ;;
  14781. esac
  14782. else
  14783. shlibpath_overrides_runpath=yes
  14784. fi
  14785. ;;
  14786. os2*)
  14787. libname_spec='$name'
  14788. shrext_cmds=".dll"
  14789. need_lib_prefix=no
  14790. library_names_spec='$libname${shared_ext} $libname.a'
  14791. dynamic_linker='OS/2 ld.exe'
  14792. shlibpath_var=LIBPATH
  14793. ;;
  14794. osf3* | osf4* | osf5*)
  14795. version_type=osf
  14796. need_lib_prefix=no
  14797. need_version=no
  14798. soname_spec='${libname}${release}${shared_ext}$major'
  14799. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14800. shlibpath_var=LD_LIBRARY_PATH
  14801. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  14802. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  14803. ;;
  14804. rdos*)
  14805. dynamic_linker=no
  14806. ;;
  14807. solaris*)
  14808. version_type=linux # correct to gnu/linux during the next big refactor
  14809. need_lib_prefix=no
  14810. need_version=no
  14811. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14812. soname_spec='${libname}${release}${shared_ext}$major'
  14813. shlibpath_var=LD_LIBRARY_PATH
  14814. shlibpath_overrides_runpath=yes
  14815. hardcode_into_libs=yes
  14816. # ldd complains unless libraries are executable
  14817. postinstall_cmds='chmod +x $lib'
  14818. ;;
  14819. sunos4*)
  14820. version_type=sunos
  14821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  14822. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  14823. shlibpath_var=LD_LIBRARY_PATH
  14824. shlibpath_overrides_runpath=yes
  14825. if test "$with_gnu_ld" = yes; then
  14826. need_lib_prefix=no
  14827. fi
  14828. need_version=yes
  14829. ;;
  14830. sysv4 | sysv4.3*)
  14831. version_type=linux # correct to gnu/linux during the next big refactor
  14832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14833. soname_spec='${libname}${release}${shared_ext}$major'
  14834. shlibpath_var=LD_LIBRARY_PATH
  14835. case $host_vendor in
  14836. sni)
  14837. shlibpath_overrides_runpath=no
  14838. need_lib_prefix=no
  14839. runpath_var=LD_RUN_PATH
  14840. ;;
  14841. siemens)
  14842. need_lib_prefix=no
  14843. ;;
  14844. motorola)
  14845. need_lib_prefix=no
  14846. need_version=no
  14847. shlibpath_overrides_runpath=no
  14848. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  14849. ;;
  14850. esac
  14851. ;;
  14852. sysv4*MP*)
  14853. if test -d /usr/nec ;then
  14854. version_type=linux # correct to gnu/linux during the next big refactor
  14855. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  14856. soname_spec='$libname${shared_ext}.$major'
  14857. shlibpath_var=LD_LIBRARY_PATH
  14858. fi
  14859. ;;
  14860. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  14861. version_type=freebsd-elf
  14862. need_lib_prefix=no
  14863. need_version=no
  14864. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  14865. soname_spec='${libname}${release}${shared_ext}$major'
  14866. shlibpath_var=LD_LIBRARY_PATH
  14867. shlibpath_overrides_runpath=yes
  14868. hardcode_into_libs=yes
  14869. if test "$with_gnu_ld" = yes; then
  14870. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  14871. else
  14872. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  14873. case $host_os in
  14874. sco3.2v5*)
  14875. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  14876. ;;
  14877. esac
  14878. fi
  14879. sys_lib_dlsearch_path_spec='/usr/lib'
  14880. ;;
  14881. tpf*)
  14882. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  14883. version_type=linux # correct to gnu/linux during the next big refactor
  14884. need_lib_prefix=no
  14885. need_version=no
  14886. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14887. shlibpath_var=LD_LIBRARY_PATH
  14888. shlibpath_overrides_runpath=no
  14889. hardcode_into_libs=yes
  14890. ;;
  14891. uts4*)
  14892. version_type=linux # correct to gnu/linux during the next big refactor
  14893. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  14894. soname_spec='${libname}${release}${shared_ext}$major'
  14895. shlibpath_var=LD_LIBRARY_PATH
  14896. ;;
  14897. *)
  14898. dynamic_linker=no
  14899. ;;
  14900. esac
  14901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  14902. $as_echo "$dynamic_linker" >&6; }
  14903. test "$dynamic_linker" = no && can_build_shared=no
  14904. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  14905. if test "$GCC" = yes; then
  14906. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  14907. fi
  14908. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  14909. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  14910. fi
  14911. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  14912. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  14913. fi
  14914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  14915. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  14916. hardcode_action=
  14917. if test -n "$hardcode_libdir_flag_spec" ||
  14918. test -n "$runpath_var" ||
  14919. test "X$hardcode_automatic" = "Xyes" ; then
  14920. # We can hardcode non-existent directories.
  14921. if test "$hardcode_direct" != no &&
  14922. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  14923. # have to relink, otherwise we might link with an installed library
  14924. # when we should be linking with a yet-to-be-installed one
  14925. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  14926. test "$hardcode_minus_L" != no; then
  14927. # Linking always hardcodes the temporary library directory.
  14928. hardcode_action=relink
  14929. else
  14930. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  14931. hardcode_action=immediate
  14932. fi
  14933. else
  14934. # We cannot hardcode anything, or else we can only hardcode existing
  14935. # directories.
  14936. hardcode_action=unsupported
  14937. fi
  14938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  14939. $as_echo "$hardcode_action" >&6; }
  14940. if test "$hardcode_action" = relink ||
  14941. test "$inherit_rpath" = yes; then
  14942. # Fast installation is not supported
  14943. enable_fast_install=no
  14944. elif test "$shlibpath_overrides_runpath" = yes ||
  14945. test "$enable_shared" = no; then
  14946. # Fast installation is not necessary
  14947. enable_fast_install=needless
  14948. fi
  14949. if test "x$enable_dlopen" != xyes; then
  14950. enable_dlopen=unknown
  14951. enable_dlopen_self=unknown
  14952. enable_dlopen_self_static=unknown
  14953. else
  14954. lt_cv_dlopen=no
  14955. lt_cv_dlopen_libs=
  14956. case $host_os in
  14957. beos*)
  14958. lt_cv_dlopen="load_add_on"
  14959. lt_cv_dlopen_libs=
  14960. lt_cv_dlopen_self=yes
  14961. ;;
  14962. mingw* | pw32* | cegcc*)
  14963. lt_cv_dlopen="LoadLibrary"
  14964. lt_cv_dlopen_libs=
  14965. ;;
  14966. cygwin*)
  14967. lt_cv_dlopen="dlopen"
  14968. lt_cv_dlopen_libs=
  14969. ;;
  14970. darwin*)
  14971. # if libdl is installed we need to link against it
  14972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  14973. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  14974. if ${ac_cv_lib_dl_dlopen+:} false; then :
  14975. $as_echo_n "(cached) " >&6
  14976. else
  14977. ac_check_lib_save_LIBS=$LIBS
  14978. LIBS="-ldl $LIBS"
  14979. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14980. /* end confdefs.h. */
  14981. /* Override any GCC internal prototype to avoid an error.
  14982. Use char because int might match the return type of a GCC
  14983. builtin and then its argument prototype would still apply. */
  14984. #ifdef __cplusplus
  14985. extern "C"
  14986. #endif
  14987. char dlopen ();
  14988. int
  14989. main ()
  14990. {
  14991. return dlopen ();
  14992. ;
  14993. return 0;
  14994. }
  14995. _ACEOF
  14996. if ac_fn_c_try_link "$LINENO"; then :
  14997. ac_cv_lib_dl_dlopen=yes
  14998. else
  14999. ac_cv_lib_dl_dlopen=no
  15000. fi
  15001. rm -f core conftest.err conftest.$ac_objext \
  15002. conftest$ac_exeext conftest.$ac_ext
  15003. LIBS=$ac_check_lib_save_LIBS
  15004. fi
  15005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  15006. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  15007. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  15008. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  15009. else
  15010. lt_cv_dlopen="dyld"
  15011. lt_cv_dlopen_libs=
  15012. lt_cv_dlopen_self=yes
  15013. fi
  15014. ;;
  15015. *)
  15016. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  15017. if test "x$ac_cv_func_shl_load" = xyes; then :
  15018. lt_cv_dlopen="shl_load"
  15019. else
  15020. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  15021. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  15022. if ${ac_cv_lib_dld_shl_load+:} false; then :
  15023. $as_echo_n "(cached) " >&6
  15024. else
  15025. ac_check_lib_save_LIBS=$LIBS
  15026. LIBS="-ldld $LIBS"
  15027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15028. /* end confdefs.h. */
  15029. /* Override any GCC internal prototype to avoid an error.
  15030. Use char because int might match the return type of a GCC
  15031. builtin and then its argument prototype would still apply. */
  15032. #ifdef __cplusplus
  15033. extern "C"
  15034. #endif
  15035. char shl_load ();
  15036. int
  15037. main ()
  15038. {
  15039. return shl_load ();
  15040. ;
  15041. return 0;
  15042. }
  15043. _ACEOF
  15044. if ac_fn_c_try_link "$LINENO"; then :
  15045. ac_cv_lib_dld_shl_load=yes
  15046. else
  15047. ac_cv_lib_dld_shl_load=no
  15048. fi
  15049. rm -f core conftest.err conftest.$ac_objext \
  15050. conftest$ac_exeext conftest.$ac_ext
  15051. LIBS=$ac_check_lib_save_LIBS
  15052. fi
  15053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  15054. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  15055. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  15056. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  15057. else
  15058. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  15059. if test "x$ac_cv_func_dlopen" = xyes; then :
  15060. lt_cv_dlopen="dlopen"
  15061. else
  15062. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  15063. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  15064. if ${ac_cv_lib_dl_dlopen+:} false; then :
  15065. $as_echo_n "(cached) " >&6
  15066. else
  15067. ac_check_lib_save_LIBS=$LIBS
  15068. LIBS="-ldl $LIBS"
  15069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15070. /* end confdefs.h. */
  15071. /* Override any GCC internal prototype to avoid an error.
  15072. Use char because int might match the return type of a GCC
  15073. builtin and then its argument prototype would still apply. */
  15074. #ifdef __cplusplus
  15075. extern "C"
  15076. #endif
  15077. char dlopen ();
  15078. int
  15079. main ()
  15080. {
  15081. return dlopen ();
  15082. ;
  15083. return 0;
  15084. }
  15085. _ACEOF
  15086. if ac_fn_c_try_link "$LINENO"; then :
  15087. ac_cv_lib_dl_dlopen=yes
  15088. else
  15089. ac_cv_lib_dl_dlopen=no
  15090. fi
  15091. rm -f core conftest.err conftest.$ac_objext \
  15092. conftest$ac_exeext conftest.$ac_ext
  15093. LIBS=$ac_check_lib_save_LIBS
  15094. fi
  15095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  15096. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  15097. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  15098. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  15099. else
  15100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  15101. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  15102. if ${ac_cv_lib_svld_dlopen+:} false; then :
  15103. $as_echo_n "(cached) " >&6
  15104. else
  15105. ac_check_lib_save_LIBS=$LIBS
  15106. LIBS="-lsvld $LIBS"
  15107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15108. /* end confdefs.h. */
  15109. /* Override any GCC internal prototype to avoid an error.
  15110. Use char because int might match the return type of a GCC
  15111. builtin and then its argument prototype would still apply. */
  15112. #ifdef __cplusplus
  15113. extern "C"
  15114. #endif
  15115. char dlopen ();
  15116. int
  15117. main ()
  15118. {
  15119. return dlopen ();
  15120. ;
  15121. return 0;
  15122. }
  15123. _ACEOF
  15124. if ac_fn_c_try_link "$LINENO"; then :
  15125. ac_cv_lib_svld_dlopen=yes
  15126. else
  15127. ac_cv_lib_svld_dlopen=no
  15128. fi
  15129. rm -f core conftest.err conftest.$ac_objext \
  15130. conftest$ac_exeext conftest.$ac_ext
  15131. LIBS=$ac_check_lib_save_LIBS
  15132. fi
  15133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  15134. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  15135. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  15136. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  15137. else
  15138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  15139. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  15140. if ${ac_cv_lib_dld_dld_link+:} false; then :
  15141. $as_echo_n "(cached) " >&6
  15142. else
  15143. ac_check_lib_save_LIBS=$LIBS
  15144. LIBS="-ldld $LIBS"
  15145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15146. /* end confdefs.h. */
  15147. /* Override any GCC internal prototype to avoid an error.
  15148. Use char because int might match the return type of a GCC
  15149. builtin and then its argument prototype would still apply. */
  15150. #ifdef __cplusplus
  15151. extern "C"
  15152. #endif
  15153. char dld_link ();
  15154. int
  15155. main ()
  15156. {
  15157. return dld_link ();
  15158. ;
  15159. return 0;
  15160. }
  15161. _ACEOF
  15162. if ac_fn_c_try_link "$LINENO"; then :
  15163. ac_cv_lib_dld_dld_link=yes
  15164. else
  15165. ac_cv_lib_dld_dld_link=no
  15166. fi
  15167. rm -f core conftest.err conftest.$ac_objext \
  15168. conftest$ac_exeext conftest.$ac_ext
  15169. LIBS=$ac_check_lib_save_LIBS
  15170. fi
  15171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  15172. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  15173. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  15174. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  15175. fi
  15176. fi
  15177. fi
  15178. fi
  15179. fi
  15180. fi
  15181. ;;
  15182. esac
  15183. if test "x$lt_cv_dlopen" != xno; then
  15184. enable_dlopen=yes
  15185. else
  15186. enable_dlopen=no
  15187. fi
  15188. case $lt_cv_dlopen in
  15189. dlopen)
  15190. save_CPPFLAGS="$CPPFLAGS"
  15191. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  15192. save_LDFLAGS="$LDFLAGS"
  15193. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  15194. save_LIBS="$LIBS"
  15195. LIBS="$lt_cv_dlopen_libs $LIBS"
  15196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  15197. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  15198. if ${lt_cv_dlopen_self+:} false; then :
  15199. $as_echo_n "(cached) " >&6
  15200. else
  15201. if test "$cross_compiling" = yes; then :
  15202. lt_cv_dlopen_self=cross
  15203. else
  15204. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  15205. lt_status=$lt_dlunknown
  15206. cat > conftest.$ac_ext <<_LT_EOF
  15207. #line $LINENO "configure"
  15208. #include "confdefs.h"
  15209. #if HAVE_DLFCN_H
  15210. #include <dlfcn.h>
  15211. #endif
  15212. #include <stdio.h>
  15213. #ifdef RTLD_GLOBAL
  15214. # define LT_DLGLOBAL RTLD_GLOBAL
  15215. #else
  15216. # ifdef DL_GLOBAL
  15217. # define LT_DLGLOBAL DL_GLOBAL
  15218. # else
  15219. # define LT_DLGLOBAL 0
  15220. # endif
  15221. #endif
  15222. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  15223. find out it does not work in some platform. */
  15224. #ifndef LT_DLLAZY_OR_NOW
  15225. # ifdef RTLD_LAZY
  15226. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  15227. # else
  15228. # ifdef DL_LAZY
  15229. # define LT_DLLAZY_OR_NOW DL_LAZY
  15230. # else
  15231. # ifdef RTLD_NOW
  15232. # define LT_DLLAZY_OR_NOW RTLD_NOW
  15233. # else
  15234. # ifdef DL_NOW
  15235. # define LT_DLLAZY_OR_NOW DL_NOW
  15236. # else
  15237. # define LT_DLLAZY_OR_NOW 0
  15238. # endif
  15239. # endif
  15240. # endif
  15241. # endif
  15242. #endif
  15243. /* When -fvisbility=hidden is used, assume the code has been annotated
  15244. correspondingly for the symbols needed. */
  15245. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  15246. int fnord () __attribute__((visibility("default")));
  15247. #endif
  15248. int fnord () { return 42; }
  15249. int main ()
  15250. {
  15251. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  15252. int status = $lt_dlunknown;
  15253. if (self)
  15254. {
  15255. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  15256. else
  15257. {
  15258. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  15259. else puts (dlerror ());
  15260. }
  15261. /* dlclose (self); */
  15262. }
  15263. else
  15264. puts (dlerror ());
  15265. return status;
  15266. }
  15267. _LT_EOF
  15268. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  15269. (eval $ac_link) 2>&5
  15270. ac_status=$?
  15271. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15272. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  15273. (./conftest; exit; ) >&5 2>/dev/null
  15274. lt_status=$?
  15275. case x$lt_status in
  15276. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  15277. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  15278. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  15279. esac
  15280. else :
  15281. # compilation failed
  15282. lt_cv_dlopen_self=no
  15283. fi
  15284. fi
  15285. rm -fr conftest*
  15286. fi
  15287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  15288. $as_echo "$lt_cv_dlopen_self" >&6; }
  15289. if test "x$lt_cv_dlopen_self" = xyes; then
  15290. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  15291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  15292. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  15293. if ${lt_cv_dlopen_self_static+:} false; then :
  15294. $as_echo_n "(cached) " >&6
  15295. else
  15296. if test "$cross_compiling" = yes; then :
  15297. lt_cv_dlopen_self_static=cross
  15298. else
  15299. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  15300. lt_status=$lt_dlunknown
  15301. cat > conftest.$ac_ext <<_LT_EOF
  15302. #line $LINENO "configure"
  15303. #include "confdefs.h"
  15304. #if HAVE_DLFCN_H
  15305. #include <dlfcn.h>
  15306. #endif
  15307. #include <stdio.h>
  15308. #ifdef RTLD_GLOBAL
  15309. # define LT_DLGLOBAL RTLD_GLOBAL
  15310. #else
  15311. # ifdef DL_GLOBAL
  15312. # define LT_DLGLOBAL DL_GLOBAL
  15313. # else
  15314. # define LT_DLGLOBAL 0
  15315. # endif
  15316. #endif
  15317. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  15318. find out it does not work in some platform. */
  15319. #ifndef LT_DLLAZY_OR_NOW
  15320. # ifdef RTLD_LAZY
  15321. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  15322. # else
  15323. # ifdef DL_LAZY
  15324. # define LT_DLLAZY_OR_NOW DL_LAZY
  15325. # else
  15326. # ifdef RTLD_NOW
  15327. # define LT_DLLAZY_OR_NOW RTLD_NOW
  15328. # else
  15329. # ifdef DL_NOW
  15330. # define LT_DLLAZY_OR_NOW DL_NOW
  15331. # else
  15332. # define LT_DLLAZY_OR_NOW 0
  15333. # endif
  15334. # endif
  15335. # endif
  15336. # endif
  15337. #endif
  15338. /* When -fvisbility=hidden is used, assume the code has been annotated
  15339. correspondingly for the symbols needed. */
  15340. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  15341. int fnord () __attribute__((visibility("default")));
  15342. #endif
  15343. int fnord () { return 42; }
  15344. int main ()
  15345. {
  15346. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  15347. int status = $lt_dlunknown;
  15348. if (self)
  15349. {
  15350. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  15351. else
  15352. {
  15353. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  15354. else puts (dlerror ());
  15355. }
  15356. /* dlclose (self); */
  15357. }
  15358. else
  15359. puts (dlerror ());
  15360. return status;
  15361. }
  15362. _LT_EOF
  15363. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  15364. (eval $ac_link) 2>&5
  15365. ac_status=$?
  15366. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15367. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  15368. (./conftest; exit; ) >&5 2>/dev/null
  15369. lt_status=$?
  15370. case x$lt_status in
  15371. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  15372. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  15373. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  15374. esac
  15375. else :
  15376. # compilation failed
  15377. lt_cv_dlopen_self_static=no
  15378. fi
  15379. fi
  15380. rm -fr conftest*
  15381. fi
  15382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  15383. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  15384. fi
  15385. CPPFLAGS="$save_CPPFLAGS"
  15386. LDFLAGS="$save_LDFLAGS"
  15387. LIBS="$save_LIBS"
  15388. ;;
  15389. esac
  15390. case $lt_cv_dlopen_self in
  15391. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  15392. *) enable_dlopen_self=unknown ;;
  15393. esac
  15394. case $lt_cv_dlopen_self_static in
  15395. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  15396. *) enable_dlopen_self_static=unknown ;;
  15397. esac
  15398. fi
  15399. striplib=
  15400. old_striplib=
  15401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  15402. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  15403. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  15404. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  15405. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  15406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15407. $as_echo "yes" >&6; }
  15408. else
  15409. # FIXME - insert some real tests, host_os isn't really good enough
  15410. case $host_os in
  15411. darwin*)
  15412. if test -n "$STRIP" ; then
  15413. striplib="$STRIP -x"
  15414. old_striplib="$STRIP -S"
  15415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  15416. $as_echo "yes" >&6; }
  15417. else
  15418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15419. $as_echo "no" >&6; }
  15420. fi
  15421. ;;
  15422. *)
  15423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15424. $as_echo "no" >&6; }
  15425. ;;
  15426. esac
  15427. fi
  15428. # Report which library types will actually be built
  15429. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  15430. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  15431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  15432. $as_echo "$can_build_shared" >&6; }
  15433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  15434. $as_echo_n "checking whether to build shared libraries... " >&6; }
  15435. test "$can_build_shared" = "no" && enable_shared=no
  15436. # On AIX, shared libraries and static libraries use the same namespace, and
  15437. # are all built from PIC.
  15438. case $host_os in
  15439. aix3*)
  15440. test "$enable_shared" = yes && enable_static=no
  15441. if test -n "$RANLIB"; then
  15442. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  15443. postinstall_cmds='$RANLIB $lib'
  15444. fi
  15445. ;;
  15446. aix[4-9]*)
  15447. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  15448. test "$enable_shared" = yes && enable_static=no
  15449. fi
  15450. ;;
  15451. esac
  15452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  15453. $as_echo "$enable_shared" >&6; }
  15454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  15455. $as_echo_n "checking whether to build static libraries... " >&6; }
  15456. # Make sure either enable_shared or enable_static is yes.
  15457. test "$enable_shared" = yes || enable_static=yes
  15458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  15459. $as_echo "$enable_static" >&6; }
  15460. fi
  15461. ac_ext=cpp
  15462. ac_cpp='$CXXCPP $CPPFLAGS'
  15463. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15464. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15465. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15466. CC="$lt_save_CC"
  15467. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  15468. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  15469. (test "X$CXX" != "Xg++"))) ; then
  15470. ac_ext=cpp
  15471. ac_cpp='$CXXCPP $CPPFLAGS'
  15472. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15473. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15474. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15475. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  15476. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  15477. if test -z "$CXXCPP"; then
  15478. if ${ac_cv_prog_CXXCPP+:} false; then :
  15479. $as_echo_n "(cached) " >&6
  15480. else
  15481. # Double quotes because CXXCPP needs to be expanded
  15482. for CXXCPP in "$CXX -E" "/lib/cpp"
  15483. do
  15484. ac_preproc_ok=false
  15485. for ac_cxx_preproc_warn_flag in '' yes
  15486. do
  15487. # Use a header file that comes with gcc, so configuring glibc
  15488. # with a fresh cross-compiler works.
  15489. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15490. # <limits.h> exists even on freestanding compilers.
  15491. # On the NeXT, cc -E runs the code through the compiler's parser,
  15492. # not just through cpp. "Syntax error" is here to catch this case.
  15493. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15494. /* end confdefs.h. */
  15495. #ifdef __STDC__
  15496. # include <limits.h>
  15497. #else
  15498. # include <assert.h>
  15499. #endif
  15500. Syntax error
  15501. _ACEOF
  15502. if ac_fn_cxx_try_cpp "$LINENO"; then :
  15503. else
  15504. # Broken: fails on valid input.
  15505. continue
  15506. fi
  15507. rm -f conftest.err conftest.i conftest.$ac_ext
  15508. # OK, works on sane cases. Now check whether nonexistent headers
  15509. # can be detected and how.
  15510. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15511. /* end confdefs.h. */
  15512. #include <ac_nonexistent.h>
  15513. _ACEOF
  15514. if ac_fn_cxx_try_cpp "$LINENO"; then :
  15515. # Broken: success on invalid input.
  15516. continue
  15517. else
  15518. # Passes both tests.
  15519. ac_preproc_ok=:
  15520. break
  15521. fi
  15522. rm -f conftest.err conftest.i conftest.$ac_ext
  15523. done
  15524. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15525. rm -f conftest.i conftest.err conftest.$ac_ext
  15526. if $ac_preproc_ok; then :
  15527. break
  15528. fi
  15529. done
  15530. ac_cv_prog_CXXCPP=$CXXCPP
  15531. fi
  15532. CXXCPP=$ac_cv_prog_CXXCPP
  15533. else
  15534. ac_cv_prog_CXXCPP=$CXXCPP
  15535. fi
  15536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  15537. $as_echo "$CXXCPP" >&6; }
  15538. ac_preproc_ok=false
  15539. for ac_cxx_preproc_warn_flag in '' yes
  15540. do
  15541. # Use a header file that comes with gcc, so configuring glibc
  15542. # with a fresh cross-compiler works.
  15543. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  15544. # <limits.h> exists even on freestanding compilers.
  15545. # On the NeXT, cc -E runs the code through the compiler's parser,
  15546. # not just through cpp. "Syntax error" is here to catch this case.
  15547. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15548. /* end confdefs.h. */
  15549. #ifdef __STDC__
  15550. # include <limits.h>
  15551. #else
  15552. # include <assert.h>
  15553. #endif
  15554. Syntax error
  15555. _ACEOF
  15556. if ac_fn_cxx_try_cpp "$LINENO"; then :
  15557. else
  15558. # Broken: fails on valid input.
  15559. continue
  15560. fi
  15561. rm -f conftest.err conftest.i conftest.$ac_ext
  15562. # OK, works on sane cases. Now check whether nonexistent headers
  15563. # can be detected and how.
  15564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15565. /* end confdefs.h. */
  15566. #include <ac_nonexistent.h>
  15567. _ACEOF
  15568. if ac_fn_cxx_try_cpp "$LINENO"; then :
  15569. # Broken: success on invalid input.
  15570. continue
  15571. else
  15572. # Passes both tests.
  15573. ac_preproc_ok=:
  15574. break
  15575. fi
  15576. rm -f conftest.err conftest.i conftest.$ac_ext
  15577. done
  15578. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  15579. rm -f conftest.i conftest.err conftest.$ac_ext
  15580. if $ac_preproc_ok; then :
  15581. else
  15582. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  15583. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  15584. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  15585. See \`config.log' for more details" "$LINENO" 5; }
  15586. fi
  15587. ac_ext=cpp
  15588. ac_cpp='$CXXCPP $CPPFLAGS'
  15589. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15590. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15591. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15592. else
  15593. _lt_caught_CXX_error=yes
  15594. fi
  15595. ac_ext=cpp
  15596. ac_cpp='$CXXCPP $CPPFLAGS'
  15597. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  15598. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  15599. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  15600. archive_cmds_need_lc_CXX=no
  15601. allow_undefined_flag_CXX=
  15602. always_export_symbols_CXX=no
  15603. archive_expsym_cmds_CXX=
  15604. compiler_needs_object_CXX=no
  15605. export_dynamic_flag_spec_CXX=
  15606. hardcode_direct_CXX=no
  15607. hardcode_direct_absolute_CXX=no
  15608. hardcode_libdir_flag_spec_CXX=
  15609. hardcode_libdir_separator_CXX=
  15610. hardcode_minus_L_CXX=no
  15611. hardcode_shlibpath_var_CXX=unsupported
  15612. hardcode_automatic_CXX=no
  15613. inherit_rpath_CXX=no
  15614. module_cmds_CXX=
  15615. module_expsym_cmds_CXX=
  15616. link_all_deplibs_CXX=unknown
  15617. old_archive_cmds_CXX=$old_archive_cmds
  15618. reload_flag_CXX=$reload_flag
  15619. reload_cmds_CXX=$reload_cmds
  15620. no_undefined_flag_CXX=
  15621. whole_archive_flag_spec_CXX=
  15622. enable_shared_with_static_runtimes_CXX=no
  15623. # Source file extension for C++ test sources.
  15624. ac_ext=cpp
  15625. # Object file extension for compiled C++ test sources.
  15626. objext=o
  15627. objext_CXX=$objext
  15628. # No sense in running all these tests if we already determined that
  15629. # the CXX compiler isn't working. Some variables (like enable_shared)
  15630. # are currently assumed to apply to all compilers on this platform,
  15631. # and will be corrupted by setting them based on a non-working compiler.
  15632. if test "$_lt_caught_CXX_error" != yes; then
  15633. # Code to be used in simple compile tests
  15634. lt_simple_compile_test_code="int some_variable = 0;"
  15635. # Code to be used in simple link tests
  15636. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  15637. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  15638. # If no C compiler was specified, use CC.
  15639. LTCC=${LTCC-"$CC"}
  15640. # If no C compiler flags were specified, use CFLAGS.
  15641. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  15642. # Allow CC to be a program name with arguments.
  15643. compiler=$CC
  15644. # save warnings/boilerplate of simple test code
  15645. ac_outfile=conftest.$ac_objext
  15646. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  15647. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15648. _lt_compiler_boilerplate=`cat conftest.err`
  15649. $RM conftest*
  15650. ac_outfile=conftest.$ac_objext
  15651. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  15652. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  15653. _lt_linker_boilerplate=`cat conftest.err`
  15654. $RM -r conftest*
  15655. # Allow CC to be a program name with arguments.
  15656. lt_save_CC=$CC
  15657. lt_save_CFLAGS=$CFLAGS
  15658. lt_save_LD=$LD
  15659. lt_save_GCC=$GCC
  15660. GCC=$GXX
  15661. lt_save_with_gnu_ld=$with_gnu_ld
  15662. lt_save_path_LD=$lt_cv_path_LD
  15663. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  15664. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  15665. else
  15666. $as_unset lt_cv_prog_gnu_ld
  15667. fi
  15668. if test -n "${lt_cv_path_LDCXX+set}"; then
  15669. lt_cv_path_LD=$lt_cv_path_LDCXX
  15670. else
  15671. $as_unset lt_cv_path_LD
  15672. fi
  15673. test -z "${LDCXX+set}" || LD=$LDCXX
  15674. CC=${CXX-"c++"}
  15675. CFLAGS=$CXXFLAGS
  15676. compiler=$CC
  15677. compiler_CXX=$CC
  15678. for cc_temp in $compiler""; do
  15679. case $cc_temp in
  15680. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  15681. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  15682. \-*) ;;
  15683. *) break;;
  15684. esac
  15685. done
  15686. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  15687. if test -n "$compiler"; then
  15688. # We don't want -fno-exception when compiling C++ code, so set the
  15689. # no_builtin_flag separately
  15690. if test "$GXX" = yes; then
  15691. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  15692. else
  15693. lt_prog_compiler_no_builtin_flag_CXX=
  15694. fi
  15695. if test "$GXX" = yes; then
  15696. # Set up default GNU C++ configuration
  15697. # Check whether --with-gnu-ld was given.
  15698. if test "${with_gnu_ld+set}" = set; then :
  15699. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  15700. else
  15701. with_gnu_ld=no
  15702. fi
  15703. ac_prog=ld
  15704. if test "$GCC" = yes; then
  15705. # Check if gcc -print-prog-name=ld gives a path.
  15706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  15707. $as_echo_n "checking for ld used by $CC... " >&6; }
  15708. case $host in
  15709. *-*-mingw*)
  15710. # gcc leaves a trailing carriage return which upsets mingw
  15711. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  15712. *)
  15713. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  15714. esac
  15715. case $ac_prog in
  15716. # Accept absolute paths.
  15717. [\\/]* | ?:[\\/]*)
  15718. re_direlt='/[^/][^/]*/\.\./'
  15719. # Canonicalize the pathname of ld
  15720. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  15721. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  15722. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  15723. done
  15724. test -z "$LD" && LD="$ac_prog"
  15725. ;;
  15726. "")
  15727. # If it fails, then pretend we aren't using GCC.
  15728. ac_prog=ld
  15729. ;;
  15730. *)
  15731. # If it is relative, then search for the first ld in PATH.
  15732. with_gnu_ld=unknown
  15733. ;;
  15734. esac
  15735. elif test "$with_gnu_ld" = yes; then
  15736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  15737. $as_echo_n "checking for GNU ld... " >&6; }
  15738. else
  15739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  15740. $as_echo_n "checking for non-GNU ld... " >&6; }
  15741. fi
  15742. if ${lt_cv_path_LD+:} false; then :
  15743. $as_echo_n "(cached) " >&6
  15744. else
  15745. if test -z "$LD"; then
  15746. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  15747. for ac_dir in $PATH; do
  15748. IFS="$lt_save_ifs"
  15749. test -z "$ac_dir" && ac_dir=.
  15750. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  15751. lt_cv_path_LD="$ac_dir/$ac_prog"
  15752. # Check to see if the program is GNU ld. I'd rather use --version,
  15753. # but apparently some variants of GNU ld only accept -v.
  15754. # Break only if it was the GNU/non-GNU ld that we prefer.
  15755. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  15756. *GNU* | *'with BFD'*)
  15757. test "$with_gnu_ld" != no && break
  15758. ;;
  15759. *)
  15760. test "$with_gnu_ld" != yes && break
  15761. ;;
  15762. esac
  15763. fi
  15764. done
  15765. IFS="$lt_save_ifs"
  15766. else
  15767. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  15768. fi
  15769. fi
  15770. LD="$lt_cv_path_LD"
  15771. if test -n "$LD"; then
  15772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  15773. $as_echo "$LD" >&6; }
  15774. else
  15775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  15776. $as_echo "no" >&6; }
  15777. fi
  15778. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  15779. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  15780. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  15781. if ${lt_cv_prog_gnu_ld+:} false; then :
  15782. $as_echo_n "(cached) " >&6
  15783. else
  15784. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  15785. case `$LD -v 2>&1 </dev/null` in
  15786. *GNU* | *'with BFD'*)
  15787. lt_cv_prog_gnu_ld=yes
  15788. ;;
  15789. *)
  15790. lt_cv_prog_gnu_ld=no
  15791. ;;
  15792. esac
  15793. fi
  15794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  15795. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  15796. with_gnu_ld=$lt_cv_prog_gnu_ld
  15797. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  15798. # archiving commands below assume that GNU ld is being used.
  15799. if test "$with_gnu_ld" = yes; then
  15800. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15801. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15802. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  15803. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  15804. # If archive_cmds runs LD, not CC, wlarc should be empty
  15805. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  15806. # investigate it a little bit more. (MM)
  15807. wlarc='${wl}'
  15808. # ancient GNU ld didn't support --whole-archive et. al.
  15809. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  15810. $GREP 'no-whole-archive' > /dev/null; then
  15811. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15812. else
  15813. whole_archive_flag_spec_CXX=
  15814. fi
  15815. else
  15816. with_gnu_ld=no
  15817. wlarc=
  15818. # A generic and very simple default shared library creation
  15819. # command for GNU C++ for the case where it uses the native
  15820. # linker, instead of GNU ld. If possible, this setting should
  15821. # overridden to take advantage of the native linker features on
  15822. # the platform it is being used on.
  15823. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  15824. fi
  15825. # Commands to make compiler produce verbose output that lists
  15826. # what "hidden" libraries, object files and flags are used when
  15827. # linking a shared library.
  15828. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  15829. else
  15830. GXX=no
  15831. with_gnu_ld=no
  15832. wlarc=
  15833. fi
  15834. # PORTME: fill in a description of your system's C++ link characteristics
  15835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  15836. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  15837. ld_shlibs_CXX=yes
  15838. case $host_os in
  15839. aix3*)
  15840. # FIXME: insert proper C++ library support
  15841. ld_shlibs_CXX=no
  15842. ;;
  15843. aix[4-9]*)
  15844. if test "$host_cpu" = ia64; then
  15845. # On IA64, the linker does run time linking by default, so we don't
  15846. # have to do anything special.
  15847. aix_use_runtimelinking=no
  15848. exp_sym_flag='-Bexport'
  15849. no_entry_flag=""
  15850. else
  15851. aix_use_runtimelinking=no
  15852. # Test if we are trying to use run time linking or normal
  15853. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15854. # need to do runtime linking.
  15855. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  15856. for ld_flag in $LDFLAGS; do
  15857. case $ld_flag in
  15858. *-brtl*)
  15859. aix_use_runtimelinking=yes
  15860. break
  15861. ;;
  15862. esac
  15863. done
  15864. ;;
  15865. esac
  15866. exp_sym_flag='-bexport'
  15867. no_entry_flag='-bnoentry'
  15868. fi
  15869. # When large executables or shared objects are built, AIX ld can
  15870. # have problems creating the table of contents. If linking a library
  15871. # or program results in "error TOC overflow" add -mminimal-toc to
  15872. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15873. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15874. archive_cmds_CXX=''
  15875. hardcode_direct_CXX=yes
  15876. hardcode_direct_absolute_CXX=yes
  15877. hardcode_libdir_separator_CXX=':'
  15878. link_all_deplibs_CXX=yes
  15879. file_list_spec_CXX='${wl}-f,'
  15880. if test "$GXX" = yes; then
  15881. case $host_os in aix4.[012]|aix4.[012].*)
  15882. # We only want to do this on AIX 4.2 and lower, the check
  15883. # below for broken collect2 doesn't work under 4.3+
  15884. collect2name=`${CC} -print-prog-name=collect2`
  15885. if test -f "$collect2name" &&
  15886. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  15887. then
  15888. # We have reworked collect2
  15889. :
  15890. else
  15891. # We have old collect2
  15892. hardcode_direct_CXX=unsupported
  15893. # It fails to find uninstalled libraries when the uninstalled
  15894. # path is not listed in the libpath. Setting hardcode_minus_L
  15895. # to unsupported forces relinking
  15896. hardcode_minus_L_CXX=yes
  15897. hardcode_libdir_flag_spec_CXX='-L$libdir'
  15898. hardcode_libdir_separator_CXX=
  15899. fi
  15900. esac
  15901. shared_flag='-shared'
  15902. if test "$aix_use_runtimelinking" = yes; then
  15903. shared_flag="$shared_flag "'${wl}-G'
  15904. fi
  15905. else
  15906. # not using gcc
  15907. if test "$host_cpu" = ia64; then
  15908. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  15909. # chokes on -Wl,-G. The following line is correct:
  15910. shared_flag='-G'
  15911. else
  15912. if test "$aix_use_runtimelinking" = yes; then
  15913. shared_flag='${wl}-G'
  15914. else
  15915. shared_flag='${wl}-bM:SRE'
  15916. fi
  15917. fi
  15918. fi
  15919. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  15920. # It seems that -bexpall does not export symbols beginning with
  15921. # underscore (_), so it is better to generate a list of symbols to
  15922. # export.
  15923. always_export_symbols_CXX=yes
  15924. if test "$aix_use_runtimelinking" = yes; then
  15925. # Warning - without using the other runtime loading flags (-brtl),
  15926. # -berok will link without error, but may produce a broken library.
  15927. allow_undefined_flag_CXX='-berok'
  15928. # Determine the default libpath from the value encoded in an empty
  15929. # executable.
  15930. if test "${lt_cv_aix_libpath+set}" = set; then
  15931. aix_libpath=$lt_cv_aix_libpath
  15932. else
  15933. if ${lt_cv_aix_libpath__CXX+:} false; then :
  15934. $as_echo_n "(cached) " >&6
  15935. else
  15936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15937. /* end confdefs.h. */
  15938. int
  15939. main ()
  15940. {
  15941. ;
  15942. return 0;
  15943. }
  15944. _ACEOF
  15945. if ac_fn_cxx_try_link "$LINENO"; then :
  15946. lt_aix_libpath_sed='
  15947. /Import File Strings/,/^$/ {
  15948. /^0/ {
  15949. s/^0 *\([^ ]*\) *$/\1/
  15950. p
  15951. }
  15952. }'
  15953. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15954. # Check for a 64-bit object if we didn't find anything.
  15955. if test -z "$lt_cv_aix_libpath__CXX"; then
  15956. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  15957. fi
  15958. fi
  15959. rm -f core conftest.err conftest.$ac_objext \
  15960. conftest$ac_exeext conftest.$ac_ext
  15961. if test -z "$lt_cv_aix_libpath__CXX"; then
  15962. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  15963. fi
  15964. fi
  15965. aix_libpath=$lt_cv_aix_libpath__CXX
  15966. fi
  15967. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  15968. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  15969. else
  15970. if test "$host_cpu" = ia64; then
  15971. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  15972. allow_undefined_flag_CXX="-z nodefs"
  15973. 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"
  15974. else
  15975. # Determine the default libpath from the value encoded in an
  15976. # empty executable.
  15977. if test "${lt_cv_aix_libpath+set}" = set; then
  15978. aix_libpath=$lt_cv_aix_libpath
  15979. else
  15980. if ${lt_cv_aix_libpath__CXX+:} false; then :
  15981. $as_echo_n "(cached) " >&6
  15982. else
  15983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15984. /* end confdefs.h. */
  15985. int
  15986. main ()
  15987. {
  15988. ;
  15989. return 0;
  15990. }
  15991. _ACEOF
  15992. if ac_fn_cxx_try_link "$LINENO"; then :
  15993. lt_aix_libpath_sed='
  15994. /Import File Strings/,/^$/ {
  15995. /^0/ {
  15996. s/^0 *\([^ ]*\) *$/\1/
  15997. p
  15998. }
  15999. }'
  16000. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16001. # Check for a 64-bit object if we didn't find anything.
  16002. if test -z "$lt_cv_aix_libpath__CXX"; then
  16003. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  16004. fi
  16005. fi
  16006. rm -f core conftest.err conftest.$ac_objext \
  16007. conftest$ac_exeext conftest.$ac_ext
  16008. if test -z "$lt_cv_aix_libpath__CXX"; then
  16009. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  16010. fi
  16011. fi
  16012. aix_libpath=$lt_cv_aix_libpath__CXX
  16013. fi
  16014. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  16015. # Warning - without using the other run time loading flags,
  16016. # -berok will link without error, but may produce a broken library.
  16017. no_undefined_flag_CXX=' ${wl}-bernotok'
  16018. allow_undefined_flag_CXX=' ${wl}-berok'
  16019. if test "$with_gnu_ld" = yes; then
  16020. # We only use this code for GNU lds that support --whole-archive.
  16021. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  16022. else
  16023. # Exported symbols can be pulled into shared objects from archives
  16024. whole_archive_flag_spec_CXX='$convenience'
  16025. fi
  16026. archive_cmds_need_lc_CXX=yes
  16027. # This is similar to how AIX traditionally builds its shared
  16028. # libraries.
  16029. 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'
  16030. fi
  16031. fi
  16032. ;;
  16033. beos*)
  16034. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  16035. allow_undefined_flag_CXX=unsupported
  16036. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  16037. # support --undefined. This deserves some investigation. FIXME
  16038. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16039. else
  16040. ld_shlibs_CXX=no
  16041. fi
  16042. ;;
  16043. chorus*)
  16044. case $cc_basename in
  16045. *)
  16046. # FIXME: insert proper C++ library support
  16047. ld_shlibs_CXX=no
  16048. ;;
  16049. esac
  16050. ;;
  16051. cygwin* | mingw* | pw32* | cegcc*)
  16052. case $GXX,$cc_basename in
  16053. ,cl* | no,cl*)
  16054. # Native MSVC
  16055. # hardcode_libdir_flag_spec is actually meaningless, as there is
  16056. # no search path for DLLs.
  16057. hardcode_libdir_flag_spec_CXX=' '
  16058. allow_undefined_flag_CXX=unsupported
  16059. always_export_symbols_CXX=yes
  16060. file_list_spec_CXX='@'
  16061. # Tell ltmain to make .lib files, not .a files.
  16062. libext=lib
  16063. # Tell ltmain to make .dll files, not .so files.
  16064. shrext_cmds=".dll"
  16065. # FIXME: Setting linknames here is a bad hack.
  16066. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  16067. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  16068. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  16069. else
  16070. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  16071. fi~
  16072. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  16073. linknames='
  16074. # The linker will not automatically build a static lib if we build a DLL.
  16075. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  16076. enable_shared_with_static_runtimes_CXX=yes
  16077. # Don't use ranlib
  16078. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  16079. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  16080. lt_tool_outputfile="@TOOL_OUTPUT@"~
  16081. case $lt_outputfile in
  16082. *.exe|*.EXE) ;;
  16083. *)
  16084. lt_outputfile="$lt_outputfile.exe"
  16085. lt_tool_outputfile="$lt_tool_outputfile.exe"
  16086. ;;
  16087. esac~
  16088. func_to_tool_file "$lt_outputfile"~
  16089. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  16090. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  16091. $RM "$lt_outputfile.manifest";
  16092. fi'
  16093. ;;
  16094. *)
  16095. # g++
  16096. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  16097. # as there is no search path for DLLs.
  16098. hardcode_libdir_flag_spec_CXX='-L$libdir'
  16099. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  16100. allow_undefined_flag_CXX=unsupported
  16101. always_export_symbols_CXX=no
  16102. enable_shared_with_static_runtimes_CXX=yes
  16103. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  16104. 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'
  16105. # If the export-symbols file already is a .def file (1st line
  16106. # is EXPORTS), use it as is; otherwise, prepend...
  16107. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  16108. cp $export_symbols $output_objdir/$soname.def;
  16109. else
  16110. echo EXPORTS > $output_objdir/$soname.def;
  16111. cat $export_symbols >> $output_objdir/$soname.def;
  16112. fi~
  16113. $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'
  16114. else
  16115. ld_shlibs_CXX=no
  16116. fi
  16117. ;;
  16118. esac
  16119. ;;
  16120. darwin* | rhapsody*)
  16121. archive_cmds_need_lc_CXX=no
  16122. hardcode_direct_CXX=no
  16123. hardcode_automatic_CXX=yes
  16124. hardcode_shlibpath_var_CXX=unsupported
  16125. if test "$lt_cv_ld_force_load" = "yes"; then
  16126. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  16127. else
  16128. whole_archive_flag_spec_CXX=''
  16129. fi
  16130. link_all_deplibs_CXX=yes
  16131. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  16132. case $cc_basename in
  16133. ifort*) _lt_dar_can_shared=yes ;;
  16134. *) _lt_dar_can_shared=$GCC ;;
  16135. esac
  16136. if test "$_lt_dar_can_shared" = "yes"; then
  16137. output_verbose_link_cmd=func_echo_all
  16138. 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}"
  16139. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  16140. 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}"
  16141. 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}"
  16142. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  16143. 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}"
  16144. 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}"
  16145. fi
  16146. else
  16147. ld_shlibs_CXX=no
  16148. fi
  16149. ;;
  16150. dgux*)
  16151. case $cc_basename in
  16152. ec++*)
  16153. # FIXME: insert proper C++ library support
  16154. ld_shlibs_CXX=no
  16155. ;;
  16156. ghcx*)
  16157. # Green Hills C++ Compiler
  16158. # FIXME: insert proper C++ library support
  16159. ld_shlibs_CXX=no
  16160. ;;
  16161. *)
  16162. # FIXME: insert proper C++ library support
  16163. ld_shlibs_CXX=no
  16164. ;;
  16165. esac
  16166. ;;
  16167. freebsd2.*)
  16168. # C++ shared libraries reported to be fairly broken before
  16169. # switch to ELF
  16170. ld_shlibs_CXX=no
  16171. ;;
  16172. freebsd-elf*)
  16173. archive_cmds_need_lc_CXX=no
  16174. ;;
  16175. freebsd* | dragonfly*)
  16176. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  16177. # conventions
  16178. ld_shlibs_CXX=yes
  16179. ;;
  16180. gnu*)
  16181. ;;
  16182. haiku*)
  16183. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16184. link_all_deplibs_CXX=yes
  16185. ;;
  16186. hpux9*)
  16187. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  16188. hardcode_libdir_separator_CXX=:
  16189. export_dynamic_flag_spec_CXX='${wl}-E'
  16190. hardcode_direct_CXX=yes
  16191. hardcode_minus_L_CXX=yes # Not in the search PATH,
  16192. # but as the default
  16193. # location of the library.
  16194. case $cc_basename in
  16195. CC*)
  16196. # FIXME: insert proper C++ library support
  16197. ld_shlibs_CXX=no
  16198. ;;
  16199. aCC*)
  16200. 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'
  16201. # Commands to make compiler produce verbose output that lists
  16202. # what "hidden" libraries, object files and flags are used when
  16203. # linking a shared library.
  16204. #
  16205. # There doesn't appear to be a way to prevent this compiler from
  16206. # explicitly linking system object files so we need to strip them
  16207. # from the output so that they don't get included in the library
  16208. # dependencies.
  16209. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  16210. ;;
  16211. *)
  16212. if test "$GXX" = yes; then
  16213. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  16214. else
  16215. # FIXME: insert proper C++ library support
  16216. ld_shlibs_CXX=no
  16217. fi
  16218. ;;
  16219. esac
  16220. ;;
  16221. hpux10*|hpux11*)
  16222. if test $with_gnu_ld = no; then
  16223. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  16224. hardcode_libdir_separator_CXX=:
  16225. case $host_cpu in
  16226. hppa*64*|ia64*)
  16227. ;;
  16228. *)
  16229. export_dynamic_flag_spec_CXX='${wl}-E'
  16230. ;;
  16231. esac
  16232. fi
  16233. case $host_cpu in
  16234. hppa*64*|ia64*)
  16235. hardcode_direct_CXX=no
  16236. hardcode_shlibpath_var_CXX=no
  16237. ;;
  16238. *)
  16239. hardcode_direct_CXX=yes
  16240. hardcode_direct_absolute_CXX=yes
  16241. hardcode_minus_L_CXX=yes # Not in the search PATH,
  16242. # but as the default
  16243. # location of the library.
  16244. ;;
  16245. esac
  16246. case $cc_basename in
  16247. CC*)
  16248. # FIXME: insert proper C++ library support
  16249. ld_shlibs_CXX=no
  16250. ;;
  16251. aCC*)
  16252. case $host_cpu in
  16253. hppa*64*)
  16254. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16255. ;;
  16256. ia64*)
  16257. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16258. ;;
  16259. *)
  16260. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16261. ;;
  16262. esac
  16263. # Commands to make compiler produce verbose output that lists
  16264. # what "hidden" libraries, object files and flags are used when
  16265. # linking a shared library.
  16266. #
  16267. # There doesn't appear to be a way to prevent this compiler from
  16268. # explicitly linking system object files so we need to strip them
  16269. # from the output so that they don't get included in the library
  16270. # dependencies.
  16271. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  16272. ;;
  16273. *)
  16274. if test "$GXX" = yes; then
  16275. if test $with_gnu_ld = no; then
  16276. case $host_cpu in
  16277. hppa*64*)
  16278. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16279. ;;
  16280. ia64*)
  16281. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16282. ;;
  16283. *)
  16284. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16285. ;;
  16286. esac
  16287. fi
  16288. else
  16289. # FIXME: insert proper C++ library support
  16290. ld_shlibs_CXX=no
  16291. fi
  16292. ;;
  16293. esac
  16294. ;;
  16295. interix[3-9]*)
  16296. hardcode_direct_CXX=no
  16297. hardcode_shlibpath_var_CXX=no
  16298. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  16299. export_dynamic_flag_spec_CXX='${wl}-E'
  16300. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  16301. # Instead, shared libraries are loaded at an image base (0x10000000 by
  16302. # default) and relocated if they conflict, which is a slow very memory
  16303. # consuming and fragmenting process. To avoid this, we pick a random,
  16304. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  16305. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  16306. 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'
  16307. 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'
  16308. ;;
  16309. irix5* | irix6*)
  16310. case $cc_basename in
  16311. CC*)
  16312. # SGI C++
  16313. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  16314. # Archives containing C++ object files must be created using
  16315. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  16316. # necessary to make sure instantiated templates are included
  16317. # in the archive.
  16318. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  16319. ;;
  16320. *)
  16321. if test "$GXX" = yes; then
  16322. if test "$with_gnu_ld" = no; then
  16323. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16324. else
  16325. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  16326. fi
  16327. fi
  16328. link_all_deplibs_CXX=yes
  16329. ;;
  16330. esac
  16331. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  16332. hardcode_libdir_separator_CXX=:
  16333. inherit_rpath_CXX=yes
  16334. ;;
  16335. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  16336. case $cc_basename in
  16337. KCC*)
  16338. # Kuck and Associates, Inc. (KAI) C++ Compiler
  16339. # KCC will only create a shared library if the output file
  16340. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  16341. # to its proper name (with version) after linking.
  16342. 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'
  16343. 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'
  16344. # Commands to make compiler produce verbose output that lists
  16345. # what "hidden" libraries, object files and flags are used when
  16346. # linking a shared library.
  16347. #
  16348. # There doesn't appear to be a way to prevent this compiler from
  16349. # explicitly linking system object files so we need to strip them
  16350. # from the output so that they don't get included in the library
  16351. # dependencies.
  16352. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  16353. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  16354. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  16355. # Archives containing C++ object files must be created using
  16356. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  16357. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  16358. ;;
  16359. icpc* | ecpc* )
  16360. # Intel C++
  16361. with_gnu_ld=yes
  16362. # version 8.0 and above of icpc choke on multiply defined symbols
  16363. # if we add $predep_objects and $postdep_objects, however 7.1 and
  16364. # earlier do not add the objects themselves.
  16365. case `$CC -V 2>&1` in
  16366. *"Version 7."*)
  16367. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16368. 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'
  16369. ;;
  16370. *) # Version 8.0 or newer
  16371. tmp_idyn=
  16372. case $host_cpu in
  16373. ia64*) tmp_idyn=' -i_dynamic';;
  16374. esac
  16375. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16376. 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'
  16377. ;;
  16378. esac
  16379. archive_cmds_need_lc_CXX=no
  16380. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  16381. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  16382. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  16383. ;;
  16384. pgCC* | pgcpp*)
  16385. # Portland Group C++ compiler
  16386. case `$CC -V` in
  16387. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  16388. prelink_cmds_CXX='tpldir=Template.dir~
  16389. rm -rf $tpldir~
  16390. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  16391. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  16392. old_archive_cmds_CXX='tpldir=Template.dir~
  16393. rm -rf $tpldir~
  16394. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  16395. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  16396. $RANLIB $oldlib'
  16397. archive_cmds_CXX='tpldir=Template.dir~
  16398. rm -rf $tpldir~
  16399. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  16400. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  16401. archive_expsym_cmds_CXX='tpldir=Template.dir~
  16402. rm -rf $tpldir~
  16403. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  16404. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  16405. ;;
  16406. *) # Version 6 and above use weak symbols
  16407. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  16408. 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'
  16409. ;;
  16410. esac
  16411. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  16412. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  16413. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  16414. ;;
  16415. cxx*)
  16416. # Compaq C++
  16417. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16418. 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'
  16419. runpath_var=LD_RUN_PATH
  16420. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  16421. hardcode_libdir_separator_CXX=:
  16422. # Commands to make compiler produce verbose output that lists
  16423. # what "hidden" libraries, object files and flags are used when
  16424. # linking a shared library.
  16425. #
  16426. # There doesn't appear to be a way to prevent this compiler from
  16427. # explicitly linking system object files so we need to strip them
  16428. # from the output so that they don't get included in the library
  16429. # dependencies.
  16430. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  16431. ;;
  16432. xl* | mpixl* | bgxl*)
  16433. # IBM XL 8.0 on PPC, with GNU ld
  16434. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  16435. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  16436. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  16437. if test "x$supports_anon_versioning" = xyes; then
  16438. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  16439. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  16440. echo "local: *; };" >> $output_objdir/$libname.ver~
  16441. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  16442. fi
  16443. ;;
  16444. *)
  16445. case `$CC -V 2>&1 | sed 5q` in
  16446. *Sun\ C*)
  16447. # Sun C++ 5.9
  16448. no_undefined_flag_CXX=' -zdefs'
  16449. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16450. 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'
  16451. hardcode_libdir_flag_spec_CXX='-R$libdir'
  16452. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  16453. compiler_needs_object_CXX=yes
  16454. # Not sure whether something based on
  16455. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  16456. # would be better.
  16457. output_verbose_link_cmd='func_echo_all'
  16458. # Archives containing C++ object files must be created using
  16459. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  16460. # necessary to make sure instantiated templates are included
  16461. # in the archive.
  16462. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  16463. ;;
  16464. esac
  16465. ;;
  16466. esac
  16467. ;;
  16468. lynxos*)
  16469. # FIXME: insert proper C++ library support
  16470. ld_shlibs_CXX=no
  16471. ;;
  16472. m88k*)
  16473. # FIXME: insert proper C++ library support
  16474. ld_shlibs_CXX=no
  16475. ;;
  16476. mvs*)
  16477. case $cc_basename in
  16478. cxx*)
  16479. # FIXME: insert proper C++ library support
  16480. ld_shlibs_CXX=no
  16481. ;;
  16482. *)
  16483. # FIXME: insert proper C++ library support
  16484. ld_shlibs_CXX=no
  16485. ;;
  16486. esac
  16487. ;;
  16488. netbsd*)
  16489. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  16490. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  16491. wlarc=
  16492. hardcode_libdir_flag_spec_CXX='-R$libdir'
  16493. hardcode_direct_CXX=yes
  16494. hardcode_shlibpath_var_CXX=no
  16495. fi
  16496. # Workaround some broken pre-1.5 toolchains
  16497. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  16498. ;;
  16499. *nto* | *qnx*)
  16500. ld_shlibs_CXX=yes
  16501. ;;
  16502. openbsd2*)
  16503. # C++ shared libraries are fairly broken
  16504. ld_shlibs_CXX=no
  16505. ;;
  16506. openbsd*)
  16507. if test -f /usr/libexec/ld.so; then
  16508. hardcode_direct_CXX=yes
  16509. hardcode_shlibpath_var_CXX=no
  16510. hardcode_direct_absolute_CXX=yes
  16511. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  16512. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  16513. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  16514. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  16515. export_dynamic_flag_spec_CXX='${wl}-E'
  16516. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  16517. fi
  16518. output_verbose_link_cmd=func_echo_all
  16519. else
  16520. ld_shlibs_CXX=no
  16521. fi
  16522. ;;
  16523. osf3* | osf4* | osf5*)
  16524. case $cc_basename in
  16525. KCC*)
  16526. # Kuck and Associates, Inc. (KAI) C++ Compiler
  16527. # KCC will only create a shared library if the output file
  16528. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  16529. # to its proper name (with version) after linking.
  16530. 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'
  16531. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  16532. hardcode_libdir_separator_CXX=:
  16533. # Archives containing C++ object files must be created using
  16534. # the KAI C++ compiler.
  16535. case $host in
  16536. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  16537. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  16538. esac
  16539. ;;
  16540. RCC*)
  16541. # Rational C++ 2.4.1
  16542. # FIXME: insert proper C++ library support
  16543. ld_shlibs_CXX=no
  16544. ;;
  16545. cxx*)
  16546. case $host in
  16547. osf3*)
  16548. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  16549. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  16550. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  16551. ;;
  16552. *)
  16553. allow_undefined_flag_CXX=' -expect_unresolved \*'
  16554. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  16555. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  16556. echo "-hidden">> $lib.exp~
  16557. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  16558. $RM $lib.exp'
  16559. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  16560. ;;
  16561. esac
  16562. hardcode_libdir_separator_CXX=:
  16563. # Commands to make compiler produce verbose output that lists
  16564. # what "hidden" libraries, object files and flags are used when
  16565. # linking a shared library.
  16566. #
  16567. # There doesn't appear to be a way to prevent this compiler from
  16568. # explicitly linking system object files so we need to strip them
  16569. # from the output so that they don't get included in the library
  16570. # dependencies.
  16571. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  16572. ;;
  16573. *)
  16574. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  16575. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  16576. case $host in
  16577. osf3*)
  16578. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16579. ;;
  16580. *)
  16581. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  16582. ;;
  16583. esac
  16584. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  16585. hardcode_libdir_separator_CXX=:
  16586. # Commands to make compiler produce verbose output that lists
  16587. # what "hidden" libraries, object files and flags are used when
  16588. # linking a shared library.
  16589. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  16590. else
  16591. # FIXME: insert proper C++ library support
  16592. ld_shlibs_CXX=no
  16593. fi
  16594. ;;
  16595. esac
  16596. ;;
  16597. psos*)
  16598. # FIXME: insert proper C++ library support
  16599. ld_shlibs_CXX=no
  16600. ;;
  16601. sunos4*)
  16602. case $cc_basename in
  16603. CC*)
  16604. # Sun C++ 4.x
  16605. # FIXME: insert proper C++ library support
  16606. ld_shlibs_CXX=no
  16607. ;;
  16608. lcc*)
  16609. # Lucid
  16610. # FIXME: insert proper C++ library support
  16611. ld_shlibs_CXX=no
  16612. ;;
  16613. *)
  16614. # FIXME: insert proper C++ library support
  16615. ld_shlibs_CXX=no
  16616. ;;
  16617. esac
  16618. ;;
  16619. solaris*)
  16620. case $cc_basename in
  16621. CC* | sunCC*)
  16622. # Sun C++ 4.2, 5.x and Centerline C++
  16623. archive_cmds_need_lc_CXX=yes
  16624. no_undefined_flag_CXX=' -zdefs'
  16625. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  16626. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  16627. $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'
  16628. hardcode_libdir_flag_spec_CXX='-R$libdir'
  16629. hardcode_shlibpath_var_CXX=no
  16630. case $host_os in
  16631. solaris2.[0-5] | solaris2.[0-5].*) ;;
  16632. *)
  16633. # The compiler driver will combine and reorder linker options,
  16634. # but understands `-z linker_flag'.
  16635. # Supported since Solaris 2.6 (maybe 2.5.1?)
  16636. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  16637. ;;
  16638. esac
  16639. link_all_deplibs_CXX=yes
  16640. output_verbose_link_cmd='func_echo_all'
  16641. # Archives containing C++ object files must be created using
  16642. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  16643. # necessary to make sure instantiated templates are included
  16644. # in the archive.
  16645. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  16646. ;;
  16647. gcx*)
  16648. # Green Hills C++ Compiler
  16649. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  16650. # The C++ compiler must be used to create the archive.
  16651. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  16652. ;;
  16653. *)
  16654. # GNU C++ compiler with Solaris linker
  16655. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  16656. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  16657. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  16658. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  16659. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  16660. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  16661. # Commands to make compiler produce verbose output that lists
  16662. # what "hidden" libraries, object files and flags are used when
  16663. # linking a shared library.
  16664. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  16665. else
  16666. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  16667. # platform.
  16668. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  16669. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  16670. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  16671. # Commands to make compiler produce verbose output that lists
  16672. # what "hidden" libraries, object files and flags are used when
  16673. # linking a shared library.
  16674. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  16675. fi
  16676. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  16677. case $host_os in
  16678. solaris2.[0-5] | solaris2.[0-5].*) ;;
  16679. *)
  16680. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  16681. ;;
  16682. esac
  16683. fi
  16684. ;;
  16685. esac
  16686. ;;
  16687. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  16688. no_undefined_flag_CXX='${wl}-z,text'
  16689. archive_cmds_need_lc_CXX=no
  16690. hardcode_shlibpath_var_CXX=no
  16691. runpath_var='LD_RUN_PATH'
  16692. case $cc_basename in
  16693. CC*)
  16694. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16695. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16696. ;;
  16697. *)
  16698. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16699. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16700. ;;
  16701. esac
  16702. ;;
  16703. sysv5* | sco3.2v5* | sco5v6*)
  16704. # Note: We can NOT use -z defs as we might desire, because we do not
  16705. # link with -lc, and that would cause any symbols used from libc to
  16706. # always be unresolved, which means just about no library would
  16707. # ever link correctly. If we're not using GNU ld we use -z text
  16708. # though, which does catch some bad symbols but isn't as heavy-handed
  16709. # as -z defs.
  16710. no_undefined_flag_CXX='${wl}-z,text'
  16711. allow_undefined_flag_CXX='${wl}-z,nodefs'
  16712. archive_cmds_need_lc_CXX=no
  16713. hardcode_shlibpath_var_CXX=no
  16714. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  16715. hardcode_libdir_separator_CXX=':'
  16716. link_all_deplibs_CXX=yes
  16717. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  16718. runpath_var='LD_RUN_PATH'
  16719. case $cc_basename in
  16720. CC*)
  16721. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16722. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16723. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  16724. '"$old_archive_cmds_CXX"
  16725. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  16726. '"$reload_cmds_CXX"
  16727. ;;
  16728. *)
  16729. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16730. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  16731. ;;
  16732. esac
  16733. ;;
  16734. tandem*)
  16735. case $cc_basename in
  16736. NCC*)
  16737. # NonStop-UX NCC 3.20
  16738. # FIXME: insert proper C++ library support
  16739. ld_shlibs_CXX=no
  16740. ;;
  16741. *)
  16742. # FIXME: insert proper C++ library support
  16743. ld_shlibs_CXX=no
  16744. ;;
  16745. esac
  16746. ;;
  16747. vxworks*)
  16748. # FIXME: insert proper C++ library support
  16749. ld_shlibs_CXX=no
  16750. ;;
  16751. *)
  16752. # FIXME: insert proper C++ library support
  16753. ld_shlibs_CXX=no
  16754. ;;
  16755. esac
  16756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  16757. $as_echo "$ld_shlibs_CXX" >&6; }
  16758. test "$ld_shlibs_CXX" = no && can_build_shared=no
  16759. GCC_CXX="$GXX"
  16760. LD_CXX="$LD"
  16761. ## CAVEAT EMPTOR:
  16762. ## There is no encapsulation within the following macros, do not change
  16763. ## the running order or otherwise move them around unless you know exactly
  16764. ## what you are doing...
  16765. # Dependencies to place before and after the object being linked:
  16766. predep_objects_CXX=
  16767. postdep_objects_CXX=
  16768. predeps_CXX=
  16769. postdeps_CXX=
  16770. compiler_lib_search_path_CXX=
  16771. cat > conftest.$ac_ext <<_LT_EOF
  16772. class Foo
  16773. {
  16774. public:
  16775. Foo (void) { a = 0; }
  16776. private:
  16777. int a;
  16778. };
  16779. _LT_EOF
  16780. _lt_libdeps_save_CFLAGS=$CFLAGS
  16781. case "$CC $CFLAGS " in #(
  16782. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  16783. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  16784. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  16785. esac
  16786. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  16787. (eval $ac_compile) 2>&5
  16788. ac_status=$?
  16789. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16790. test $ac_status = 0; }; then
  16791. # Parse the compiler output and extract the necessary
  16792. # objects, libraries and library flags.
  16793. # Sentinel used to keep track of whether or not we are before
  16794. # the conftest object file.
  16795. pre_test_object_deps_done=no
  16796. for p in `eval "$output_verbose_link_cmd"`; do
  16797. case ${prev}${p} in
  16798. -L* | -R* | -l*)
  16799. # Some compilers place space between "-{L,R}" and the path.
  16800. # Remove the space.
  16801. if test $p = "-L" ||
  16802. test $p = "-R"; then
  16803. prev=$p
  16804. continue
  16805. fi
  16806. # Expand the sysroot to ease extracting the directories later.
  16807. if test -z "$prev"; then
  16808. case $p in
  16809. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  16810. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  16811. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  16812. esac
  16813. fi
  16814. case $p in
  16815. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  16816. esac
  16817. if test "$pre_test_object_deps_done" = no; then
  16818. case ${prev} in
  16819. -L | -R)
  16820. # Internal compiler library paths should come after those
  16821. # provided the user. The postdeps already come after the
  16822. # user supplied libs so there is no need to process them.
  16823. if test -z "$compiler_lib_search_path_CXX"; then
  16824. compiler_lib_search_path_CXX="${prev}${p}"
  16825. else
  16826. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  16827. fi
  16828. ;;
  16829. # The "-l" case would never come before the object being
  16830. # linked, so don't bother handling this case.
  16831. esac
  16832. else
  16833. if test -z "$postdeps_CXX"; then
  16834. postdeps_CXX="${prev}${p}"
  16835. else
  16836. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  16837. fi
  16838. fi
  16839. prev=
  16840. ;;
  16841. *.lto.$objext) ;; # Ignore GCC LTO objects
  16842. *.$objext)
  16843. # This assumes that the test object file only shows up
  16844. # once in the compiler output.
  16845. if test "$p" = "conftest.$objext"; then
  16846. pre_test_object_deps_done=yes
  16847. continue
  16848. fi
  16849. if test "$pre_test_object_deps_done" = no; then
  16850. if test -z "$predep_objects_CXX"; then
  16851. predep_objects_CXX="$p"
  16852. else
  16853. predep_objects_CXX="$predep_objects_CXX $p"
  16854. fi
  16855. else
  16856. if test -z "$postdep_objects_CXX"; then
  16857. postdep_objects_CXX="$p"
  16858. else
  16859. postdep_objects_CXX="$postdep_objects_CXX $p"
  16860. fi
  16861. fi
  16862. ;;
  16863. *) ;; # Ignore the rest.
  16864. esac
  16865. done
  16866. # Clean up.
  16867. rm -f a.out a.exe
  16868. else
  16869. echo "libtool.m4: error: problem compiling CXX test program"
  16870. fi
  16871. $RM -f confest.$objext
  16872. CFLAGS=$_lt_libdeps_save_CFLAGS
  16873. # PORTME: override above test on systems where it is broken
  16874. case $host_os in
  16875. interix[3-9]*)
  16876. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  16877. # hack all around it, let's just trust "g++" to DTRT.
  16878. predep_objects_CXX=
  16879. postdep_objects_CXX=
  16880. postdeps_CXX=
  16881. ;;
  16882. linux*)
  16883. case `$CC -V 2>&1 | sed 5q` in
  16884. *Sun\ C*)
  16885. # Sun C++ 5.9
  16886. # The more standards-conforming stlport4 library is
  16887. # incompatible with the Cstd library. Avoid specifying
  16888. # it if it's in CXXFLAGS. Ignore libCrun as
  16889. # -library=stlport4 depends on it.
  16890. case " $CXX $CXXFLAGS " in
  16891. *" -library=stlport4 "*)
  16892. solaris_use_stlport4=yes
  16893. ;;
  16894. esac
  16895. if test "$solaris_use_stlport4" != yes; then
  16896. postdeps_CXX='-library=Cstd -library=Crun'
  16897. fi
  16898. ;;
  16899. esac
  16900. ;;
  16901. solaris*)
  16902. case $cc_basename in
  16903. CC* | sunCC*)
  16904. # The more standards-conforming stlport4 library is
  16905. # incompatible with the Cstd library. Avoid specifying
  16906. # it if it's in CXXFLAGS. Ignore libCrun as
  16907. # -library=stlport4 depends on it.
  16908. case " $CXX $CXXFLAGS " in
  16909. *" -library=stlport4 "*)
  16910. solaris_use_stlport4=yes
  16911. ;;
  16912. esac
  16913. # Adding this requires a known-good setup of shared libraries for
  16914. # Sun compiler versions before 5.6, else PIC objects from an old
  16915. # archive will be linked into the output, leading to subtle bugs.
  16916. if test "$solaris_use_stlport4" != yes; then
  16917. postdeps_CXX='-library=Cstd -library=Crun'
  16918. fi
  16919. ;;
  16920. esac
  16921. ;;
  16922. esac
  16923. case " $postdeps_CXX " in
  16924. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  16925. esac
  16926. compiler_lib_search_dirs_CXX=
  16927. if test -n "${compiler_lib_search_path_CXX}"; then
  16928. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  16929. fi
  16930. lt_prog_compiler_wl_CXX=
  16931. lt_prog_compiler_pic_CXX=
  16932. lt_prog_compiler_static_CXX=
  16933. # C++ specific cases for pic, static, wl, etc.
  16934. if test "$GXX" = yes; then
  16935. lt_prog_compiler_wl_CXX='-Wl,'
  16936. lt_prog_compiler_static_CXX='-static'
  16937. case $host_os in
  16938. aix*)
  16939. # All AIX code is PIC.
  16940. if test "$host_cpu" = ia64; then
  16941. # AIX 5 now supports IA64 processor
  16942. lt_prog_compiler_static_CXX='-Bstatic'
  16943. fi
  16944. ;;
  16945. amigaos*)
  16946. case $host_cpu in
  16947. powerpc)
  16948. # see comment about AmigaOS4 .so support
  16949. lt_prog_compiler_pic_CXX='-fPIC'
  16950. ;;
  16951. m68k)
  16952. # FIXME: we need at least 68020 code to build shared libraries, but
  16953. # adding the `-m68020' flag to GCC prevents building anything better,
  16954. # like `-m68040'.
  16955. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  16956. ;;
  16957. esac
  16958. ;;
  16959. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  16960. # PIC is the default for these OSes.
  16961. ;;
  16962. mingw* | cygwin* | os2* | pw32* | cegcc*)
  16963. # This hack is so that the source file can tell whether it is being
  16964. # built for inclusion in a dll (and should export symbols for example).
  16965. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  16966. # (--disable-auto-import) libraries
  16967. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  16968. ;;
  16969. darwin* | rhapsody*)
  16970. # PIC is the default on this platform
  16971. # Common symbols not allowed in MH_DYLIB files
  16972. lt_prog_compiler_pic_CXX='-fno-common'
  16973. ;;
  16974. *djgpp*)
  16975. # DJGPP does not support shared libraries at all
  16976. lt_prog_compiler_pic_CXX=
  16977. ;;
  16978. haiku*)
  16979. # PIC is the default for Haiku.
  16980. # The "-static" flag exists, but is broken.
  16981. lt_prog_compiler_static_CXX=
  16982. ;;
  16983. interix[3-9]*)
  16984. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  16985. # Instead, we relocate shared libraries at runtime.
  16986. ;;
  16987. sysv4*MP*)
  16988. if test -d /usr/nec; then
  16989. lt_prog_compiler_pic_CXX=-Kconform_pic
  16990. fi
  16991. ;;
  16992. hpux*)
  16993. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  16994. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  16995. # sets the default TLS model and affects inlining.
  16996. case $host_cpu in
  16997. hppa*64*)
  16998. ;;
  16999. *)
  17000. lt_prog_compiler_pic_CXX='-fPIC'
  17001. ;;
  17002. esac
  17003. ;;
  17004. *qnx* | *nto*)
  17005. # QNX uses GNU C++, but need to define -shared option too, otherwise
  17006. # it will coredump.
  17007. lt_prog_compiler_pic_CXX='-fPIC -shared'
  17008. ;;
  17009. *)
  17010. lt_prog_compiler_pic_CXX='-fPIC'
  17011. ;;
  17012. esac
  17013. else
  17014. case $host_os in
  17015. aix[4-9]*)
  17016. # All AIX code is PIC.
  17017. if test "$host_cpu" = ia64; then
  17018. # AIX 5 now supports IA64 processor
  17019. lt_prog_compiler_static_CXX='-Bstatic'
  17020. else
  17021. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  17022. fi
  17023. ;;
  17024. chorus*)
  17025. case $cc_basename in
  17026. cxch68*)
  17027. # Green Hills C++ Compiler
  17028. # _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"
  17029. ;;
  17030. esac
  17031. ;;
  17032. mingw* | cygwin* | os2* | pw32* | cegcc*)
  17033. # This hack is so that the source file can tell whether it is being
  17034. # built for inclusion in a dll (and should export symbols for example).
  17035. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  17036. ;;
  17037. dgux*)
  17038. case $cc_basename in
  17039. ec++*)
  17040. lt_prog_compiler_pic_CXX='-KPIC'
  17041. ;;
  17042. ghcx*)
  17043. # Green Hills C++ Compiler
  17044. lt_prog_compiler_pic_CXX='-pic'
  17045. ;;
  17046. *)
  17047. ;;
  17048. esac
  17049. ;;
  17050. freebsd* | dragonfly*)
  17051. # FreeBSD uses GNU C++
  17052. ;;
  17053. hpux9* | hpux10* | hpux11*)
  17054. case $cc_basename in
  17055. CC*)
  17056. lt_prog_compiler_wl_CXX='-Wl,'
  17057. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  17058. if test "$host_cpu" != ia64; then
  17059. lt_prog_compiler_pic_CXX='+Z'
  17060. fi
  17061. ;;
  17062. aCC*)
  17063. lt_prog_compiler_wl_CXX='-Wl,'
  17064. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  17065. case $host_cpu in
  17066. hppa*64*|ia64*)
  17067. # +Z the default
  17068. ;;
  17069. *)
  17070. lt_prog_compiler_pic_CXX='+Z'
  17071. ;;
  17072. esac
  17073. ;;
  17074. *)
  17075. ;;
  17076. esac
  17077. ;;
  17078. interix*)
  17079. # This is c89, which is MS Visual C++ (no shared libs)
  17080. # Anyone wants to do a port?
  17081. ;;
  17082. irix5* | irix6* | nonstopux*)
  17083. case $cc_basename in
  17084. CC*)
  17085. lt_prog_compiler_wl_CXX='-Wl,'
  17086. lt_prog_compiler_static_CXX='-non_shared'
  17087. # CC pic flag -KPIC is the default.
  17088. ;;
  17089. *)
  17090. ;;
  17091. esac
  17092. ;;
  17093. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  17094. case $cc_basename in
  17095. KCC*)
  17096. # KAI C++ Compiler
  17097. lt_prog_compiler_wl_CXX='--backend -Wl,'
  17098. lt_prog_compiler_pic_CXX='-fPIC'
  17099. ;;
  17100. ecpc* )
  17101. # old Intel C++ for x86_64 which still supported -KPIC.
  17102. lt_prog_compiler_wl_CXX='-Wl,'
  17103. lt_prog_compiler_pic_CXX='-KPIC'
  17104. lt_prog_compiler_static_CXX='-static'
  17105. ;;
  17106. icpc* )
  17107. # Intel C++, used to be incompatible with GCC.
  17108. # ICC 10 doesn't accept -KPIC any more.
  17109. lt_prog_compiler_wl_CXX='-Wl,'
  17110. lt_prog_compiler_pic_CXX='-fPIC'
  17111. lt_prog_compiler_static_CXX='-static'
  17112. ;;
  17113. pgCC* | pgcpp*)
  17114. # Portland Group C++ compiler
  17115. lt_prog_compiler_wl_CXX='-Wl,'
  17116. lt_prog_compiler_pic_CXX='-fpic'
  17117. lt_prog_compiler_static_CXX='-Bstatic'
  17118. ;;
  17119. cxx*)
  17120. # Compaq C++
  17121. # Make sure the PIC flag is empty. It appears that all Alpha
  17122. # Linux and Compaq Tru64 Unix objects are PIC.
  17123. lt_prog_compiler_pic_CXX=
  17124. lt_prog_compiler_static_CXX='-non_shared'
  17125. ;;
  17126. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  17127. # IBM XL 8.0, 9.0 on PPC and BlueGene
  17128. lt_prog_compiler_wl_CXX='-Wl,'
  17129. lt_prog_compiler_pic_CXX='-qpic'
  17130. lt_prog_compiler_static_CXX='-qstaticlink'
  17131. ;;
  17132. *)
  17133. case `$CC -V 2>&1 | sed 5q` in
  17134. *Sun\ C*)
  17135. # Sun C++ 5.9
  17136. lt_prog_compiler_pic_CXX='-KPIC'
  17137. lt_prog_compiler_static_CXX='-Bstatic'
  17138. lt_prog_compiler_wl_CXX='-Qoption ld '
  17139. ;;
  17140. esac
  17141. ;;
  17142. esac
  17143. ;;
  17144. lynxos*)
  17145. ;;
  17146. m88k*)
  17147. ;;
  17148. mvs*)
  17149. case $cc_basename in
  17150. cxx*)
  17151. lt_prog_compiler_pic_CXX='-W c,exportall'
  17152. ;;
  17153. *)
  17154. ;;
  17155. esac
  17156. ;;
  17157. netbsd*)
  17158. ;;
  17159. *qnx* | *nto*)
  17160. # QNX uses GNU C++, but need to define -shared option too, otherwise
  17161. # it will coredump.
  17162. lt_prog_compiler_pic_CXX='-fPIC -shared'
  17163. ;;
  17164. osf3* | osf4* | osf5*)
  17165. case $cc_basename in
  17166. KCC*)
  17167. lt_prog_compiler_wl_CXX='--backend -Wl,'
  17168. ;;
  17169. RCC*)
  17170. # Rational C++ 2.4.1
  17171. lt_prog_compiler_pic_CXX='-pic'
  17172. ;;
  17173. cxx*)
  17174. # Digital/Compaq C++
  17175. lt_prog_compiler_wl_CXX='-Wl,'
  17176. # Make sure the PIC flag is empty. It appears that all Alpha
  17177. # Linux and Compaq Tru64 Unix objects are PIC.
  17178. lt_prog_compiler_pic_CXX=
  17179. lt_prog_compiler_static_CXX='-non_shared'
  17180. ;;
  17181. *)
  17182. ;;
  17183. esac
  17184. ;;
  17185. psos*)
  17186. ;;
  17187. solaris*)
  17188. case $cc_basename in
  17189. CC* | sunCC*)
  17190. # Sun C++ 4.2, 5.x and Centerline C++
  17191. lt_prog_compiler_pic_CXX='-KPIC'
  17192. lt_prog_compiler_static_CXX='-Bstatic'
  17193. lt_prog_compiler_wl_CXX='-Qoption ld '
  17194. ;;
  17195. gcx*)
  17196. # Green Hills C++ Compiler
  17197. lt_prog_compiler_pic_CXX='-PIC'
  17198. ;;
  17199. *)
  17200. ;;
  17201. esac
  17202. ;;
  17203. sunos4*)
  17204. case $cc_basename in
  17205. CC*)
  17206. # Sun C++ 4.x
  17207. lt_prog_compiler_pic_CXX='-pic'
  17208. lt_prog_compiler_static_CXX='-Bstatic'
  17209. ;;
  17210. lcc*)
  17211. # Lucid
  17212. lt_prog_compiler_pic_CXX='-pic'
  17213. ;;
  17214. *)
  17215. ;;
  17216. esac
  17217. ;;
  17218. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  17219. case $cc_basename in
  17220. CC*)
  17221. lt_prog_compiler_wl_CXX='-Wl,'
  17222. lt_prog_compiler_pic_CXX='-KPIC'
  17223. lt_prog_compiler_static_CXX='-Bstatic'
  17224. ;;
  17225. esac
  17226. ;;
  17227. tandem*)
  17228. case $cc_basename in
  17229. NCC*)
  17230. # NonStop-UX NCC 3.20
  17231. lt_prog_compiler_pic_CXX='-KPIC'
  17232. ;;
  17233. *)
  17234. ;;
  17235. esac
  17236. ;;
  17237. vxworks*)
  17238. ;;
  17239. *)
  17240. lt_prog_compiler_can_build_shared_CXX=no
  17241. ;;
  17242. esac
  17243. fi
  17244. case $host_os in
  17245. # For platforms which do not support PIC, -DPIC is meaningless:
  17246. *djgpp*)
  17247. lt_prog_compiler_pic_CXX=
  17248. ;;
  17249. *)
  17250. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  17251. ;;
  17252. esac
  17253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  17254. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  17255. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  17256. $as_echo_n "(cached) " >&6
  17257. else
  17258. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  17259. fi
  17260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  17261. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  17262. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  17263. #
  17264. # Check to make sure the PIC flag actually works.
  17265. #
  17266. if test -n "$lt_prog_compiler_pic_CXX"; then
  17267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  17268. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  17269. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  17270. $as_echo_n "(cached) " >&6
  17271. else
  17272. lt_cv_prog_compiler_pic_works_CXX=no
  17273. ac_outfile=conftest.$ac_objext
  17274. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17275. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  17276. # Insert the option either (1) after the last *FLAGS variable, or
  17277. # (2) before a word containing "conftest.", or (3) at the end.
  17278. # Note that $ac_compile itself does not contain backslashes and begins
  17279. # with a dollar sign (not a hyphen), so the echo should work correctly.
  17280. # The option is referenced via a variable to avoid confusing sed.
  17281. lt_compile=`echo "$ac_compile" | $SED \
  17282. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  17283. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  17284. -e 's:$: $lt_compiler_flag:'`
  17285. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  17286. (eval "$lt_compile" 2>conftest.err)
  17287. ac_status=$?
  17288. cat conftest.err >&5
  17289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17290. if (exit $ac_status) && test -s "$ac_outfile"; then
  17291. # The compiler can only warn and ignore the option if not recognized
  17292. # So say no if there are warnings other than the usual output.
  17293. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  17294. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  17295. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  17296. lt_cv_prog_compiler_pic_works_CXX=yes
  17297. fi
  17298. fi
  17299. $RM conftest*
  17300. fi
  17301. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  17302. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  17303. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  17304. case $lt_prog_compiler_pic_CXX in
  17305. "" | " "*) ;;
  17306. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  17307. esac
  17308. else
  17309. lt_prog_compiler_pic_CXX=
  17310. lt_prog_compiler_can_build_shared_CXX=no
  17311. fi
  17312. fi
  17313. #
  17314. # Check to make sure the static flag actually works.
  17315. #
  17316. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  17317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  17318. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  17319. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  17320. $as_echo_n "(cached) " >&6
  17321. else
  17322. lt_cv_prog_compiler_static_works_CXX=no
  17323. save_LDFLAGS="$LDFLAGS"
  17324. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  17325. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  17326. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  17327. # The linker can only warn and ignore the option if not recognized
  17328. # So say no if there are warnings
  17329. if test -s conftest.err; then
  17330. # Append any errors to the config.log.
  17331. cat conftest.err 1>&5
  17332. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  17333. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  17334. if diff conftest.exp conftest.er2 >/dev/null; then
  17335. lt_cv_prog_compiler_static_works_CXX=yes
  17336. fi
  17337. else
  17338. lt_cv_prog_compiler_static_works_CXX=yes
  17339. fi
  17340. fi
  17341. $RM -r conftest*
  17342. LDFLAGS="$save_LDFLAGS"
  17343. fi
  17344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  17345. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  17346. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  17347. :
  17348. else
  17349. lt_prog_compiler_static_CXX=
  17350. fi
  17351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  17352. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  17353. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  17354. $as_echo_n "(cached) " >&6
  17355. else
  17356. lt_cv_prog_compiler_c_o_CXX=no
  17357. $RM -r conftest 2>/dev/null
  17358. mkdir conftest
  17359. cd conftest
  17360. mkdir out
  17361. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17362. lt_compiler_flag="-o out/conftest2.$ac_objext"
  17363. # Insert the option either (1) after the last *FLAGS variable, or
  17364. # (2) before a word containing "conftest.", or (3) at the end.
  17365. # Note that $ac_compile itself does not contain backslashes and begins
  17366. # with a dollar sign (not a hyphen), so the echo should work correctly.
  17367. lt_compile=`echo "$ac_compile" | $SED \
  17368. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  17369. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  17370. -e 's:$: $lt_compiler_flag:'`
  17371. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  17372. (eval "$lt_compile" 2>out/conftest.err)
  17373. ac_status=$?
  17374. cat out/conftest.err >&5
  17375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17376. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  17377. then
  17378. # The compiler can only warn and ignore the option if not recognized
  17379. # So say no if there are warnings
  17380. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  17381. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  17382. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  17383. lt_cv_prog_compiler_c_o_CXX=yes
  17384. fi
  17385. fi
  17386. chmod u+w . 2>&5
  17387. $RM conftest*
  17388. # SGI C++ compiler will create directory out/ii_files/ for
  17389. # template instantiation
  17390. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  17391. $RM out/* && rmdir out
  17392. cd ..
  17393. $RM -r conftest
  17394. $RM conftest*
  17395. fi
  17396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  17397. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  17398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  17399. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  17400. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  17401. $as_echo_n "(cached) " >&6
  17402. else
  17403. lt_cv_prog_compiler_c_o_CXX=no
  17404. $RM -r conftest 2>/dev/null
  17405. mkdir conftest
  17406. cd conftest
  17407. mkdir out
  17408. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17409. lt_compiler_flag="-o out/conftest2.$ac_objext"
  17410. # Insert the option either (1) after the last *FLAGS variable, or
  17411. # (2) before a word containing "conftest.", or (3) at the end.
  17412. # Note that $ac_compile itself does not contain backslashes and begins
  17413. # with a dollar sign (not a hyphen), so the echo should work correctly.
  17414. lt_compile=`echo "$ac_compile" | $SED \
  17415. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  17416. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  17417. -e 's:$: $lt_compiler_flag:'`
  17418. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  17419. (eval "$lt_compile" 2>out/conftest.err)
  17420. ac_status=$?
  17421. cat out/conftest.err >&5
  17422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17423. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  17424. then
  17425. # The compiler can only warn and ignore the option if not recognized
  17426. # So say no if there are warnings
  17427. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  17428. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  17429. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  17430. lt_cv_prog_compiler_c_o_CXX=yes
  17431. fi
  17432. fi
  17433. chmod u+w . 2>&5
  17434. $RM conftest*
  17435. # SGI C++ compiler will create directory out/ii_files/ for
  17436. # template instantiation
  17437. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  17438. $RM out/* && rmdir out
  17439. cd ..
  17440. $RM -r conftest
  17441. $RM conftest*
  17442. fi
  17443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  17444. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  17445. hard_links="nottested"
  17446. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  17447. # do not overwrite the value of need_locks provided by the user
  17448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  17449. $as_echo_n "checking if we can lock with hard links... " >&6; }
  17450. hard_links=yes
  17451. $RM conftest*
  17452. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  17453. touch conftest.a
  17454. ln conftest.a conftest.b 2>&5 || hard_links=no
  17455. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  17456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  17457. $as_echo "$hard_links" >&6; }
  17458. if test "$hard_links" = no; then
  17459. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  17460. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  17461. need_locks=warn
  17462. fi
  17463. else
  17464. need_locks=no
  17465. fi
  17466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  17467. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  17468. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  17469. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  17470. case $host_os in
  17471. aix[4-9]*)
  17472. # If we're using GNU nm, then we don't want the "-C" option.
  17473. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  17474. # Also, AIX nm treats weak defined symbols like other global defined
  17475. # symbols, whereas GNU nm marks them as "W".
  17476. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  17477. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  17478. else
  17479. 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'
  17480. fi
  17481. ;;
  17482. pw32*)
  17483. export_symbols_cmds_CXX="$ltdll_cmds"
  17484. ;;
  17485. cygwin* | mingw* | cegcc*)
  17486. case $cc_basename in
  17487. cl*)
  17488. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  17489. ;;
  17490. *)
  17491. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  17492. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  17493. ;;
  17494. esac
  17495. ;;
  17496. *)
  17497. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  17498. ;;
  17499. esac
  17500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  17501. $as_echo "$ld_shlibs_CXX" >&6; }
  17502. test "$ld_shlibs_CXX" = no && can_build_shared=no
  17503. with_gnu_ld_CXX=$with_gnu_ld
  17504. #
  17505. # Do we need to explicitly link libc?
  17506. #
  17507. case "x$archive_cmds_need_lc_CXX" in
  17508. x|xyes)
  17509. # Assume -lc should be added
  17510. archive_cmds_need_lc_CXX=yes
  17511. if test "$enable_shared" = yes && test "$GCC" = yes; then
  17512. case $archive_cmds_CXX in
  17513. *'~'*)
  17514. # FIXME: we may have to deal with multi-command sequences.
  17515. ;;
  17516. '$CC '*)
  17517. # Test whether the compiler implicitly links with -lc since on some
  17518. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  17519. # to ld, don't add -lc before -lgcc.
  17520. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  17521. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  17522. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  17523. $as_echo_n "(cached) " >&6
  17524. else
  17525. $RM conftest*
  17526. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  17527. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  17528. (eval $ac_compile) 2>&5
  17529. ac_status=$?
  17530. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17531. test $ac_status = 0; } 2>conftest.err; then
  17532. soname=conftest
  17533. lib=conftest
  17534. libobjs=conftest.$ac_objext
  17535. deplibs=
  17536. wl=$lt_prog_compiler_wl_CXX
  17537. pic_flag=$lt_prog_compiler_pic_CXX
  17538. compiler_flags=-v
  17539. linker_flags=-v
  17540. verstring=
  17541. output_objdir=.
  17542. libname=conftest
  17543. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  17544. allow_undefined_flag_CXX=
  17545. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  17546. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  17547. ac_status=$?
  17548. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17549. test $ac_status = 0; }
  17550. then
  17551. lt_cv_archive_cmds_need_lc_CXX=no
  17552. else
  17553. lt_cv_archive_cmds_need_lc_CXX=yes
  17554. fi
  17555. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  17556. else
  17557. cat conftest.err 1>&5
  17558. fi
  17559. $RM conftest*
  17560. fi
  17561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  17562. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  17563. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  17564. ;;
  17565. esac
  17566. fi
  17567. ;;
  17568. esac
  17569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  17570. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  17571. library_names_spec=
  17572. libname_spec='lib$name'
  17573. soname_spec=
  17574. shrext_cmds=".so"
  17575. postinstall_cmds=
  17576. postuninstall_cmds=
  17577. finish_cmds=
  17578. finish_eval=
  17579. shlibpath_var=
  17580. shlibpath_overrides_runpath=unknown
  17581. version_type=none
  17582. dynamic_linker="$host_os ld.so"
  17583. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  17584. need_lib_prefix=unknown
  17585. hardcode_into_libs=no
  17586. # when you set need_version to no, make sure it does not cause -set_version
  17587. # flags to be left without arguments
  17588. need_version=unknown
  17589. case $host_os in
  17590. aix3*)
  17591. version_type=linux # correct to gnu/linux during the next big refactor
  17592. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  17593. shlibpath_var=LIBPATH
  17594. # AIX 3 has no versioning support, so we append a major version to the name.
  17595. soname_spec='${libname}${release}${shared_ext}$major'
  17596. ;;
  17597. aix[4-9]*)
  17598. version_type=linux # correct to gnu/linux during the next big refactor
  17599. need_lib_prefix=no
  17600. need_version=no
  17601. hardcode_into_libs=yes
  17602. if test "$host_cpu" = ia64; then
  17603. # AIX 5 supports IA64
  17604. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  17605. shlibpath_var=LD_LIBRARY_PATH
  17606. else
  17607. # With GCC up to 2.95.x, collect2 would create an import file
  17608. # for dependence libraries. The import file would start with
  17609. # the line `#! .'. This would cause the generated library to
  17610. # depend on `.', always an invalid library. This was fixed in
  17611. # development snapshots of GCC prior to 3.0.
  17612. case $host_os in
  17613. aix4 | aix4.[01] | aix4.[01].*)
  17614. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  17615. echo ' yes '
  17616. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  17617. :
  17618. else
  17619. can_build_shared=no
  17620. fi
  17621. ;;
  17622. esac
  17623. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  17624. # soname into executable. Probably we can add versioning support to
  17625. # collect2, so additional links can be useful in future.
  17626. if test "$aix_use_runtimelinking" = yes; then
  17627. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  17628. # instead of lib<name>.a to let people know that these are not
  17629. # typical AIX shared libraries.
  17630. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17631. else
  17632. # We preserve .a as extension for shared libraries through AIX4.2
  17633. # and later when we are not doing run time linking.
  17634. library_names_spec='${libname}${release}.a $libname.a'
  17635. soname_spec='${libname}${release}${shared_ext}$major'
  17636. fi
  17637. shlibpath_var=LIBPATH
  17638. fi
  17639. ;;
  17640. amigaos*)
  17641. case $host_cpu in
  17642. powerpc)
  17643. # Since July 2007 AmigaOS4 officially supports .so libraries.
  17644. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  17645. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17646. ;;
  17647. m68k)
  17648. library_names_spec='$libname.ixlibrary $libname.a'
  17649. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  17650. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  17651. ;;
  17652. esac
  17653. ;;
  17654. beos*)
  17655. library_names_spec='${libname}${shared_ext}'
  17656. dynamic_linker="$host_os ld.so"
  17657. shlibpath_var=LIBRARY_PATH
  17658. ;;
  17659. bsdi[45]*)
  17660. version_type=linux # correct to gnu/linux during the next big refactor
  17661. need_version=no
  17662. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17663. soname_spec='${libname}${release}${shared_ext}$major'
  17664. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  17665. shlibpath_var=LD_LIBRARY_PATH
  17666. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  17667. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  17668. # the default ld.so.conf also contains /usr/contrib/lib and
  17669. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  17670. # libtool to hard-code these into programs
  17671. ;;
  17672. cygwin* | mingw* | pw32* | cegcc*)
  17673. version_type=windows
  17674. shrext_cmds=".dll"
  17675. need_version=no
  17676. need_lib_prefix=no
  17677. case $GCC,$cc_basename in
  17678. yes,*)
  17679. # gcc
  17680. library_names_spec='$libname.dll.a'
  17681. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  17682. postinstall_cmds='base_file=`basename \${file}`~
  17683. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  17684. dldir=$destdir/`dirname \$dlpath`~
  17685. test -d \$dldir || mkdir -p \$dldir~
  17686. $install_prog $dir/$dlname \$dldir/$dlname~
  17687. chmod a+x \$dldir/$dlname~
  17688. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  17689. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  17690. fi'
  17691. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  17692. dlpath=$dir/\$dldll~
  17693. $RM \$dlpath'
  17694. shlibpath_overrides_runpath=yes
  17695. case $host_os in
  17696. cygwin*)
  17697. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  17698. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  17699. ;;
  17700. mingw* | cegcc*)
  17701. # MinGW DLLs use traditional 'lib' prefix
  17702. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  17703. ;;
  17704. pw32*)
  17705. # pw32 DLLs use 'pw' prefix rather than 'lib'
  17706. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  17707. ;;
  17708. esac
  17709. dynamic_linker='Win32 ld.exe'
  17710. ;;
  17711. *,cl*)
  17712. # Native MSVC
  17713. libname_spec='$name'
  17714. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  17715. library_names_spec='${libname}.dll.lib'
  17716. case $build_os in
  17717. mingw*)
  17718. sys_lib_search_path_spec=
  17719. lt_save_ifs=$IFS
  17720. IFS=';'
  17721. for lt_path in $LIB
  17722. do
  17723. IFS=$lt_save_ifs
  17724. # Let DOS variable expansion print the short 8.3 style file name.
  17725. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  17726. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  17727. done
  17728. IFS=$lt_save_ifs
  17729. # Convert to MSYS style.
  17730. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  17731. ;;
  17732. cygwin*)
  17733. # Convert to unix form, then to dos form, then back to unix form
  17734. # but this time dos style (no spaces!) so that the unix form looks
  17735. # like /cygdrive/c/PROGRA~1:/cygdr...
  17736. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  17737. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  17738. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  17739. ;;
  17740. *)
  17741. sys_lib_search_path_spec="$LIB"
  17742. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  17743. # It is most probably a Windows format PATH.
  17744. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  17745. else
  17746. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  17747. fi
  17748. # FIXME: find the short name or the path components, as spaces are
  17749. # common. (e.g. "Program Files" -> "PROGRA~1")
  17750. ;;
  17751. esac
  17752. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  17753. postinstall_cmds='base_file=`basename \${file}`~
  17754. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  17755. dldir=$destdir/`dirname \$dlpath`~
  17756. test -d \$dldir || mkdir -p \$dldir~
  17757. $install_prog $dir/$dlname \$dldir/$dlname'
  17758. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  17759. dlpath=$dir/\$dldll~
  17760. $RM \$dlpath'
  17761. shlibpath_overrides_runpath=yes
  17762. dynamic_linker='Win32 link.exe'
  17763. ;;
  17764. *)
  17765. # Assume MSVC wrapper
  17766. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  17767. dynamic_linker='Win32 ld.exe'
  17768. ;;
  17769. esac
  17770. # FIXME: first we should search . and the directory the executable is in
  17771. shlibpath_var=PATH
  17772. ;;
  17773. darwin* | rhapsody*)
  17774. dynamic_linker="$host_os dyld"
  17775. version_type=darwin
  17776. need_lib_prefix=no
  17777. need_version=no
  17778. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  17779. soname_spec='${libname}${release}${major}$shared_ext'
  17780. shlibpath_overrides_runpath=yes
  17781. shlibpath_var=DYLD_LIBRARY_PATH
  17782. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  17783. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  17784. ;;
  17785. dgux*)
  17786. version_type=linux # correct to gnu/linux during the next big refactor
  17787. need_lib_prefix=no
  17788. need_version=no
  17789. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  17790. soname_spec='${libname}${release}${shared_ext}$major'
  17791. shlibpath_var=LD_LIBRARY_PATH
  17792. ;;
  17793. freebsd* | dragonfly*)
  17794. # DragonFly does not have aout. When/if they implement a new
  17795. # versioning mechanism, adjust this.
  17796. if test -x /usr/bin/objformat; then
  17797. objformat=`/usr/bin/objformat`
  17798. else
  17799. case $host_os in
  17800. freebsd[23].*) objformat=aout ;;
  17801. *) objformat=elf ;;
  17802. esac
  17803. fi
  17804. version_type=freebsd-$objformat
  17805. case $version_type in
  17806. freebsd-elf*)
  17807. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  17808. need_version=no
  17809. need_lib_prefix=no
  17810. ;;
  17811. freebsd-*)
  17812. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  17813. need_version=yes
  17814. ;;
  17815. esac
  17816. shlibpath_var=LD_LIBRARY_PATH
  17817. case $host_os in
  17818. freebsd2.*)
  17819. shlibpath_overrides_runpath=yes
  17820. ;;
  17821. freebsd3.[01]* | freebsdelf3.[01]*)
  17822. shlibpath_overrides_runpath=yes
  17823. hardcode_into_libs=yes
  17824. ;;
  17825. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  17826. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  17827. shlibpath_overrides_runpath=no
  17828. hardcode_into_libs=yes
  17829. ;;
  17830. *) # from 4.6 on, and DragonFly
  17831. shlibpath_overrides_runpath=yes
  17832. hardcode_into_libs=yes
  17833. ;;
  17834. esac
  17835. ;;
  17836. gnu*)
  17837. version_type=linux # correct to gnu/linux during the next big refactor
  17838. need_lib_prefix=no
  17839. need_version=no
  17840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  17841. soname_spec='${libname}${release}${shared_ext}$major'
  17842. shlibpath_var=LD_LIBRARY_PATH
  17843. shlibpath_overrides_runpath=no
  17844. hardcode_into_libs=yes
  17845. ;;
  17846. haiku*)
  17847. version_type=linux # correct to gnu/linux during the next big refactor
  17848. need_lib_prefix=no
  17849. need_version=no
  17850. dynamic_linker="$host_os runtime_loader"
  17851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  17852. soname_spec='${libname}${release}${shared_ext}$major'
  17853. shlibpath_var=LIBRARY_PATH
  17854. shlibpath_overrides_runpath=yes
  17855. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  17856. hardcode_into_libs=yes
  17857. ;;
  17858. hpux9* | hpux10* | hpux11*)
  17859. # Give a soname corresponding to the major version so that dld.sl refuses to
  17860. # link against other versions.
  17861. version_type=sunos
  17862. need_lib_prefix=no
  17863. need_version=no
  17864. case $host_cpu in
  17865. ia64*)
  17866. shrext_cmds='.so'
  17867. hardcode_into_libs=yes
  17868. dynamic_linker="$host_os dld.so"
  17869. shlibpath_var=LD_LIBRARY_PATH
  17870. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  17871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17872. soname_spec='${libname}${release}${shared_ext}$major'
  17873. if test "X$HPUX_IA64_MODE" = X32; then
  17874. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  17875. else
  17876. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  17877. fi
  17878. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  17879. ;;
  17880. hppa*64*)
  17881. shrext_cmds='.sl'
  17882. hardcode_into_libs=yes
  17883. dynamic_linker="$host_os dld.sl"
  17884. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  17885. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  17886. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17887. soname_spec='${libname}${release}${shared_ext}$major'
  17888. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  17889. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  17890. ;;
  17891. *)
  17892. shrext_cmds='.sl'
  17893. dynamic_linker="$host_os dld.sl"
  17894. shlibpath_var=SHLIB_PATH
  17895. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  17896. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17897. soname_spec='${libname}${release}${shared_ext}$major'
  17898. ;;
  17899. esac
  17900. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  17901. postinstall_cmds='chmod 555 $lib'
  17902. # or fails outright, so override atomically:
  17903. install_override_mode=555
  17904. ;;
  17905. interix[3-9]*)
  17906. version_type=linux # correct to gnu/linux during the next big refactor
  17907. need_lib_prefix=no
  17908. need_version=no
  17909. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  17910. soname_spec='${libname}${release}${shared_ext}$major'
  17911. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  17912. shlibpath_var=LD_LIBRARY_PATH
  17913. shlibpath_overrides_runpath=no
  17914. hardcode_into_libs=yes
  17915. ;;
  17916. irix5* | irix6* | nonstopux*)
  17917. case $host_os in
  17918. nonstopux*) version_type=nonstopux ;;
  17919. *)
  17920. if test "$lt_cv_prog_gnu_ld" = yes; then
  17921. version_type=linux # correct to gnu/linux during the next big refactor
  17922. else
  17923. version_type=irix
  17924. fi ;;
  17925. esac
  17926. need_lib_prefix=no
  17927. need_version=no
  17928. soname_spec='${libname}${release}${shared_ext}$major'
  17929. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  17930. case $host_os in
  17931. irix5* | nonstopux*)
  17932. libsuff= shlibsuff=
  17933. ;;
  17934. *)
  17935. case $LD in # libtool.m4 will add one of these switches to LD
  17936. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  17937. libsuff= shlibsuff= libmagic=32-bit;;
  17938. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  17939. libsuff=32 shlibsuff=N32 libmagic=N32;;
  17940. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  17941. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  17942. *) libsuff= shlibsuff= libmagic=never-match;;
  17943. esac
  17944. ;;
  17945. esac
  17946. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  17947. shlibpath_overrides_runpath=no
  17948. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  17949. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  17950. hardcode_into_libs=yes
  17951. ;;
  17952. # No shared lib support for Linux oldld, aout, or coff.
  17953. linux*oldld* | linux*aout* | linux*coff*)
  17954. dynamic_linker=no
  17955. ;;
  17956. # This must be glibc/ELF.
  17957. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  17958. version_type=linux # correct to gnu/linux during the next big refactor
  17959. need_lib_prefix=no
  17960. need_version=no
  17961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  17962. soname_spec='${libname}${release}${shared_ext}$major'
  17963. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  17964. shlibpath_var=LD_LIBRARY_PATH
  17965. shlibpath_overrides_runpath=no
  17966. # Some binutils ld are patched to set DT_RUNPATH
  17967. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  17968. $as_echo_n "(cached) " >&6
  17969. else
  17970. lt_cv_shlibpath_overrides_runpath=no
  17971. save_LDFLAGS=$LDFLAGS
  17972. save_libdir=$libdir
  17973. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  17974. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  17975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17976. /* end confdefs.h. */
  17977. int
  17978. main ()
  17979. {
  17980. ;
  17981. return 0;
  17982. }
  17983. _ACEOF
  17984. if ac_fn_cxx_try_link "$LINENO"; then :
  17985. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  17986. lt_cv_shlibpath_overrides_runpath=yes
  17987. fi
  17988. fi
  17989. rm -f core conftest.err conftest.$ac_objext \
  17990. conftest$ac_exeext conftest.$ac_ext
  17991. LDFLAGS=$save_LDFLAGS
  17992. libdir=$save_libdir
  17993. fi
  17994. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  17995. # This implies no fast_install, which is unacceptable.
  17996. # Some rework will be needed to allow for fast_install
  17997. # before this can be enabled.
  17998. hardcode_into_libs=yes
  17999. # Append ld.so.conf contents to the search path
  18000. if test -f /etc/ld.so.conf; then
  18001. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  18002. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  18003. fi
  18004. # We used to test for /lib/ld.so.1 and disable shared libraries on
  18005. # powerpc, because MkLinux only supported shared libraries with the
  18006. # GNU dynamic linker. Since this was broken with cross compilers,
  18007. # most powerpc-linux boxes support dynamic linking these days and
  18008. # people can always --disable-shared, the test was removed, and we
  18009. # assume the GNU/Linux dynamic linker is in use.
  18010. dynamic_linker='GNU/Linux ld.so'
  18011. ;;
  18012. netbsd*)
  18013. version_type=sunos
  18014. need_lib_prefix=no
  18015. need_version=no
  18016. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  18017. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  18018. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  18019. dynamic_linker='NetBSD (a.out) ld.so'
  18020. else
  18021. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  18022. soname_spec='${libname}${release}${shared_ext}$major'
  18023. dynamic_linker='NetBSD ld.elf_so'
  18024. fi
  18025. shlibpath_var=LD_LIBRARY_PATH
  18026. shlibpath_overrides_runpath=yes
  18027. hardcode_into_libs=yes
  18028. ;;
  18029. newsos6)
  18030. version_type=linux # correct to gnu/linux during the next big refactor
  18031. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18032. shlibpath_var=LD_LIBRARY_PATH
  18033. shlibpath_overrides_runpath=yes
  18034. ;;
  18035. *nto* | *qnx*)
  18036. version_type=qnx
  18037. need_lib_prefix=no
  18038. need_version=no
  18039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18040. soname_spec='${libname}${release}${shared_ext}$major'
  18041. shlibpath_var=LD_LIBRARY_PATH
  18042. shlibpath_overrides_runpath=no
  18043. hardcode_into_libs=yes
  18044. dynamic_linker='ldqnx.so'
  18045. ;;
  18046. openbsd*)
  18047. version_type=sunos
  18048. sys_lib_dlsearch_path_spec="/usr/lib"
  18049. need_lib_prefix=no
  18050. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  18051. case $host_os in
  18052. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  18053. *) need_version=no ;;
  18054. esac
  18055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  18056. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  18057. shlibpath_var=LD_LIBRARY_PATH
  18058. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  18059. case $host_os in
  18060. openbsd2.[89] | openbsd2.[89].*)
  18061. shlibpath_overrides_runpath=no
  18062. ;;
  18063. *)
  18064. shlibpath_overrides_runpath=yes
  18065. ;;
  18066. esac
  18067. else
  18068. shlibpath_overrides_runpath=yes
  18069. fi
  18070. ;;
  18071. os2*)
  18072. libname_spec='$name'
  18073. shrext_cmds=".dll"
  18074. need_lib_prefix=no
  18075. library_names_spec='$libname${shared_ext} $libname.a'
  18076. dynamic_linker='OS/2 ld.exe'
  18077. shlibpath_var=LIBPATH
  18078. ;;
  18079. osf3* | osf4* | osf5*)
  18080. version_type=osf
  18081. need_lib_prefix=no
  18082. need_version=no
  18083. soname_spec='${libname}${release}${shared_ext}$major'
  18084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18085. shlibpath_var=LD_LIBRARY_PATH
  18086. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  18087. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  18088. ;;
  18089. rdos*)
  18090. dynamic_linker=no
  18091. ;;
  18092. solaris*)
  18093. version_type=linux # correct to gnu/linux during the next big refactor
  18094. need_lib_prefix=no
  18095. need_version=no
  18096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18097. soname_spec='${libname}${release}${shared_ext}$major'
  18098. shlibpath_var=LD_LIBRARY_PATH
  18099. shlibpath_overrides_runpath=yes
  18100. hardcode_into_libs=yes
  18101. # ldd complains unless libraries are executable
  18102. postinstall_cmds='chmod +x $lib'
  18103. ;;
  18104. sunos4*)
  18105. version_type=sunos
  18106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  18107. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  18108. shlibpath_var=LD_LIBRARY_PATH
  18109. shlibpath_overrides_runpath=yes
  18110. if test "$with_gnu_ld" = yes; then
  18111. need_lib_prefix=no
  18112. fi
  18113. need_version=yes
  18114. ;;
  18115. sysv4 | sysv4.3*)
  18116. version_type=linux # correct to gnu/linux during the next big refactor
  18117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18118. soname_spec='${libname}${release}${shared_ext}$major'
  18119. shlibpath_var=LD_LIBRARY_PATH
  18120. case $host_vendor in
  18121. sni)
  18122. shlibpath_overrides_runpath=no
  18123. need_lib_prefix=no
  18124. runpath_var=LD_RUN_PATH
  18125. ;;
  18126. siemens)
  18127. need_lib_prefix=no
  18128. ;;
  18129. motorola)
  18130. need_lib_prefix=no
  18131. need_version=no
  18132. shlibpath_overrides_runpath=no
  18133. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  18134. ;;
  18135. esac
  18136. ;;
  18137. sysv4*MP*)
  18138. if test -d /usr/nec ;then
  18139. version_type=linux # correct to gnu/linux during the next big refactor
  18140. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  18141. soname_spec='$libname${shared_ext}.$major'
  18142. shlibpath_var=LD_LIBRARY_PATH
  18143. fi
  18144. ;;
  18145. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  18146. version_type=freebsd-elf
  18147. need_lib_prefix=no
  18148. need_version=no
  18149. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  18150. soname_spec='${libname}${release}${shared_ext}$major'
  18151. shlibpath_var=LD_LIBRARY_PATH
  18152. shlibpath_overrides_runpath=yes
  18153. hardcode_into_libs=yes
  18154. if test "$with_gnu_ld" = yes; then
  18155. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  18156. else
  18157. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  18158. case $host_os in
  18159. sco3.2v5*)
  18160. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  18161. ;;
  18162. esac
  18163. fi
  18164. sys_lib_dlsearch_path_spec='/usr/lib'
  18165. ;;
  18166. tpf*)
  18167. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  18168. version_type=linux # correct to gnu/linux during the next big refactor
  18169. need_lib_prefix=no
  18170. need_version=no
  18171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18172. shlibpath_var=LD_LIBRARY_PATH
  18173. shlibpath_overrides_runpath=no
  18174. hardcode_into_libs=yes
  18175. ;;
  18176. uts4*)
  18177. version_type=linux # correct to gnu/linux during the next big refactor
  18178. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  18179. soname_spec='${libname}${release}${shared_ext}$major'
  18180. shlibpath_var=LD_LIBRARY_PATH
  18181. ;;
  18182. *)
  18183. dynamic_linker=no
  18184. ;;
  18185. esac
  18186. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  18187. $as_echo "$dynamic_linker" >&6; }
  18188. test "$dynamic_linker" = no && can_build_shared=no
  18189. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  18190. if test "$GCC" = yes; then
  18191. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  18192. fi
  18193. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  18194. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  18195. fi
  18196. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  18197. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  18198. fi
  18199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  18200. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  18201. hardcode_action_CXX=
  18202. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  18203. test -n "$runpath_var_CXX" ||
  18204. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  18205. # We can hardcode non-existent directories.
  18206. if test "$hardcode_direct_CXX" != no &&
  18207. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  18208. # have to relink, otherwise we might link with an installed library
  18209. # when we should be linking with a yet-to-be-installed one
  18210. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  18211. test "$hardcode_minus_L_CXX" != no; then
  18212. # Linking always hardcodes the temporary library directory.
  18213. hardcode_action_CXX=relink
  18214. else
  18215. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  18216. hardcode_action_CXX=immediate
  18217. fi
  18218. else
  18219. # We cannot hardcode anything, or else we can only hardcode existing
  18220. # directories.
  18221. hardcode_action_CXX=unsupported
  18222. fi
  18223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  18224. $as_echo "$hardcode_action_CXX" >&6; }
  18225. if test "$hardcode_action_CXX" = relink ||
  18226. test "$inherit_rpath_CXX" = yes; then
  18227. # Fast installation is not supported
  18228. enable_fast_install=no
  18229. elif test "$shlibpath_overrides_runpath" = yes ||
  18230. test "$enable_shared" = no; then
  18231. # Fast installation is not necessary
  18232. enable_fast_install=needless
  18233. fi
  18234. fi # test -n "$compiler"
  18235. CC=$lt_save_CC
  18236. CFLAGS=$lt_save_CFLAGS
  18237. LDCXX=$LD
  18238. LD=$lt_save_LD
  18239. GCC=$lt_save_GCC
  18240. with_gnu_ld=$lt_save_with_gnu_ld
  18241. lt_cv_path_LDCXX=$lt_cv_path_LD
  18242. lt_cv_path_LD=$lt_save_path_LD
  18243. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  18244. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  18245. fi # test "$_lt_caught_CXX_error" != yes
  18246. ac_ext=cpp
  18247. ac_cpp='$CXXCPP $CPPFLAGS'
  18248. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18249. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  18250. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  18251. ac_config_commands="$ac_config_commands libtool"
  18252. # Only expand once:
  18253. ac_config_headers="$ac_config_headers include/log4cplus/config.h"
  18254. ac_config_headers="$ac_config_headers include/log4cplus/config/defines.hxx"
  18255. ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile loggingserver/Makefile qt4debugappender/Makefile tests/Makefile tests/appender_test/Makefile tests/configandwatch_test/Makefile tests/customloglevel_test/Makefile tests/fileappender_test/Makefile tests/filter_test/Makefile tests/hierarchy_test/Makefile tests/loglog_test/Makefile tests/ndc_test/Makefile tests/ostream_test/Makefile tests/patternlayout_test/Makefile tests/performance_test/Makefile tests/priority_test/Makefile tests/propertyconfig_test/Makefile tests/socket_test/Makefile tests/thread_test/Makefile tests/timeformat_test/Makefile"
  18256. ac_config_files="$ac_config_files log4cplus.pc"
  18257. cat >confcache <<\_ACEOF
  18258. # This file is a shell script that caches the results of configure
  18259. # tests run on this system so they can be shared between configure
  18260. # scripts and configure runs, see configure's option --config-cache.
  18261. # It is not useful on other systems. If it contains results you don't
  18262. # want to keep, you may remove or edit it.
  18263. #
  18264. # config.status only pays attention to the cache file if you give it
  18265. # the --recheck option to rerun configure.
  18266. #
  18267. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  18268. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  18269. # following values.
  18270. _ACEOF
  18271. # The following way of writing the cache mishandles newlines in values,
  18272. # but we know of no workaround that is simple, portable, and efficient.
  18273. # So, we kill variables containing newlines.
  18274. # Ultrix sh set writes to stderr and can't be redirected directly,
  18275. # and sets the high bit in the cache file unless we assign to the vars.
  18276. (
  18277. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  18278. eval ac_val=\$$ac_var
  18279. case $ac_val in #(
  18280. *${as_nl}*)
  18281. case $ac_var in #(
  18282. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18283. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18284. esac
  18285. case $ac_var in #(
  18286. _ | IFS | as_nl) ;; #(
  18287. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18288. *) { eval $ac_var=; unset $ac_var;} ;;
  18289. esac ;;
  18290. esac
  18291. done
  18292. (set) 2>&1 |
  18293. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  18294. *${as_nl}ac_space=\ *)
  18295. # `set' does not quote correctly, so add quotes: double-quote
  18296. # substitution turns \\\\ into \\, and sed turns \\ into \.
  18297. sed -n \
  18298. "s/'/'\\\\''/g;
  18299. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  18300. ;; #(
  18301. *)
  18302. # `set' quotes correctly as required by POSIX, so do not add quotes.
  18303. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18304. ;;
  18305. esac |
  18306. sort
  18307. ) |
  18308. sed '
  18309. /^ac_cv_env_/b end
  18310. t clear
  18311. :clear
  18312. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  18313. t end
  18314. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  18315. :end' >>confcache
  18316. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  18317. if test -w "$cache_file"; then
  18318. if test "x$cache_file" != "x/dev/null"; then
  18319. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  18320. $as_echo "$as_me: updating cache $cache_file" >&6;}
  18321. if test ! -f "$cache_file" || test -h "$cache_file"; then
  18322. cat confcache >"$cache_file"
  18323. else
  18324. case $cache_file in #(
  18325. */* | ?:*)
  18326. mv -f confcache "$cache_file"$$ &&
  18327. mv -f "$cache_file"$$ "$cache_file" ;; #(
  18328. *)
  18329. mv -f confcache "$cache_file" ;;
  18330. esac
  18331. fi
  18332. fi
  18333. else
  18334. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  18335. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  18336. fi
  18337. fi
  18338. rm -f confcache
  18339. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  18340. # Let make expand exec_prefix.
  18341. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  18342. DEFS=-DHAVE_CONFIG_H
  18343. ac_libobjs=
  18344. ac_ltlibobjs=
  18345. U=
  18346. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  18347. # 1. Remove the extension, and $U if already installed.
  18348. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  18349. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  18350. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  18351. # will be set to the directory where LIBOBJS objects are built.
  18352. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  18353. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  18354. done
  18355. LIBOBJS=$ac_libobjs
  18356. LTLIBOBJS=$ac_ltlibobjs
  18357. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  18358. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  18359. if test -n "$am_sleep_pid"; then
  18360. # Hide warnings about reused PIDs.
  18361. wait $am_sleep_pid 2>/dev/null
  18362. fi
  18363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  18364. $as_echo "done" >&6; }
  18365. if test -n "$EXEEXT"; then
  18366. am__EXEEXT_TRUE=
  18367. am__EXEEXT_FALSE='#'
  18368. else
  18369. am__EXEEXT_TRUE='#'
  18370. am__EXEEXT_FALSE=
  18371. fi
  18372. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  18373. as_fn_error $? "conditional \"AMDEP\" was never defined.
  18374. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18375. fi
  18376. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  18377. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  18378. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18379. fi
  18380. if test -z "${ENABLE_VERSION_INFO_OPTION_TRUE}" && test -z "${ENABLE_VERSION_INFO_OPTION_FALSE}"; then
  18381. as_fn_error $? "conditional \"ENABLE_VERSION_INFO_OPTION\" was never defined.
  18382. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18383. fi
  18384. if test -z "${ENABLE_RELEASE_OPTION_TRUE}" && test -z "${ENABLE_RELEASE_OPTION_FALSE}"; then
  18385. as_fn_error $? "conditional \"ENABLE_RELEASE_OPTION\" was never defined.
  18386. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18387. fi
  18388. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  18389. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  18390. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18391. fi
  18392. if test -z "${MULTI_THREADED_TRUE}" && test -z "${MULTI_THREADED_FALSE}"; then
  18393. as_fn_error $? "conditional \"MULTI_THREADED\" was never defined.
  18394. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18395. fi
  18396. if test -z "${QT_TRUE}" && test -z "${QT_FALSE}"; then
  18397. as_fn_error $? "conditional \"QT\" was never defined.
  18398. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  18399. fi
  18400. : "${CONFIG_STATUS=./config.status}"
  18401. ac_write_fail=0
  18402. ac_clean_files_save=$ac_clean_files
  18403. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  18404. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  18405. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  18406. as_write_fail=0
  18407. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  18408. #! $SHELL
  18409. # Generated by $as_me.
  18410. # Run this file to recreate the current configuration.
  18411. # Compiler output produced by configure, useful for debugging
  18412. # configure, is in config.log if it exists.
  18413. debug=false
  18414. ac_cs_recheck=false
  18415. ac_cs_silent=false
  18416. SHELL=\${CONFIG_SHELL-$SHELL}
  18417. export SHELL
  18418. _ASEOF
  18419. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  18420. ## -------------------- ##
  18421. ## M4sh Initialization. ##
  18422. ## -------------------- ##
  18423. # Be more Bourne compatible
  18424. DUALCASE=1; export DUALCASE # for MKS sh
  18425. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18426. emulate sh
  18427. NULLCMD=:
  18428. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  18429. # is contrary to our usage. Disable this feature.
  18430. alias -g '${1+"$@"}'='"$@"'
  18431. setopt NO_GLOB_SUBST
  18432. else
  18433. case `(set -o) 2>/dev/null` in #(
  18434. *posix*) :
  18435. set -o posix ;; #(
  18436. *) :
  18437. ;;
  18438. esac
  18439. fi
  18440. as_nl='
  18441. '
  18442. export as_nl
  18443. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  18444. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  18445. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  18446. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  18447. # Prefer a ksh shell builtin over an external printf program on Solaris,
  18448. # but without wasting forks for bash or zsh.
  18449. if test -z "$BASH_VERSION$ZSH_VERSION" \
  18450. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  18451. as_echo='print -r --'
  18452. as_echo_n='print -rn --'
  18453. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  18454. as_echo='printf %s\n'
  18455. as_echo_n='printf %s'
  18456. else
  18457. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  18458. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  18459. as_echo_n='/usr/ucb/echo -n'
  18460. else
  18461. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  18462. as_echo_n_body='eval
  18463. arg=$1;
  18464. case $arg in #(
  18465. *"$as_nl"*)
  18466. expr "X$arg" : "X\\(.*\\)$as_nl";
  18467. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  18468. esac;
  18469. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  18470. '
  18471. export as_echo_n_body
  18472. as_echo_n='sh -c $as_echo_n_body as_echo'
  18473. fi
  18474. export as_echo_body
  18475. as_echo='sh -c $as_echo_body as_echo'
  18476. fi
  18477. # The user is always right.
  18478. if test "${PATH_SEPARATOR+set}" != set; then
  18479. PATH_SEPARATOR=:
  18480. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  18481. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  18482. PATH_SEPARATOR=';'
  18483. }
  18484. fi
  18485. # IFS
  18486. # We need space, tab and new line, in precisely that order. Quoting is
  18487. # there to prevent editors from complaining about space-tab.
  18488. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  18489. # splitting by setting IFS to empty value.)
  18490. IFS=" "" $as_nl"
  18491. # Find who we are. Look in the path if we contain no directory separator.
  18492. as_myself=
  18493. case $0 in #((
  18494. *[\\/]* ) as_myself=$0 ;;
  18495. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18496. for as_dir in $PATH
  18497. do
  18498. IFS=$as_save_IFS
  18499. test -z "$as_dir" && as_dir=.
  18500. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  18501. done
  18502. IFS=$as_save_IFS
  18503. ;;
  18504. esac
  18505. # We did not find ourselves, most probably we were run as `sh COMMAND'
  18506. # in which case we are not to be found in the path.
  18507. if test "x$as_myself" = x; then
  18508. as_myself=$0
  18509. fi
  18510. if test ! -f "$as_myself"; then
  18511. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  18512. exit 1
  18513. fi
  18514. # Unset variables that we do not need and which cause bugs (e.g. in
  18515. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  18516. # suppresses any "Segmentation fault" message there. '((' could
  18517. # trigger a bug in pdksh 5.2.14.
  18518. for as_var in BASH_ENV ENV MAIL MAILPATH
  18519. do eval test x\${$as_var+set} = xset \
  18520. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  18521. done
  18522. PS1='$ '
  18523. PS2='> '
  18524. PS4='+ '
  18525. # NLS nuisances.
  18526. LC_ALL=C
  18527. export LC_ALL
  18528. LANGUAGE=C
  18529. export LANGUAGE
  18530. # CDPATH.
  18531. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18532. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  18533. # ----------------------------------------
  18534. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  18535. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  18536. # script with STATUS, using 1 if that was 0.
  18537. as_fn_error ()
  18538. {
  18539. as_status=$1; test $as_status -eq 0 && as_status=1
  18540. if test "$4"; then
  18541. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18542. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  18543. fi
  18544. $as_echo "$as_me: error: $2" >&2
  18545. as_fn_exit $as_status
  18546. } # as_fn_error
  18547. # as_fn_set_status STATUS
  18548. # -----------------------
  18549. # Set $? to STATUS, without forking.
  18550. as_fn_set_status ()
  18551. {
  18552. return $1
  18553. } # as_fn_set_status
  18554. # as_fn_exit STATUS
  18555. # -----------------
  18556. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  18557. as_fn_exit ()
  18558. {
  18559. set +e
  18560. as_fn_set_status $1
  18561. exit $1
  18562. } # as_fn_exit
  18563. # as_fn_unset VAR
  18564. # ---------------
  18565. # Portably unset VAR.
  18566. as_fn_unset ()
  18567. {
  18568. { eval $1=; unset $1;}
  18569. }
  18570. as_unset=as_fn_unset
  18571. # as_fn_append VAR VALUE
  18572. # ----------------------
  18573. # Append the text in VALUE to the end of the definition contained in VAR. Take
  18574. # advantage of any shell optimizations that allow amortized linear growth over
  18575. # repeated appends, instead of the typical quadratic growth present in naive
  18576. # implementations.
  18577. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  18578. eval 'as_fn_append ()
  18579. {
  18580. eval $1+=\$2
  18581. }'
  18582. else
  18583. as_fn_append ()
  18584. {
  18585. eval $1=\$$1\$2
  18586. }
  18587. fi # as_fn_append
  18588. # as_fn_arith ARG...
  18589. # ------------------
  18590. # Perform arithmetic evaluation on the ARGs, and store the result in the
  18591. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  18592. # must be portable across $(()) and expr.
  18593. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  18594. eval 'as_fn_arith ()
  18595. {
  18596. as_val=$(( $* ))
  18597. }'
  18598. else
  18599. as_fn_arith ()
  18600. {
  18601. as_val=`expr "$@" || test $? -eq 1`
  18602. }
  18603. fi # as_fn_arith
  18604. if expr a : '\(a\)' >/dev/null 2>&1 &&
  18605. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  18606. as_expr=expr
  18607. else
  18608. as_expr=false
  18609. fi
  18610. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  18611. as_basename=basename
  18612. else
  18613. as_basename=false
  18614. fi
  18615. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  18616. as_dirname=dirname
  18617. else
  18618. as_dirname=false
  18619. fi
  18620. as_me=`$as_basename -- "$0" ||
  18621. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  18622. X"$0" : 'X\(//\)$' \| \
  18623. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  18624. $as_echo X/"$0" |
  18625. sed '/^.*\/\([^/][^/]*\)\/*$/{
  18626. s//\1/
  18627. q
  18628. }
  18629. /^X\/\(\/\/\)$/{
  18630. s//\1/
  18631. q
  18632. }
  18633. /^X\/\(\/\).*/{
  18634. s//\1/
  18635. q
  18636. }
  18637. s/.*/./; q'`
  18638. # Avoid depending upon Character Ranges.
  18639. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  18640. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  18641. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  18642. as_cr_digits='0123456789'
  18643. as_cr_alnum=$as_cr_Letters$as_cr_digits
  18644. ECHO_C= ECHO_N= ECHO_T=
  18645. case `echo -n x` in #(((((
  18646. -n*)
  18647. case `echo 'xy\c'` in
  18648. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  18649. xy) ECHO_C='\c';;
  18650. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  18651. ECHO_T=' ';;
  18652. esac;;
  18653. *)
  18654. ECHO_N='-n';;
  18655. esac
  18656. rm -f conf$$ conf$$.exe conf$$.file
  18657. if test -d conf$$.dir; then
  18658. rm -f conf$$.dir/conf$$.file
  18659. else
  18660. rm -f conf$$.dir
  18661. mkdir conf$$.dir 2>/dev/null
  18662. fi
  18663. if (echo >conf$$.file) 2>/dev/null; then
  18664. if ln -s conf$$.file conf$$ 2>/dev/null; then
  18665. as_ln_s='ln -s'
  18666. # ... but there are two gotchas:
  18667. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  18668. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  18669. # In both cases, we have to default to `cp -pR'.
  18670. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  18671. as_ln_s='cp -pR'
  18672. elif ln conf$$.file conf$$ 2>/dev/null; then
  18673. as_ln_s=ln
  18674. else
  18675. as_ln_s='cp -pR'
  18676. fi
  18677. else
  18678. as_ln_s='cp -pR'
  18679. fi
  18680. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  18681. rmdir conf$$.dir 2>/dev/null
  18682. # as_fn_mkdir_p
  18683. # -------------
  18684. # Create "$as_dir" as a directory, including parents if necessary.
  18685. as_fn_mkdir_p ()
  18686. {
  18687. case $as_dir in #(
  18688. -*) as_dir=./$as_dir;;
  18689. esac
  18690. test -d "$as_dir" || eval $as_mkdir_p || {
  18691. as_dirs=
  18692. while :; do
  18693. case $as_dir in #(
  18694. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  18695. *) as_qdir=$as_dir;;
  18696. esac
  18697. as_dirs="'$as_qdir' $as_dirs"
  18698. as_dir=`$as_dirname -- "$as_dir" ||
  18699. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  18700. X"$as_dir" : 'X\(//\)[^/]' \| \
  18701. X"$as_dir" : 'X\(//\)$' \| \
  18702. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  18703. $as_echo X"$as_dir" |
  18704. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  18705. s//\1/
  18706. q
  18707. }
  18708. /^X\(\/\/\)[^/].*/{
  18709. s//\1/
  18710. q
  18711. }
  18712. /^X\(\/\/\)$/{
  18713. s//\1/
  18714. q
  18715. }
  18716. /^X\(\/\).*/{
  18717. s//\1/
  18718. q
  18719. }
  18720. s/.*/./; q'`
  18721. test -d "$as_dir" && break
  18722. done
  18723. test -z "$as_dirs" || eval "mkdir $as_dirs"
  18724. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  18725. } # as_fn_mkdir_p
  18726. if mkdir -p . 2>/dev/null; then
  18727. as_mkdir_p='mkdir -p "$as_dir"'
  18728. else
  18729. test -d ./-p && rmdir ./-p
  18730. as_mkdir_p=false
  18731. fi
  18732. # as_fn_executable_p FILE
  18733. # -----------------------
  18734. # Test if FILE is an executable regular file.
  18735. as_fn_executable_p ()
  18736. {
  18737. test -f "$1" && test -x "$1"
  18738. } # as_fn_executable_p
  18739. as_test_x='test -x'
  18740. as_executable_p=as_fn_executable_p
  18741. # Sed expression to map a string onto a valid CPP name.
  18742. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  18743. # Sed expression to map a string onto a valid variable name.
  18744. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  18745. exec 6>&1
  18746. ## ----------------------------------- ##
  18747. ## Main body of $CONFIG_STATUS script. ##
  18748. ## ----------------------------------- ##
  18749. _ASEOF
  18750. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  18751. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18752. # Save the log message, to keep $0 and so on meaningful, and to
  18753. # report actual input values of CONFIG_FILES etc. instead of their
  18754. # values after options handling.
  18755. ac_log="
  18756. This file was extended by log4cplus $as_me 1.1.3, which was
  18757. generated by GNU Autoconf 2.69. Invocation command line was
  18758. CONFIG_FILES = $CONFIG_FILES
  18759. CONFIG_HEADERS = $CONFIG_HEADERS
  18760. CONFIG_LINKS = $CONFIG_LINKS
  18761. CONFIG_COMMANDS = $CONFIG_COMMANDS
  18762. $ $0 $@
  18763. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  18764. "
  18765. _ACEOF
  18766. case $ac_config_files in *"
  18767. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  18768. esac
  18769. case $ac_config_headers in *"
  18770. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  18771. esac
  18772. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18773. # Files that config.status was made for.
  18774. config_files="$ac_config_files"
  18775. config_headers="$ac_config_headers"
  18776. config_commands="$ac_config_commands"
  18777. _ACEOF
  18778. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18779. ac_cs_usage="\
  18780. \`$as_me' instantiates files and other configuration actions
  18781. from templates according to the current configuration. Unless the files
  18782. and actions are specified as TAGs, all are instantiated by default.
  18783. Usage: $0 [OPTION]... [TAG]...
  18784. -h, --help print this help, then exit
  18785. -V, --version print version number and configuration settings, then exit
  18786. --config print configuration, then exit
  18787. -q, --quiet, --silent
  18788. do not print progress messages
  18789. -d, --debug don't remove temporary files
  18790. --recheck update $as_me by reconfiguring in the same conditions
  18791. --file=FILE[:TEMPLATE]
  18792. instantiate the configuration file FILE
  18793. --header=FILE[:TEMPLATE]
  18794. instantiate the configuration header FILE
  18795. Configuration files:
  18796. $config_files
  18797. Configuration headers:
  18798. $config_headers
  18799. Configuration commands:
  18800. $config_commands
  18801. Report bugs to the package provider."
  18802. _ACEOF
  18803. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18804. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  18805. ac_cs_version="\\
  18806. log4cplus config.status 1.1.3
  18807. configured by $0, generated by GNU Autoconf 2.69,
  18808. with options \\"\$ac_cs_config\\"
  18809. Copyright (C) 2012 Free Software Foundation, Inc.
  18810. This config.status script is free software; the Free Software Foundation
  18811. gives unlimited permission to copy, distribute and modify it."
  18812. ac_pwd='$ac_pwd'
  18813. srcdir='$srcdir'
  18814. INSTALL='$INSTALL'
  18815. MKDIR_P='$MKDIR_P'
  18816. AWK='$AWK'
  18817. test -n "\$AWK" || AWK=awk
  18818. _ACEOF
  18819. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18820. # The default lists apply if the user does not specify any file.
  18821. ac_need_defaults=:
  18822. while test $# != 0
  18823. do
  18824. case $1 in
  18825. --*=?*)
  18826. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18827. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  18828. ac_shift=:
  18829. ;;
  18830. --*=)
  18831. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  18832. ac_optarg=
  18833. ac_shift=:
  18834. ;;
  18835. *)
  18836. ac_option=$1
  18837. ac_optarg=$2
  18838. ac_shift=shift
  18839. ;;
  18840. esac
  18841. case $ac_option in
  18842. # Handling of the options.
  18843. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  18844. ac_cs_recheck=: ;;
  18845. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  18846. $as_echo "$ac_cs_version"; exit ;;
  18847. --config | --confi | --conf | --con | --co | --c )
  18848. $as_echo "$ac_cs_config"; exit ;;
  18849. --debug | --debu | --deb | --de | --d | -d )
  18850. debug=: ;;
  18851. --file | --fil | --fi | --f )
  18852. $ac_shift
  18853. case $ac_optarg in
  18854. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18855. '') as_fn_error $? "missing file argument" ;;
  18856. esac
  18857. as_fn_append CONFIG_FILES " '$ac_optarg'"
  18858. ac_need_defaults=false;;
  18859. --header | --heade | --head | --hea )
  18860. $ac_shift
  18861. case $ac_optarg in
  18862. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18863. esac
  18864. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  18865. ac_need_defaults=false;;
  18866. --he | --h)
  18867. # Conflict between --help and --header
  18868. as_fn_error $? "ambiguous option: \`$1'
  18869. Try \`$0 --help' for more information.";;
  18870. --help | --hel | -h )
  18871. $as_echo "$ac_cs_usage"; exit ;;
  18872. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18873. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  18874. ac_cs_silent=: ;;
  18875. # This is an error.
  18876. -*) as_fn_error $? "unrecognized option: \`$1'
  18877. Try \`$0 --help' for more information." ;;
  18878. *) as_fn_append ac_config_targets " $1"
  18879. ac_need_defaults=false ;;
  18880. esac
  18881. shift
  18882. done
  18883. ac_configure_extra_args=
  18884. if $ac_cs_silent; then
  18885. exec 6>/dev/null
  18886. ac_configure_extra_args="$ac_configure_extra_args --silent"
  18887. fi
  18888. _ACEOF
  18889. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18890. if \$ac_cs_recheck; then
  18891. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  18892. shift
  18893. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  18894. CONFIG_SHELL='$SHELL'
  18895. export CONFIG_SHELL
  18896. exec "\$@"
  18897. fi
  18898. _ACEOF
  18899. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  18900. exec 5>>config.log
  18901. {
  18902. echo
  18903. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  18904. ## Running $as_me. ##
  18905. _ASBOX
  18906. $as_echo "$ac_log"
  18907. } >&5
  18908. _ACEOF
  18909. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  18910. #
  18911. # INIT-COMMANDS
  18912. #
  18913. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  18914. # The HP-UX ksh and POSIX shell print the target directory to stdout
  18915. # if CDPATH is set.
  18916. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  18917. sed_quote_subst='$sed_quote_subst'
  18918. double_quote_subst='$double_quote_subst'
  18919. delay_variable_subst='$delay_variable_subst'
  18920. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  18921. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  18922. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  18923. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  18924. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  18925. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  18926. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  18927. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  18928. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  18929. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  18930. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  18931. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  18932. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  18933. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  18934. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  18935. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  18936. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  18937. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  18938. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  18939. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  18940. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  18941. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  18942. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  18943. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  18944. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  18945. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  18946. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  18947. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  18948. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  18949. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  18950. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  18951. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  18952. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  18953. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  18954. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  18955. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  18956. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  18957. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  18958. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  18959. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  18960. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  18961. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  18962. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  18963. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  18964. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  18965. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  18966. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  18967. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  18968. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  18969. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  18970. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  18971. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  18972. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  18973. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  18974. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  18975. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  18976. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  18977. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  18978. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  18979. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  18980. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  18981. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  18982. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  18983. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  18984. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  18985. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  18986. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  18987. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  18988. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  18989. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  18990. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  18991. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  18992. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  18993. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  18994. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  18995. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  18996. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  18997. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  18998. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  18999. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  19000. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  19001. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  19002. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  19003. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  19004. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  19005. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19006. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  19007. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  19008. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  19009. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19010. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  19011. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  19012. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  19013. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  19014. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  19015. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  19016. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19017. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  19018. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  19019. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  19020. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  19021. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  19022. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  19023. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  19024. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  19025. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  19026. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  19027. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  19028. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  19029. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  19030. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  19031. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  19032. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  19033. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  19034. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  19035. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  19036. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  19037. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  19038. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  19039. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  19040. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  19041. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  19042. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  19043. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  19044. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  19045. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  19046. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  19047. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  19048. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  19049. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  19050. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  19051. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  19052. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  19053. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  19054. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  19055. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  19056. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  19057. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  19058. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19059. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19060. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19061. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  19062. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  19063. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19064. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  19065. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  19066. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  19067. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  19068. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  19069. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  19070. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19071. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19072. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  19073. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19074. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19075. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19076. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19077. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19078. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19079. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  19080. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19081. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  19082. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19083. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  19084. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  19085. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  19086. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  19087. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  19088. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  19089. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  19090. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  19091. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  19092. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19093. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19094. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  19095. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19096. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  19097. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  19098. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  19099. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  19100. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19101. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  19102. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  19103. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  19104. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  19105. LTCC='$LTCC'
  19106. LTCFLAGS='$LTCFLAGS'
  19107. compiler='$compiler_DEFAULT'
  19108. # A function that is used when there is no print builtin or printf.
  19109. func_fallback_echo ()
  19110. {
  19111. eval 'cat <<_LTECHO_EOF
  19112. \$1
  19113. _LTECHO_EOF'
  19114. }
  19115. # Quote evaled strings.
  19116. for var in AS \
  19117. DLLTOOL \
  19118. OBJDUMP \
  19119. SHELL \
  19120. ECHO \
  19121. PATH_SEPARATOR \
  19122. SED \
  19123. GREP \
  19124. EGREP \
  19125. FGREP \
  19126. LD \
  19127. NM \
  19128. LN_S \
  19129. lt_SP2NL \
  19130. lt_NL2SP \
  19131. reload_flag \
  19132. deplibs_check_method \
  19133. file_magic_cmd \
  19134. file_magic_glob \
  19135. want_nocaseglob \
  19136. sharedlib_from_linklib_cmd \
  19137. AR \
  19138. AR_FLAGS \
  19139. archiver_list_spec \
  19140. STRIP \
  19141. RANLIB \
  19142. CC \
  19143. CFLAGS \
  19144. compiler \
  19145. lt_cv_sys_global_symbol_pipe \
  19146. lt_cv_sys_global_symbol_to_cdecl \
  19147. lt_cv_sys_global_symbol_to_c_name_address \
  19148. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  19149. nm_file_list_spec \
  19150. lt_prog_compiler_no_builtin_flag \
  19151. lt_prog_compiler_pic \
  19152. lt_prog_compiler_wl \
  19153. lt_prog_compiler_static \
  19154. lt_cv_prog_compiler_c_o \
  19155. need_locks \
  19156. MANIFEST_TOOL \
  19157. DSYMUTIL \
  19158. NMEDIT \
  19159. LIPO \
  19160. OTOOL \
  19161. OTOOL64 \
  19162. shrext_cmds \
  19163. export_dynamic_flag_spec \
  19164. whole_archive_flag_spec \
  19165. compiler_needs_object \
  19166. with_gnu_ld \
  19167. allow_undefined_flag \
  19168. no_undefined_flag \
  19169. hardcode_libdir_flag_spec \
  19170. hardcode_libdir_separator \
  19171. exclude_expsyms \
  19172. include_expsyms \
  19173. file_list_spec \
  19174. variables_saved_for_relink \
  19175. libname_spec \
  19176. library_names_spec \
  19177. soname_spec \
  19178. install_override_mode \
  19179. finish_eval \
  19180. old_striplib \
  19181. striplib \
  19182. compiler_lib_search_dirs \
  19183. predep_objects \
  19184. postdep_objects \
  19185. predeps \
  19186. postdeps \
  19187. compiler_lib_search_path \
  19188. LD_CXX \
  19189. reload_flag_CXX \
  19190. compiler_CXX \
  19191. lt_prog_compiler_no_builtin_flag_CXX \
  19192. lt_prog_compiler_pic_CXX \
  19193. lt_prog_compiler_wl_CXX \
  19194. lt_prog_compiler_static_CXX \
  19195. lt_cv_prog_compiler_c_o_CXX \
  19196. export_dynamic_flag_spec_CXX \
  19197. whole_archive_flag_spec_CXX \
  19198. compiler_needs_object_CXX \
  19199. with_gnu_ld_CXX \
  19200. allow_undefined_flag_CXX \
  19201. no_undefined_flag_CXX \
  19202. hardcode_libdir_flag_spec_CXX \
  19203. hardcode_libdir_separator_CXX \
  19204. exclude_expsyms_CXX \
  19205. include_expsyms_CXX \
  19206. file_list_spec_CXX \
  19207. compiler_lib_search_dirs_CXX \
  19208. predep_objects_CXX \
  19209. postdep_objects_CXX \
  19210. predeps_CXX \
  19211. postdeps_CXX \
  19212. compiler_lib_search_path_CXX; do
  19213. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19214. *[\\\\\\\`\\"\\\$]*)
  19215. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  19216. ;;
  19217. *)
  19218. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19219. ;;
  19220. esac
  19221. done
  19222. # Double-quote double-evaled strings.
  19223. for var in reload_cmds \
  19224. old_postinstall_cmds \
  19225. old_postuninstall_cmds \
  19226. old_archive_cmds \
  19227. extract_expsyms_cmds \
  19228. old_archive_from_new_cmds \
  19229. old_archive_from_expsyms_cmds \
  19230. archive_cmds \
  19231. archive_expsym_cmds \
  19232. module_cmds \
  19233. module_expsym_cmds \
  19234. export_symbols_cmds \
  19235. prelink_cmds \
  19236. postlink_cmds \
  19237. postinstall_cmds \
  19238. postuninstall_cmds \
  19239. finish_cmds \
  19240. sys_lib_search_path_spec \
  19241. sys_lib_dlsearch_path_spec \
  19242. reload_cmds_CXX \
  19243. old_archive_cmds_CXX \
  19244. old_archive_from_new_cmds_CXX \
  19245. old_archive_from_expsyms_cmds_CXX \
  19246. archive_cmds_CXX \
  19247. archive_expsym_cmds_CXX \
  19248. module_cmds_CXX \
  19249. module_expsym_cmds_CXX \
  19250. export_symbols_cmds_CXX \
  19251. prelink_cmds_CXX \
  19252. postlink_cmds_CXX; do
  19253. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  19254. *[\\\\\\\`\\"\\\$]*)
  19255. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  19256. ;;
  19257. *)
  19258. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  19259. ;;
  19260. esac
  19261. done
  19262. ac_aux_dir='$ac_aux_dir'
  19263. xsi_shell='$xsi_shell'
  19264. lt_shell_append='$lt_shell_append'
  19265. # See if we are running on zsh, and set the options which allow our
  19266. # commands through without removal of \ escapes INIT.
  19267. if test -n "\${ZSH_VERSION+set}" ; then
  19268. setopt NO_GLOB_SUBST
  19269. fi
  19270. PACKAGE='$PACKAGE'
  19271. VERSION='$VERSION'
  19272. TIMESTAMP='$TIMESTAMP'
  19273. RM='$RM'
  19274. ofile='$ofile'
  19275. _ACEOF
  19276. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19277. # Handling of arguments.
  19278. for ac_config_target in $ac_config_targets
  19279. do
  19280. case $ac_config_target in
  19281. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19282. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  19283. "include/log4cplus/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/log4cplus/config.h" ;;
  19284. "include/log4cplus/config/defines.hxx") CONFIG_HEADERS="$CONFIG_HEADERS include/log4cplus/config/defines.hxx" ;;
  19285. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19286. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  19287. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  19288. "loggingserver/Makefile") CONFIG_FILES="$CONFIG_FILES loggingserver/Makefile" ;;
  19289. "qt4debugappender/Makefile") CONFIG_FILES="$CONFIG_FILES qt4debugappender/Makefile" ;;
  19290. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  19291. "tests/appender_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/appender_test/Makefile" ;;
  19292. "tests/configandwatch_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/configandwatch_test/Makefile" ;;
  19293. "tests/customloglevel_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/customloglevel_test/Makefile" ;;
  19294. "tests/fileappender_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/fileappender_test/Makefile" ;;
  19295. "tests/filter_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/filter_test/Makefile" ;;
  19296. "tests/hierarchy_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hierarchy_test/Makefile" ;;
  19297. "tests/loglog_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/loglog_test/Makefile" ;;
  19298. "tests/ndc_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ndc_test/Makefile" ;;
  19299. "tests/ostream_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/ostream_test/Makefile" ;;
  19300. "tests/patternlayout_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/patternlayout_test/Makefile" ;;
  19301. "tests/performance_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/performance_test/Makefile" ;;
  19302. "tests/priority_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/priority_test/Makefile" ;;
  19303. "tests/propertyconfig_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/propertyconfig_test/Makefile" ;;
  19304. "tests/socket_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/socket_test/Makefile" ;;
  19305. "tests/thread_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/thread_test/Makefile" ;;
  19306. "tests/timeformat_test/Makefile") CONFIG_FILES="$CONFIG_FILES tests/timeformat_test/Makefile" ;;
  19307. "log4cplus.pc") CONFIG_FILES="$CONFIG_FILES log4cplus.pc" ;;
  19308. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  19309. esac
  19310. done
  19311. # If the user did not use the arguments to specify the items to instantiate,
  19312. # then the envvar interface is used. Set only those that are not.
  19313. # We use the long form for the default assignment because of an extremely
  19314. # bizarre bug on SunOS 4.1.3.
  19315. if $ac_need_defaults; then
  19316. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19317. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19318. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19319. fi
  19320. # Have a temporary directory for convenience. Make it in the build tree
  19321. # simply because there is no reason against having it here, and in addition,
  19322. # creating and moving files from /tmp can sometimes cause problems.
  19323. # Hook for its removal unless debugging.
  19324. # Note that there is a small window in which the directory will not be cleaned:
  19325. # after its creation but before its name has been assigned to `$tmp'.
  19326. $debug ||
  19327. {
  19328. tmp= ac_tmp=
  19329. trap 'exit_status=$?
  19330. : "${ac_tmp:=$tmp}"
  19331. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  19332. ' 0
  19333. trap 'as_fn_exit 1' 1 2 13 15
  19334. }
  19335. # Create a (secure) tmp directory for tmp files.
  19336. {
  19337. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  19338. test -d "$tmp"
  19339. } ||
  19340. {
  19341. tmp=./conf$$-$RANDOM
  19342. (umask 077 && mkdir "$tmp")
  19343. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  19344. ac_tmp=$tmp
  19345. # Set up the scripts for CONFIG_FILES section.
  19346. # No need to generate them if there are no CONFIG_FILES.
  19347. # This happens for instance with `./config.status config.h'.
  19348. if test -n "$CONFIG_FILES"; then
  19349. ac_cr=`echo X | tr X '\015'`
  19350. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  19351. # But we know of no other shell where ac_cr would be empty at this
  19352. # point, so we can use a bashism as a fallback.
  19353. if test "x$ac_cr" = x; then
  19354. eval ac_cr=\$\'\\r\'
  19355. fi
  19356. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  19357. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  19358. ac_cs_awk_cr='\\r'
  19359. else
  19360. ac_cs_awk_cr=$ac_cr
  19361. fi
  19362. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  19363. _ACEOF
  19364. {
  19365. echo "cat >conf$$subs.awk <<_ACEOF" &&
  19366. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  19367. echo "_ACEOF"
  19368. } >conf$$subs.sh ||
  19369. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19370. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  19371. ac_delim='%!_!# '
  19372. for ac_last_try in false false false false false :; do
  19373. . ./conf$$subs.sh ||
  19374. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19375. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  19376. if test $ac_delim_n = $ac_delim_num; then
  19377. break
  19378. elif $ac_last_try; then
  19379. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  19380. else
  19381. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19382. fi
  19383. done
  19384. rm -f conf$$subs.sh
  19385. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19386. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  19387. _ACEOF
  19388. sed -n '
  19389. h
  19390. s/^/S["/; s/!.*/"]=/
  19391. p
  19392. g
  19393. s/^[^!]*!//
  19394. :repl
  19395. t repl
  19396. s/'"$ac_delim"'$//
  19397. t delim
  19398. :nl
  19399. h
  19400. s/\(.\{148\}\)..*/\1/
  19401. t more1
  19402. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  19403. p
  19404. n
  19405. b repl
  19406. :more1
  19407. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19408. p
  19409. g
  19410. s/.\{148\}//
  19411. t nl
  19412. :delim
  19413. h
  19414. s/\(.\{148\}\)..*/\1/
  19415. t more2
  19416. s/["\\]/\\&/g; s/^/"/; s/$/"/
  19417. p
  19418. b
  19419. :more2
  19420. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  19421. p
  19422. g
  19423. s/.\{148\}//
  19424. t delim
  19425. ' <conf$$subs.awk | sed '
  19426. /^[^""]/{
  19427. N
  19428. s/\n//
  19429. }
  19430. ' >>$CONFIG_STATUS || ac_write_fail=1
  19431. rm -f conf$$subs.awk
  19432. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19433. _ACAWK
  19434. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  19435. for (key in S) S_is_set[key] = 1
  19436. FS = ""
  19437. }
  19438. {
  19439. line = $ 0
  19440. nfields = split(line, field, "@")
  19441. substed = 0
  19442. len = length(field[1])
  19443. for (i = 2; i < nfields; i++) {
  19444. key = field[i]
  19445. keylen = length(key)
  19446. if (S_is_set[key]) {
  19447. value = S[key]
  19448. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  19449. len += length(value) + length(field[++i])
  19450. substed = 1
  19451. } else
  19452. len += 1 + keylen
  19453. }
  19454. print line
  19455. }
  19456. _ACAWK
  19457. _ACEOF
  19458. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19459. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  19460. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  19461. else
  19462. cat
  19463. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  19464. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  19465. _ACEOF
  19466. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  19467. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  19468. # trailing colons and then remove the whole line if VPATH becomes empty
  19469. # (actually we leave an empty line to preserve line numbers).
  19470. if test "x$srcdir" = x.; then
  19471. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  19472. h
  19473. s///
  19474. s/^/:/
  19475. s/[ ]*$/:/
  19476. s/:\$(srcdir):/:/g
  19477. s/:\${srcdir}:/:/g
  19478. s/:@srcdir@:/:/g
  19479. s/^:*//
  19480. s/:*$//
  19481. x
  19482. s/\(=[ ]*\).*/\1/
  19483. G
  19484. s/\n//
  19485. s/^[^=]*=[ ]*$//
  19486. }'
  19487. fi
  19488. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19489. fi # test -n "$CONFIG_FILES"
  19490. # Set up the scripts for CONFIG_HEADERS section.
  19491. # No need to generate them if there are no CONFIG_HEADERS.
  19492. # This happens for instance with `./config.status Makefile'.
  19493. if test -n "$CONFIG_HEADERS"; then
  19494. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  19495. BEGIN {
  19496. _ACEOF
  19497. # Transform confdefs.h into an awk script `defines.awk', embedded as
  19498. # here-document in config.status, that substitutes the proper values into
  19499. # config.h.in to produce config.h.
  19500. # Create a delimiter string that does not exist in confdefs.h, to ease
  19501. # handling of long lines.
  19502. ac_delim='%!_!# '
  19503. for ac_last_try in false false :; do
  19504. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  19505. if test -z "$ac_tt"; then
  19506. break
  19507. elif $ac_last_try; then
  19508. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  19509. else
  19510. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  19511. fi
  19512. done
  19513. # For the awk script, D is an array of macro values keyed by name,
  19514. # likewise P contains macro parameters if any. Preserve backslash
  19515. # newline sequences.
  19516. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  19517. sed -n '
  19518. s/.\{148\}/&'"$ac_delim"'/g
  19519. t rset
  19520. :rset
  19521. s/^[ ]*#[ ]*define[ ][ ]*/ /
  19522. t def
  19523. d
  19524. :def
  19525. s/\\$//
  19526. t bsnl
  19527. s/["\\]/\\&/g
  19528. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19529. D["\1"]=" \3"/p
  19530. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  19531. d
  19532. :bsnl
  19533. s/["\\]/\\&/g
  19534. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  19535. D["\1"]=" \3\\\\\\n"\\/p
  19536. t cont
  19537. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  19538. t cont
  19539. d
  19540. :cont
  19541. n
  19542. s/.\{148\}/&'"$ac_delim"'/g
  19543. t clear
  19544. :clear
  19545. s/\\$//
  19546. t bsnlc
  19547. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  19548. d
  19549. :bsnlc
  19550. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  19551. b cont
  19552. ' <confdefs.h | sed '
  19553. s/'"$ac_delim"'/"\\\
  19554. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  19555. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19556. for (key in D) D_is_set[key] = 1
  19557. FS = ""
  19558. }
  19559. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  19560. line = \$ 0
  19561. split(line, arg, " ")
  19562. if (arg[1] == "#") {
  19563. defundef = arg[2]
  19564. mac1 = arg[3]
  19565. } else {
  19566. defundef = substr(arg[1], 2)
  19567. mac1 = arg[2]
  19568. }
  19569. split(mac1, mac2, "(") #)
  19570. macro = mac2[1]
  19571. prefix = substr(line, 1, index(line, defundef) - 1)
  19572. if (D_is_set[macro]) {
  19573. # Preserve the white space surrounding the "#".
  19574. print prefix "define", macro P[macro] D[macro]
  19575. next
  19576. } else {
  19577. # Replace #undef with comments. This is necessary, for example,
  19578. # in the case of _POSIX_SOURCE, which is predefined and required
  19579. # on some systems where configure will not decide to define it.
  19580. if (defundef == "undef") {
  19581. print "/*", prefix defundef, macro, "*/"
  19582. next
  19583. }
  19584. }
  19585. }
  19586. { print }
  19587. _ACAWK
  19588. _ACEOF
  19589. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19590. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  19591. fi # test -n "$CONFIG_HEADERS"
  19592. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  19593. shift
  19594. for ac_tag
  19595. do
  19596. case $ac_tag in
  19597. :[FHLC]) ac_mode=$ac_tag; continue;;
  19598. esac
  19599. case $ac_mode$ac_tag in
  19600. :[FHL]*:*);;
  19601. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  19602. :[FH]-) ac_tag=-:-;;
  19603. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  19604. esac
  19605. ac_save_IFS=$IFS
  19606. IFS=:
  19607. set x $ac_tag
  19608. IFS=$ac_save_IFS
  19609. shift
  19610. ac_file=$1
  19611. shift
  19612. case $ac_mode in
  19613. :L) ac_source=$1;;
  19614. :[FH])
  19615. ac_file_inputs=
  19616. for ac_f
  19617. do
  19618. case $ac_f in
  19619. -) ac_f="$ac_tmp/stdin";;
  19620. *) # Look for the file first in the build tree, then in the source tree
  19621. # (if the path is not absolute). The absolute path cannot be DOS-style,
  19622. # because $ac_f cannot contain `:'.
  19623. test -f "$ac_f" ||
  19624. case $ac_f in
  19625. [\\/$]*) false;;
  19626. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  19627. esac ||
  19628. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  19629. esac
  19630. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  19631. as_fn_append ac_file_inputs " '$ac_f'"
  19632. done
  19633. # Let's still pretend it is `configure' which instantiates (i.e., don't
  19634. # use $as_me), people would be surprised to read:
  19635. # /* config.h. Generated by config.status. */
  19636. configure_input='Generated from '`
  19637. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  19638. `' by configure.'
  19639. if test x"$ac_file" != x-; then
  19640. configure_input="$ac_file. $configure_input"
  19641. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  19642. $as_echo "$as_me: creating $ac_file" >&6;}
  19643. fi
  19644. # Neutralize special characters interpreted by sed in replacement strings.
  19645. case $configure_input in #(
  19646. *\&* | *\|* | *\\* )
  19647. ac_sed_conf_input=`$as_echo "$configure_input" |
  19648. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  19649. *) ac_sed_conf_input=$configure_input;;
  19650. esac
  19651. case $ac_tag in
  19652. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  19653. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  19654. esac
  19655. ;;
  19656. esac
  19657. ac_dir=`$as_dirname -- "$ac_file" ||
  19658. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19659. X"$ac_file" : 'X\(//\)[^/]' \| \
  19660. X"$ac_file" : 'X\(//\)$' \| \
  19661. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  19662. $as_echo X"$ac_file" |
  19663. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19664. s//\1/
  19665. q
  19666. }
  19667. /^X\(\/\/\)[^/].*/{
  19668. s//\1/
  19669. q
  19670. }
  19671. /^X\(\/\/\)$/{
  19672. s//\1/
  19673. q
  19674. }
  19675. /^X\(\/\).*/{
  19676. s//\1/
  19677. q
  19678. }
  19679. s/.*/./; q'`
  19680. as_dir="$ac_dir"; as_fn_mkdir_p
  19681. ac_builddir=.
  19682. case "$ac_dir" in
  19683. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19684. *)
  19685. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  19686. # A ".." for each directory in $ac_dir_suffix.
  19687. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  19688. case $ac_top_builddir_sub in
  19689. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  19690. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  19691. esac ;;
  19692. esac
  19693. ac_abs_top_builddir=$ac_pwd
  19694. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  19695. # for backward compatibility:
  19696. ac_top_builddir=$ac_top_build_prefix
  19697. case $srcdir in
  19698. .) # We are building in place.
  19699. ac_srcdir=.
  19700. ac_top_srcdir=$ac_top_builddir_sub
  19701. ac_abs_top_srcdir=$ac_pwd ;;
  19702. [\\/]* | ?:[\\/]* ) # Absolute name.
  19703. ac_srcdir=$srcdir$ac_dir_suffix;
  19704. ac_top_srcdir=$srcdir
  19705. ac_abs_top_srcdir=$srcdir ;;
  19706. *) # Relative name.
  19707. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  19708. ac_top_srcdir=$ac_top_build_prefix$srcdir
  19709. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  19710. esac
  19711. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  19712. case $ac_mode in
  19713. :F)
  19714. #
  19715. # CONFIG_FILE
  19716. #
  19717. case $INSTALL in
  19718. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  19719. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  19720. esac
  19721. ac_MKDIR_P=$MKDIR_P
  19722. case $MKDIR_P in
  19723. [\\/$]* | ?:[\\/]* ) ;;
  19724. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  19725. esac
  19726. _ACEOF
  19727. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19728. # If the template does not know about datarootdir, expand it.
  19729. # FIXME: This hack should be removed a few years after 2.60.
  19730. ac_datarootdir_hack=; ac_datarootdir_seen=
  19731. ac_sed_dataroot='
  19732. /datarootdir/ {
  19733. p
  19734. q
  19735. }
  19736. /@datadir@/p
  19737. /@docdir@/p
  19738. /@infodir@/p
  19739. /@localedir@/p
  19740. /@mandir@/p'
  19741. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  19742. *datarootdir*) ac_datarootdir_seen=yes;;
  19743. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  19744. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  19745. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  19746. _ACEOF
  19747. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19748. ac_datarootdir_hack='
  19749. s&@datadir@&$datadir&g
  19750. s&@docdir@&$docdir&g
  19751. s&@infodir@&$infodir&g
  19752. s&@localedir@&$localedir&g
  19753. s&@mandir@&$mandir&g
  19754. s&\\\${datarootdir}&$datarootdir&g' ;;
  19755. esac
  19756. _ACEOF
  19757. # Neutralize VPATH when `$srcdir' = `.'.
  19758. # Shell code in configure.ac might set extrasub.
  19759. # FIXME: do we really want to maintain this feature?
  19760. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  19761. ac_sed_extra="$ac_vpsub
  19762. $extrasub
  19763. _ACEOF
  19764. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  19765. :t
  19766. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  19767. s|@configure_input@|$ac_sed_conf_input|;t t
  19768. s&@top_builddir@&$ac_top_builddir_sub&;t t
  19769. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  19770. s&@srcdir@&$ac_srcdir&;t t
  19771. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  19772. s&@top_srcdir@&$ac_top_srcdir&;t t
  19773. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  19774. s&@builddir@&$ac_builddir&;t t
  19775. s&@abs_builddir@&$ac_abs_builddir&;t t
  19776. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  19777. s&@INSTALL@&$ac_INSTALL&;t t
  19778. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  19779. $ac_datarootdir_hack
  19780. "
  19781. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  19782. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19783. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  19784. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  19785. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  19786. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  19787. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19788. which seems to be undefined. Please make sure it is defined" >&5
  19789. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  19790. which seems to be undefined. Please make sure it is defined" >&2;}
  19791. rm -f "$ac_tmp/stdin"
  19792. case $ac_file in
  19793. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  19794. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  19795. esac \
  19796. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19797. ;;
  19798. :H)
  19799. #
  19800. # CONFIG_HEADER
  19801. #
  19802. if test x"$ac_file" != x-; then
  19803. {
  19804. $as_echo "/* $configure_input */" \
  19805. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  19806. } >"$ac_tmp/config.h" \
  19807. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19808. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  19809. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  19810. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  19811. else
  19812. rm -f "$ac_file"
  19813. mv "$ac_tmp/config.h" "$ac_file" \
  19814. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  19815. fi
  19816. else
  19817. $as_echo "/* $configure_input */" \
  19818. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  19819. || as_fn_error $? "could not create -" "$LINENO" 5
  19820. fi
  19821. # Compute "$ac_file"'s index in $config_headers.
  19822. _am_arg="$ac_file"
  19823. _am_stamp_count=1
  19824. for _am_header in $config_headers :; do
  19825. case $_am_header in
  19826. $_am_arg | $_am_arg:* )
  19827. break ;;
  19828. * )
  19829. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  19830. esac
  19831. done
  19832. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  19833. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19834. X"$_am_arg" : 'X\(//\)[^/]' \| \
  19835. X"$_am_arg" : 'X\(//\)$' \| \
  19836. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  19837. $as_echo X"$_am_arg" |
  19838. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19839. s//\1/
  19840. q
  19841. }
  19842. /^X\(\/\/\)[^/].*/{
  19843. s//\1/
  19844. q
  19845. }
  19846. /^X\(\/\/\)$/{
  19847. s//\1/
  19848. q
  19849. }
  19850. /^X\(\/\).*/{
  19851. s//\1/
  19852. q
  19853. }
  19854. s/.*/./; q'`/stamp-h$_am_stamp_count
  19855. ;;
  19856. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  19857. $as_echo "$as_me: executing $ac_file commands" >&6;}
  19858. ;;
  19859. esac
  19860. case $ac_file$ac_mode in
  19861. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  19862. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  19863. # are listed without --file. Let's play safe and only enable the eval
  19864. # if we detect the quoting.
  19865. case $CONFIG_FILES in
  19866. *\'*) eval set x "$CONFIG_FILES" ;;
  19867. *) set x $CONFIG_FILES ;;
  19868. esac
  19869. shift
  19870. for mf
  19871. do
  19872. # Strip MF so we end up with the name of the file.
  19873. mf=`echo "$mf" | sed -e 's/:.*$//'`
  19874. # Check whether this is an Automake generated Makefile or not.
  19875. # We used to match only the files named 'Makefile.in', but
  19876. # some people rename them; so instead we look at the file content.
  19877. # Grep'ing the first line is not enough: some people post-process
  19878. # each Makefile.in and add a new line on top of each file to say so.
  19879. # Grep'ing the whole file is not good either: AIX grep has a line
  19880. # limit of 2048, but all sed's we know have understand at least 4000.
  19881. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  19882. dirpart=`$as_dirname -- "$mf" ||
  19883. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19884. X"$mf" : 'X\(//\)[^/]' \| \
  19885. X"$mf" : 'X\(//\)$' \| \
  19886. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  19887. $as_echo X"$mf" |
  19888. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19889. s//\1/
  19890. q
  19891. }
  19892. /^X\(\/\/\)[^/].*/{
  19893. s//\1/
  19894. q
  19895. }
  19896. /^X\(\/\/\)$/{
  19897. s//\1/
  19898. q
  19899. }
  19900. /^X\(\/\).*/{
  19901. s//\1/
  19902. q
  19903. }
  19904. s/.*/./; q'`
  19905. else
  19906. continue
  19907. fi
  19908. # Extract the definition of DEPDIR, am__include, and am__quote
  19909. # from the Makefile without running 'make'.
  19910. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  19911. test -z "$DEPDIR" && continue
  19912. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  19913. test -z "am__include" && continue
  19914. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  19915. # Find all dependency output files, they are included files with
  19916. # $(DEPDIR) in their names. We invoke sed twice because it is the
  19917. # simplest approach to changing $(DEPDIR) to its actual value in the
  19918. # expansion.
  19919. for file in `sed -n "
  19920. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  19921. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  19922. # Make sure the directory exists.
  19923. test -f "$dirpart/$file" && continue
  19924. fdir=`$as_dirname -- "$file" ||
  19925. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  19926. X"$file" : 'X\(//\)[^/]' \| \
  19927. X"$file" : 'X\(//\)$' \| \
  19928. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  19929. $as_echo X"$file" |
  19930. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  19931. s//\1/
  19932. q
  19933. }
  19934. /^X\(\/\/\)[^/].*/{
  19935. s//\1/
  19936. q
  19937. }
  19938. /^X\(\/\/\)$/{
  19939. s//\1/
  19940. q
  19941. }
  19942. /^X\(\/\).*/{
  19943. s//\1/
  19944. q
  19945. }
  19946. s/.*/./; q'`
  19947. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  19948. # echo "creating $dirpart/$file"
  19949. echo '# dummy' > "$dirpart/$file"
  19950. done
  19951. done
  19952. }
  19953. ;;
  19954. "libtool":C)
  19955. # See if we are running on zsh, and set the options which allow our
  19956. # commands through without removal of \ escapes.
  19957. if test -n "${ZSH_VERSION+set}" ; then
  19958. setopt NO_GLOB_SUBST
  19959. fi
  19960. cfgfile="${ofile}T"
  19961. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  19962. $RM "$cfgfile"
  19963. cat <<_LT_EOF >> "$cfgfile"
  19964. #! $SHELL
  19965. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  19966. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  19967. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19968. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  19969. #
  19970. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  19971. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  19972. # Foundation, Inc.
  19973. # Written by Gordon Matzigkeit, 1996
  19974. #
  19975. # This file is part of GNU Libtool.
  19976. #
  19977. # GNU Libtool is free software; you can redistribute it and/or
  19978. # modify it under the terms of the GNU General Public License as
  19979. # published by the Free Software Foundation; either version 2 of
  19980. # the License, or (at your option) any later version.
  19981. #
  19982. # As a special exception to the GNU General Public License,
  19983. # if you distribute this file as part of a program or library that
  19984. # is built using GNU Libtool, you may include this file under the
  19985. # same distribution terms that you use for the rest of that program.
  19986. #
  19987. # GNU Libtool is distributed in the hope that it will be useful,
  19988. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  19989. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19990. # GNU General Public License for more details.
  19991. #
  19992. # You should have received a copy of the GNU General Public License
  19993. # along with GNU Libtool; see the file COPYING. If not, a copy
  19994. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  19995. # obtained by writing to the Free Software Foundation, Inc.,
  19996. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19997. # The names of the tagged configurations supported by this script.
  19998. available_tags="CXX "
  19999. # ### BEGIN LIBTOOL CONFIG
  20000. # Which release of libtool.m4 was used?
  20001. macro_version=$macro_version
  20002. macro_revision=$macro_revision
  20003. # Assembler program.
  20004. AS=$lt_AS
  20005. # DLL creation program.
  20006. DLLTOOL=$lt_DLLTOOL
  20007. # Object dumper program.
  20008. OBJDUMP=$lt_OBJDUMP
  20009. # Whether or not to build shared libraries.
  20010. build_libtool_libs=$enable_shared
  20011. # Whether or not to build static libraries.
  20012. build_old_libs=$enable_static
  20013. # What type of objects to build.
  20014. pic_mode=$pic_mode
  20015. # Whether or not to optimize for fast installation.
  20016. fast_install=$enable_fast_install
  20017. # Shell to use when invoking shell scripts.
  20018. SHELL=$lt_SHELL
  20019. # An echo program that protects backslashes.
  20020. ECHO=$lt_ECHO
  20021. # The PATH separator for the build system.
  20022. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  20023. # The host system.
  20024. host_alias=$host_alias
  20025. host=$host
  20026. host_os=$host_os
  20027. # The build system.
  20028. build_alias=$build_alias
  20029. build=$build
  20030. build_os=$build_os
  20031. # A sed program that does not truncate output.
  20032. SED=$lt_SED
  20033. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  20034. Xsed="\$SED -e 1s/^X//"
  20035. # A grep program that handles long lines.
  20036. GREP=$lt_GREP
  20037. # An ERE matcher.
  20038. EGREP=$lt_EGREP
  20039. # A literal string matcher.
  20040. FGREP=$lt_FGREP
  20041. # A BSD- or MS-compatible name lister.
  20042. NM=$lt_NM
  20043. # Whether we need soft or hard links.
  20044. LN_S=$lt_LN_S
  20045. # What is the maximum length of a command?
  20046. max_cmd_len=$max_cmd_len
  20047. # Object file suffix (normally "o").
  20048. objext=$ac_objext
  20049. # Executable file suffix (normally "").
  20050. exeext=$exeext
  20051. # whether the shell understands "unset".
  20052. lt_unset=$lt_unset
  20053. # turn spaces into newlines.
  20054. SP2NL=$lt_lt_SP2NL
  20055. # turn newlines into spaces.
  20056. NL2SP=$lt_lt_NL2SP
  20057. # convert \$build file names to \$host format.
  20058. to_host_file_cmd=$lt_cv_to_host_file_cmd
  20059. # convert \$build files to toolchain format.
  20060. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  20061. # Method to check whether dependent libraries are shared objects.
  20062. deplibs_check_method=$lt_deplibs_check_method
  20063. # Command to use when deplibs_check_method = "file_magic".
  20064. file_magic_cmd=$lt_file_magic_cmd
  20065. # How to find potential files when deplibs_check_method = "file_magic".
  20066. file_magic_glob=$lt_file_magic_glob
  20067. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  20068. want_nocaseglob=$lt_want_nocaseglob
  20069. # Command to associate shared and link libraries.
  20070. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  20071. # The archiver.
  20072. AR=$lt_AR
  20073. # Flags to create an archive.
  20074. AR_FLAGS=$lt_AR_FLAGS
  20075. # How to feed a file listing to the archiver.
  20076. archiver_list_spec=$lt_archiver_list_spec
  20077. # A symbol stripping program.
  20078. STRIP=$lt_STRIP
  20079. # Commands used to install an old-style archive.
  20080. RANLIB=$lt_RANLIB
  20081. old_postinstall_cmds=$lt_old_postinstall_cmds
  20082. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  20083. # Whether to use a lock for old archive extraction.
  20084. lock_old_archive_extraction=$lock_old_archive_extraction
  20085. # A C compiler.
  20086. LTCC=$lt_CC
  20087. # LTCC compiler flags.
  20088. LTCFLAGS=$lt_CFLAGS
  20089. # Take the output of nm and produce a listing of raw symbols and C names.
  20090. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  20091. # Transform the output of nm in a proper C declaration.
  20092. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  20093. # Transform the output of nm in a C name address pair.
  20094. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  20095. # Transform the output of nm in a C name address pair when lib prefix is needed.
  20096. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  20097. # Specify filename containing input files for \$NM.
  20098. nm_file_list_spec=$lt_nm_file_list_spec
  20099. # The root where to search for dependent libraries,and in which our libraries should be installed.
  20100. lt_sysroot=$lt_sysroot
  20101. # The name of the directory that contains temporary libtool files.
  20102. objdir=$objdir
  20103. # Used to examine libraries when file_magic_cmd begins with "file".
  20104. MAGIC_CMD=$MAGIC_CMD
  20105. # Must we lock files when doing compilation?
  20106. need_locks=$lt_need_locks
  20107. # Manifest tool.
  20108. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  20109. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  20110. DSYMUTIL=$lt_DSYMUTIL
  20111. # Tool to change global to local symbols on Mac OS X.
  20112. NMEDIT=$lt_NMEDIT
  20113. # Tool to manipulate fat objects and archives on Mac OS X.
  20114. LIPO=$lt_LIPO
  20115. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  20116. OTOOL=$lt_OTOOL
  20117. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  20118. OTOOL64=$lt_OTOOL64
  20119. # Old archive suffix (normally "a").
  20120. libext=$libext
  20121. # Shared library suffix (normally ".so").
  20122. shrext_cmds=$lt_shrext_cmds
  20123. # The commands to extract the exported symbol list from a shared archive.
  20124. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  20125. # Variables whose values should be saved in libtool wrapper scripts and
  20126. # restored at link time.
  20127. variables_saved_for_relink=$lt_variables_saved_for_relink
  20128. # Do we need the "lib" prefix for modules?
  20129. need_lib_prefix=$need_lib_prefix
  20130. # Do we need a version for libraries?
  20131. need_version=$need_version
  20132. # Library versioning type.
  20133. version_type=$version_type
  20134. # Shared library runtime path variable.
  20135. runpath_var=$runpath_var
  20136. # Shared library path variable.
  20137. shlibpath_var=$shlibpath_var
  20138. # Is shlibpath searched before the hard-coded library search path?
  20139. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  20140. # Format of library name prefix.
  20141. libname_spec=$lt_libname_spec
  20142. # List of archive names. First name is the real one, the rest are links.
  20143. # The last name is the one that the linker finds with -lNAME
  20144. library_names_spec=$lt_library_names_spec
  20145. # The coded name of the library, if different from the real name.
  20146. soname_spec=$lt_soname_spec
  20147. # Permission mode override for installation of shared libraries.
  20148. install_override_mode=$lt_install_override_mode
  20149. # Command to use after installation of a shared archive.
  20150. postinstall_cmds=$lt_postinstall_cmds
  20151. # Command to use after uninstallation of a shared archive.
  20152. postuninstall_cmds=$lt_postuninstall_cmds
  20153. # Commands used to finish a libtool library installation in a directory.
  20154. finish_cmds=$lt_finish_cmds
  20155. # As "finish_cmds", except a single script fragment to be evaled but
  20156. # not shown.
  20157. finish_eval=$lt_finish_eval
  20158. # Whether we should hardcode library paths into libraries.
  20159. hardcode_into_libs=$hardcode_into_libs
  20160. # Compile-time system search path for libraries.
  20161. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  20162. # Run-time system search path for libraries.
  20163. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  20164. # Whether dlopen is supported.
  20165. dlopen_support=$enable_dlopen
  20166. # Whether dlopen of programs is supported.
  20167. dlopen_self=$enable_dlopen_self
  20168. # Whether dlopen of statically linked programs is supported.
  20169. dlopen_self_static=$enable_dlopen_self_static
  20170. # Commands to strip libraries.
  20171. old_striplib=$lt_old_striplib
  20172. striplib=$lt_striplib
  20173. # The linker used to build libraries.
  20174. LD=$lt_LD
  20175. # How to create reloadable object files.
  20176. reload_flag=$lt_reload_flag
  20177. reload_cmds=$lt_reload_cmds
  20178. # Commands used to build an old-style archive.
  20179. old_archive_cmds=$lt_old_archive_cmds
  20180. # A language specific compiler.
  20181. CC=$lt_compiler
  20182. # Is the compiler the GNU compiler?
  20183. with_gcc=$GCC
  20184. # Compiler flag to turn off builtin functions.
  20185. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  20186. # Additional compiler flags for building library objects.
  20187. pic_flag=$lt_lt_prog_compiler_pic
  20188. # How to pass a linker flag through the compiler.
  20189. wl=$lt_lt_prog_compiler_wl
  20190. # Compiler flag to prevent dynamic linking.
  20191. link_static_flag=$lt_lt_prog_compiler_static
  20192. # Does compiler simultaneously support -c and -o options?
  20193. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  20194. # Whether or not to add -lc for building shared libraries.
  20195. build_libtool_need_lc=$archive_cmds_need_lc
  20196. # Whether or not to disallow shared libs when runtime libs are static.
  20197. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  20198. # Compiler flag to allow reflexive dlopens.
  20199. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  20200. # Compiler flag to generate shared objects directly from archives.
  20201. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  20202. # Whether the compiler copes with passing no objects directly.
  20203. compiler_needs_object=$lt_compiler_needs_object
  20204. # Create an old-style archive from a shared archive.
  20205. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  20206. # Create a temporary old-style archive to link instead of a shared archive.
  20207. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  20208. # Commands used to build a shared archive.
  20209. archive_cmds=$lt_archive_cmds
  20210. archive_expsym_cmds=$lt_archive_expsym_cmds
  20211. # Commands used to build a loadable module if different from building
  20212. # a shared archive.
  20213. module_cmds=$lt_module_cmds
  20214. module_expsym_cmds=$lt_module_expsym_cmds
  20215. # Whether we are building with GNU ld or not.
  20216. with_gnu_ld=$lt_with_gnu_ld
  20217. # Flag that allows shared libraries with undefined symbols to be built.
  20218. allow_undefined_flag=$lt_allow_undefined_flag
  20219. # Flag that enforces no undefined symbols.
  20220. no_undefined_flag=$lt_no_undefined_flag
  20221. # Flag to hardcode \$libdir into a binary during linking.
  20222. # This must work even if \$libdir does not exist
  20223. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  20224. # Whether we need a single "-rpath" flag with a separated argument.
  20225. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  20226. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20227. # DIR into the resulting binary.
  20228. hardcode_direct=$hardcode_direct
  20229. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20230. # DIR into the resulting binary and the resulting library dependency is
  20231. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20232. # library is relocated.
  20233. hardcode_direct_absolute=$hardcode_direct_absolute
  20234. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20235. # into the resulting binary.
  20236. hardcode_minus_L=$hardcode_minus_L
  20237. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20238. # into the resulting binary.
  20239. hardcode_shlibpath_var=$hardcode_shlibpath_var
  20240. # Set to "yes" if building a shared library automatically hardcodes DIR
  20241. # into the library and all subsequent libraries and executables linked
  20242. # against it.
  20243. hardcode_automatic=$hardcode_automatic
  20244. # Set to yes if linker adds runtime paths of dependent libraries
  20245. # to runtime path list.
  20246. inherit_rpath=$inherit_rpath
  20247. # Whether libtool must link a program against all its dependency libraries.
  20248. link_all_deplibs=$link_all_deplibs
  20249. # Set to "yes" if exported symbols are required.
  20250. always_export_symbols=$always_export_symbols
  20251. # The commands to list exported symbols.
  20252. export_symbols_cmds=$lt_export_symbols_cmds
  20253. # Symbols that should not be listed in the preloaded symbols.
  20254. exclude_expsyms=$lt_exclude_expsyms
  20255. # Symbols that must always be exported.
  20256. include_expsyms=$lt_include_expsyms
  20257. # Commands necessary for linking programs (against libraries) with templates.
  20258. prelink_cmds=$lt_prelink_cmds
  20259. # Commands necessary for finishing linking programs.
  20260. postlink_cmds=$lt_postlink_cmds
  20261. # Specify filename containing input files.
  20262. file_list_spec=$lt_file_list_spec
  20263. # How to hardcode a shared library path into an executable.
  20264. hardcode_action=$hardcode_action
  20265. # The directories searched by this compiler when creating a shared library.
  20266. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  20267. # Dependencies to place before and after the objects being linked to
  20268. # create a shared library.
  20269. predep_objects=$lt_predep_objects
  20270. postdep_objects=$lt_postdep_objects
  20271. predeps=$lt_predeps
  20272. postdeps=$lt_postdeps
  20273. # The library search path used internally by the compiler when linking
  20274. # a shared library.
  20275. compiler_lib_search_path=$lt_compiler_lib_search_path
  20276. # ### END LIBTOOL CONFIG
  20277. _LT_EOF
  20278. case $host_os in
  20279. aix3*)
  20280. cat <<\_LT_EOF >> "$cfgfile"
  20281. # AIX sometimes has problems with the GCC collect2 program. For some
  20282. # reason, if we set the COLLECT_NAMES environment variable, the problems
  20283. # vanish in a puff of smoke.
  20284. if test "X${COLLECT_NAMES+set}" != Xset; then
  20285. COLLECT_NAMES=
  20286. export COLLECT_NAMES
  20287. fi
  20288. _LT_EOF
  20289. ;;
  20290. esac
  20291. ltmain="$ac_aux_dir/ltmain.sh"
  20292. # We use sed instead of cat because bash on DJGPP gets confused if
  20293. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  20294. # text mode, it properly converts lines to CR/LF. This bash problem
  20295. # is reportedly fixed, but why not run on old versions too?
  20296. sed '$q' "$ltmain" >> "$cfgfile" \
  20297. || (rm -f "$cfgfile"; exit 1)
  20298. if test x"$xsi_shell" = xyes; then
  20299. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  20300. func_dirname ()\
  20301. {\
  20302. \ case ${1} in\
  20303. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20304. \ * ) func_dirname_result="${3}" ;;\
  20305. \ esac\
  20306. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  20307. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20308. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20309. test 0 -eq $? || _lt_function_replace_fail=:
  20310. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  20311. func_basename ()\
  20312. {\
  20313. \ func_basename_result="${1##*/}"\
  20314. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20315. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20316. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20317. test 0 -eq $? || _lt_function_replace_fail=:
  20318. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  20319. func_dirname_and_basename ()\
  20320. {\
  20321. \ case ${1} in\
  20322. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  20323. \ * ) func_dirname_result="${3}" ;;\
  20324. \ esac\
  20325. \ func_basename_result="${1##*/}"\
  20326. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  20327. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20328. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20329. test 0 -eq $? || _lt_function_replace_fail=:
  20330. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  20331. func_stripname ()\
  20332. {\
  20333. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  20334. \ # positional parameters, so assign one to ordinary parameter first.\
  20335. \ func_stripname_result=${3}\
  20336. \ func_stripname_result=${func_stripname_result#"${1}"}\
  20337. \ func_stripname_result=${func_stripname_result%"${2}"}\
  20338. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  20339. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20340. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20341. test 0 -eq $? || _lt_function_replace_fail=:
  20342. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  20343. func_split_long_opt ()\
  20344. {\
  20345. \ func_split_long_opt_name=${1%%=*}\
  20346. \ func_split_long_opt_arg=${1#*=}\
  20347. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20348. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20349. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20350. test 0 -eq $? || _lt_function_replace_fail=:
  20351. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  20352. func_split_short_opt ()\
  20353. {\
  20354. \ func_split_short_opt_arg=${1#??}\
  20355. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  20356. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  20357. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20358. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20359. test 0 -eq $? || _lt_function_replace_fail=:
  20360. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  20361. func_lo2o ()\
  20362. {\
  20363. \ case ${1} in\
  20364. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  20365. \ *) func_lo2o_result=${1} ;;\
  20366. \ esac\
  20367. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  20368. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20369. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20370. test 0 -eq $? || _lt_function_replace_fail=:
  20371. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  20372. func_xform ()\
  20373. {\
  20374. func_xform_result=${1%.*}.lo\
  20375. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  20376. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20377. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20378. test 0 -eq $? || _lt_function_replace_fail=:
  20379. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  20380. func_arith ()\
  20381. {\
  20382. func_arith_result=$(( $* ))\
  20383. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  20384. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20385. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20386. test 0 -eq $? || _lt_function_replace_fail=:
  20387. sed -e '/^func_len ()$/,/^} # func_len /c\
  20388. func_len ()\
  20389. {\
  20390. func_len_result=${#1}\
  20391. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  20392. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20393. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20394. test 0 -eq $? || _lt_function_replace_fail=:
  20395. fi
  20396. if test x"$lt_shell_append" = xyes; then
  20397. sed -e '/^func_append ()$/,/^} # func_append /c\
  20398. func_append ()\
  20399. {\
  20400. eval "${1}+=\\${2}"\
  20401. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  20402. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20403. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20404. test 0 -eq $? || _lt_function_replace_fail=:
  20405. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  20406. func_append_quoted ()\
  20407. {\
  20408. \ func_quote_for_eval "${2}"\
  20409. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  20410. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  20411. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20412. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20413. test 0 -eq $? || _lt_function_replace_fail=:
  20414. # Save a `func_append' function call where possible by direct use of '+='
  20415. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  20416. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20417. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20418. test 0 -eq $? || _lt_function_replace_fail=:
  20419. else
  20420. # Save a `func_append' function call even when '+=' is not available
  20421. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  20422. && mv -f "$cfgfile.tmp" "$cfgfile" \
  20423. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  20424. test 0 -eq $? || _lt_function_replace_fail=:
  20425. fi
  20426. if test x"$_lt_function_replace_fail" = x":"; then
  20427. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  20428. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  20429. fi
  20430. mv -f "$cfgfile" "$ofile" ||
  20431. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  20432. chmod +x "$ofile"
  20433. cat <<_LT_EOF >> "$ofile"
  20434. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  20435. # The linker used to build libraries.
  20436. LD=$lt_LD_CXX
  20437. # How to create reloadable object files.
  20438. reload_flag=$lt_reload_flag_CXX
  20439. reload_cmds=$lt_reload_cmds_CXX
  20440. # Commands used to build an old-style archive.
  20441. old_archive_cmds=$lt_old_archive_cmds_CXX
  20442. # A language specific compiler.
  20443. CC=$lt_compiler_CXX
  20444. # Is the compiler the GNU compiler?
  20445. with_gcc=$GCC_CXX
  20446. # Compiler flag to turn off builtin functions.
  20447. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  20448. # Additional compiler flags for building library objects.
  20449. pic_flag=$lt_lt_prog_compiler_pic_CXX
  20450. # How to pass a linker flag through the compiler.
  20451. wl=$lt_lt_prog_compiler_wl_CXX
  20452. # Compiler flag to prevent dynamic linking.
  20453. link_static_flag=$lt_lt_prog_compiler_static_CXX
  20454. # Does compiler simultaneously support -c and -o options?
  20455. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  20456. # Whether or not to add -lc for building shared libraries.
  20457. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  20458. # Whether or not to disallow shared libs when runtime libs are static.
  20459. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  20460. # Compiler flag to allow reflexive dlopens.
  20461. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  20462. # Compiler flag to generate shared objects directly from archives.
  20463. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  20464. # Whether the compiler copes with passing no objects directly.
  20465. compiler_needs_object=$lt_compiler_needs_object_CXX
  20466. # Create an old-style archive from a shared archive.
  20467. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  20468. # Create a temporary old-style archive to link instead of a shared archive.
  20469. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  20470. # Commands used to build a shared archive.
  20471. archive_cmds=$lt_archive_cmds_CXX
  20472. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  20473. # Commands used to build a loadable module if different from building
  20474. # a shared archive.
  20475. module_cmds=$lt_module_cmds_CXX
  20476. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  20477. # Whether we are building with GNU ld or not.
  20478. with_gnu_ld=$lt_with_gnu_ld_CXX
  20479. # Flag that allows shared libraries with undefined symbols to be built.
  20480. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  20481. # Flag that enforces no undefined symbols.
  20482. no_undefined_flag=$lt_no_undefined_flag_CXX
  20483. # Flag to hardcode \$libdir into a binary during linking.
  20484. # This must work even if \$libdir does not exist
  20485. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  20486. # Whether we need a single "-rpath" flag with a separated argument.
  20487. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  20488. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20489. # DIR into the resulting binary.
  20490. hardcode_direct=$hardcode_direct_CXX
  20491. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  20492. # DIR into the resulting binary and the resulting library dependency is
  20493. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  20494. # library is relocated.
  20495. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  20496. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  20497. # into the resulting binary.
  20498. hardcode_minus_L=$hardcode_minus_L_CXX
  20499. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  20500. # into the resulting binary.
  20501. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  20502. # Set to "yes" if building a shared library automatically hardcodes DIR
  20503. # into the library and all subsequent libraries and executables linked
  20504. # against it.
  20505. hardcode_automatic=$hardcode_automatic_CXX
  20506. # Set to yes if linker adds runtime paths of dependent libraries
  20507. # to runtime path list.
  20508. inherit_rpath=$inherit_rpath_CXX
  20509. # Whether libtool must link a program against all its dependency libraries.
  20510. link_all_deplibs=$link_all_deplibs_CXX
  20511. # Set to "yes" if exported symbols are required.
  20512. always_export_symbols=$always_export_symbols_CXX
  20513. # The commands to list exported symbols.
  20514. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  20515. # Symbols that should not be listed in the preloaded symbols.
  20516. exclude_expsyms=$lt_exclude_expsyms_CXX
  20517. # Symbols that must always be exported.
  20518. include_expsyms=$lt_include_expsyms_CXX
  20519. # Commands necessary for linking programs (against libraries) with templates.
  20520. prelink_cmds=$lt_prelink_cmds_CXX
  20521. # Commands necessary for finishing linking programs.
  20522. postlink_cmds=$lt_postlink_cmds_CXX
  20523. # Specify filename containing input files.
  20524. file_list_spec=$lt_file_list_spec_CXX
  20525. # How to hardcode a shared library path into an executable.
  20526. hardcode_action=$hardcode_action_CXX
  20527. # The directories searched by this compiler when creating a shared library.
  20528. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  20529. # Dependencies to place before and after the objects being linked to
  20530. # create a shared library.
  20531. predep_objects=$lt_predep_objects_CXX
  20532. postdep_objects=$lt_postdep_objects_CXX
  20533. predeps=$lt_predeps_CXX
  20534. postdeps=$lt_postdeps_CXX
  20535. # The library search path used internally by the compiler when linking
  20536. # a shared library.
  20537. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  20538. # ### END LIBTOOL TAG CONFIG: CXX
  20539. _LT_EOF
  20540. ;;
  20541. esac
  20542. done # for ac_tag
  20543. as_fn_exit 0
  20544. _ACEOF
  20545. ac_clean_files=$ac_clean_files_save
  20546. test $ac_write_fail = 0 ||
  20547. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  20548. # configure is writing to config.log, and then calls config.status.
  20549. # config.status does its own redirection, appending to config.log.
  20550. # Unfortunately, on DOS this fails, as config.log is still kept open
  20551. # by configure, so config.status won't be able to write to it; its
  20552. # output is simply discarded. So we exec the FD to /dev/null,
  20553. # effectively closing config.log, so it can be properly (re)opened and
  20554. # appended to by config.status. When coming back to configure, we
  20555. # need to make the FD available again.
  20556. if test "$no_create" != yes; then
  20557. ac_cs_success=:
  20558. ac_config_status_args=
  20559. test "$silent" = yes &&
  20560. ac_config_status_args="$ac_config_status_args --quiet"
  20561. exec 5>/dev/null
  20562. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20563. exec 5>>config.log
  20564. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20565. # would make configure fail if this is the last instruction.
  20566. $ac_cs_success || as_fn_exit 1
  20567. fi
  20568. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  20569. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  20570. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  20571. fi