configure 557 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.67 for vcmi 0.82b.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  8. # Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell [email protected] about your system,
  214. $0: including any error possibly output before this
  215. $0: message. Then install a modern shell, or manually run
  216. $0: the script under such a shell if you do have one."
  217. fi
  218. exit 1
  219. fi
  220. fi
  221. fi
  222. SHELL=${CONFIG_SHELL-/bin/sh}
  223. export SHELL
  224. # Unset more variables known to interfere with behavior of common tools.
  225. CLICOLOR_FORCE= GREP_OPTIONS=
  226. unset CLICOLOR_FORCE GREP_OPTIONS
  227. ## --------------------- ##
  228. ## M4sh Shell Functions. ##
  229. ## --------------------- ##
  230. # as_fn_unset VAR
  231. # ---------------
  232. # Portably unset VAR.
  233. as_fn_unset ()
  234. {
  235. { eval $1=; unset $1;}
  236. }
  237. as_unset=as_fn_unset
  238. # as_fn_set_status STATUS
  239. # -----------------------
  240. # Set $? to STATUS, without forking.
  241. as_fn_set_status ()
  242. {
  243. return $1
  244. } # as_fn_set_status
  245. # as_fn_exit STATUS
  246. # -----------------
  247. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  248. as_fn_exit ()
  249. {
  250. set +e
  251. as_fn_set_status $1
  252. exit $1
  253. } # as_fn_exit
  254. # as_fn_mkdir_p
  255. # -------------
  256. # Create "$as_dir" as a directory, including parents if necessary.
  257. as_fn_mkdir_p ()
  258. {
  259. case $as_dir in #(
  260. -*) as_dir=./$as_dir;;
  261. esac
  262. test -d "$as_dir" || eval $as_mkdir_p || {
  263. as_dirs=
  264. while :; do
  265. case $as_dir in #(
  266. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  267. *) as_qdir=$as_dir;;
  268. esac
  269. as_dirs="'$as_qdir' $as_dirs"
  270. as_dir=`$as_dirname -- "$as_dir" ||
  271. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  272. X"$as_dir" : 'X\(//\)[^/]' \| \
  273. X"$as_dir" : 'X\(//\)$' \| \
  274. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  275. $as_echo X"$as_dir" |
  276. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  277. s//\1/
  278. q
  279. }
  280. /^X\(\/\/\)[^/].*/{
  281. s//\1/
  282. q
  283. }
  284. /^X\(\/\/\)$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\).*/{
  289. s//\1/
  290. q
  291. }
  292. s/.*/./; q'`
  293. test -d "$as_dir" && break
  294. done
  295. test -z "$as_dirs" || eval "mkdir $as_dirs"
  296. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  297. } # as_fn_mkdir_p
  298. # as_fn_append VAR VALUE
  299. # ----------------------
  300. # Append the text in VALUE to the end of the definition contained in VAR. Take
  301. # advantage of any shell optimizations that allow amortized linear growth over
  302. # repeated appends, instead of the typical quadratic growth present in naive
  303. # implementations.
  304. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  305. eval 'as_fn_append ()
  306. {
  307. eval $1+=\$2
  308. }'
  309. else
  310. as_fn_append ()
  311. {
  312. eval $1=\$$1\$2
  313. }
  314. fi # as_fn_append
  315. # as_fn_arith ARG...
  316. # ------------------
  317. # Perform arithmetic evaluation on the ARGs, and store the result in the
  318. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  319. # must be portable across $(()) and expr.
  320. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  321. eval 'as_fn_arith ()
  322. {
  323. as_val=$(( $* ))
  324. }'
  325. else
  326. as_fn_arith ()
  327. {
  328. as_val=`expr "$@" || test $? -eq 1`
  329. }
  330. fi # as_fn_arith
  331. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  332. # ----------------------------------------
  333. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  334. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  335. # script with STATUS, using 1 if that was 0.
  336. as_fn_error ()
  337. {
  338. as_status=$1; test $as_status -eq 0 && as_status=1
  339. if test "$4"; then
  340. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  341. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  342. fi
  343. $as_echo "$as_me: error: $2" >&2
  344. as_fn_exit $as_status
  345. } # as_fn_error
  346. if expr a : '\(a\)' >/dev/null 2>&1 &&
  347. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  348. as_expr=expr
  349. else
  350. as_expr=false
  351. fi
  352. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  353. as_basename=basename
  354. else
  355. as_basename=false
  356. fi
  357. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  358. as_dirname=dirname
  359. else
  360. as_dirname=false
  361. fi
  362. as_me=`$as_basename -- "$0" ||
  363. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  364. X"$0" : 'X\(//\)$' \| \
  365. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  366. $as_echo X/"$0" |
  367. sed '/^.*\/\([^/][^/]*\)\/*$/{
  368. s//\1/
  369. q
  370. }
  371. /^X\/\(\/\/\)$/{
  372. s//\1/
  373. q
  374. }
  375. /^X\/\(\/\).*/{
  376. s//\1/
  377. q
  378. }
  379. s/.*/./; q'`
  380. # Avoid depending upon Character Ranges.
  381. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  382. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  383. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  384. as_cr_digits='0123456789'
  385. as_cr_alnum=$as_cr_Letters$as_cr_digits
  386. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  387. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  388. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  389. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  390. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  408. # Don't try to exec as it changes $[0], causing all sort of problems
  409. # (the dirname of $[0] is not the place where we might find the
  410. # original and so on. Autoconf is especially sensitive to this).
  411. . "./$as_me.lineno"
  412. # Exit status is that of the last command.
  413. exit
  414. }
  415. ECHO_C= ECHO_N= ECHO_T=
  416. case `echo -n x` in #(((((
  417. -n*)
  418. case `echo 'xy\c'` in
  419. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  420. xy) ECHO_C='\c';;
  421. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  422. ECHO_T=' ';;
  423. esac;;
  424. *)
  425. ECHO_N='-n';;
  426. esac
  427. rm -f conf$$ conf$$.exe conf$$.file
  428. if test -d conf$$.dir; then
  429. rm -f conf$$.dir/conf$$.file
  430. else
  431. rm -f conf$$.dir
  432. mkdir conf$$.dir 2>/dev/null
  433. fi
  434. if (echo >conf$$.file) 2>/dev/null; then
  435. if ln -s conf$$.file conf$$ 2>/dev/null; then
  436. as_ln_s='ln -s'
  437. # ... but there are two gotchas:
  438. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  439. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  440. # In both cases, we have to default to `cp -p'.
  441. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  442. as_ln_s='cp -p'
  443. elif ln conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s=ln
  445. else
  446. as_ln_s='cp -p'
  447. fi
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  452. rmdir conf$$.dir 2>/dev/null
  453. if mkdir -p . 2>/dev/null; then
  454. as_mkdir_p='mkdir -p "$as_dir"'
  455. else
  456. test -d ./-p && rmdir ./-p
  457. as_mkdir_p=false
  458. fi
  459. if test -x / >/dev/null 2>&1; then
  460. as_test_x='test -x'
  461. else
  462. if ls -dL / >/dev/null 2>&1; then
  463. as_ls_L_option=L
  464. else
  465. as_ls_L_option=
  466. fi
  467. as_test_x='
  468. eval sh -c '\''
  469. if test -d "$1"; then
  470. test -d "$1/.";
  471. else
  472. case $1 in #(
  473. -*)set "./$1";;
  474. esac;
  475. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  476. ???[sx]*):;;*)false;;esac;fi
  477. '\'' sh
  478. '
  479. fi
  480. as_executable_p=$as_test_x
  481. # Sed expression to map a string onto a valid CPP name.
  482. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  483. # Sed expression to map a string onto a valid variable name.
  484. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  485. # Check that we are running under the correct shell.
  486. SHELL=${CONFIG_SHELL-/bin/sh}
  487. case X$lt_ECHO in
  488. X*--fallback-echo)
  489. # Remove one level of quotation (which was required for Make).
  490. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  491. ;;
  492. esac
  493. ECHO=${lt_ECHO-echo}
  494. if test "X$1" = X--no-reexec; then
  495. # Discard the --no-reexec flag, and continue.
  496. shift
  497. elif test "X$1" = X--fallback-echo; then
  498. # Avoid inline document here, it may be left over
  499. :
  500. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  501. # Yippee, $ECHO works!
  502. :
  503. else
  504. # Restart under the correct shell.
  505. exec $SHELL "$0" --no-reexec ${1+"$@"}
  506. fi
  507. if test "X$1" = X--fallback-echo; then
  508. # used as fallback echo
  509. shift
  510. cat <<_LT_EOF
  511. $*
  512. _LT_EOF
  513. exit 0
  514. fi
  515. # The HP-UX ksh and POSIX shell print the target directory to stdout
  516. # if CDPATH is set.
  517. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  518. if test -z "$lt_ECHO"; then
  519. if test "X${echo_test_string+set}" != Xset; then
  520. # find a string as large as possible, as long as the shell can cope with it
  521. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  522. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  523. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  524. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  525. then
  526. break
  527. fi
  528. done
  529. fi
  530. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  531. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  532. test "X$echo_testing_string" = "X$echo_test_string"; then
  533. :
  534. else
  535. # The Solaris, AIX, and Digital Unix default echo programs unquote
  536. # backslashes. This makes it impossible to quote backslashes using
  537. # echo "$something" | sed 's/\\/\\\\/g'
  538. #
  539. # So, first we look for a working echo in the user's PATH.
  540. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  541. for dir in $PATH /usr/ucb; do
  542. IFS="$lt_save_ifs"
  543. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  544. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  545. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  546. test "X$echo_testing_string" = "X$echo_test_string"; then
  547. ECHO="$dir/echo"
  548. break
  549. fi
  550. done
  551. IFS="$lt_save_ifs"
  552. if test "X$ECHO" = Xecho; then
  553. # We didn't find a better echo, so look for alternatives.
  554. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. # This shell has a builtin print -r that does the trick.
  558. ECHO='print -r'
  559. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  560. test "X$CONFIG_SHELL" != X/bin/ksh; then
  561. # If we have ksh, try running configure again with it.
  562. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  563. export ORIGINAL_CONFIG_SHELL
  564. CONFIG_SHELL=/bin/ksh
  565. export CONFIG_SHELL
  566. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  567. else
  568. # Try using printf.
  569. ECHO='printf %s\n'
  570. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  571. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  572. test "X$echo_testing_string" = "X$echo_test_string"; then
  573. # Cool, printf works
  574. :
  575. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  576. test "X$echo_testing_string" = 'X\t' &&
  577. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  578. test "X$echo_testing_string" = "X$echo_test_string"; then
  579. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  580. export CONFIG_SHELL
  581. SHELL="$CONFIG_SHELL"
  582. export SHELL
  583. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  584. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  585. test "X$echo_testing_string" = 'X\t' &&
  586. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  587. test "X$echo_testing_string" = "X$echo_test_string"; then
  588. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  589. else
  590. # maybe with a smaller string...
  591. prev=:
  592. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  593. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  594. then
  595. break
  596. fi
  597. prev="$cmd"
  598. done
  599. if test "$prev" != 'sed 50q "$0"'; then
  600. echo_test_string=`eval $prev`
  601. export echo_test_string
  602. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  603. else
  604. # Oops. We lost completely, so just stick with echo.
  605. ECHO=echo
  606. fi
  607. fi
  608. fi
  609. fi
  610. fi
  611. fi
  612. # Copy echo and quote the copy suitably for passing to libtool from
  613. # the Makefile, instead of quoting the original, which is used later.
  614. lt_ECHO=$ECHO
  615. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  616. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  617. fi
  618. test -n "$DJDIR" || exec 7<&0 </dev/null
  619. exec 6>&1
  620. # Name of the host.
  621. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  622. # so uname gets run too.
  623. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  624. #
  625. # Initializations.
  626. #
  627. ac_default_prefix=/usr/local
  628. ac_clean_files=
  629. ac_config_libobj_dir=.
  630. LIBOBJS=
  631. cross_compiling=no
  632. subdirs=
  633. MFLAGS=
  634. MAKEFLAGS=
  635. # Identity of this package.
  636. PACKAGE_NAME='vcmi'
  637. PACKAGE_TARNAME='vcmi'
  638. PACKAGE_VERSION='0.82b'
  639. PACKAGE_STRING='vcmi 0.82b'
  640. PACKAGE_BUGREPORT=''
  641. PACKAGE_URL=''
  642. # Factoring default headers for most tests.
  643. ac_includes_default="\
  644. #include <stdio.h>
  645. #ifdef HAVE_SYS_TYPES_H
  646. # include <sys/types.h>
  647. #endif
  648. #ifdef HAVE_SYS_STAT_H
  649. # include <sys/stat.h>
  650. #endif
  651. #ifdef STDC_HEADERS
  652. # include <stdlib.h>
  653. # include <stddef.h>
  654. #else
  655. # ifdef HAVE_STDLIB_H
  656. # include <stdlib.h>
  657. # endif
  658. #endif
  659. #ifdef HAVE_STRING_H
  660. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  661. # include <memory.h>
  662. # endif
  663. # include <string.h>
  664. #endif
  665. #ifdef HAVE_STRINGS_H
  666. # include <strings.h>
  667. #endif
  668. #ifdef HAVE_INTTYPES_H
  669. # include <inttypes.h>
  670. #endif
  671. #ifdef HAVE_STDINT_H
  672. # include <stdint.h>
  673. #endif
  674. #ifdef HAVE_UNISTD_H
  675. # include <unistd.h>
  676. #endif"
  677. ac_subst_vars='am__EXEEXT_FALSE
  678. am__EXEEXT_TRUE
  679. LTLIBOBJS
  680. LIBOBJS
  681. FFMPEG_CXXFLAGS
  682. FFMPEG_LIBS
  683. SDL_CXXFLAGS
  684. SDL_LIBS
  685. HAVE_SDL_CONFIG
  686. BOOST_IOSTREAMS_LIB
  687. BOOST_THREAD_LIB
  688. BOOST_FILESYSTEM_LIB
  689. BOOST_SYSTEM_LIB
  690. BOOST_LDFLAGS
  691. BOOST_CPPFLAGS
  692. AM_BACKSLASH
  693. AM_DEFAULT_VERBOSITY
  694. CXXCPP
  695. CPP
  696. OTOOL64
  697. OTOOL
  698. LIPO
  699. NMEDIT
  700. DSYMUTIL
  701. lt_ECHO
  702. RANLIB
  703. AR
  704. OBJDUMP
  705. LN_S
  706. NM
  707. ac_ct_DUMPBIN
  708. DUMPBIN
  709. LD
  710. FGREP
  711. EGREP
  712. GREP
  713. SED
  714. am__fastdepCC_FALSE
  715. am__fastdepCC_TRUE
  716. CCDEPMODE
  717. ac_ct_CC
  718. CFLAGS
  719. CC
  720. host_os
  721. host_vendor
  722. host_cpu
  723. host
  724. build_os
  725. build_vendor
  726. build_cpu
  727. build
  728. LIBTOOL
  729. am__fastdepCXX_FALSE
  730. am__fastdepCXX_TRUE
  731. CXXDEPMODE
  732. AMDEPBACKSLASH
  733. AMDEP_FALSE
  734. AMDEP_TRUE
  735. am__quote
  736. am__include
  737. DEPDIR
  738. OBJEXT
  739. EXEEXT
  740. ac_ct_CXX
  741. CPPFLAGS
  742. LDFLAGS
  743. CXXFLAGS
  744. CXX
  745. am__untar
  746. am__tar
  747. AMTAR
  748. am__leading_dot
  749. SET_MAKE
  750. AWK
  751. mkdir_p
  752. MKDIR_P
  753. INSTALL_STRIP_PROGRAM
  754. STRIP
  755. install_sh
  756. MAKEINFO
  757. AUTOHEADER
  758. AUTOMAKE
  759. AUTOCONF
  760. ACLOCAL
  761. VERSION
  762. PACKAGE
  763. CYGPATH_W
  764. am__isrc
  765. INSTALL_DATA
  766. INSTALL_SCRIPT
  767. INSTALL_PROGRAM
  768. target_alias
  769. host_alias
  770. build_alias
  771. LIBS
  772. ECHO_T
  773. ECHO_N
  774. ECHO_C
  775. DEFS
  776. mandir
  777. localedir
  778. libdir
  779. psdir
  780. pdfdir
  781. dvidir
  782. htmldir
  783. infodir
  784. docdir
  785. oldincludedir
  786. includedir
  787. localstatedir
  788. sharedstatedir
  789. sysconfdir
  790. datadir
  791. datarootdir
  792. libexecdir
  793. sbindir
  794. bindir
  795. program_transform_name
  796. prefix
  797. exec_prefix
  798. PACKAGE_URL
  799. PACKAGE_BUGREPORT
  800. PACKAGE_STRING
  801. PACKAGE_VERSION
  802. PACKAGE_TARNAME
  803. PACKAGE_NAME
  804. PATH_SEPARATOR
  805. SHELL'
  806. ac_subst_files=''
  807. ac_user_opts='
  808. enable_option_checking
  809. enable_dependency_tracking
  810. enable_shared
  811. enable_static
  812. with_pic
  813. enable_fast_install
  814. with_gnu_ld
  815. enable_libtool_lock
  816. enable_silent_rules
  817. enable_debug
  818. with_boost
  819. with_boost_libdir
  820. with_boost_system
  821. with_boost_filesystem
  822. with_boost_thread
  823. with_boost_iostreams
  824. '
  825. ac_precious_vars='build_alias
  826. host_alias
  827. target_alias
  828. CXX
  829. CXXFLAGS
  830. LDFLAGS
  831. LIBS
  832. CPPFLAGS
  833. CCC
  834. CC
  835. CFLAGS
  836. CPP
  837. CXXCPP'
  838. # Initialize some variables set by options.
  839. ac_init_help=
  840. ac_init_version=false
  841. ac_unrecognized_opts=
  842. ac_unrecognized_sep=
  843. # The variables have the same names as the options, with
  844. # dashes changed to underlines.
  845. cache_file=/dev/null
  846. exec_prefix=NONE
  847. no_create=
  848. no_recursion=
  849. prefix=NONE
  850. program_prefix=NONE
  851. program_suffix=NONE
  852. program_transform_name=s,x,x,
  853. silent=
  854. site=
  855. srcdir=
  856. verbose=
  857. x_includes=NONE
  858. x_libraries=NONE
  859. # Installation directory options.
  860. # These are left unexpanded so users can "make install exec_prefix=/foo"
  861. # and all the variables that are supposed to be based on exec_prefix
  862. # by default will actually change.
  863. # Use braces instead of parens because sh, perl, etc. also accept them.
  864. # (The list follows the same order as the GNU Coding Standards.)
  865. bindir='${exec_prefix}/bin'
  866. sbindir='${exec_prefix}/sbin'
  867. libexecdir='${exec_prefix}/libexec'
  868. datarootdir='${prefix}/share'
  869. datadir='${datarootdir}'
  870. sysconfdir='${prefix}/etc'
  871. sharedstatedir='${prefix}/com'
  872. localstatedir='${prefix}/var'
  873. includedir='${prefix}/include'
  874. oldincludedir='/usr/include'
  875. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  876. infodir='${datarootdir}/info'
  877. htmldir='${docdir}'
  878. dvidir='${docdir}'
  879. pdfdir='${docdir}'
  880. psdir='${docdir}'
  881. libdir='${exec_prefix}/lib'
  882. localedir='${datarootdir}/locale'
  883. mandir='${datarootdir}/man'
  884. ac_prev=
  885. ac_dashdash=
  886. for ac_option
  887. do
  888. # If the previous option needs an argument, assign it.
  889. if test -n "$ac_prev"; then
  890. eval $ac_prev=\$ac_option
  891. ac_prev=
  892. continue
  893. fi
  894. case $ac_option in
  895. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  896. *=) ac_optarg= ;;
  897. *) ac_optarg=yes ;;
  898. esac
  899. # Accept the important Cygnus configure options, so we can diagnose typos.
  900. case $ac_dashdash$ac_option in
  901. --)
  902. ac_dashdash=yes ;;
  903. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  904. ac_prev=bindir ;;
  905. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  906. bindir=$ac_optarg ;;
  907. -build | --build | --buil | --bui | --bu)
  908. ac_prev=build_alias ;;
  909. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  910. build_alias=$ac_optarg ;;
  911. -cache-file | --cache-file | --cache-fil | --cache-fi \
  912. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  913. ac_prev=cache_file ;;
  914. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  915. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  916. cache_file=$ac_optarg ;;
  917. --config-cache | -C)
  918. cache_file=config.cache ;;
  919. -datadir | --datadir | --datadi | --datad)
  920. ac_prev=datadir ;;
  921. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  922. datadir=$ac_optarg ;;
  923. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  924. | --dataroo | --dataro | --datar)
  925. ac_prev=datarootdir ;;
  926. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  927. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  928. datarootdir=$ac_optarg ;;
  929. -disable-* | --disable-*)
  930. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  931. # Reject names that are not valid shell variable names.
  932. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  933. as_fn_error $? "invalid feature name: $ac_useropt"
  934. ac_useropt_orig=$ac_useropt
  935. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  936. case $ac_user_opts in
  937. *"
  938. "enable_$ac_useropt"
  939. "*) ;;
  940. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  941. ac_unrecognized_sep=', ';;
  942. esac
  943. eval enable_$ac_useropt=no ;;
  944. -docdir | --docdir | --docdi | --doc | --do)
  945. ac_prev=docdir ;;
  946. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  947. docdir=$ac_optarg ;;
  948. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  949. ac_prev=dvidir ;;
  950. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  951. dvidir=$ac_optarg ;;
  952. -enable-* | --enable-*)
  953. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  954. # Reject names that are not valid shell variable names.
  955. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  956. as_fn_error $? "invalid feature name: $ac_useropt"
  957. ac_useropt_orig=$ac_useropt
  958. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  959. case $ac_user_opts in
  960. *"
  961. "enable_$ac_useropt"
  962. "*) ;;
  963. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  964. ac_unrecognized_sep=', ';;
  965. esac
  966. eval enable_$ac_useropt=\$ac_optarg ;;
  967. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  968. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  969. | --exec | --exe | --ex)
  970. ac_prev=exec_prefix ;;
  971. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  972. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  973. | --exec=* | --exe=* | --ex=*)
  974. exec_prefix=$ac_optarg ;;
  975. -gas | --gas | --ga | --g)
  976. # Obsolete; use --with-gas.
  977. with_gas=yes ;;
  978. -help | --help | --hel | --he | -h)
  979. ac_init_help=long ;;
  980. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  981. ac_init_help=recursive ;;
  982. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  983. ac_init_help=short ;;
  984. -host | --host | --hos | --ho)
  985. ac_prev=host_alias ;;
  986. -host=* | --host=* | --hos=* | --ho=*)
  987. host_alias=$ac_optarg ;;
  988. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  989. ac_prev=htmldir ;;
  990. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  991. | --ht=*)
  992. htmldir=$ac_optarg ;;
  993. -includedir | --includedir | --includedi | --included | --include \
  994. | --includ | --inclu | --incl | --inc)
  995. ac_prev=includedir ;;
  996. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  997. | --includ=* | --inclu=* | --incl=* | --inc=*)
  998. includedir=$ac_optarg ;;
  999. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1000. ac_prev=infodir ;;
  1001. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1002. infodir=$ac_optarg ;;
  1003. -libdir | --libdir | --libdi | --libd)
  1004. ac_prev=libdir ;;
  1005. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1006. libdir=$ac_optarg ;;
  1007. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1008. | --libexe | --libex | --libe)
  1009. ac_prev=libexecdir ;;
  1010. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1011. | --libexe=* | --libex=* | --libe=*)
  1012. libexecdir=$ac_optarg ;;
  1013. -localedir | --localedir | --localedi | --localed | --locale)
  1014. ac_prev=localedir ;;
  1015. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1016. localedir=$ac_optarg ;;
  1017. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1018. | --localstate | --localstat | --localsta | --localst | --locals)
  1019. ac_prev=localstatedir ;;
  1020. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1021. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1022. localstatedir=$ac_optarg ;;
  1023. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1024. ac_prev=mandir ;;
  1025. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1026. mandir=$ac_optarg ;;
  1027. -nfp | --nfp | --nf)
  1028. # Obsolete; use --without-fp.
  1029. with_fp=no ;;
  1030. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1031. | --no-cr | --no-c | -n)
  1032. no_create=yes ;;
  1033. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1034. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1035. no_recursion=yes ;;
  1036. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1037. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1038. | --oldin | --oldi | --old | --ol | --o)
  1039. ac_prev=oldincludedir ;;
  1040. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1041. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1042. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1043. oldincludedir=$ac_optarg ;;
  1044. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1045. ac_prev=prefix ;;
  1046. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1047. prefix=$ac_optarg ;;
  1048. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1049. | --program-pre | --program-pr | --program-p)
  1050. ac_prev=program_prefix ;;
  1051. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1052. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1053. program_prefix=$ac_optarg ;;
  1054. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1055. | --program-suf | --program-su | --program-s)
  1056. ac_prev=program_suffix ;;
  1057. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1058. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1059. program_suffix=$ac_optarg ;;
  1060. -program-transform-name | --program-transform-name \
  1061. | --program-transform-nam | --program-transform-na \
  1062. | --program-transform-n | --program-transform- \
  1063. | --program-transform | --program-transfor \
  1064. | --program-transfo | --program-transf \
  1065. | --program-trans | --program-tran \
  1066. | --progr-tra | --program-tr | --program-t)
  1067. ac_prev=program_transform_name ;;
  1068. -program-transform-name=* | --program-transform-name=* \
  1069. | --program-transform-nam=* | --program-transform-na=* \
  1070. | --program-transform-n=* | --program-transform-=* \
  1071. | --program-transform=* | --program-transfor=* \
  1072. | --program-transfo=* | --program-transf=* \
  1073. | --program-trans=* | --program-tran=* \
  1074. | --progr-tra=* | --program-tr=* | --program-t=*)
  1075. program_transform_name=$ac_optarg ;;
  1076. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1077. ac_prev=pdfdir ;;
  1078. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1079. pdfdir=$ac_optarg ;;
  1080. -psdir | --psdir | --psdi | --psd | --ps)
  1081. ac_prev=psdir ;;
  1082. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1083. psdir=$ac_optarg ;;
  1084. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1085. | -silent | --silent | --silen | --sile | --sil)
  1086. silent=yes ;;
  1087. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1088. ac_prev=sbindir ;;
  1089. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1090. | --sbi=* | --sb=*)
  1091. sbindir=$ac_optarg ;;
  1092. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1093. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1094. | --sharedst | --shareds | --shared | --share | --shar \
  1095. | --sha | --sh)
  1096. ac_prev=sharedstatedir ;;
  1097. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1098. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1099. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1100. | --sha=* | --sh=*)
  1101. sharedstatedir=$ac_optarg ;;
  1102. -site | --site | --sit)
  1103. ac_prev=site ;;
  1104. -site=* | --site=* | --sit=*)
  1105. site=$ac_optarg ;;
  1106. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1107. ac_prev=srcdir ;;
  1108. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1109. srcdir=$ac_optarg ;;
  1110. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1111. | --syscon | --sysco | --sysc | --sys | --sy)
  1112. ac_prev=sysconfdir ;;
  1113. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1114. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1115. sysconfdir=$ac_optarg ;;
  1116. -target | --target | --targe | --targ | --tar | --ta | --t)
  1117. ac_prev=target_alias ;;
  1118. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1119. target_alias=$ac_optarg ;;
  1120. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1121. verbose=yes ;;
  1122. -version | --version | --versio | --versi | --vers | -V)
  1123. ac_init_version=: ;;
  1124. -with-* | --with-*)
  1125. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1126. # Reject names that are not valid shell variable names.
  1127. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1128. as_fn_error $? "invalid package name: $ac_useropt"
  1129. ac_useropt_orig=$ac_useropt
  1130. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1131. case $ac_user_opts in
  1132. *"
  1133. "with_$ac_useropt"
  1134. "*) ;;
  1135. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1136. ac_unrecognized_sep=', ';;
  1137. esac
  1138. eval with_$ac_useropt=\$ac_optarg ;;
  1139. -without-* | --without-*)
  1140. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1141. # Reject names that are not valid shell variable names.
  1142. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1143. as_fn_error $? "invalid package name: $ac_useropt"
  1144. ac_useropt_orig=$ac_useropt
  1145. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1146. case $ac_user_opts in
  1147. *"
  1148. "with_$ac_useropt"
  1149. "*) ;;
  1150. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1151. ac_unrecognized_sep=', ';;
  1152. esac
  1153. eval with_$ac_useropt=no ;;
  1154. --x)
  1155. # Obsolete; use --with-x.
  1156. with_x=yes ;;
  1157. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1158. | --x-incl | --x-inc | --x-in | --x-i)
  1159. ac_prev=x_includes ;;
  1160. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1161. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1162. x_includes=$ac_optarg ;;
  1163. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1164. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1165. ac_prev=x_libraries ;;
  1166. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1167. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1168. x_libraries=$ac_optarg ;;
  1169. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1170. Try \`$0 --help' for more information"
  1171. ;;
  1172. *=*)
  1173. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1174. # Reject names that are not valid shell variable names.
  1175. case $ac_envvar in #(
  1176. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1177. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1178. esac
  1179. eval $ac_envvar=\$ac_optarg
  1180. export $ac_envvar ;;
  1181. *)
  1182. # FIXME: should be removed in autoconf 3.0.
  1183. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1184. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1185. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1186. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1187. ;;
  1188. esac
  1189. done
  1190. if test -n "$ac_prev"; then
  1191. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1192. as_fn_error $? "missing argument to $ac_option"
  1193. fi
  1194. if test -n "$ac_unrecognized_opts"; then
  1195. case $enable_option_checking in
  1196. no) ;;
  1197. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1198. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1199. esac
  1200. fi
  1201. # Check all directory arguments for consistency.
  1202. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1203. datadir sysconfdir sharedstatedir localstatedir includedir \
  1204. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1205. libdir localedir mandir
  1206. do
  1207. eval ac_val=\$$ac_var
  1208. # Remove trailing slashes.
  1209. case $ac_val in
  1210. */ )
  1211. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1212. eval $ac_var=\$ac_val;;
  1213. esac
  1214. # Be sure to have absolute directory names.
  1215. case $ac_val in
  1216. [\\/$]* | ?:[\\/]* ) continue;;
  1217. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1218. esac
  1219. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1220. done
  1221. # There might be people who depend on the old broken behavior: `$host'
  1222. # used to hold the argument of --host etc.
  1223. # FIXME: To remove some day.
  1224. build=$build_alias
  1225. host=$host_alias
  1226. target=$target_alias
  1227. # FIXME: To remove some day.
  1228. if test "x$host_alias" != x; then
  1229. if test "x$build_alias" = x; then
  1230. cross_compiling=maybe
  1231. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1232. If a cross compiler is detected then cross compile mode will be used" >&2
  1233. elif test "x$build_alias" != "x$host_alias"; then
  1234. cross_compiling=yes
  1235. fi
  1236. fi
  1237. ac_tool_prefix=
  1238. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1239. test "$silent" = yes && exec 6>/dev/null
  1240. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1241. ac_ls_di=`ls -di .` &&
  1242. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1243. as_fn_error $? "working directory cannot be determined"
  1244. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1245. as_fn_error $? "pwd does not report name of working directory"
  1246. # Find the source files, if location was not specified.
  1247. if test -z "$srcdir"; then
  1248. ac_srcdir_defaulted=yes
  1249. # Try the directory containing this script, then the parent directory.
  1250. ac_confdir=`$as_dirname -- "$as_myself" ||
  1251. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1252. X"$as_myself" : 'X\(//\)[^/]' \| \
  1253. X"$as_myself" : 'X\(//\)$' \| \
  1254. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1255. $as_echo X"$as_myself" |
  1256. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1257. s//\1/
  1258. q
  1259. }
  1260. /^X\(\/\/\)[^/].*/{
  1261. s//\1/
  1262. q
  1263. }
  1264. /^X\(\/\/\)$/{
  1265. s//\1/
  1266. q
  1267. }
  1268. /^X\(\/\).*/{
  1269. s//\1/
  1270. q
  1271. }
  1272. s/.*/./; q'`
  1273. srcdir=$ac_confdir
  1274. if test ! -r "$srcdir/$ac_unique_file"; then
  1275. srcdir=..
  1276. fi
  1277. else
  1278. ac_srcdir_defaulted=no
  1279. fi
  1280. if test ! -r "$srcdir/$ac_unique_file"; then
  1281. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1282. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1283. fi
  1284. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1285. ac_abs_confdir=`(
  1286. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1287. pwd)`
  1288. # When building in place, set srcdir=.
  1289. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1290. srcdir=.
  1291. fi
  1292. # Remove unnecessary trailing slashes from srcdir.
  1293. # Double slashes in file names in object file debugging info
  1294. # mess up M-x gdb in Emacs.
  1295. case $srcdir in
  1296. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1297. esac
  1298. for ac_var in $ac_precious_vars; do
  1299. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1300. eval ac_env_${ac_var}_value=\$${ac_var}
  1301. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1302. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1303. done
  1304. #
  1305. # Report the --help message.
  1306. #
  1307. if test "$ac_init_help" = "long"; then
  1308. # Omit some internal or obsolete options to make the list less imposing.
  1309. # This message is too long to be a string in the A/UX 3.1 sh.
  1310. cat <<_ACEOF
  1311. \`configure' configures vcmi 0.82b to adapt to many kinds of systems.
  1312. Usage: $0 [OPTION]... [VAR=VALUE]...
  1313. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1314. VAR=VALUE. See below for descriptions of some of the useful variables.
  1315. Defaults for the options are specified in brackets.
  1316. Configuration:
  1317. -h, --help display this help and exit
  1318. --help=short display options specific to this package
  1319. --help=recursive display the short help of all the included packages
  1320. -V, --version display version information and exit
  1321. -q, --quiet, --silent do not print \`checking ...' messages
  1322. --cache-file=FILE cache test results in FILE [disabled]
  1323. -C, --config-cache alias for \`--cache-file=config.cache'
  1324. -n, --no-create do not create output files
  1325. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1326. Installation directories:
  1327. --prefix=PREFIX install architecture-independent files in PREFIX
  1328. [$ac_default_prefix]
  1329. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1330. [PREFIX]
  1331. By default, \`make install' will install all the files in
  1332. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1333. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1334. for instance \`--prefix=\$HOME'.
  1335. For better control, use the options below.
  1336. Fine tuning of the installation directories:
  1337. --bindir=DIR user executables [EPREFIX/bin]
  1338. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1339. --libexecdir=DIR program executables [EPREFIX/libexec]
  1340. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1341. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1342. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1343. --libdir=DIR object code libraries [EPREFIX/lib]
  1344. --includedir=DIR C header files [PREFIX/include]
  1345. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1346. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1347. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1348. --infodir=DIR info documentation [DATAROOTDIR/info]
  1349. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1350. --mandir=DIR man documentation [DATAROOTDIR/man]
  1351. --docdir=DIR documentation root [DATAROOTDIR/doc/vcmi]
  1352. --htmldir=DIR html documentation [DOCDIR]
  1353. --dvidir=DIR dvi documentation [DOCDIR]
  1354. --pdfdir=DIR pdf documentation [DOCDIR]
  1355. --psdir=DIR ps documentation [DOCDIR]
  1356. _ACEOF
  1357. cat <<\_ACEOF
  1358. Program names:
  1359. --program-prefix=PREFIX prepend PREFIX to installed program names
  1360. --program-suffix=SUFFIX append SUFFIX to installed program names
  1361. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1362. System types:
  1363. --build=BUILD configure for building on BUILD [guessed]
  1364. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1365. _ACEOF
  1366. fi
  1367. if test -n "$ac_init_help"; then
  1368. case $ac_init_help in
  1369. short | recursive ) echo "Configuration of vcmi 0.82b:";;
  1370. esac
  1371. cat <<\_ACEOF
  1372. Optional Features:
  1373. --disable-option-checking ignore unrecognized --enable/--with options
  1374. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1375. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1376. --disable-dependency-tracking speeds up one-time build
  1377. --enable-dependency-tracking do not reject slow dependency extractors
  1378. --enable-shared[=PKGS] build shared libraries [default=yes]
  1379. --enable-static[=PKGS] build static libraries [default=no]
  1380. --enable-fast-install[=PKGS]
  1381. optimize for fast installation [default=yes]
  1382. --disable-libtool-lock avoid locking (might break parallel builds)
  1383. --enable-silent-rules less verbose build output (undo: `make V=1')
  1384. --disable-silent-rules verbose build output (undo: `make V=0')
  1385. --disable-debug turn off debugging (default=enable)
  1386. Optional Packages:
  1387. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1388. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1389. --with-pic try to use only PIC/non-PIC objects [default=use
  1390. both]
  1391. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1392. --with-boost[=DIR] use boost (default is yes) - it is possible to
  1393. specify the root directory for boost (optional)
  1394. --with-boost-libdir=LIB_DIR
  1395. Force given directory for boost libraries. Note that
  1396. this will overwrite library path detection, so use
  1397. this parameter only if default library detection
  1398. fails and you know exactly where your boost
  1399. libraries are located.
  1400. --with-boost-system[=special-lib]
  1401. use the System library from boost - it is possible
  1402. to specify a certain library for the linker e.g.
  1403. --with-boost-system=boost_system-gcc-mt
  1404. --with-boost-filesystem[=special-lib]
  1405. use the Filesystem library from boost - it is
  1406. possible to specify a certain library for the linker
  1407. e.g. --with-boost-filesystem=boost_filesystem-gcc-mt
  1408. --with-boost-thread[=special-lib]
  1409. use the Thread library from boost - it is possible
  1410. to specify a certain library for the linker e.g.
  1411. --with-boost-thread=boost_thread-gcc-mt
  1412. --with-boost-iostreams[=special-lib]
  1413. use the IOStreams library from boost - it is
  1414. possible to specify a certain library for the
  1415. linker e.g.
  1416. --with-boost-iostreams=boost_iostreams-gcc-mt-d-1_33_1
  1417. Some influential environment variables:
  1418. CXX C++ compiler command
  1419. CXXFLAGS C++ compiler flags
  1420. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1421. nonstandard directory <lib dir>
  1422. LIBS libraries to pass to the linker, e.g. -l<library>
  1423. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1424. you have headers in a nonstandard directory <include dir>
  1425. CC C compiler command
  1426. CFLAGS C compiler flags
  1427. CPP C preprocessor
  1428. CXXCPP C++ preprocessor
  1429. Use these variables to override the choices made by `configure' or to help
  1430. it to find libraries and programs with nonstandard names/locations.
  1431. Report bugs to the package provider.
  1432. _ACEOF
  1433. ac_status=$?
  1434. fi
  1435. if test "$ac_init_help" = "recursive"; then
  1436. # If there are subdirs, report their specific --help.
  1437. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1438. test -d "$ac_dir" ||
  1439. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1440. continue
  1441. ac_builddir=.
  1442. case "$ac_dir" in
  1443. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1444. *)
  1445. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1446. # A ".." for each directory in $ac_dir_suffix.
  1447. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1448. case $ac_top_builddir_sub in
  1449. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1450. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1451. esac ;;
  1452. esac
  1453. ac_abs_top_builddir=$ac_pwd
  1454. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1455. # for backward compatibility:
  1456. ac_top_builddir=$ac_top_build_prefix
  1457. case $srcdir in
  1458. .) # We are building in place.
  1459. ac_srcdir=.
  1460. ac_top_srcdir=$ac_top_builddir_sub
  1461. ac_abs_top_srcdir=$ac_pwd ;;
  1462. [\\/]* | ?:[\\/]* ) # Absolute name.
  1463. ac_srcdir=$srcdir$ac_dir_suffix;
  1464. ac_top_srcdir=$srcdir
  1465. ac_abs_top_srcdir=$srcdir ;;
  1466. *) # Relative name.
  1467. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1468. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1469. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1470. esac
  1471. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1472. cd "$ac_dir" || { ac_status=$?; continue; }
  1473. # Check for guested configure.
  1474. if test -f "$ac_srcdir/configure.gnu"; then
  1475. echo &&
  1476. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1477. elif test -f "$ac_srcdir/configure"; then
  1478. echo &&
  1479. $SHELL "$ac_srcdir/configure" --help=recursive
  1480. else
  1481. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1482. fi || ac_status=$?
  1483. cd "$ac_pwd" || { ac_status=$?; break; }
  1484. done
  1485. fi
  1486. test -n "$ac_init_help" && exit $ac_status
  1487. if $ac_init_version; then
  1488. cat <<\_ACEOF
  1489. vcmi configure 0.82b
  1490. generated by GNU Autoconf 2.67
  1491. Copyright (C) 2010 Free Software Foundation, Inc.
  1492. This configure script is free software; the Free Software Foundation
  1493. gives unlimited permission to copy, distribute and modify it.
  1494. _ACEOF
  1495. exit
  1496. fi
  1497. ## ------------------------ ##
  1498. ## Autoconf initialization. ##
  1499. ## ------------------------ ##
  1500. # ac_fn_cxx_try_compile LINENO
  1501. # ----------------------------
  1502. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1503. ac_fn_cxx_try_compile ()
  1504. {
  1505. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1506. rm -f conftest.$ac_objext
  1507. if { { ac_try="$ac_compile"
  1508. case "(($ac_try" in
  1509. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1510. *) ac_try_echo=$ac_try;;
  1511. esac
  1512. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1513. $as_echo "$ac_try_echo"; } >&5
  1514. (eval "$ac_compile") 2>conftest.err
  1515. ac_status=$?
  1516. if test -s conftest.err; then
  1517. grep -v '^ *+' conftest.err >conftest.er1
  1518. cat conftest.er1 >&5
  1519. mv -f conftest.er1 conftest.err
  1520. fi
  1521. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1522. test $ac_status = 0; } && {
  1523. test -z "$ac_cxx_werror_flag" ||
  1524. test ! -s conftest.err
  1525. } && test -s conftest.$ac_objext; then :
  1526. ac_retval=0
  1527. else
  1528. $as_echo "$as_me: failed program was:" >&5
  1529. sed 's/^/| /' conftest.$ac_ext >&5
  1530. ac_retval=1
  1531. fi
  1532. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1533. as_fn_set_status $ac_retval
  1534. } # ac_fn_cxx_try_compile
  1535. # ac_fn_c_try_compile LINENO
  1536. # --------------------------
  1537. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1538. ac_fn_c_try_compile ()
  1539. {
  1540. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1541. rm -f conftest.$ac_objext
  1542. if { { ac_try="$ac_compile"
  1543. case "(($ac_try" in
  1544. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1545. *) ac_try_echo=$ac_try;;
  1546. esac
  1547. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1548. $as_echo "$ac_try_echo"; } >&5
  1549. (eval "$ac_compile") 2>conftest.err
  1550. ac_status=$?
  1551. if test -s conftest.err; then
  1552. grep -v '^ *+' conftest.err >conftest.er1
  1553. cat conftest.er1 >&5
  1554. mv -f conftest.er1 conftest.err
  1555. fi
  1556. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1557. test $ac_status = 0; } && {
  1558. test -z "$ac_c_werror_flag" ||
  1559. test ! -s conftest.err
  1560. } && test -s conftest.$ac_objext; then :
  1561. ac_retval=0
  1562. else
  1563. $as_echo "$as_me: failed program was:" >&5
  1564. sed 's/^/| /' conftest.$ac_ext >&5
  1565. ac_retval=1
  1566. fi
  1567. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1568. as_fn_set_status $ac_retval
  1569. } # ac_fn_c_try_compile
  1570. # ac_fn_c_try_link LINENO
  1571. # -----------------------
  1572. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1573. ac_fn_c_try_link ()
  1574. {
  1575. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1576. rm -f conftest.$ac_objext conftest$ac_exeext
  1577. if { { ac_try="$ac_link"
  1578. case "(($ac_try" in
  1579. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1580. *) ac_try_echo=$ac_try;;
  1581. esac
  1582. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1583. $as_echo "$ac_try_echo"; } >&5
  1584. (eval "$ac_link") 2>conftest.err
  1585. ac_status=$?
  1586. if test -s conftest.err; then
  1587. grep -v '^ *+' conftest.err >conftest.er1
  1588. cat conftest.er1 >&5
  1589. mv -f conftest.er1 conftest.err
  1590. fi
  1591. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1592. test $ac_status = 0; } && {
  1593. test -z "$ac_c_werror_flag" ||
  1594. test ! -s conftest.err
  1595. } && test -s conftest$ac_exeext && {
  1596. test "$cross_compiling" = yes ||
  1597. $as_test_x conftest$ac_exeext
  1598. }; then :
  1599. ac_retval=0
  1600. else
  1601. $as_echo "$as_me: failed program was:" >&5
  1602. sed 's/^/| /' conftest.$ac_ext >&5
  1603. ac_retval=1
  1604. fi
  1605. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1606. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1607. # interfere with the next link command; also delete a directory that is
  1608. # left behind by Apple's compiler. We do this before executing the actions.
  1609. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1610. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1611. as_fn_set_status $ac_retval
  1612. } # ac_fn_c_try_link
  1613. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1614. # -------------------------------------------------------
  1615. # Tests whether HEADER exists and can be compiled using the include files in
  1616. # INCLUDES, setting the cache variable VAR accordingly.
  1617. ac_fn_c_check_header_compile ()
  1618. {
  1619. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1621. $as_echo_n "checking for $2... " >&6; }
  1622. if eval "test \"\${$3+set}\"" = set; then :
  1623. $as_echo_n "(cached) " >&6
  1624. else
  1625. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1626. /* end confdefs.h. */
  1627. $4
  1628. #include <$2>
  1629. _ACEOF
  1630. if ac_fn_c_try_compile "$LINENO"; then :
  1631. eval "$3=yes"
  1632. else
  1633. eval "$3=no"
  1634. fi
  1635. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1636. fi
  1637. eval ac_res=\$$3
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1639. $as_echo "$ac_res" >&6; }
  1640. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1641. } # ac_fn_c_check_header_compile
  1642. # ac_fn_c_try_cpp LINENO
  1643. # ----------------------
  1644. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1645. ac_fn_c_try_cpp ()
  1646. {
  1647. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1648. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1649. case "(($ac_try" in
  1650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1651. *) ac_try_echo=$ac_try;;
  1652. esac
  1653. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1654. $as_echo "$ac_try_echo"; } >&5
  1655. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1656. ac_status=$?
  1657. if test -s conftest.err; then
  1658. grep -v '^ *+' conftest.err >conftest.er1
  1659. cat conftest.er1 >&5
  1660. mv -f conftest.er1 conftest.err
  1661. fi
  1662. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1663. test $ac_status = 0; } > conftest.i && {
  1664. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1665. test ! -s conftest.err
  1666. }; then :
  1667. ac_retval=0
  1668. else
  1669. $as_echo "$as_me: failed program was:" >&5
  1670. sed 's/^/| /' conftest.$ac_ext >&5
  1671. ac_retval=1
  1672. fi
  1673. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1674. as_fn_set_status $ac_retval
  1675. } # ac_fn_c_try_cpp
  1676. # ac_fn_c_try_run LINENO
  1677. # ----------------------
  1678. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1679. # that executables *can* be run.
  1680. ac_fn_c_try_run ()
  1681. {
  1682. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1683. if { { ac_try="$ac_link"
  1684. case "(($ac_try" in
  1685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1686. *) ac_try_echo=$ac_try;;
  1687. esac
  1688. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1689. $as_echo "$ac_try_echo"; } >&5
  1690. (eval "$ac_link") 2>&5
  1691. ac_status=$?
  1692. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1693. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1694. { { case "(($ac_try" in
  1695. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1696. *) ac_try_echo=$ac_try;;
  1697. esac
  1698. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1699. $as_echo "$ac_try_echo"; } >&5
  1700. (eval "$ac_try") 2>&5
  1701. ac_status=$?
  1702. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1703. test $ac_status = 0; }; }; then :
  1704. ac_retval=0
  1705. else
  1706. $as_echo "$as_me: program exited with status $ac_status" >&5
  1707. $as_echo "$as_me: failed program was:" >&5
  1708. sed 's/^/| /' conftest.$ac_ext >&5
  1709. ac_retval=$ac_status
  1710. fi
  1711. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1712. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1713. as_fn_set_status $ac_retval
  1714. } # ac_fn_c_try_run
  1715. # ac_fn_c_check_func LINENO FUNC VAR
  1716. # ----------------------------------
  1717. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1718. ac_fn_c_check_func ()
  1719. {
  1720. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1722. $as_echo_n "checking for $2... " >&6; }
  1723. if eval "test \"\${$3+set}\"" = set; then :
  1724. $as_echo_n "(cached) " >&6
  1725. else
  1726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1727. /* end confdefs.h. */
  1728. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1729. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1730. #define $2 innocuous_$2
  1731. /* System header to define __stub macros and hopefully few prototypes,
  1732. which can conflict with char $2 (); below.
  1733. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1734. <limits.h> exists even on freestanding compilers. */
  1735. #ifdef __STDC__
  1736. # include <limits.h>
  1737. #else
  1738. # include <assert.h>
  1739. #endif
  1740. #undef $2
  1741. /* Override any GCC internal prototype to avoid an error.
  1742. Use char because int might match the return type of a GCC
  1743. builtin and then its argument prototype would still apply. */
  1744. #ifdef __cplusplus
  1745. extern "C"
  1746. #endif
  1747. char $2 ();
  1748. /* The GNU C library defines this for functions which it implements
  1749. to always fail with ENOSYS. Some functions are actually named
  1750. something starting with __ and the normal name is an alias. */
  1751. #if defined __stub_$2 || defined __stub___$2
  1752. choke me
  1753. #endif
  1754. int
  1755. main ()
  1756. {
  1757. return $2 ();
  1758. ;
  1759. return 0;
  1760. }
  1761. _ACEOF
  1762. if ac_fn_c_try_link "$LINENO"; then :
  1763. eval "$3=yes"
  1764. else
  1765. eval "$3=no"
  1766. fi
  1767. rm -f core conftest.err conftest.$ac_objext \
  1768. conftest$ac_exeext conftest.$ac_ext
  1769. fi
  1770. eval ac_res=\$$3
  1771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1772. $as_echo "$ac_res" >&6; }
  1773. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1774. } # ac_fn_c_check_func
  1775. # ac_fn_cxx_try_cpp LINENO
  1776. # ------------------------
  1777. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1778. ac_fn_cxx_try_cpp ()
  1779. {
  1780. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1781. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1782. case "(($ac_try" in
  1783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1784. *) ac_try_echo=$ac_try;;
  1785. esac
  1786. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1787. $as_echo "$ac_try_echo"; } >&5
  1788. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1789. ac_status=$?
  1790. if test -s conftest.err; then
  1791. grep -v '^ *+' conftest.err >conftest.er1
  1792. cat conftest.er1 >&5
  1793. mv -f conftest.er1 conftest.err
  1794. fi
  1795. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1796. test $ac_status = 0; } > conftest.i && {
  1797. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1798. test ! -s conftest.err
  1799. }; then :
  1800. ac_retval=0
  1801. else
  1802. $as_echo "$as_me: failed program was:" >&5
  1803. sed 's/^/| /' conftest.$ac_ext >&5
  1804. ac_retval=1
  1805. fi
  1806. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1807. as_fn_set_status $ac_retval
  1808. } # ac_fn_cxx_try_cpp
  1809. # ac_fn_cxx_try_link LINENO
  1810. # -------------------------
  1811. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1812. ac_fn_cxx_try_link ()
  1813. {
  1814. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1815. rm -f conftest.$ac_objext conftest$ac_exeext
  1816. if { { ac_try="$ac_link"
  1817. case "(($ac_try" in
  1818. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1819. *) ac_try_echo=$ac_try;;
  1820. esac
  1821. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1822. $as_echo "$ac_try_echo"; } >&5
  1823. (eval "$ac_link") 2>conftest.err
  1824. ac_status=$?
  1825. if test -s conftest.err; then
  1826. grep -v '^ *+' conftest.err >conftest.er1
  1827. cat conftest.er1 >&5
  1828. mv -f conftest.er1 conftest.err
  1829. fi
  1830. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1831. test $ac_status = 0; } && {
  1832. test -z "$ac_cxx_werror_flag" ||
  1833. test ! -s conftest.err
  1834. } && test -s conftest$ac_exeext && {
  1835. test "$cross_compiling" = yes ||
  1836. $as_test_x conftest$ac_exeext
  1837. }; then :
  1838. ac_retval=0
  1839. else
  1840. $as_echo "$as_me: failed program was:" >&5
  1841. sed 's/^/| /' conftest.$ac_ext >&5
  1842. ac_retval=1
  1843. fi
  1844. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1845. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1846. # interfere with the next link command; also delete a directory that is
  1847. # left behind by Apple's compiler. We do this before executing the actions.
  1848. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1849. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1850. as_fn_set_status $ac_retval
  1851. } # ac_fn_cxx_try_link
  1852. # ac_fn_cxx_try_run LINENO
  1853. # ------------------------
  1854. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1855. # that executables *can* be run.
  1856. ac_fn_cxx_try_run ()
  1857. {
  1858. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1859. if { { ac_try="$ac_link"
  1860. case "(($ac_try" in
  1861. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1862. *) ac_try_echo=$ac_try;;
  1863. esac
  1864. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1865. $as_echo "$ac_try_echo"; } >&5
  1866. (eval "$ac_link") 2>&5
  1867. ac_status=$?
  1868. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1869. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1870. { { case "(($ac_try" in
  1871. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1872. *) ac_try_echo=$ac_try;;
  1873. esac
  1874. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1875. $as_echo "$ac_try_echo"; } >&5
  1876. (eval "$ac_try") 2>&5
  1877. ac_status=$?
  1878. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1879. test $ac_status = 0; }; }; then :
  1880. ac_retval=0
  1881. else
  1882. $as_echo "$as_me: program exited with status $ac_status" >&5
  1883. $as_echo "$as_me: failed program was:" >&5
  1884. sed 's/^/| /' conftest.$ac_ext >&5
  1885. ac_retval=$ac_status
  1886. fi
  1887. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1888. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1889. as_fn_set_status $ac_retval
  1890. } # ac_fn_cxx_try_run
  1891. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1892. # ---------------------------------------------------------
  1893. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1894. # the include files in INCLUDES and setting the cache variable VAR
  1895. # accordingly.
  1896. ac_fn_cxx_check_header_mongrel ()
  1897. {
  1898. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1899. if eval "test \"\${$3+set}\"" = set; then :
  1900. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1901. $as_echo_n "checking for $2... " >&6; }
  1902. if eval "test \"\${$3+set}\"" = set; then :
  1903. $as_echo_n "(cached) " >&6
  1904. fi
  1905. eval ac_res=\$$3
  1906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1907. $as_echo "$ac_res" >&6; }
  1908. else
  1909. # Is the header compilable?
  1910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1911. $as_echo_n "checking $2 usability... " >&6; }
  1912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1913. /* end confdefs.h. */
  1914. $4
  1915. #include <$2>
  1916. _ACEOF
  1917. if ac_fn_cxx_try_compile "$LINENO"; then :
  1918. ac_header_compiler=yes
  1919. else
  1920. ac_header_compiler=no
  1921. fi
  1922. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1924. $as_echo "$ac_header_compiler" >&6; }
  1925. # Is the header present?
  1926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1927. $as_echo_n "checking $2 presence... " >&6; }
  1928. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1929. /* end confdefs.h. */
  1930. #include <$2>
  1931. _ACEOF
  1932. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1933. ac_header_preproc=yes
  1934. else
  1935. ac_header_preproc=no
  1936. fi
  1937. rm -f conftest.err conftest.i conftest.$ac_ext
  1938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1939. $as_echo "$ac_header_preproc" >&6; }
  1940. # So? What about this header?
  1941. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1942. yes:no: )
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1944. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1945. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1946. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1947. ;;
  1948. no:yes:* )
  1949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1950. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1952. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1954. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1955. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1956. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1958. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1959. ;;
  1960. esac
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1962. $as_echo_n "checking for $2... " >&6; }
  1963. if eval "test \"\${$3+set}\"" = set; then :
  1964. $as_echo_n "(cached) " >&6
  1965. else
  1966. eval "$3=\$ac_header_compiler"
  1967. fi
  1968. eval ac_res=\$$3
  1969. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1970. $as_echo "$ac_res" >&6; }
  1971. fi
  1972. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1973. } # ac_fn_cxx_check_header_mongrel
  1974. # ac_fn_cxx_check_func LINENO FUNC VAR
  1975. # ------------------------------------
  1976. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1977. ac_fn_cxx_check_func ()
  1978. {
  1979. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1981. $as_echo_n "checking for $2... " >&6; }
  1982. if eval "test \"\${$3+set}\"" = set; then :
  1983. $as_echo_n "(cached) " >&6
  1984. else
  1985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1986. /* end confdefs.h. */
  1987. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1988. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1989. #define $2 innocuous_$2
  1990. /* System header to define __stub macros and hopefully few prototypes,
  1991. which can conflict with char $2 (); below.
  1992. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1993. <limits.h> exists even on freestanding compilers. */
  1994. #ifdef __STDC__
  1995. # include <limits.h>
  1996. #else
  1997. # include <assert.h>
  1998. #endif
  1999. #undef $2
  2000. /* Override any GCC internal prototype to avoid an error.
  2001. Use char because int might match the return type of a GCC
  2002. builtin and then its argument prototype would still apply. */
  2003. #ifdef __cplusplus
  2004. extern "C"
  2005. #endif
  2006. char $2 ();
  2007. /* The GNU C library defines this for functions which it implements
  2008. to always fail with ENOSYS. Some functions are actually named
  2009. something starting with __ and the normal name is an alias. */
  2010. #if defined __stub_$2 || defined __stub___$2
  2011. choke me
  2012. #endif
  2013. int
  2014. main ()
  2015. {
  2016. return $2 ();
  2017. ;
  2018. return 0;
  2019. }
  2020. _ACEOF
  2021. if ac_fn_cxx_try_link "$LINENO"; then :
  2022. eval "$3=yes"
  2023. else
  2024. eval "$3=no"
  2025. fi
  2026. rm -f core conftest.err conftest.$ac_objext \
  2027. conftest$ac_exeext conftest.$ac_ext
  2028. fi
  2029. eval ac_res=\$$3
  2030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2031. $as_echo "$ac_res" >&6; }
  2032. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2033. } # ac_fn_cxx_check_func
  2034. cat >config.log <<_ACEOF
  2035. This file contains any messages produced by compilers while
  2036. running configure, to aid debugging if configure makes a mistake.
  2037. It was created by vcmi $as_me 0.82b, which was
  2038. generated by GNU Autoconf 2.67. Invocation command line was
  2039. $ $0 $@
  2040. _ACEOF
  2041. exec 5>>config.log
  2042. {
  2043. cat <<_ASUNAME
  2044. ## --------- ##
  2045. ## Platform. ##
  2046. ## --------- ##
  2047. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2048. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2049. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2050. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2051. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2052. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2053. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2054. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2055. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2056. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2057. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2058. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2059. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2060. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2061. _ASUNAME
  2062. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2063. for as_dir in $PATH
  2064. do
  2065. IFS=$as_save_IFS
  2066. test -z "$as_dir" && as_dir=.
  2067. $as_echo "PATH: $as_dir"
  2068. done
  2069. IFS=$as_save_IFS
  2070. } >&5
  2071. cat >&5 <<_ACEOF
  2072. ## ----------- ##
  2073. ## Core tests. ##
  2074. ## ----------- ##
  2075. _ACEOF
  2076. # Keep a trace of the command line.
  2077. # Strip out --no-create and --no-recursion so they do not pile up.
  2078. # Strip out --silent because we don't want to record it for future runs.
  2079. # Also quote any args containing shell meta-characters.
  2080. # Make two passes to allow for proper duplicate-argument suppression.
  2081. ac_configure_args=
  2082. ac_configure_args0=
  2083. ac_configure_args1=
  2084. ac_must_keep_next=false
  2085. for ac_pass in 1 2
  2086. do
  2087. for ac_arg
  2088. do
  2089. case $ac_arg in
  2090. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2091. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2092. | -silent | --silent | --silen | --sile | --sil)
  2093. continue ;;
  2094. *\'*)
  2095. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2096. esac
  2097. case $ac_pass in
  2098. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2099. 2)
  2100. as_fn_append ac_configure_args1 " '$ac_arg'"
  2101. if test $ac_must_keep_next = true; then
  2102. ac_must_keep_next=false # Got value, back to normal.
  2103. else
  2104. case $ac_arg in
  2105. *=* | --config-cache | -C | -disable-* | --disable-* \
  2106. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2107. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2108. | -with-* | --with-* | -without-* | --without-* | --x)
  2109. case "$ac_configure_args0 " in
  2110. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2111. esac
  2112. ;;
  2113. -* ) ac_must_keep_next=true ;;
  2114. esac
  2115. fi
  2116. as_fn_append ac_configure_args " '$ac_arg'"
  2117. ;;
  2118. esac
  2119. done
  2120. done
  2121. { ac_configure_args0=; unset ac_configure_args0;}
  2122. { ac_configure_args1=; unset ac_configure_args1;}
  2123. # When interrupted or exit'd, cleanup temporary files, and complete
  2124. # config.log. We remove comments because anyway the quotes in there
  2125. # would cause problems or look ugly.
  2126. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2127. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2128. trap 'exit_status=$?
  2129. # Save into config.log some information that might help in debugging.
  2130. {
  2131. echo
  2132. $as_echo "## ---------------- ##
  2133. ## Cache variables. ##
  2134. ## ---------------- ##"
  2135. echo
  2136. # The following way of writing the cache mishandles newlines in values,
  2137. (
  2138. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2139. eval ac_val=\$$ac_var
  2140. case $ac_val in #(
  2141. *${as_nl}*)
  2142. case $ac_var in #(
  2143. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2144. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2145. esac
  2146. case $ac_var in #(
  2147. _ | IFS | as_nl) ;; #(
  2148. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2149. *) { eval $ac_var=; unset $ac_var;} ;;
  2150. esac ;;
  2151. esac
  2152. done
  2153. (set) 2>&1 |
  2154. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2155. *${as_nl}ac_space=\ *)
  2156. sed -n \
  2157. "s/'\''/'\''\\\\'\'''\''/g;
  2158. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2159. ;; #(
  2160. *)
  2161. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2162. ;;
  2163. esac |
  2164. sort
  2165. )
  2166. echo
  2167. $as_echo "## ----------------- ##
  2168. ## Output variables. ##
  2169. ## ----------------- ##"
  2170. echo
  2171. for ac_var in $ac_subst_vars
  2172. do
  2173. eval ac_val=\$$ac_var
  2174. case $ac_val in
  2175. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2176. esac
  2177. $as_echo "$ac_var='\''$ac_val'\''"
  2178. done | sort
  2179. echo
  2180. if test -n "$ac_subst_files"; then
  2181. $as_echo "## ------------------- ##
  2182. ## File substitutions. ##
  2183. ## ------------------- ##"
  2184. echo
  2185. for ac_var in $ac_subst_files
  2186. do
  2187. eval ac_val=\$$ac_var
  2188. case $ac_val in
  2189. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2190. esac
  2191. $as_echo "$ac_var='\''$ac_val'\''"
  2192. done | sort
  2193. echo
  2194. fi
  2195. if test -s confdefs.h; then
  2196. $as_echo "## ----------- ##
  2197. ## confdefs.h. ##
  2198. ## ----------- ##"
  2199. echo
  2200. cat confdefs.h
  2201. echo
  2202. fi
  2203. test "$ac_signal" != 0 &&
  2204. $as_echo "$as_me: caught signal $ac_signal"
  2205. $as_echo "$as_me: exit $exit_status"
  2206. } >&5
  2207. rm -f core *.core core.conftest.* &&
  2208. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2209. exit $exit_status
  2210. ' 0
  2211. for ac_signal in 1 2 13 15; do
  2212. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2213. done
  2214. ac_signal=0
  2215. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2216. rm -f -r conftest* confdefs.h
  2217. $as_echo "/* confdefs.h */" > confdefs.h
  2218. # Predefined preprocessor variables.
  2219. cat >>confdefs.h <<_ACEOF
  2220. #define PACKAGE_NAME "$PACKAGE_NAME"
  2221. _ACEOF
  2222. cat >>confdefs.h <<_ACEOF
  2223. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2224. _ACEOF
  2225. cat >>confdefs.h <<_ACEOF
  2226. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2227. _ACEOF
  2228. cat >>confdefs.h <<_ACEOF
  2229. #define PACKAGE_STRING "$PACKAGE_STRING"
  2230. _ACEOF
  2231. cat >>confdefs.h <<_ACEOF
  2232. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2233. _ACEOF
  2234. cat >>confdefs.h <<_ACEOF
  2235. #define PACKAGE_URL "$PACKAGE_URL"
  2236. _ACEOF
  2237. # Let the site file select an alternate cache file if it wants to.
  2238. # Prefer an explicitly selected file to automatically selected ones.
  2239. ac_site_file1=NONE
  2240. ac_site_file2=NONE
  2241. if test -n "$CONFIG_SITE"; then
  2242. # We do not want a PATH search for config.site.
  2243. case $CONFIG_SITE in #((
  2244. -*) ac_site_file1=./$CONFIG_SITE;;
  2245. */*) ac_site_file1=$CONFIG_SITE;;
  2246. *) ac_site_file1=./$CONFIG_SITE;;
  2247. esac
  2248. elif test "x$prefix" != xNONE; then
  2249. ac_site_file1=$prefix/share/config.site
  2250. ac_site_file2=$prefix/etc/config.site
  2251. else
  2252. ac_site_file1=$ac_default_prefix/share/config.site
  2253. ac_site_file2=$ac_default_prefix/etc/config.site
  2254. fi
  2255. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2256. do
  2257. test "x$ac_site_file" = xNONE && continue
  2258. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2259. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2260. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2261. sed 's/^/| /' "$ac_site_file" >&5
  2262. . "$ac_site_file" \
  2263. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2264. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2265. as_fn_error $? "failed to load site script $ac_site_file
  2266. See \`config.log' for more details" "$LINENO" 5 ; }
  2267. fi
  2268. done
  2269. if test -r "$cache_file"; then
  2270. # Some versions of bash will fail to source /dev/null (special files
  2271. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2272. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2273. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2274. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2275. case $cache_file in
  2276. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2277. *) . "./$cache_file";;
  2278. esac
  2279. fi
  2280. else
  2281. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2282. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2283. >$cache_file
  2284. fi
  2285. # Check that the precious variables saved in the cache have kept the same
  2286. # value.
  2287. ac_cache_corrupted=false
  2288. for ac_var in $ac_precious_vars; do
  2289. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2290. eval ac_new_set=\$ac_env_${ac_var}_set
  2291. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2292. eval ac_new_val=\$ac_env_${ac_var}_value
  2293. case $ac_old_set,$ac_new_set in
  2294. set,)
  2295. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2296. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2297. ac_cache_corrupted=: ;;
  2298. ,set)
  2299. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2300. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2301. ac_cache_corrupted=: ;;
  2302. ,);;
  2303. *)
  2304. if test "x$ac_old_val" != "x$ac_new_val"; then
  2305. # differences in whitespace do not lead to failure.
  2306. ac_old_val_w=`echo x $ac_old_val`
  2307. ac_new_val_w=`echo x $ac_new_val`
  2308. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2309. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2310. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2311. ac_cache_corrupted=:
  2312. else
  2313. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2314. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2315. eval $ac_var=\$ac_old_val
  2316. fi
  2317. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2318. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2319. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2320. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2321. fi;;
  2322. esac
  2323. # Pass precious variables to config.status.
  2324. if test "$ac_new_set" = set; then
  2325. case $ac_new_val in
  2326. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2327. *) ac_arg=$ac_var=$ac_new_val ;;
  2328. esac
  2329. case " $ac_configure_args " in
  2330. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2331. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2332. esac
  2333. fi
  2334. done
  2335. if $ac_cache_corrupted; then
  2336. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2337. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2338. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2339. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2340. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2341. fi
  2342. ## -------------------- ##
  2343. ## Main body of script. ##
  2344. ## -------------------- ##
  2345. ac_ext=c
  2346. ac_cpp='$CPP $CPPFLAGS'
  2347. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2348. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2349. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2350. # Follow NAME_VER in global.h
  2351. am__api_version='1.11'
  2352. ac_aux_dir=
  2353. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2354. if test -f "$ac_dir/install-sh"; then
  2355. ac_aux_dir=$ac_dir
  2356. ac_install_sh="$ac_aux_dir/install-sh -c"
  2357. break
  2358. elif test -f "$ac_dir/install.sh"; then
  2359. ac_aux_dir=$ac_dir
  2360. ac_install_sh="$ac_aux_dir/install.sh -c"
  2361. break
  2362. elif test -f "$ac_dir/shtool"; then
  2363. ac_aux_dir=$ac_dir
  2364. ac_install_sh="$ac_aux_dir/shtool install -c"
  2365. break
  2366. fi
  2367. done
  2368. if test -z "$ac_aux_dir"; then
  2369. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2370. fi
  2371. # These three variables are undocumented and unsupported,
  2372. # and are intended to be withdrawn in a future Autoconf release.
  2373. # They can cause serious problems if a builder's source tree is in a directory
  2374. # whose full name contains unusual characters.
  2375. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2376. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2377. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2378. # Find a good install program. We prefer a C program (faster),
  2379. # so one script is as good as another. But avoid the broken or
  2380. # incompatible versions:
  2381. # SysV /etc/install, /usr/sbin/install
  2382. # SunOS /usr/etc/install
  2383. # IRIX /sbin/install
  2384. # AIX /bin/install
  2385. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2386. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2387. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2388. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2389. # OS/2's system install, which has a completely different semantic
  2390. # ./install, which can be erroneously created by make from ./install.sh.
  2391. # Reject install programs that cannot install multiple files.
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2393. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2394. if test -z "$INSTALL"; then
  2395. if test "${ac_cv_path_install+set}" = set; then :
  2396. $as_echo_n "(cached) " >&6
  2397. else
  2398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2399. for as_dir in $PATH
  2400. do
  2401. IFS=$as_save_IFS
  2402. test -z "$as_dir" && as_dir=.
  2403. # Account for people who put trailing slashes in PATH elements.
  2404. case $as_dir/ in #((
  2405. ./ | .// | /[cC]/* | \
  2406. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2407. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2408. /usr/ucb/* ) ;;
  2409. *)
  2410. # OSF1 and SCO ODT 3.0 have their own names for install.
  2411. # Don't use installbsd from OSF since it installs stuff as root
  2412. # by default.
  2413. for ac_prog in ginstall scoinst install; do
  2414. for ac_exec_ext in '' $ac_executable_extensions; do
  2415. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2416. if test $ac_prog = install &&
  2417. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2418. # AIX install. It has an incompatible calling convention.
  2419. :
  2420. elif test $ac_prog = install &&
  2421. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2422. # program-specific install script used by HP pwplus--don't use.
  2423. :
  2424. else
  2425. rm -rf conftest.one conftest.two conftest.dir
  2426. echo one > conftest.one
  2427. echo two > conftest.two
  2428. mkdir conftest.dir
  2429. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2430. test -s conftest.one && test -s conftest.two &&
  2431. test -s conftest.dir/conftest.one &&
  2432. test -s conftest.dir/conftest.two
  2433. then
  2434. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2435. break 3
  2436. fi
  2437. fi
  2438. fi
  2439. done
  2440. done
  2441. ;;
  2442. esac
  2443. done
  2444. IFS=$as_save_IFS
  2445. rm -rf conftest.one conftest.two conftest.dir
  2446. fi
  2447. if test "${ac_cv_path_install+set}" = set; then
  2448. INSTALL=$ac_cv_path_install
  2449. else
  2450. # As a last resort, use the slow shell script. Don't cache a
  2451. # value for INSTALL within a source directory, because that will
  2452. # break other packages using the cache if that directory is
  2453. # removed, or if the value is a relative name.
  2454. INSTALL=$ac_install_sh
  2455. fi
  2456. fi
  2457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2458. $as_echo "$INSTALL" >&6; }
  2459. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2460. # It thinks the first close brace ends the variable substitution.
  2461. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2462. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2463. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2465. $as_echo_n "checking whether build environment is sane... " >&6; }
  2466. # Just in case
  2467. sleep 1
  2468. echo timestamp > conftest.file
  2469. # Reject unsafe characters in $srcdir or the absolute working directory
  2470. # name. Accept space and tab only in the latter.
  2471. am_lf='
  2472. '
  2473. case `pwd` in
  2474. *[\\\"\#\$\&\'\`$am_lf]*)
  2475. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
  2476. esac
  2477. case $srcdir in
  2478. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2479. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
  2480. esac
  2481. # Do `set' in a subshell so we don't clobber the current shell's
  2482. # arguments. Must try -L first in case configure is actually a
  2483. # symlink; some systems play weird games with the mod time of symlinks
  2484. # (eg FreeBSD returns the mod time of the symlink's containing
  2485. # directory).
  2486. if (
  2487. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2488. if test "$*" = "X"; then
  2489. # -L didn't work.
  2490. set X `ls -t "$srcdir/configure" conftest.file`
  2491. fi
  2492. rm -f conftest.file
  2493. if test "$*" != "X $srcdir/configure conftest.file" \
  2494. && test "$*" != "X conftest.file $srcdir/configure"; then
  2495. # If neither matched, then we have a broken ls. This can happen
  2496. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2497. # broken ls alias from the environment. This has actually
  2498. # happened. Such a system could not be considered "sane".
  2499. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2500. alias in your environment" "$LINENO" 5
  2501. fi
  2502. test "$2" = conftest.file
  2503. )
  2504. then
  2505. # Ok.
  2506. :
  2507. else
  2508. as_fn_error $? "newly created file is older than distributed files!
  2509. Check your system clock" "$LINENO" 5
  2510. fi
  2511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2512. $as_echo "yes" >&6; }
  2513. test "$program_prefix" != NONE &&
  2514. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2515. # Use a double $ so make ignores it.
  2516. test "$program_suffix" != NONE &&
  2517. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2518. # Double any \ or $.
  2519. # By default was `s,x,x', remove it if useless.
  2520. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2521. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2522. # expand $ac_aux_dir to an absolute path
  2523. am_aux_dir=`cd $ac_aux_dir && pwd`
  2524. if test x"${MISSING+set}" != xset; then
  2525. case $am_aux_dir in
  2526. *\ * | *\ *)
  2527. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2528. *)
  2529. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2530. esac
  2531. fi
  2532. # Use eval to expand $SHELL
  2533. if eval "$MISSING --run true"; then
  2534. am_missing_run="$MISSING --run "
  2535. else
  2536. am_missing_run=
  2537. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2538. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2539. fi
  2540. if test x"${install_sh}" != xset; then
  2541. case $am_aux_dir in
  2542. *\ * | *\ *)
  2543. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2544. *)
  2545. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2546. esac
  2547. fi
  2548. # Installed binaries are usually stripped using `strip' when the user
  2549. # run `make install-strip'. However `strip' might not be the right
  2550. # tool to use in cross-compilation environments, therefore Automake
  2551. # will honor the `STRIP' environment variable to overrule this program.
  2552. if test "$cross_compiling" != no; then
  2553. if test -n "$ac_tool_prefix"; then
  2554. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2555. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2557. $as_echo_n "checking for $ac_word... " >&6; }
  2558. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2559. $as_echo_n "(cached) " >&6
  2560. else
  2561. if test -n "$STRIP"; then
  2562. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2563. else
  2564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2565. for as_dir in $PATH
  2566. do
  2567. IFS=$as_save_IFS
  2568. test -z "$as_dir" && as_dir=.
  2569. for ac_exec_ext in '' $ac_executable_extensions; do
  2570. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2571. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2573. break 2
  2574. fi
  2575. done
  2576. done
  2577. IFS=$as_save_IFS
  2578. fi
  2579. fi
  2580. STRIP=$ac_cv_prog_STRIP
  2581. if test -n "$STRIP"; then
  2582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2583. $as_echo "$STRIP" >&6; }
  2584. else
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2586. $as_echo "no" >&6; }
  2587. fi
  2588. fi
  2589. if test -z "$ac_cv_prog_STRIP"; then
  2590. ac_ct_STRIP=$STRIP
  2591. # Extract the first word of "strip", so it can be a program name with args.
  2592. set dummy strip; ac_word=$2
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2594. $as_echo_n "checking for $ac_word... " >&6; }
  2595. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2596. $as_echo_n "(cached) " >&6
  2597. else
  2598. if test -n "$ac_ct_STRIP"; then
  2599. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2600. else
  2601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2602. for as_dir in $PATH
  2603. do
  2604. IFS=$as_save_IFS
  2605. test -z "$as_dir" && as_dir=.
  2606. for ac_exec_ext in '' $ac_executable_extensions; do
  2607. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2608. ac_cv_prog_ac_ct_STRIP="strip"
  2609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2610. break 2
  2611. fi
  2612. done
  2613. done
  2614. IFS=$as_save_IFS
  2615. fi
  2616. fi
  2617. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2618. if test -n "$ac_ct_STRIP"; then
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2620. $as_echo "$ac_ct_STRIP" >&6; }
  2621. else
  2622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2623. $as_echo "no" >&6; }
  2624. fi
  2625. if test "x$ac_ct_STRIP" = x; then
  2626. STRIP=":"
  2627. else
  2628. case $cross_compiling:$ac_tool_warned in
  2629. yes:)
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2631. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2632. ac_tool_warned=yes ;;
  2633. esac
  2634. STRIP=$ac_ct_STRIP
  2635. fi
  2636. else
  2637. STRIP="$ac_cv_prog_STRIP"
  2638. fi
  2639. fi
  2640. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2642. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2643. if test -z "$MKDIR_P"; then
  2644. if test "${ac_cv_path_mkdir+set}" = set; then :
  2645. $as_echo_n "(cached) " >&6
  2646. else
  2647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2648. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2649. do
  2650. IFS=$as_save_IFS
  2651. test -z "$as_dir" && as_dir=.
  2652. for ac_prog in mkdir gmkdir; do
  2653. for ac_exec_ext in '' $ac_executable_extensions; do
  2654. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2655. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2656. 'mkdir (GNU coreutils) '* | \
  2657. 'mkdir (coreutils) '* | \
  2658. 'mkdir (fileutils) '4.1*)
  2659. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2660. break 3;;
  2661. esac
  2662. done
  2663. done
  2664. done
  2665. IFS=$as_save_IFS
  2666. fi
  2667. test -d ./--version && rmdir ./--version
  2668. if test "${ac_cv_path_mkdir+set}" = set; then
  2669. MKDIR_P="$ac_cv_path_mkdir -p"
  2670. else
  2671. # As a last resort, use the slow shell script. Don't cache a
  2672. # value for MKDIR_P within a source directory, because that will
  2673. # break other packages using the cache if that directory is
  2674. # removed, or if the value is a relative name.
  2675. MKDIR_P="$ac_install_sh -d"
  2676. fi
  2677. fi
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2679. $as_echo "$MKDIR_P" >&6; }
  2680. mkdir_p="$MKDIR_P"
  2681. case $mkdir_p in
  2682. [\\/$]* | ?:[\\/]*) ;;
  2683. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2684. esac
  2685. for ac_prog in gawk mawk nawk awk
  2686. do
  2687. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2688. set dummy $ac_prog; ac_word=$2
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2690. $as_echo_n "checking for $ac_word... " >&6; }
  2691. if test "${ac_cv_prog_AWK+set}" = set; then :
  2692. $as_echo_n "(cached) " >&6
  2693. else
  2694. if test -n "$AWK"; then
  2695. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2696. else
  2697. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2698. for as_dir in $PATH
  2699. do
  2700. IFS=$as_save_IFS
  2701. test -z "$as_dir" && as_dir=.
  2702. for ac_exec_ext in '' $ac_executable_extensions; do
  2703. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2704. ac_cv_prog_AWK="$ac_prog"
  2705. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2706. break 2
  2707. fi
  2708. done
  2709. done
  2710. IFS=$as_save_IFS
  2711. fi
  2712. fi
  2713. AWK=$ac_cv_prog_AWK
  2714. if test -n "$AWK"; then
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2716. $as_echo "$AWK" >&6; }
  2717. else
  2718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2719. $as_echo "no" >&6; }
  2720. fi
  2721. test -n "$AWK" && break
  2722. done
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2724. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2725. set x ${MAKE-make}
  2726. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2727. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  2728. $as_echo_n "(cached) " >&6
  2729. else
  2730. cat >conftest.make <<\_ACEOF
  2731. SHELL = /bin/sh
  2732. all:
  2733. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2734. _ACEOF
  2735. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2736. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2737. *@@@%%%=?*=@@@%%%*)
  2738. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2739. *)
  2740. eval ac_cv_prog_make_${ac_make}_set=no;;
  2741. esac
  2742. rm -f conftest.make
  2743. fi
  2744. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2745. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2746. $as_echo "yes" >&6; }
  2747. SET_MAKE=
  2748. else
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2750. $as_echo "no" >&6; }
  2751. SET_MAKE="MAKE=${MAKE-make}"
  2752. fi
  2753. rm -rf .tst 2>/dev/null
  2754. mkdir .tst 2>/dev/null
  2755. if test -d .tst; then
  2756. am__leading_dot=.
  2757. else
  2758. am__leading_dot=_
  2759. fi
  2760. rmdir .tst 2>/dev/null
  2761. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2762. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2763. # is not polluted with repeated "-I."
  2764. am__isrc=' -I$(srcdir)'
  2765. # test to see if srcdir already configured
  2766. if test -f $srcdir/config.status; then
  2767. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2768. fi
  2769. fi
  2770. # test whether we have cygpath
  2771. if test -z "$CYGPATH_W"; then
  2772. if (cygpath --version) >/dev/null 2>/dev/null; then
  2773. CYGPATH_W='cygpath -w'
  2774. else
  2775. CYGPATH_W=echo
  2776. fi
  2777. fi
  2778. # Define the identity of the package.
  2779. PACKAGE='vcmi'
  2780. VERSION='0.82b'
  2781. cat >>confdefs.h <<_ACEOF
  2782. #define PACKAGE "$PACKAGE"
  2783. _ACEOF
  2784. cat >>confdefs.h <<_ACEOF
  2785. #define VERSION "$VERSION"
  2786. _ACEOF
  2787. # Some tools Automake needs.
  2788. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2789. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2790. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2791. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2792. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2793. # We need awk for the "check" target. The system "awk" is bad on
  2794. # some platforms.
  2795. # Always define AMTAR for backward compatibility.
  2796. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2797. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2798. # Checks for build toolchain
  2799. ac_ext=cpp
  2800. ac_cpp='$CXXCPP $CPPFLAGS'
  2801. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2802. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2803. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2804. ac_ext=cpp
  2805. ac_cpp='$CXXCPP $CPPFLAGS'
  2806. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2807. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2808. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2809. if test -z "$CXX"; then
  2810. if test -n "$CCC"; then
  2811. CXX=$CCC
  2812. else
  2813. if test -n "$ac_tool_prefix"; then
  2814. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2815. do
  2816. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2817. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2819. $as_echo_n "checking for $ac_word... " >&6; }
  2820. if test "${ac_cv_prog_CXX+set}" = set; then :
  2821. $as_echo_n "(cached) " >&6
  2822. else
  2823. if test -n "$CXX"; then
  2824. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2825. else
  2826. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2827. for as_dir in $PATH
  2828. do
  2829. IFS=$as_save_IFS
  2830. test -z "$as_dir" && as_dir=.
  2831. for ac_exec_ext in '' $ac_executable_extensions; do
  2832. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2833. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2834. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2835. break 2
  2836. fi
  2837. done
  2838. done
  2839. IFS=$as_save_IFS
  2840. fi
  2841. fi
  2842. CXX=$ac_cv_prog_CXX
  2843. if test -n "$CXX"; then
  2844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2845. $as_echo "$CXX" >&6; }
  2846. else
  2847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2848. $as_echo "no" >&6; }
  2849. fi
  2850. test -n "$CXX" && break
  2851. done
  2852. fi
  2853. if test -z "$CXX"; then
  2854. ac_ct_CXX=$CXX
  2855. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2856. do
  2857. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2858. set dummy $ac_prog; ac_word=$2
  2859. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2860. $as_echo_n "checking for $ac_word... " >&6; }
  2861. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  2862. $as_echo_n "(cached) " >&6
  2863. else
  2864. if test -n "$ac_ct_CXX"; then
  2865. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2866. else
  2867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2868. for as_dir in $PATH
  2869. do
  2870. IFS=$as_save_IFS
  2871. test -z "$as_dir" && as_dir=.
  2872. for ac_exec_ext in '' $ac_executable_extensions; do
  2873. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2874. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2875. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2876. break 2
  2877. fi
  2878. done
  2879. done
  2880. IFS=$as_save_IFS
  2881. fi
  2882. fi
  2883. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2884. if test -n "$ac_ct_CXX"; then
  2885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2886. $as_echo "$ac_ct_CXX" >&6; }
  2887. else
  2888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2889. $as_echo "no" >&6; }
  2890. fi
  2891. test -n "$ac_ct_CXX" && break
  2892. done
  2893. if test "x$ac_ct_CXX" = x; then
  2894. CXX="g++"
  2895. else
  2896. case $cross_compiling:$ac_tool_warned in
  2897. yes:)
  2898. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2899. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2900. ac_tool_warned=yes ;;
  2901. esac
  2902. CXX=$ac_ct_CXX
  2903. fi
  2904. fi
  2905. fi
  2906. fi
  2907. # Provide some information about the compiler.
  2908. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2909. set X $ac_compile
  2910. ac_compiler=$2
  2911. for ac_option in --version -v -V -qversion; do
  2912. { { ac_try="$ac_compiler $ac_option >&5"
  2913. case "(($ac_try" in
  2914. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2915. *) ac_try_echo=$ac_try;;
  2916. esac
  2917. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2918. $as_echo "$ac_try_echo"; } >&5
  2919. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2920. ac_status=$?
  2921. if test -s conftest.err; then
  2922. sed '10a\
  2923. ... rest of stderr output deleted ...
  2924. 10q' conftest.err >conftest.er1
  2925. cat conftest.er1 >&5
  2926. fi
  2927. rm -f conftest.er1 conftest.err
  2928. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2929. test $ac_status = 0; }
  2930. done
  2931. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2932. /* end confdefs.h. */
  2933. int
  2934. main ()
  2935. {
  2936. ;
  2937. return 0;
  2938. }
  2939. _ACEOF
  2940. ac_clean_files_save=$ac_clean_files
  2941. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2942. # Try to create an executable without -o first, disregard a.out.
  2943. # It will help us diagnose broken compilers, and finding out an intuition
  2944. # of exeext.
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2946. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2947. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2948. # The possible output files:
  2949. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2950. ac_rmfiles=
  2951. for ac_file in $ac_files
  2952. do
  2953. case $ac_file in
  2954. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2955. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2956. esac
  2957. done
  2958. rm -f $ac_rmfiles
  2959. if { { ac_try="$ac_link_default"
  2960. case "(($ac_try" in
  2961. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2962. *) ac_try_echo=$ac_try;;
  2963. esac
  2964. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2965. $as_echo "$ac_try_echo"; } >&5
  2966. (eval "$ac_link_default") 2>&5
  2967. ac_status=$?
  2968. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2969. test $ac_status = 0; }; then :
  2970. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2971. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2972. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2973. # so that the user can short-circuit this test for compilers unknown to
  2974. # Autoconf.
  2975. for ac_file in $ac_files ''
  2976. do
  2977. test -f "$ac_file" || continue
  2978. case $ac_file in
  2979. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2980. ;;
  2981. [ab].out )
  2982. # We found the default executable, but exeext='' is most
  2983. # certainly right.
  2984. break;;
  2985. *.* )
  2986. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2987. then :; else
  2988. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2989. fi
  2990. # We set ac_cv_exeext here because the later test for it is not
  2991. # safe: cross compilers may not add the suffix if given an `-o'
  2992. # argument, so we may need to know it at that point already.
  2993. # Even if this section looks crufty: it has the advantage of
  2994. # actually working.
  2995. break;;
  2996. * )
  2997. break;;
  2998. esac
  2999. done
  3000. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3001. else
  3002. ac_file=''
  3003. fi
  3004. if test -z "$ac_file"; then :
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3006. $as_echo "no" >&6; }
  3007. $as_echo "$as_me: failed program was:" >&5
  3008. sed 's/^/| /' conftest.$ac_ext >&5
  3009. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3010. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3011. as_fn_error 77 "C++ compiler cannot create executables
  3012. See \`config.log' for more details" "$LINENO" 5 ; }
  3013. else
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3015. $as_echo "yes" >&6; }
  3016. fi
  3017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3018. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3020. $as_echo "$ac_file" >&6; }
  3021. ac_exeext=$ac_cv_exeext
  3022. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3023. ac_clean_files=$ac_clean_files_save
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3025. $as_echo_n "checking for suffix of executables... " >&6; }
  3026. if { { ac_try="$ac_link"
  3027. case "(($ac_try" in
  3028. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3029. *) ac_try_echo=$ac_try;;
  3030. esac
  3031. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3032. $as_echo "$ac_try_echo"; } >&5
  3033. (eval "$ac_link") 2>&5
  3034. ac_status=$?
  3035. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3036. test $ac_status = 0; }; then :
  3037. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3038. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3039. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3040. # `rm'.
  3041. for ac_file in conftest.exe conftest conftest.*; do
  3042. test -f "$ac_file" || continue
  3043. case $ac_file in
  3044. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3045. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3046. break;;
  3047. * ) break;;
  3048. esac
  3049. done
  3050. else
  3051. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3052. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3053. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3054. See \`config.log' for more details" "$LINENO" 5 ; }
  3055. fi
  3056. rm -f conftest conftest$ac_cv_exeext
  3057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3058. $as_echo "$ac_cv_exeext" >&6; }
  3059. rm -f conftest.$ac_ext
  3060. EXEEXT=$ac_cv_exeext
  3061. ac_exeext=$EXEEXT
  3062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3063. /* end confdefs.h. */
  3064. #include <stdio.h>
  3065. int
  3066. main ()
  3067. {
  3068. FILE *f = fopen ("conftest.out", "w");
  3069. return ferror (f) || fclose (f) != 0;
  3070. ;
  3071. return 0;
  3072. }
  3073. _ACEOF
  3074. ac_clean_files="$ac_clean_files conftest.out"
  3075. # Check that the compiler produces executables we can run. If not, either
  3076. # the compiler is broken, or we cross compile.
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3078. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3079. if test "$cross_compiling" != yes; then
  3080. { { ac_try="$ac_link"
  3081. case "(($ac_try" in
  3082. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3083. *) ac_try_echo=$ac_try;;
  3084. esac
  3085. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3086. $as_echo "$ac_try_echo"; } >&5
  3087. (eval "$ac_link") 2>&5
  3088. ac_status=$?
  3089. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3090. test $ac_status = 0; }
  3091. if { ac_try='./conftest$ac_cv_exeext'
  3092. { { case "(($ac_try" in
  3093. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3094. *) ac_try_echo=$ac_try;;
  3095. esac
  3096. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3097. $as_echo "$ac_try_echo"; } >&5
  3098. (eval "$ac_try") 2>&5
  3099. ac_status=$?
  3100. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3101. test $ac_status = 0; }; }; then
  3102. cross_compiling=no
  3103. else
  3104. if test "$cross_compiling" = maybe; then
  3105. cross_compiling=yes
  3106. else
  3107. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3108. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3109. as_fn_error $? "cannot run C++ compiled programs.
  3110. If you meant to cross compile, use \`--host'.
  3111. See \`config.log' for more details" "$LINENO" 5 ; }
  3112. fi
  3113. fi
  3114. fi
  3115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3116. $as_echo "$cross_compiling" >&6; }
  3117. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3118. ac_clean_files=$ac_clean_files_save
  3119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3120. $as_echo_n "checking for suffix of object files... " >&6; }
  3121. if test "${ac_cv_objext+set}" = set; then :
  3122. $as_echo_n "(cached) " >&6
  3123. else
  3124. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3125. /* end confdefs.h. */
  3126. int
  3127. main ()
  3128. {
  3129. ;
  3130. return 0;
  3131. }
  3132. _ACEOF
  3133. rm -f conftest.o conftest.obj
  3134. if { { ac_try="$ac_compile"
  3135. case "(($ac_try" in
  3136. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3137. *) ac_try_echo=$ac_try;;
  3138. esac
  3139. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3140. $as_echo "$ac_try_echo"; } >&5
  3141. (eval "$ac_compile") 2>&5
  3142. ac_status=$?
  3143. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3144. test $ac_status = 0; }; then :
  3145. for ac_file in conftest.o conftest.obj conftest.*; do
  3146. test -f "$ac_file" || continue;
  3147. case $ac_file in
  3148. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3149. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3150. break;;
  3151. esac
  3152. done
  3153. else
  3154. $as_echo "$as_me: failed program was:" >&5
  3155. sed 's/^/| /' conftest.$ac_ext >&5
  3156. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3157. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3158. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3159. See \`config.log' for more details" "$LINENO" 5 ; }
  3160. fi
  3161. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3162. fi
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3164. $as_echo "$ac_cv_objext" >&6; }
  3165. OBJEXT=$ac_cv_objext
  3166. ac_objext=$OBJEXT
  3167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3168. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3169. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3170. $as_echo_n "(cached) " >&6
  3171. else
  3172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3173. /* end confdefs.h. */
  3174. int
  3175. main ()
  3176. {
  3177. #ifndef __GNUC__
  3178. choke me
  3179. #endif
  3180. ;
  3181. return 0;
  3182. }
  3183. _ACEOF
  3184. if ac_fn_cxx_try_compile "$LINENO"; then :
  3185. ac_compiler_gnu=yes
  3186. else
  3187. ac_compiler_gnu=no
  3188. fi
  3189. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3190. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3191. fi
  3192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3193. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3194. if test $ac_compiler_gnu = yes; then
  3195. GXX=yes
  3196. else
  3197. GXX=
  3198. fi
  3199. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3200. ac_save_CXXFLAGS=$CXXFLAGS
  3201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3202. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3203. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3204. $as_echo_n "(cached) " >&6
  3205. else
  3206. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3207. ac_cxx_werror_flag=yes
  3208. ac_cv_prog_cxx_g=no
  3209. CXXFLAGS="-g"
  3210. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3211. /* end confdefs.h. */
  3212. int
  3213. main ()
  3214. {
  3215. ;
  3216. return 0;
  3217. }
  3218. _ACEOF
  3219. if ac_fn_cxx_try_compile "$LINENO"; then :
  3220. ac_cv_prog_cxx_g=yes
  3221. else
  3222. CXXFLAGS=""
  3223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3224. /* end confdefs.h. */
  3225. int
  3226. main ()
  3227. {
  3228. ;
  3229. return 0;
  3230. }
  3231. _ACEOF
  3232. if ac_fn_cxx_try_compile "$LINENO"; then :
  3233. else
  3234. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3235. CXXFLAGS="-g"
  3236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3237. /* end confdefs.h. */
  3238. int
  3239. main ()
  3240. {
  3241. ;
  3242. return 0;
  3243. }
  3244. _ACEOF
  3245. if ac_fn_cxx_try_compile "$LINENO"; then :
  3246. ac_cv_prog_cxx_g=yes
  3247. fi
  3248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3249. fi
  3250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3251. fi
  3252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3253. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3254. fi
  3255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3256. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3257. if test "$ac_test_CXXFLAGS" = set; then
  3258. CXXFLAGS=$ac_save_CXXFLAGS
  3259. elif test $ac_cv_prog_cxx_g = yes; then
  3260. if test "$GXX" = yes; then
  3261. CXXFLAGS="-g -O2"
  3262. else
  3263. CXXFLAGS="-g"
  3264. fi
  3265. else
  3266. if test "$GXX" = yes; then
  3267. CXXFLAGS="-O2"
  3268. else
  3269. CXXFLAGS=
  3270. fi
  3271. fi
  3272. ac_ext=cpp
  3273. ac_cpp='$CXXCPP $CPPFLAGS'
  3274. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3275. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3276. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3277. DEPDIR="${am__leading_dot}deps"
  3278. ac_config_commands="$ac_config_commands depfiles"
  3279. am_make=${MAKE-make}
  3280. cat > confinc << 'END'
  3281. am__doit:
  3282. @echo this is the am__doit target
  3283. .PHONY: am__doit
  3284. END
  3285. # If we don't find an include directive, just comment out the code.
  3286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3287. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3288. am__include="#"
  3289. am__quote=
  3290. _am_result=none
  3291. # First try GNU make style include.
  3292. echo "include confinc" > confmf
  3293. # Ignore all kinds of additional output from `make'.
  3294. case `$am_make -s -f confmf 2> /dev/null` in #(
  3295. *the\ am__doit\ target*)
  3296. am__include=include
  3297. am__quote=
  3298. _am_result=GNU
  3299. ;;
  3300. esac
  3301. # Now try BSD make style include.
  3302. if test "$am__include" = "#"; then
  3303. echo '.include "confinc"' > confmf
  3304. case `$am_make -s -f confmf 2> /dev/null` in #(
  3305. *the\ am__doit\ target*)
  3306. am__include=.include
  3307. am__quote="\""
  3308. _am_result=BSD
  3309. ;;
  3310. esac
  3311. fi
  3312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3313. $as_echo "$_am_result" >&6; }
  3314. rm -f confinc confmf
  3315. # Check whether --enable-dependency-tracking was given.
  3316. if test "${enable_dependency_tracking+set}" = set; then :
  3317. enableval=$enable_dependency_tracking;
  3318. fi
  3319. if test "x$enable_dependency_tracking" != xno; then
  3320. am_depcomp="$ac_aux_dir/depcomp"
  3321. AMDEPBACKSLASH='\'
  3322. fi
  3323. if test "x$enable_dependency_tracking" != xno; then
  3324. AMDEP_TRUE=
  3325. AMDEP_FALSE='#'
  3326. else
  3327. AMDEP_TRUE='#'
  3328. AMDEP_FALSE=
  3329. fi
  3330. depcc="$CXX" am_compiler_list=
  3331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3332. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3333. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3334. $as_echo_n "(cached) " >&6
  3335. else
  3336. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3337. # We make a subdir and do the tests there. Otherwise we can end up
  3338. # making bogus files that we don't know about and never remove. For
  3339. # instance it was reported that on HP-UX the gcc test will end up
  3340. # making a dummy file named `D' -- because `-MD' means `put the output
  3341. # in D'.
  3342. mkdir conftest.dir
  3343. # Copy depcomp to subdir because otherwise we won't find it if we're
  3344. # using a relative directory.
  3345. cp "$am_depcomp" conftest.dir
  3346. cd conftest.dir
  3347. # We will build objects and dependencies in a subdirectory because
  3348. # it helps to detect inapplicable dependency modes. For instance
  3349. # both Tru64's cc and ICC support -MD to output dependencies as a
  3350. # side effect of compilation, but ICC will put the dependencies in
  3351. # the current directory while Tru64 will put them in the object
  3352. # directory.
  3353. mkdir sub
  3354. am_cv_CXX_dependencies_compiler_type=none
  3355. if test "$am_compiler_list" = ""; then
  3356. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3357. fi
  3358. am__universal=false
  3359. case " $depcc " in #(
  3360. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3361. esac
  3362. for depmode in $am_compiler_list; do
  3363. # Setup a source with many dependencies, because some compilers
  3364. # like to wrap large dependency lists on column 80 (with \), and
  3365. # we should not choose a depcomp mode which is confused by this.
  3366. #
  3367. # We need to recreate these files for each test, as the compiler may
  3368. # overwrite some of them when testing with obscure command lines.
  3369. # This happens at least with the AIX C compiler.
  3370. : > sub/conftest.c
  3371. for i in 1 2 3 4 5 6; do
  3372. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3373. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3374. # Solaris 8's {/usr,}/bin/sh.
  3375. touch sub/conftst$i.h
  3376. done
  3377. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3378. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3379. # mode. It turns out that the SunPro C++ compiler does not properly
  3380. # handle `-M -o', and we need to detect this. Also, some Intel
  3381. # versions had trouble with output in subdirs
  3382. am__obj=sub/conftest.${OBJEXT-o}
  3383. am__minus_obj="-o $am__obj"
  3384. case $depmode in
  3385. gcc)
  3386. # This depmode causes a compiler race in universal mode.
  3387. test "$am__universal" = false || continue
  3388. ;;
  3389. nosideeffect)
  3390. # after this tag, mechanisms are not by side-effect, so they'll
  3391. # only be used when explicitly requested
  3392. if test "x$enable_dependency_tracking" = xyes; then
  3393. continue
  3394. else
  3395. break
  3396. fi
  3397. ;;
  3398. msvisualcpp | msvcmsys)
  3399. # This compiler won't grok `-c -o', but also, the minuso test has
  3400. # not run yet. These depmodes are late enough in the game, and
  3401. # so weak that their functioning should not be impacted.
  3402. am__obj=conftest.${OBJEXT-o}
  3403. am__minus_obj=
  3404. ;;
  3405. none) break ;;
  3406. esac
  3407. if depmode=$depmode \
  3408. source=sub/conftest.c object=$am__obj \
  3409. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3410. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3411. >/dev/null 2>conftest.err &&
  3412. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3413. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3414. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3415. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3416. # icc doesn't choke on unknown options, it will just issue warnings
  3417. # or remarks (even with -Werror). So we grep stderr for any message
  3418. # that says an option was ignored or not supported.
  3419. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3420. # icc: Command line warning: ignoring option '-M'; no argument required
  3421. # The diagnosis changed in icc 8.0:
  3422. # icc: Command line remark: option '-MP' not supported
  3423. if (grep 'ignoring option' conftest.err ||
  3424. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3425. am_cv_CXX_dependencies_compiler_type=$depmode
  3426. break
  3427. fi
  3428. fi
  3429. done
  3430. cd ..
  3431. rm -rf conftest.dir
  3432. else
  3433. am_cv_CXX_dependencies_compiler_type=none
  3434. fi
  3435. fi
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3437. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3438. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3439. if
  3440. test "x$enable_dependency_tracking" != xno \
  3441. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3442. am__fastdepCXX_TRUE=
  3443. am__fastdepCXX_FALSE='#'
  3444. else
  3445. am__fastdepCXX_TRUE='#'
  3446. am__fastdepCXX_FALSE=
  3447. fi
  3448. # Check whether --enable-shared was given.
  3449. if test "${enable_shared+set}" = set; then :
  3450. enableval=$enable_shared; p=${PACKAGE-default}
  3451. case $enableval in
  3452. yes) enable_shared=yes ;;
  3453. no) enable_shared=no ;;
  3454. *)
  3455. enable_shared=no
  3456. # Look at the argument we got. We use all the common list separators.
  3457. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3458. for pkg in $enableval; do
  3459. IFS="$lt_save_ifs"
  3460. if test "X$pkg" = "X$p"; then
  3461. enable_shared=yes
  3462. fi
  3463. done
  3464. IFS="$lt_save_ifs"
  3465. ;;
  3466. esac
  3467. else
  3468. enable_shared=yes
  3469. fi
  3470. # Check whether --enable-static was given.
  3471. if test "${enable_static+set}" = set; then :
  3472. enableval=$enable_static; p=${PACKAGE-default}
  3473. case $enableval in
  3474. yes) enable_static=yes ;;
  3475. no) enable_static=no ;;
  3476. *)
  3477. enable_static=no
  3478. # Look at the argument we got. We use all the common list separators.
  3479. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3480. for pkg in $enableval; do
  3481. IFS="$lt_save_ifs"
  3482. if test "X$pkg" = "X$p"; then
  3483. enable_static=yes
  3484. fi
  3485. done
  3486. IFS="$lt_save_ifs"
  3487. ;;
  3488. esac
  3489. else
  3490. enable_static=no
  3491. fi
  3492. case `pwd` in
  3493. *\ * | *\ *)
  3494. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3495. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3496. esac
  3497. macro_version='2.2.6b'
  3498. macro_revision='1.3017'
  3499. ltmain="$ac_aux_dir/ltmain.sh"
  3500. # Make sure we can run config.sub.
  3501. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3502. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3504. $as_echo_n "checking build system type... " >&6; }
  3505. if test "${ac_cv_build+set}" = set; then :
  3506. $as_echo_n "(cached) " >&6
  3507. else
  3508. ac_build_alias=$build_alias
  3509. test "x$ac_build_alias" = x &&
  3510. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3511. test "x$ac_build_alias" = x &&
  3512. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3513. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3514. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3515. fi
  3516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3517. $as_echo "$ac_cv_build" >&6; }
  3518. case $ac_cv_build in
  3519. *-*-*) ;;
  3520. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
  3521. esac
  3522. build=$ac_cv_build
  3523. ac_save_IFS=$IFS; IFS='-'
  3524. set x $ac_cv_build
  3525. shift
  3526. build_cpu=$1
  3527. build_vendor=$2
  3528. shift; shift
  3529. # Remember, the first character of IFS is used to create $*,
  3530. # except with old shells:
  3531. build_os=$*
  3532. IFS=$ac_save_IFS
  3533. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3535. $as_echo_n "checking host system type... " >&6; }
  3536. if test "${ac_cv_host+set}" = set; then :
  3537. $as_echo_n "(cached) " >&6
  3538. else
  3539. if test "x$host_alias" = x; then
  3540. ac_cv_host=$ac_cv_build
  3541. else
  3542. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3543. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3544. fi
  3545. fi
  3546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3547. $as_echo "$ac_cv_host" >&6; }
  3548. case $ac_cv_host in
  3549. *-*-*) ;;
  3550. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
  3551. esac
  3552. host=$ac_cv_host
  3553. ac_save_IFS=$IFS; IFS='-'
  3554. set x $ac_cv_host
  3555. shift
  3556. host_cpu=$1
  3557. host_vendor=$2
  3558. shift; shift
  3559. # Remember, the first character of IFS is used to create $*,
  3560. # except with old shells:
  3561. host_os=$*
  3562. IFS=$ac_save_IFS
  3563. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3564. ac_ext=c
  3565. ac_cpp='$CPP $CPPFLAGS'
  3566. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3567. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3568. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3569. if test -n "$ac_tool_prefix"; then
  3570. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3571. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3573. $as_echo_n "checking for $ac_word... " >&6; }
  3574. if test "${ac_cv_prog_CC+set}" = set; then :
  3575. $as_echo_n "(cached) " >&6
  3576. else
  3577. if test -n "$CC"; then
  3578. ac_cv_prog_CC="$CC" # Let the user override the test.
  3579. else
  3580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3581. for as_dir in $PATH
  3582. do
  3583. IFS=$as_save_IFS
  3584. test -z "$as_dir" && as_dir=.
  3585. for ac_exec_ext in '' $ac_executable_extensions; do
  3586. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3587. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3588. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3589. break 2
  3590. fi
  3591. done
  3592. done
  3593. IFS=$as_save_IFS
  3594. fi
  3595. fi
  3596. CC=$ac_cv_prog_CC
  3597. if test -n "$CC"; then
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3599. $as_echo "$CC" >&6; }
  3600. else
  3601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3602. $as_echo "no" >&6; }
  3603. fi
  3604. fi
  3605. if test -z "$ac_cv_prog_CC"; then
  3606. ac_ct_CC=$CC
  3607. # Extract the first word of "gcc", so it can be a program name with args.
  3608. set dummy gcc; ac_word=$2
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3610. $as_echo_n "checking for $ac_word... " >&6; }
  3611. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3612. $as_echo_n "(cached) " >&6
  3613. else
  3614. if test -n "$ac_ct_CC"; then
  3615. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3616. else
  3617. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3618. for as_dir in $PATH
  3619. do
  3620. IFS=$as_save_IFS
  3621. test -z "$as_dir" && as_dir=.
  3622. for ac_exec_ext in '' $ac_executable_extensions; do
  3623. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3624. ac_cv_prog_ac_ct_CC="gcc"
  3625. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3626. break 2
  3627. fi
  3628. done
  3629. done
  3630. IFS=$as_save_IFS
  3631. fi
  3632. fi
  3633. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3634. if test -n "$ac_ct_CC"; then
  3635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3636. $as_echo "$ac_ct_CC" >&6; }
  3637. else
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3639. $as_echo "no" >&6; }
  3640. fi
  3641. if test "x$ac_ct_CC" = x; then
  3642. CC=""
  3643. else
  3644. case $cross_compiling:$ac_tool_warned in
  3645. yes:)
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3647. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3648. ac_tool_warned=yes ;;
  3649. esac
  3650. CC=$ac_ct_CC
  3651. fi
  3652. else
  3653. CC="$ac_cv_prog_CC"
  3654. fi
  3655. if test -z "$CC"; then
  3656. if test -n "$ac_tool_prefix"; then
  3657. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3658. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3660. $as_echo_n "checking for $ac_word... " >&6; }
  3661. if test "${ac_cv_prog_CC+set}" = set; then :
  3662. $as_echo_n "(cached) " >&6
  3663. else
  3664. if test -n "$CC"; then
  3665. ac_cv_prog_CC="$CC" # Let the user override the test.
  3666. else
  3667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3668. for as_dir in $PATH
  3669. do
  3670. IFS=$as_save_IFS
  3671. test -z "$as_dir" && as_dir=.
  3672. for ac_exec_ext in '' $ac_executable_extensions; do
  3673. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3674. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3676. break 2
  3677. fi
  3678. done
  3679. done
  3680. IFS=$as_save_IFS
  3681. fi
  3682. fi
  3683. CC=$ac_cv_prog_CC
  3684. if test -n "$CC"; then
  3685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3686. $as_echo "$CC" >&6; }
  3687. else
  3688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3689. $as_echo "no" >&6; }
  3690. fi
  3691. fi
  3692. fi
  3693. if test -z "$CC"; then
  3694. # Extract the first word of "cc", so it can be a program name with args.
  3695. set dummy cc; ac_word=$2
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3697. $as_echo_n "checking for $ac_word... " >&6; }
  3698. if test "${ac_cv_prog_CC+set}" = set; then :
  3699. $as_echo_n "(cached) " >&6
  3700. else
  3701. if test -n "$CC"; then
  3702. ac_cv_prog_CC="$CC" # Let the user override the test.
  3703. else
  3704. ac_prog_rejected=no
  3705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3706. for as_dir in $PATH
  3707. do
  3708. IFS=$as_save_IFS
  3709. test -z "$as_dir" && as_dir=.
  3710. for ac_exec_ext in '' $ac_executable_extensions; do
  3711. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3712. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3713. ac_prog_rejected=yes
  3714. continue
  3715. fi
  3716. ac_cv_prog_CC="cc"
  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. if test $ac_prog_rejected = yes; then
  3724. # We found a bogon in the path, so make sure we never use it.
  3725. set dummy $ac_cv_prog_CC
  3726. shift
  3727. if test $# != 0; then
  3728. # We chose a different compiler from the bogus one.
  3729. # However, it has the same basename, so the bogon will be chosen
  3730. # first if we set CC to just the basename; use the full file name.
  3731. shift
  3732. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3733. fi
  3734. fi
  3735. fi
  3736. fi
  3737. CC=$ac_cv_prog_CC
  3738. if test -n "$CC"; then
  3739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3740. $as_echo "$CC" >&6; }
  3741. else
  3742. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3743. $as_echo "no" >&6; }
  3744. fi
  3745. fi
  3746. if test -z "$CC"; then
  3747. if test -n "$ac_tool_prefix"; then
  3748. for ac_prog in cl.exe
  3749. do
  3750. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3751. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3753. $as_echo_n "checking for $ac_word... " >&6; }
  3754. if test "${ac_cv_prog_CC+set}" = set; then :
  3755. $as_echo_n "(cached) " >&6
  3756. else
  3757. if test -n "$CC"; then
  3758. ac_cv_prog_CC="$CC" # Let the user override the test.
  3759. else
  3760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3761. for as_dir in $PATH
  3762. do
  3763. IFS=$as_save_IFS
  3764. test -z "$as_dir" && as_dir=.
  3765. for ac_exec_ext in '' $ac_executable_extensions; do
  3766. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3767. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3769. break 2
  3770. fi
  3771. done
  3772. done
  3773. IFS=$as_save_IFS
  3774. fi
  3775. fi
  3776. CC=$ac_cv_prog_CC
  3777. if test -n "$CC"; then
  3778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3779. $as_echo "$CC" >&6; }
  3780. else
  3781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3782. $as_echo "no" >&6; }
  3783. fi
  3784. test -n "$CC" && break
  3785. done
  3786. fi
  3787. if test -z "$CC"; then
  3788. ac_ct_CC=$CC
  3789. for ac_prog in cl.exe
  3790. do
  3791. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3792. set dummy $ac_prog; ac_word=$2
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3794. $as_echo_n "checking for $ac_word... " >&6; }
  3795. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3796. $as_echo_n "(cached) " >&6
  3797. else
  3798. if test -n "$ac_ct_CC"; then
  3799. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3800. else
  3801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3802. for as_dir in $PATH
  3803. do
  3804. IFS=$as_save_IFS
  3805. test -z "$as_dir" && as_dir=.
  3806. for ac_exec_ext in '' $ac_executable_extensions; do
  3807. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3808. ac_cv_prog_ac_ct_CC="$ac_prog"
  3809. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3810. break 2
  3811. fi
  3812. done
  3813. done
  3814. IFS=$as_save_IFS
  3815. fi
  3816. fi
  3817. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3818. if test -n "$ac_ct_CC"; then
  3819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3820. $as_echo "$ac_ct_CC" >&6; }
  3821. else
  3822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3823. $as_echo "no" >&6; }
  3824. fi
  3825. test -n "$ac_ct_CC" && break
  3826. done
  3827. if test "x$ac_ct_CC" = x; then
  3828. CC=""
  3829. else
  3830. case $cross_compiling:$ac_tool_warned in
  3831. yes:)
  3832. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3833. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3834. ac_tool_warned=yes ;;
  3835. esac
  3836. CC=$ac_ct_CC
  3837. fi
  3838. fi
  3839. fi
  3840. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3841. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3842. as_fn_error $? "no acceptable C compiler found in \$PATH
  3843. See \`config.log' for more details" "$LINENO" 5 ; }
  3844. # Provide some information about the compiler.
  3845. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3846. set X $ac_compile
  3847. ac_compiler=$2
  3848. for ac_option in --version -v -V -qversion; do
  3849. { { ac_try="$ac_compiler $ac_option >&5"
  3850. case "(($ac_try" in
  3851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3852. *) ac_try_echo=$ac_try;;
  3853. esac
  3854. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3855. $as_echo "$ac_try_echo"; } >&5
  3856. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3857. ac_status=$?
  3858. if test -s conftest.err; then
  3859. sed '10a\
  3860. ... rest of stderr output deleted ...
  3861. 10q' conftest.err >conftest.er1
  3862. cat conftest.er1 >&5
  3863. fi
  3864. rm -f conftest.er1 conftest.err
  3865. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3866. test $ac_status = 0; }
  3867. done
  3868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3869. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3870. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3871. $as_echo_n "(cached) " >&6
  3872. else
  3873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3874. /* end confdefs.h. */
  3875. int
  3876. main ()
  3877. {
  3878. #ifndef __GNUC__
  3879. choke me
  3880. #endif
  3881. ;
  3882. return 0;
  3883. }
  3884. _ACEOF
  3885. if ac_fn_c_try_compile "$LINENO"; then :
  3886. ac_compiler_gnu=yes
  3887. else
  3888. ac_compiler_gnu=no
  3889. fi
  3890. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3891. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3892. fi
  3893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3894. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3895. if test $ac_compiler_gnu = yes; then
  3896. GCC=yes
  3897. else
  3898. GCC=
  3899. fi
  3900. ac_test_CFLAGS=${CFLAGS+set}
  3901. ac_save_CFLAGS=$CFLAGS
  3902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3903. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3904. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3905. $as_echo_n "(cached) " >&6
  3906. else
  3907. ac_save_c_werror_flag=$ac_c_werror_flag
  3908. ac_c_werror_flag=yes
  3909. ac_cv_prog_cc_g=no
  3910. CFLAGS="-g"
  3911. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3912. /* end confdefs.h. */
  3913. int
  3914. main ()
  3915. {
  3916. ;
  3917. return 0;
  3918. }
  3919. _ACEOF
  3920. if ac_fn_c_try_compile "$LINENO"; then :
  3921. ac_cv_prog_cc_g=yes
  3922. else
  3923. CFLAGS=""
  3924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3925. /* end confdefs.h. */
  3926. int
  3927. main ()
  3928. {
  3929. ;
  3930. return 0;
  3931. }
  3932. _ACEOF
  3933. if ac_fn_c_try_compile "$LINENO"; then :
  3934. else
  3935. ac_c_werror_flag=$ac_save_c_werror_flag
  3936. CFLAGS="-g"
  3937. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3938. /* end confdefs.h. */
  3939. int
  3940. main ()
  3941. {
  3942. ;
  3943. return 0;
  3944. }
  3945. _ACEOF
  3946. if ac_fn_c_try_compile "$LINENO"; then :
  3947. ac_cv_prog_cc_g=yes
  3948. fi
  3949. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3950. fi
  3951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3952. fi
  3953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3954. ac_c_werror_flag=$ac_save_c_werror_flag
  3955. fi
  3956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3957. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3958. if test "$ac_test_CFLAGS" = set; then
  3959. CFLAGS=$ac_save_CFLAGS
  3960. elif test $ac_cv_prog_cc_g = yes; then
  3961. if test "$GCC" = yes; then
  3962. CFLAGS="-g -O2"
  3963. else
  3964. CFLAGS="-g"
  3965. fi
  3966. else
  3967. if test "$GCC" = yes; then
  3968. CFLAGS="-O2"
  3969. else
  3970. CFLAGS=
  3971. fi
  3972. fi
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3974. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3975. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3976. $as_echo_n "(cached) " >&6
  3977. else
  3978. ac_cv_prog_cc_c89=no
  3979. ac_save_CC=$CC
  3980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3981. /* end confdefs.h. */
  3982. #include <stdarg.h>
  3983. #include <stdio.h>
  3984. #include <sys/types.h>
  3985. #include <sys/stat.h>
  3986. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3987. struct buf { int x; };
  3988. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3989. static char *e (p, i)
  3990. char **p;
  3991. int i;
  3992. {
  3993. return p[i];
  3994. }
  3995. static char *f (char * (*g) (char **, int), char **p, ...)
  3996. {
  3997. char *s;
  3998. va_list v;
  3999. va_start (v,p);
  4000. s = g (p, va_arg (v,int));
  4001. va_end (v);
  4002. return s;
  4003. }
  4004. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4005. function prototypes and stuff, but not '\xHH' hex character constants.
  4006. These don't provoke an error unfortunately, instead are silently treated
  4007. as 'x'. The following induces an error, until -std is added to get
  4008. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4009. array size at least. It's necessary to write '\x00'==0 to get something
  4010. that's true only with -std. */
  4011. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4012. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4013. inside strings and character constants. */
  4014. #define FOO(x) 'x'
  4015. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4016. int test (int i, double x);
  4017. struct s1 {int (*f) (int a);};
  4018. struct s2 {int (*f) (double a);};
  4019. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4020. int argc;
  4021. char **argv;
  4022. int
  4023. main ()
  4024. {
  4025. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4026. ;
  4027. return 0;
  4028. }
  4029. _ACEOF
  4030. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4031. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4032. do
  4033. CC="$ac_save_CC $ac_arg"
  4034. if ac_fn_c_try_compile "$LINENO"; then :
  4035. ac_cv_prog_cc_c89=$ac_arg
  4036. fi
  4037. rm -f core conftest.err conftest.$ac_objext
  4038. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4039. done
  4040. rm -f conftest.$ac_ext
  4041. CC=$ac_save_CC
  4042. fi
  4043. # AC_CACHE_VAL
  4044. case "x$ac_cv_prog_cc_c89" in
  4045. x)
  4046. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4047. $as_echo "none needed" >&6; } ;;
  4048. xno)
  4049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4050. $as_echo "unsupported" >&6; } ;;
  4051. *)
  4052. CC="$CC $ac_cv_prog_cc_c89"
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4054. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4055. esac
  4056. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4057. fi
  4058. ac_ext=cpp
  4059. ac_cpp='$CXXCPP $CPPFLAGS'
  4060. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4061. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4062. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4063. depcc="$CC" am_compiler_list=
  4064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4065. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4066. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4067. $as_echo_n "(cached) " >&6
  4068. else
  4069. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4070. # We make a subdir and do the tests there. Otherwise we can end up
  4071. # making bogus files that we don't know about and never remove. For
  4072. # instance it was reported that on HP-UX the gcc test will end up
  4073. # making a dummy file named `D' -- because `-MD' means `put the output
  4074. # in D'.
  4075. mkdir conftest.dir
  4076. # Copy depcomp to subdir because otherwise we won't find it if we're
  4077. # using a relative directory.
  4078. cp "$am_depcomp" conftest.dir
  4079. cd conftest.dir
  4080. # We will build objects and dependencies in a subdirectory because
  4081. # it helps to detect inapplicable dependency modes. For instance
  4082. # both Tru64's cc and ICC support -MD to output dependencies as a
  4083. # side effect of compilation, but ICC will put the dependencies in
  4084. # the current directory while Tru64 will put them in the object
  4085. # directory.
  4086. mkdir sub
  4087. am_cv_CC_dependencies_compiler_type=none
  4088. if test "$am_compiler_list" = ""; then
  4089. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4090. fi
  4091. am__universal=false
  4092. case " $depcc " in #(
  4093. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4094. esac
  4095. for depmode in $am_compiler_list; do
  4096. # Setup a source with many dependencies, because some compilers
  4097. # like to wrap large dependency lists on column 80 (with \), and
  4098. # we should not choose a depcomp mode which is confused by this.
  4099. #
  4100. # We need to recreate these files for each test, as the compiler may
  4101. # overwrite some of them when testing with obscure command lines.
  4102. # This happens at least with the AIX C compiler.
  4103. : > sub/conftest.c
  4104. for i in 1 2 3 4 5 6; do
  4105. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4106. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4107. # Solaris 8's {/usr,}/bin/sh.
  4108. touch sub/conftst$i.h
  4109. done
  4110. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4111. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4112. # mode. It turns out that the SunPro C++ compiler does not properly
  4113. # handle `-M -o', and we need to detect this. Also, some Intel
  4114. # versions had trouble with output in subdirs
  4115. am__obj=sub/conftest.${OBJEXT-o}
  4116. am__minus_obj="-o $am__obj"
  4117. case $depmode in
  4118. gcc)
  4119. # This depmode causes a compiler race in universal mode.
  4120. test "$am__universal" = false || continue
  4121. ;;
  4122. nosideeffect)
  4123. # after this tag, mechanisms are not by side-effect, so they'll
  4124. # only be used when explicitly requested
  4125. if test "x$enable_dependency_tracking" = xyes; then
  4126. continue
  4127. else
  4128. break
  4129. fi
  4130. ;;
  4131. msvisualcpp | msvcmsys)
  4132. # This compiler won't grok `-c -o', but also, the minuso test has
  4133. # not run yet. These depmodes are late enough in the game, and
  4134. # so weak that their functioning should not be impacted.
  4135. am__obj=conftest.${OBJEXT-o}
  4136. am__minus_obj=
  4137. ;;
  4138. none) break ;;
  4139. esac
  4140. if depmode=$depmode \
  4141. source=sub/conftest.c object=$am__obj \
  4142. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4143. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4144. >/dev/null 2>conftest.err &&
  4145. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4146. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4147. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4148. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4149. # icc doesn't choke on unknown options, it will just issue warnings
  4150. # or remarks (even with -Werror). So we grep stderr for any message
  4151. # that says an option was ignored or not supported.
  4152. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4153. # icc: Command line warning: ignoring option '-M'; no argument required
  4154. # The diagnosis changed in icc 8.0:
  4155. # icc: Command line remark: option '-MP' not supported
  4156. if (grep 'ignoring option' conftest.err ||
  4157. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4158. am_cv_CC_dependencies_compiler_type=$depmode
  4159. break
  4160. fi
  4161. fi
  4162. done
  4163. cd ..
  4164. rm -rf conftest.dir
  4165. else
  4166. am_cv_CC_dependencies_compiler_type=none
  4167. fi
  4168. fi
  4169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4170. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4171. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4172. if
  4173. test "x$enable_dependency_tracking" != xno \
  4174. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4175. am__fastdepCC_TRUE=
  4176. am__fastdepCC_FALSE='#'
  4177. else
  4178. am__fastdepCC_TRUE='#'
  4179. am__fastdepCC_FALSE=
  4180. fi
  4181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4182. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4183. if test "${ac_cv_path_SED+set}" = set; then :
  4184. $as_echo_n "(cached) " >&6
  4185. else
  4186. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4187. for ac_i in 1 2 3 4 5 6 7; do
  4188. ac_script="$ac_script$as_nl$ac_script"
  4189. done
  4190. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4191. { ac_script=; unset ac_script;}
  4192. if test -z "$SED"; then
  4193. ac_path_SED_found=false
  4194. # Loop through the user's path and test for each of PROGNAME-LIST
  4195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4196. for as_dir in $PATH
  4197. do
  4198. IFS=$as_save_IFS
  4199. test -z "$as_dir" && as_dir=.
  4200. for ac_prog in sed gsed; do
  4201. for ac_exec_ext in '' $ac_executable_extensions; do
  4202. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4203. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4204. # Check for GNU ac_path_SED and select it if it is found.
  4205. # Check for GNU $ac_path_SED
  4206. case `"$ac_path_SED" --version 2>&1` in
  4207. *GNU*)
  4208. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4209. *)
  4210. ac_count=0
  4211. $as_echo_n 0123456789 >"conftest.in"
  4212. while :
  4213. do
  4214. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4215. mv "conftest.tmp" "conftest.in"
  4216. cp "conftest.in" "conftest.nl"
  4217. $as_echo '' >> "conftest.nl"
  4218. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4219. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4220. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4221. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4222. # Best one so far, save it but keep looking for a better one
  4223. ac_cv_path_SED="$ac_path_SED"
  4224. ac_path_SED_max=$ac_count
  4225. fi
  4226. # 10*(2^10) chars as input seems more than enough
  4227. test $ac_count -gt 10 && break
  4228. done
  4229. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4230. esac
  4231. $ac_path_SED_found && break 3
  4232. done
  4233. done
  4234. done
  4235. IFS=$as_save_IFS
  4236. if test -z "$ac_cv_path_SED"; then
  4237. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4238. fi
  4239. else
  4240. ac_cv_path_SED=$SED
  4241. fi
  4242. fi
  4243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4244. $as_echo "$ac_cv_path_SED" >&6; }
  4245. SED="$ac_cv_path_SED"
  4246. rm -f conftest.sed
  4247. test -z "$SED" && SED=sed
  4248. Xsed="$SED -e 1s/^X//"
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4250. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4251. if test "${ac_cv_path_GREP+set}" = set; then :
  4252. $as_echo_n "(cached) " >&6
  4253. else
  4254. if test -z "$GREP"; then
  4255. ac_path_GREP_found=false
  4256. # Loop through the user's path and test for each of PROGNAME-LIST
  4257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4258. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4259. do
  4260. IFS=$as_save_IFS
  4261. test -z "$as_dir" && as_dir=.
  4262. for ac_prog in grep ggrep; do
  4263. for ac_exec_ext in '' $ac_executable_extensions; do
  4264. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4265. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4266. # Check for GNU ac_path_GREP and select it if it is found.
  4267. # Check for GNU $ac_path_GREP
  4268. case `"$ac_path_GREP" --version 2>&1` in
  4269. *GNU*)
  4270. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4271. *)
  4272. ac_count=0
  4273. $as_echo_n 0123456789 >"conftest.in"
  4274. while :
  4275. do
  4276. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4277. mv "conftest.tmp" "conftest.in"
  4278. cp "conftest.in" "conftest.nl"
  4279. $as_echo 'GREP' >> "conftest.nl"
  4280. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4281. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4282. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4283. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4284. # Best one so far, save it but keep looking for a better one
  4285. ac_cv_path_GREP="$ac_path_GREP"
  4286. ac_path_GREP_max=$ac_count
  4287. fi
  4288. # 10*(2^10) chars as input seems more than enough
  4289. test $ac_count -gt 10 && break
  4290. done
  4291. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4292. esac
  4293. $ac_path_GREP_found && break 3
  4294. done
  4295. done
  4296. done
  4297. IFS=$as_save_IFS
  4298. if test -z "$ac_cv_path_GREP"; then
  4299. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4300. fi
  4301. else
  4302. ac_cv_path_GREP=$GREP
  4303. fi
  4304. fi
  4305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4306. $as_echo "$ac_cv_path_GREP" >&6; }
  4307. GREP="$ac_cv_path_GREP"
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4309. $as_echo_n "checking for egrep... " >&6; }
  4310. if test "${ac_cv_path_EGREP+set}" = set; then :
  4311. $as_echo_n "(cached) " >&6
  4312. else
  4313. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4314. then ac_cv_path_EGREP="$GREP -E"
  4315. else
  4316. if test -z "$EGREP"; then
  4317. ac_path_EGREP_found=false
  4318. # Loop through the user's path and test for each of PROGNAME-LIST
  4319. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4320. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4321. do
  4322. IFS=$as_save_IFS
  4323. test -z "$as_dir" && as_dir=.
  4324. for ac_prog in egrep; do
  4325. for ac_exec_ext in '' $ac_executable_extensions; do
  4326. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4327. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4328. # Check for GNU ac_path_EGREP and select it if it is found.
  4329. # Check for GNU $ac_path_EGREP
  4330. case `"$ac_path_EGREP" --version 2>&1` in
  4331. *GNU*)
  4332. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4333. *)
  4334. ac_count=0
  4335. $as_echo_n 0123456789 >"conftest.in"
  4336. while :
  4337. do
  4338. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4339. mv "conftest.tmp" "conftest.in"
  4340. cp "conftest.in" "conftest.nl"
  4341. $as_echo 'EGREP' >> "conftest.nl"
  4342. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4343. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4344. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4345. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4346. # Best one so far, save it but keep looking for a better one
  4347. ac_cv_path_EGREP="$ac_path_EGREP"
  4348. ac_path_EGREP_max=$ac_count
  4349. fi
  4350. # 10*(2^10) chars as input seems more than enough
  4351. test $ac_count -gt 10 && break
  4352. done
  4353. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4354. esac
  4355. $ac_path_EGREP_found && break 3
  4356. done
  4357. done
  4358. done
  4359. IFS=$as_save_IFS
  4360. if test -z "$ac_cv_path_EGREP"; then
  4361. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4362. fi
  4363. else
  4364. ac_cv_path_EGREP=$EGREP
  4365. fi
  4366. fi
  4367. fi
  4368. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4369. $as_echo "$ac_cv_path_EGREP" >&6; }
  4370. EGREP="$ac_cv_path_EGREP"
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4372. $as_echo_n "checking for fgrep... " >&6; }
  4373. if test "${ac_cv_path_FGREP+set}" = set; then :
  4374. $as_echo_n "(cached) " >&6
  4375. else
  4376. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4377. then ac_cv_path_FGREP="$GREP -F"
  4378. else
  4379. if test -z "$FGREP"; then
  4380. ac_path_FGREP_found=false
  4381. # Loop through the user's path and test for each of PROGNAME-LIST
  4382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4383. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4384. do
  4385. IFS=$as_save_IFS
  4386. test -z "$as_dir" && as_dir=.
  4387. for ac_prog in fgrep; do
  4388. for ac_exec_ext in '' $ac_executable_extensions; do
  4389. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4390. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4391. # Check for GNU ac_path_FGREP and select it if it is found.
  4392. # Check for GNU $ac_path_FGREP
  4393. case `"$ac_path_FGREP" --version 2>&1` in
  4394. *GNU*)
  4395. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4396. *)
  4397. ac_count=0
  4398. $as_echo_n 0123456789 >"conftest.in"
  4399. while :
  4400. do
  4401. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4402. mv "conftest.tmp" "conftest.in"
  4403. cp "conftest.in" "conftest.nl"
  4404. $as_echo 'FGREP' >> "conftest.nl"
  4405. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4406. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4407. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4408. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4409. # Best one so far, save it but keep looking for a better one
  4410. ac_cv_path_FGREP="$ac_path_FGREP"
  4411. ac_path_FGREP_max=$ac_count
  4412. fi
  4413. # 10*(2^10) chars as input seems more than enough
  4414. test $ac_count -gt 10 && break
  4415. done
  4416. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4417. esac
  4418. $ac_path_FGREP_found && break 3
  4419. done
  4420. done
  4421. done
  4422. IFS=$as_save_IFS
  4423. if test -z "$ac_cv_path_FGREP"; then
  4424. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4425. fi
  4426. else
  4427. ac_cv_path_FGREP=$FGREP
  4428. fi
  4429. fi
  4430. fi
  4431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4432. $as_echo "$ac_cv_path_FGREP" >&6; }
  4433. FGREP="$ac_cv_path_FGREP"
  4434. test -z "$GREP" && GREP=grep
  4435. # Check whether --with-gnu-ld was given.
  4436. if test "${with_gnu_ld+set}" = set; then :
  4437. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4438. else
  4439. with_gnu_ld=no
  4440. fi
  4441. ac_prog=ld
  4442. if test "$GCC" = yes; then
  4443. # Check if gcc -print-prog-name=ld gives a path.
  4444. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4445. $as_echo_n "checking for ld used by $CC... " >&6; }
  4446. case $host in
  4447. *-*-mingw*)
  4448. # gcc leaves a trailing carriage return which upsets mingw
  4449. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4450. *)
  4451. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4452. esac
  4453. case $ac_prog in
  4454. # Accept absolute paths.
  4455. [\\/]* | ?:[\\/]*)
  4456. re_direlt='/[^/][^/]*/\.\./'
  4457. # Canonicalize the pathname of ld
  4458. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4459. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4460. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4461. done
  4462. test -z "$LD" && LD="$ac_prog"
  4463. ;;
  4464. "")
  4465. # If it fails, then pretend we aren't using GCC.
  4466. ac_prog=ld
  4467. ;;
  4468. *)
  4469. # If it is relative, then search for the first ld in PATH.
  4470. with_gnu_ld=unknown
  4471. ;;
  4472. esac
  4473. elif test "$with_gnu_ld" = yes; then
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4475. $as_echo_n "checking for GNU ld... " >&6; }
  4476. else
  4477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4478. $as_echo_n "checking for non-GNU ld... " >&6; }
  4479. fi
  4480. if test "${lt_cv_path_LD+set}" = set; then :
  4481. $as_echo_n "(cached) " >&6
  4482. else
  4483. if test -z "$LD"; then
  4484. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4485. for ac_dir in $PATH; do
  4486. IFS="$lt_save_ifs"
  4487. test -z "$ac_dir" && ac_dir=.
  4488. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4489. lt_cv_path_LD="$ac_dir/$ac_prog"
  4490. # Check to see if the program is GNU ld. I'd rather use --version,
  4491. # but apparently some variants of GNU ld only accept -v.
  4492. # Break only if it was the GNU/non-GNU ld that we prefer.
  4493. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4494. *GNU* | *'with BFD'*)
  4495. test "$with_gnu_ld" != no && break
  4496. ;;
  4497. *)
  4498. test "$with_gnu_ld" != yes && break
  4499. ;;
  4500. esac
  4501. fi
  4502. done
  4503. IFS="$lt_save_ifs"
  4504. else
  4505. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4506. fi
  4507. fi
  4508. LD="$lt_cv_path_LD"
  4509. if test -n "$LD"; then
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4511. $as_echo "$LD" >&6; }
  4512. else
  4513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4514. $as_echo "no" >&6; }
  4515. fi
  4516. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4518. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4519. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4520. $as_echo_n "(cached) " >&6
  4521. else
  4522. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4523. case `$LD -v 2>&1 </dev/null` in
  4524. *GNU* | *'with BFD'*)
  4525. lt_cv_prog_gnu_ld=yes
  4526. ;;
  4527. *)
  4528. lt_cv_prog_gnu_ld=no
  4529. ;;
  4530. esac
  4531. fi
  4532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4533. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4534. with_gnu_ld=$lt_cv_prog_gnu_ld
  4535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4536. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4537. if test "${lt_cv_path_NM+set}" = set; then :
  4538. $as_echo_n "(cached) " >&6
  4539. else
  4540. if test -n "$NM"; then
  4541. # Let the user override the test.
  4542. lt_cv_path_NM="$NM"
  4543. else
  4544. lt_nm_to_check="${ac_tool_prefix}nm"
  4545. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4546. lt_nm_to_check="$lt_nm_to_check nm"
  4547. fi
  4548. for lt_tmp_nm in $lt_nm_to_check; do
  4549. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4550. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4551. IFS="$lt_save_ifs"
  4552. test -z "$ac_dir" && ac_dir=.
  4553. tmp_nm="$ac_dir/$lt_tmp_nm"
  4554. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4555. # Check to see if the nm accepts a BSD-compat flag.
  4556. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4557. # nm: unknown option "B" ignored
  4558. # Tru64's nm complains that /dev/null is an invalid object file
  4559. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4560. */dev/null* | *'Invalid file or object type'*)
  4561. lt_cv_path_NM="$tmp_nm -B"
  4562. break
  4563. ;;
  4564. *)
  4565. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4566. */dev/null*)
  4567. lt_cv_path_NM="$tmp_nm -p"
  4568. break
  4569. ;;
  4570. *)
  4571. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4572. continue # so that we can try to find one that supports BSD flags
  4573. ;;
  4574. esac
  4575. ;;
  4576. esac
  4577. fi
  4578. done
  4579. IFS="$lt_save_ifs"
  4580. done
  4581. : ${lt_cv_path_NM=no}
  4582. fi
  4583. fi
  4584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4585. $as_echo "$lt_cv_path_NM" >&6; }
  4586. if test "$lt_cv_path_NM" != "no"; then
  4587. NM="$lt_cv_path_NM"
  4588. else
  4589. # Didn't find any BSD compatible name lister, look for dumpbin.
  4590. if test -n "$ac_tool_prefix"; then
  4591. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4592. do
  4593. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4594. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4596. $as_echo_n "checking for $ac_word... " >&6; }
  4597. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4598. $as_echo_n "(cached) " >&6
  4599. else
  4600. if test -n "$DUMPBIN"; then
  4601. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4602. else
  4603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4604. for as_dir in $PATH
  4605. do
  4606. IFS=$as_save_IFS
  4607. test -z "$as_dir" && as_dir=.
  4608. for ac_exec_ext in '' $ac_executable_extensions; do
  4609. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4610. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4611. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4612. break 2
  4613. fi
  4614. done
  4615. done
  4616. IFS=$as_save_IFS
  4617. fi
  4618. fi
  4619. DUMPBIN=$ac_cv_prog_DUMPBIN
  4620. if test -n "$DUMPBIN"; then
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4622. $as_echo "$DUMPBIN" >&6; }
  4623. else
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4625. $as_echo "no" >&6; }
  4626. fi
  4627. test -n "$DUMPBIN" && break
  4628. done
  4629. fi
  4630. if test -z "$DUMPBIN"; then
  4631. ac_ct_DUMPBIN=$DUMPBIN
  4632. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4633. do
  4634. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4635. set dummy $ac_prog; ac_word=$2
  4636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4637. $as_echo_n "checking for $ac_word... " >&6; }
  4638. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4639. $as_echo_n "(cached) " >&6
  4640. else
  4641. if test -n "$ac_ct_DUMPBIN"; then
  4642. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4643. else
  4644. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4645. for as_dir in $PATH
  4646. do
  4647. IFS=$as_save_IFS
  4648. test -z "$as_dir" && as_dir=.
  4649. for ac_exec_ext in '' $ac_executable_extensions; do
  4650. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4651. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4652. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4653. break 2
  4654. fi
  4655. done
  4656. done
  4657. IFS=$as_save_IFS
  4658. fi
  4659. fi
  4660. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4661. if test -n "$ac_ct_DUMPBIN"; then
  4662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4663. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4664. else
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4666. $as_echo "no" >&6; }
  4667. fi
  4668. test -n "$ac_ct_DUMPBIN" && break
  4669. done
  4670. if test "x$ac_ct_DUMPBIN" = x; then
  4671. DUMPBIN=":"
  4672. else
  4673. case $cross_compiling:$ac_tool_warned in
  4674. yes:)
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4676. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4677. ac_tool_warned=yes ;;
  4678. esac
  4679. DUMPBIN=$ac_ct_DUMPBIN
  4680. fi
  4681. fi
  4682. if test "$DUMPBIN" != ":"; then
  4683. NM="$DUMPBIN"
  4684. fi
  4685. fi
  4686. test -z "$NM" && NM=nm
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4688. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4689. if test "${lt_cv_nm_interface+set}" = set; then :
  4690. $as_echo_n "(cached) " >&6
  4691. else
  4692. lt_cv_nm_interface="BSD nm"
  4693. echo "int some_variable = 0;" > conftest.$ac_ext
  4694. (eval echo "\"\$as_me:5209: $ac_compile\"" >&5)
  4695. (eval "$ac_compile" 2>conftest.err)
  4696. cat conftest.err >&5
  4697. (eval echo "\"\$as_me:5212: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4698. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4699. cat conftest.err >&5
  4700. (eval echo "\"\$as_me:5215: output\"" >&5)
  4701. cat conftest.out >&5
  4702. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4703. lt_cv_nm_interface="MS dumpbin"
  4704. fi
  4705. rm -f conftest*
  4706. fi
  4707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4708. $as_echo "$lt_cv_nm_interface" >&6; }
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4710. $as_echo_n "checking whether ln -s works... " >&6; }
  4711. LN_S=$as_ln_s
  4712. if test "$LN_S" = "ln -s"; then
  4713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4714. $as_echo "yes" >&6; }
  4715. else
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4717. $as_echo "no, using $LN_S" >&6; }
  4718. fi
  4719. # find the maximum length of command line arguments
  4720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4721. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4722. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4723. $as_echo_n "(cached) " >&6
  4724. else
  4725. i=0
  4726. teststring="ABCD"
  4727. case $build_os in
  4728. msdosdjgpp*)
  4729. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4730. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4731. # during glob expansion). Even if it were fixed, the result of this
  4732. # check would be larger than it should be.
  4733. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4734. ;;
  4735. gnu*)
  4736. # Under GNU Hurd, this test is not required because there is
  4737. # no limit to the length of command line arguments.
  4738. # Libtool will interpret -1 as no limit whatsoever
  4739. lt_cv_sys_max_cmd_len=-1;
  4740. ;;
  4741. cygwin* | mingw* | cegcc*)
  4742. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4743. # about 5 minutes as the teststring grows exponentially.
  4744. # Worse, since 9x/ME are not pre-emptively multitasking,
  4745. # you end up with a "frozen" computer, even though with patience
  4746. # the test eventually succeeds (with a max line length of 256k).
  4747. # Instead, let's just punt: use the minimum linelength reported by
  4748. # all of the supported platforms: 8192 (on NT/2K/XP).
  4749. lt_cv_sys_max_cmd_len=8192;
  4750. ;;
  4751. amigaos*)
  4752. # On AmigaOS with pdksh, this test takes hours, literally.
  4753. # So we just punt and use a minimum line length of 8192.
  4754. lt_cv_sys_max_cmd_len=8192;
  4755. ;;
  4756. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4757. # This has been around since 386BSD, at least. Likely further.
  4758. if test -x /sbin/sysctl; then
  4759. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4760. elif test -x /usr/sbin/sysctl; then
  4761. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4762. else
  4763. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4764. fi
  4765. # And add a safety zone
  4766. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4767. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4768. ;;
  4769. interix*)
  4770. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4771. lt_cv_sys_max_cmd_len=196608
  4772. ;;
  4773. osf*)
  4774. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4775. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4776. # nice to cause kernel panics so lets avoid the loop below.
  4777. # First set a reasonable default.
  4778. lt_cv_sys_max_cmd_len=16384
  4779. #
  4780. if test -x /sbin/sysconfig; then
  4781. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4782. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4783. esac
  4784. fi
  4785. ;;
  4786. sco3.2v5*)
  4787. lt_cv_sys_max_cmd_len=102400
  4788. ;;
  4789. sysv5* | sco5v6* | sysv4.2uw2*)
  4790. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4791. if test -n "$kargmax"; then
  4792. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4793. else
  4794. lt_cv_sys_max_cmd_len=32768
  4795. fi
  4796. ;;
  4797. *)
  4798. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4799. if test -n "$lt_cv_sys_max_cmd_len"; then
  4800. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4801. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4802. else
  4803. # Make teststring a little bigger before we do anything with it.
  4804. # a 1K string should be a reasonable start.
  4805. for i in 1 2 3 4 5 6 7 8 ; do
  4806. teststring=$teststring$teststring
  4807. done
  4808. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4809. # If test is not a shell built-in, we'll probably end up computing a
  4810. # maximum length that is only half of the actual maximum length, but
  4811. # we can't tell.
  4812. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4813. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4814. test $i != 17 # 1/2 MB should be enough
  4815. do
  4816. i=`expr $i + 1`
  4817. teststring=$teststring$teststring
  4818. done
  4819. # Only check the string length outside the loop.
  4820. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4821. teststring=
  4822. # Add a significant safety factor because C++ compilers can tack on
  4823. # massive amounts of additional arguments before passing them to the
  4824. # linker. It appears as though 1/2 is a usable value.
  4825. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4826. fi
  4827. ;;
  4828. esac
  4829. fi
  4830. if test -n $lt_cv_sys_max_cmd_len ; then
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4832. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4833. else
  4834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4835. $as_echo "none" >&6; }
  4836. fi
  4837. max_cmd_len=$lt_cv_sys_max_cmd_len
  4838. : ${CP="cp -f"}
  4839. : ${MV="mv -f"}
  4840. : ${RM="rm -f"}
  4841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4842. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4843. # Try some XSI features
  4844. xsi_shell=no
  4845. ( _lt_dummy="a/b/c"
  4846. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4847. = c,a/b,, \
  4848. && eval 'test $(( 1 + 1 )) -eq 2 \
  4849. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4850. && xsi_shell=yes
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4852. $as_echo "$xsi_shell" >&6; }
  4853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4854. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4855. lt_shell_append=no
  4856. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4857. >/dev/null 2>&1 \
  4858. && lt_shell_append=yes
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4860. $as_echo "$lt_shell_append" >&6; }
  4861. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4862. lt_unset=unset
  4863. else
  4864. lt_unset=false
  4865. fi
  4866. # test EBCDIC or ASCII
  4867. case `echo X|tr X '\101'` in
  4868. A) # ASCII based system
  4869. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4870. lt_SP2NL='tr \040 \012'
  4871. lt_NL2SP='tr \015\012 \040\040'
  4872. ;;
  4873. *) # EBCDIC based system
  4874. lt_SP2NL='tr \100 \n'
  4875. lt_NL2SP='tr \r\n \100\100'
  4876. ;;
  4877. esac
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4879. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4880. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4881. $as_echo_n "(cached) " >&6
  4882. else
  4883. lt_cv_ld_reload_flag='-r'
  4884. fi
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4886. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4887. reload_flag=$lt_cv_ld_reload_flag
  4888. case $reload_flag in
  4889. "" | " "*) ;;
  4890. *) reload_flag=" $reload_flag" ;;
  4891. esac
  4892. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4893. case $host_os in
  4894. darwin*)
  4895. if test "$GCC" = yes; then
  4896. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4897. else
  4898. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4899. fi
  4900. ;;
  4901. esac
  4902. if test -n "$ac_tool_prefix"; then
  4903. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4904. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4905. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4906. $as_echo_n "checking for $ac_word... " >&6; }
  4907. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4908. $as_echo_n "(cached) " >&6
  4909. else
  4910. if test -n "$OBJDUMP"; then
  4911. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4912. else
  4913. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4914. for as_dir in $PATH
  4915. do
  4916. IFS=$as_save_IFS
  4917. test -z "$as_dir" && as_dir=.
  4918. for ac_exec_ext in '' $ac_executable_extensions; do
  4919. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4920. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4921. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4922. break 2
  4923. fi
  4924. done
  4925. done
  4926. IFS=$as_save_IFS
  4927. fi
  4928. fi
  4929. OBJDUMP=$ac_cv_prog_OBJDUMP
  4930. if test -n "$OBJDUMP"; then
  4931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4932. $as_echo "$OBJDUMP" >&6; }
  4933. else
  4934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4935. $as_echo "no" >&6; }
  4936. fi
  4937. fi
  4938. if test -z "$ac_cv_prog_OBJDUMP"; then
  4939. ac_ct_OBJDUMP=$OBJDUMP
  4940. # Extract the first word of "objdump", so it can be a program name with args.
  4941. set dummy objdump; ac_word=$2
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4943. $as_echo_n "checking for $ac_word... " >&6; }
  4944. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4945. $as_echo_n "(cached) " >&6
  4946. else
  4947. if test -n "$ac_ct_OBJDUMP"; then
  4948. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4949. else
  4950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4951. for as_dir in $PATH
  4952. do
  4953. IFS=$as_save_IFS
  4954. test -z "$as_dir" && as_dir=.
  4955. for ac_exec_ext in '' $ac_executable_extensions; do
  4956. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4957. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4958. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4959. break 2
  4960. fi
  4961. done
  4962. done
  4963. IFS=$as_save_IFS
  4964. fi
  4965. fi
  4966. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4967. if test -n "$ac_ct_OBJDUMP"; then
  4968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4969. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4970. else
  4971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4972. $as_echo "no" >&6; }
  4973. fi
  4974. if test "x$ac_ct_OBJDUMP" = x; then
  4975. OBJDUMP="false"
  4976. else
  4977. case $cross_compiling:$ac_tool_warned in
  4978. yes:)
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4980. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4981. ac_tool_warned=yes ;;
  4982. esac
  4983. OBJDUMP=$ac_ct_OBJDUMP
  4984. fi
  4985. else
  4986. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4987. fi
  4988. test -z "$OBJDUMP" && OBJDUMP=objdump
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4990. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4991. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4992. $as_echo_n "(cached) " >&6
  4993. else
  4994. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4995. lt_cv_file_magic_test_file=
  4996. lt_cv_deplibs_check_method='unknown'
  4997. # Need to set the preceding variable on all platforms that support
  4998. # interlibrary dependencies.
  4999. # 'none' -- dependencies not supported.
  5000. # `unknown' -- same as none, but documents that we really don't know.
  5001. # 'pass_all' -- all dependencies passed with no checks.
  5002. # 'test_compile' -- check by making test program.
  5003. # 'file_magic [[regex]]' -- check by looking for files in library path
  5004. # which responds to the $file_magic_cmd with a given extended regex.
  5005. # If you have `file' or equivalent on your system and you're not sure
  5006. # whether `pass_all' will *always* work, you probably want this one.
  5007. case $host_os in
  5008. aix[4-9]*)
  5009. lt_cv_deplibs_check_method=pass_all
  5010. ;;
  5011. beos*)
  5012. lt_cv_deplibs_check_method=pass_all
  5013. ;;
  5014. bsdi[45]*)
  5015. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5016. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5017. lt_cv_file_magic_test_file=/shlib/libc.so
  5018. ;;
  5019. cygwin*)
  5020. # func_win32_libid is a shell function defined in ltmain.sh
  5021. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5022. lt_cv_file_magic_cmd='func_win32_libid'
  5023. ;;
  5024. mingw* | pw32*)
  5025. # Base MSYS/MinGW do not provide the 'file' command needed by
  5026. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5027. # unless we find 'file', for example because we are cross-compiling.
  5028. if ( file / ) >/dev/null 2>&1; then
  5029. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5030. lt_cv_file_magic_cmd='func_win32_libid'
  5031. else
  5032. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5033. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5034. fi
  5035. ;;
  5036. cegcc)
  5037. # use the weaker test based on 'objdump'. See mingw*.
  5038. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5039. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5040. ;;
  5041. darwin* | rhapsody*)
  5042. lt_cv_deplibs_check_method=pass_all
  5043. ;;
  5044. freebsd* | dragonfly*)
  5045. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5046. case $host_cpu in
  5047. i*86 )
  5048. # Not sure whether the presence of OpenBSD here was a mistake.
  5049. # Let's accept both of them until this is cleared up.
  5050. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5051. lt_cv_file_magic_cmd=/usr/bin/file
  5052. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5053. ;;
  5054. esac
  5055. else
  5056. lt_cv_deplibs_check_method=pass_all
  5057. fi
  5058. ;;
  5059. gnu*)
  5060. lt_cv_deplibs_check_method=pass_all
  5061. ;;
  5062. hpux10.20* | hpux11*)
  5063. lt_cv_file_magic_cmd=/usr/bin/file
  5064. case $host_cpu in
  5065. ia64*)
  5066. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5067. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5068. ;;
  5069. hppa*64*)
  5070. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  5071. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5072. ;;
  5073. *)
  5074. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5075. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5076. ;;
  5077. esac
  5078. ;;
  5079. interix[3-9]*)
  5080. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5081. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5082. ;;
  5083. irix5* | irix6* | nonstopux*)
  5084. case $LD in
  5085. *-32|*"-32 ") libmagic=32-bit;;
  5086. *-n32|*"-n32 ") libmagic=N32;;
  5087. *-64|*"-64 ") libmagic=64-bit;;
  5088. *) libmagic=never-match;;
  5089. esac
  5090. lt_cv_deplibs_check_method=pass_all
  5091. ;;
  5092. # This must be Linux ELF.
  5093. linux* | k*bsd*-gnu)
  5094. lt_cv_deplibs_check_method=pass_all
  5095. ;;
  5096. netbsd* | netbsdelf*-gnu)
  5097. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5098. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5099. else
  5100. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5101. fi
  5102. ;;
  5103. newos6*)
  5104. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5105. lt_cv_file_magic_cmd=/usr/bin/file
  5106. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5107. ;;
  5108. *nto* | *qnx*)
  5109. lt_cv_deplibs_check_method=pass_all
  5110. ;;
  5111. openbsd*)
  5112. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5113. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5114. else
  5115. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5116. fi
  5117. ;;
  5118. osf3* | osf4* | osf5*)
  5119. lt_cv_deplibs_check_method=pass_all
  5120. ;;
  5121. rdos*)
  5122. lt_cv_deplibs_check_method=pass_all
  5123. ;;
  5124. solaris*)
  5125. lt_cv_deplibs_check_method=pass_all
  5126. ;;
  5127. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5128. lt_cv_deplibs_check_method=pass_all
  5129. ;;
  5130. sysv4 | sysv4.3*)
  5131. case $host_vendor in
  5132. motorola)
  5133. 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]'
  5134. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5135. ;;
  5136. ncr)
  5137. lt_cv_deplibs_check_method=pass_all
  5138. ;;
  5139. sequent)
  5140. lt_cv_file_magic_cmd='/bin/file'
  5141. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5142. ;;
  5143. sni)
  5144. lt_cv_file_magic_cmd='/bin/file'
  5145. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5146. lt_cv_file_magic_test_file=/lib/libc.so
  5147. ;;
  5148. siemens)
  5149. lt_cv_deplibs_check_method=pass_all
  5150. ;;
  5151. pc)
  5152. lt_cv_deplibs_check_method=pass_all
  5153. ;;
  5154. esac
  5155. ;;
  5156. tpf*)
  5157. lt_cv_deplibs_check_method=pass_all
  5158. ;;
  5159. esac
  5160. fi
  5161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5162. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5163. file_magic_cmd=$lt_cv_file_magic_cmd
  5164. deplibs_check_method=$lt_cv_deplibs_check_method
  5165. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5166. if test -n "$ac_tool_prefix"; then
  5167. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5168. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5170. $as_echo_n "checking for $ac_word... " >&6; }
  5171. if test "${ac_cv_prog_AR+set}" = set; then :
  5172. $as_echo_n "(cached) " >&6
  5173. else
  5174. if test -n "$AR"; then
  5175. ac_cv_prog_AR="$AR" # Let the user override the test.
  5176. else
  5177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5178. for as_dir in $PATH
  5179. do
  5180. IFS=$as_save_IFS
  5181. test -z "$as_dir" && as_dir=.
  5182. for ac_exec_ext in '' $ac_executable_extensions; do
  5183. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5184. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5185. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5186. break 2
  5187. fi
  5188. done
  5189. done
  5190. IFS=$as_save_IFS
  5191. fi
  5192. fi
  5193. AR=$ac_cv_prog_AR
  5194. if test -n "$AR"; then
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5196. $as_echo "$AR" >&6; }
  5197. else
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5199. $as_echo "no" >&6; }
  5200. fi
  5201. fi
  5202. if test -z "$ac_cv_prog_AR"; then
  5203. ac_ct_AR=$AR
  5204. # Extract the first word of "ar", so it can be a program name with args.
  5205. set dummy ar; ac_word=$2
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5207. $as_echo_n "checking for $ac_word... " >&6; }
  5208. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5209. $as_echo_n "(cached) " >&6
  5210. else
  5211. if test -n "$ac_ct_AR"; then
  5212. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5213. else
  5214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5215. for as_dir in $PATH
  5216. do
  5217. IFS=$as_save_IFS
  5218. test -z "$as_dir" && as_dir=.
  5219. for ac_exec_ext in '' $ac_executable_extensions; do
  5220. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5221. ac_cv_prog_ac_ct_AR="ar"
  5222. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5223. break 2
  5224. fi
  5225. done
  5226. done
  5227. IFS=$as_save_IFS
  5228. fi
  5229. fi
  5230. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5231. if test -n "$ac_ct_AR"; then
  5232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5233. $as_echo "$ac_ct_AR" >&6; }
  5234. else
  5235. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5236. $as_echo "no" >&6; }
  5237. fi
  5238. if test "x$ac_ct_AR" = x; then
  5239. AR="false"
  5240. else
  5241. case $cross_compiling:$ac_tool_warned in
  5242. yes:)
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5244. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5245. ac_tool_warned=yes ;;
  5246. esac
  5247. AR=$ac_ct_AR
  5248. fi
  5249. else
  5250. AR="$ac_cv_prog_AR"
  5251. fi
  5252. test -z "$AR" && AR=ar
  5253. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5254. if test -n "$ac_tool_prefix"; then
  5255. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5256. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5258. $as_echo_n "checking for $ac_word... " >&6; }
  5259. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5260. $as_echo_n "(cached) " >&6
  5261. else
  5262. if test -n "$STRIP"; then
  5263. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5264. else
  5265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5266. for as_dir in $PATH
  5267. do
  5268. IFS=$as_save_IFS
  5269. test -z "$as_dir" && as_dir=.
  5270. for ac_exec_ext in '' $ac_executable_extensions; do
  5271. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5272. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5273. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5274. break 2
  5275. fi
  5276. done
  5277. done
  5278. IFS=$as_save_IFS
  5279. fi
  5280. fi
  5281. STRIP=$ac_cv_prog_STRIP
  5282. if test -n "$STRIP"; then
  5283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5284. $as_echo "$STRIP" >&6; }
  5285. else
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5287. $as_echo "no" >&6; }
  5288. fi
  5289. fi
  5290. if test -z "$ac_cv_prog_STRIP"; then
  5291. ac_ct_STRIP=$STRIP
  5292. # Extract the first word of "strip", so it can be a program name with args.
  5293. set dummy strip; ac_word=$2
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5295. $as_echo_n "checking for $ac_word... " >&6; }
  5296. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5297. $as_echo_n "(cached) " >&6
  5298. else
  5299. if test -n "$ac_ct_STRIP"; then
  5300. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5301. else
  5302. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5303. for as_dir in $PATH
  5304. do
  5305. IFS=$as_save_IFS
  5306. test -z "$as_dir" && as_dir=.
  5307. for ac_exec_ext in '' $ac_executable_extensions; do
  5308. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5309. ac_cv_prog_ac_ct_STRIP="strip"
  5310. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5311. break 2
  5312. fi
  5313. done
  5314. done
  5315. IFS=$as_save_IFS
  5316. fi
  5317. fi
  5318. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5319. if test -n "$ac_ct_STRIP"; then
  5320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5321. $as_echo "$ac_ct_STRIP" >&6; }
  5322. else
  5323. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5324. $as_echo "no" >&6; }
  5325. fi
  5326. if test "x$ac_ct_STRIP" = x; then
  5327. STRIP=":"
  5328. else
  5329. case $cross_compiling:$ac_tool_warned in
  5330. yes:)
  5331. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5332. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5333. ac_tool_warned=yes ;;
  5334. esac
  5335. STRIP=$ac_ct_STRIP
  5336. fi
  5337. else
  5338. STRIP="$ac_cv_prog_STRIP"
  5339. fi
  5340. test -z "$STRIP" && STRIP=:
  5341. if test -n "$ac_tool_prefix"; then
  5342. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5343. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5345. $as_echo_n "checking for $ac_word... " >&6; }
  5346. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5347. $as_echo_n "(cached) " >&6
  5348. else
  5349. if test -n "$RANLIB"; then
  5350. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5351. else
  5352. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5353. for as_dir in $PATH
  5354. do
  5355. IFS=$as_save_IFS
  5356. test -z "$as_dir" && as_dir=.
  5357. for ac_exec_ext in '' $ac_executable_extensions; do
  5358. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5359. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5360. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5361. break 2
  5362. fi
  5363. done
  5364. done
  5365. IFS=$as_save_IFS
  5366. fi
  5367. fi
  5368. RANLIB=$ac_cv_prog_RANLIB
  5369. if test -n "$RANLIB"; then
  5370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5371. $as_echo "$RANLIB" >&6; }
  5372. else
  5373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5374. $as_echo "no" >&6; }
  5375. fi
  5376. fi
  5377. if test -z "$ac_cv_prog_RANLIB"; then
  5378. ac_ct_RANLIB=$RANLIB
  5379. # Extract the first word of "ranlib", so it can be a program name with args.
  5380. set dummy ranlib; ac_word=$2
  5381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5382. $as_echo_n "checking for $ac_word... " >&6; }
  5383. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5384. $as_echo_n "(cached) " >&6
  5385. else
  5386. if test -n "$ac_ct_RANLIB"; then
  5387. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5388. else
  5389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5390. for as_dir in $PATH
  5391. do
  5392. IFS=$as_save_IFS
  5393. test -z "$as_dir" && as_dir=.
  5394. for ac_exec_ext in '' $ac_executable_extensions; do
  5395. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5396. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5397. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5398. break 2
  5399. fi
  5400. done
  5401. done
  5402. IFS=$as_save_IFS
  5403. fi
  5404. fi
  5405. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5406. if test -n "$ac_ct_RANLIB"; then
  5407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5408. $as_echo "$ac_ct_RANLIB" >&6; }
  5409. else
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5411. $as_echo "no" >&6; }
  5412. fi
  5413. if test "x$ac_ct_RANLIB" = x; then
  5414. RANLIB=":"
  5415. else
  5416. case $cross_compiling:$ac_tool_warned in
  5417. yes:)
  5418. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5419. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5420. ac_tool_warned=yes ;;
  5421. esac
  5422. RANLIB=$ac_ct_RANLIB
  5423. fi
  5424. else
  5425. RANLIB="$ac_cv_prog_RANLIB"
  5426. fi
  5427. test -z "$RANLIB" && RANLIB=:
  5428. # Determine commands to create old-style static archives.
  5429. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5430. old_postinstall_cmds='chmod 644 $oldlib'
  5431. old_postuninstall_cmds=
  5432. if test -n "$RANLIB"; then
  5433. case $host_os in
  5434. openbsd*)
  5435. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5436. ;;
  5437. *)
  5438. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5439. ;;
  5440. esac
  5441. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5442. fi
  5443. # If no C compiler was specified, use CC.
  5444. LTCC=${LTCC-"$CC"}
  5445. # If no C compiler flags were specified, use CFLAGS.
  5446. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5447. # Allow CC to be a program name with arguments.
  5448. compiler=$CC
  5449. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5450. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5451. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5452. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5453. $as_echo_n "(cached) " >&6
  5454. else
  5455. # These are sane defaults that work on at least a few old systems.
  5456. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5457. # Character class describing NM global symbol codes.
  5458. symcode='[BCDEGRST]'
  5459. # Regexp to match symbols that can be accessed directly from C.
  5460. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5461. # Define system-specific variables.
  5462. case $host_os in
  5463. aix*)
  5464. symcode='[BCDT]'
  5465. ;;
  5466. cygwin* | mingw* | pw32* | cegcc*)
  5467. symcode='[ABCDGISTW]'
  5468. ;;
  5469. hpux*)
  5470. if test "$host_cpu" = ia64; then
  5471. symcode='[ABCDEGRST]'
  5472. fi
  5473. ;;
  5474. irix* | nonstopux*)
  5475. symcode='[BCDEGRST]'
  5476. ;;
  5477. osf*)
  5478. symcode='[BCDEGQRST]'
  5479. ;;
  5480. solaris*)
  5481. symcode='[BDRT]'
  5482. ;;
  5483. sco3.2v5*)
  5484. symcode='[DT]'
  5485. ;;
  5486. sysv4.2uw2*)
  5487. symcode='[DT]'
  5488. ;;
  5489. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5490. symcode='[ABDT]'
  5491. ;;
  5492. sysv4)
  5493. symcode='[DFNSTU]'
  5494. ;;
  5495. esac
  5496. # If we're using GNU nm, then use its standard symbol codes.
  5497. case `$NM -V 2>&1` in
  5498. *GNU* | *'with BFD'*)
  5499. symcode='[ABCDGIRSTW]' ;;
  5500. esac
  5501. # Transform an extracted symbol line into a proper C declaration.
  5502. # Some systems (esp. on ia64) link data and code symbols differently,
  5503. # so use this general approach.
  5504. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5505. # Transform an extracted symbol line into symbol name and symbol address
  5506. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5507. 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'"
  5508. # Handle CRLF in mingw tool chain
  5509. opt_cr=
  5510. case $build_os in
  5511. mingw*)
  5512. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5513. ;;
  5514. esac
  5515. # Try without a prefix underscore, then with it.
  5516. for ac_symprfx in "" "_"; do
  5517. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5518. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5519. # Write the raw and C identifiers.
  5520. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5521. # Fake it for dumpbin and say T for any non-static function
  5522. # and D for any global variable.
  5523. # Also find C++ and __fastcall symbols from MSVC++,
  5524. # which start with @ or ?.
  5525. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5526. " {last_section=section; section=\$ 3};"\
  5527. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5528. " \$ 0!~/External *\|/{next};"\
  5529. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5530. " {if(hide[section]) next};"\
  5531. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5532. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5533. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5534. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5535. " ' prfx=^$ac_symprfx"
  5536. else
  5537. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5538. fi
  5539. # Check to see that the pipe works correctly.
  5540. pipe_works=no
  5541. rm -f conftest*
  5542. cat > conftest.$ac_ext <<_LT_EOF
  5543. #ifdef __cplusplus
  5544. extern "C" {
  5545. #endif
  5546. char nm_test_var;
  5547. void nm_test_func(void);
  5548. void nm_test_func(void){}
  5549. #ifdef __cplusplus
  5550. }
  5551. #endif
  5552. int main(){nm_test_var='a';nm_test_func();return(0);}
  5553. _LT_EOF
  5554. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5555. (eval $ac_compile) 2>&5
  5556. ac_status=$?
  5557. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5558. test $ac_status = 0; }; then
  5559. # Now try to grab the symbols.
  5560. nlist=conftest.nm
  5561. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5562. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5563. ac_status=$?
  5564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5565. test $ac_status = 0; } && test -s "$nlist"; then
  5566. # Try sorting and uniquifying the output.
  5567. if sort "$nlist" | uniq > "$nlist"T; then
  5568. mv -f "$nlist"T "$nlist"
  5569. else
  5570. rm -f "$nlist"T
  5571. fi
  5572. # Make sure that we snagged all the symbols we need.
  5573. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5574. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5575. cat <<_LT_EOF > conftest.$ac_ext
  5576. #ifdef __cplusplus
  5577. extern "C" {
  5578. #endif
  5579. _LT_EOF
  5580. # Now generate the symbol file.
  5581. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5582. cat <<_LT_EOF >> conftest.$ac_ext
  5583. /* The mapping between symbol names and symbols. */
  5584. const struct {
  5585. const char *name;
  5586. void *address;
  5587. }
  5588. lt__PROGRAM__LTX_preloaded_symbols[] =
  5589. {
  5590. { "@PROGRAM@", (void *) 0 },
  5591. _LT_EOF
  5592. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5593. cat <<\_LT_EOF >> conftest.$ac_ext
  5594. {0, (void *) 0}
  5595. };
  5596. /* This works around a problem in FreeBSD linker */
  5597. #ifdef FREEBSD_WORKAROUND
  5598. static const void *lt_preloaded_setup() {
  5599. return lt__PROGRAM__LTX_preloaded_symbols;
  5600. }
  5601. #endif
  5602. #ifdef __cplusplus
  5603. }
  5604. #endif
  5605. _LT_EOF
  5606. # Now try linking the two files.
  5607. mv conftest.$ac_objext conftstm.$ac_objext
  5608. lt_save_LIBS="$LIBS"
  5609. lt_save_CFLAGS="$CFLAGS"
  5610. LIBS="conftstm.$ac_objext"
  5611. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5612. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5613. (eval $ac_link) 2>&5
  5614. ac_status=$?
  5615. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5616. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5617. pipe_works=yes
  5618. fi
  5619. LIBS="$lt_save_LIBS"
  5620. CFLAGS="$lt_save_CFLAGS"
  5621. else
  5622. echo "cannot find nm_test_func in $nlist" >&5
  5623. fi
  5624. else
  5625. echo "cannot find nm_test_var in $nlist" >&5
  5626. fi
  5627. else
  5628. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5629. fi
  5630. else
  5631. echo "$progname: failed program was:" >&5
  5632. cat conftest.$ac_ext >&5
  5633. fi
  5634. rm -rf conftest* conftst*
  5635. # Do not use the global_symbol_pipe unless it works.
  5636. if test "$pipe_works" = yes; then
  5637. break
  5638. else
  5639. lt_cv_sys_global_symbol_pipe=
  5640. fi
  5641. done
  5642. fi
  5643. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5644. lt_cv_sys_global_symbol_to_cdecl=
  5645. fi
  5646. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5648. $as_echo "failed" >&6; }
  5649. else
  5650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5651. $as_echo "ok" >&6; }
  5652. fi
  5653. # Check whether --enable-libtool-lock was given.
  5654. if test "${enable_libtool_lock+set}" = set; then :
  5655. enableval=$enable_libtool_lock;
  5656. fi
  5657. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5658. # Some flags need to be propagated to the compiler or linker for good
  5659. # libtool support.
  5660. case $host in
  5661. ia64-*-hpux*)
  5662. # Find out which ABI we are using.
  5663. echo 'int i;' > conftest.$ac_ext
  5664. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5665. (eval $ac_compile) 2>&5
  5666. ac_status=$?
  5667. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5668. test $ac_status = 0; }; then
  5669. case `/usr/bin/file conftest.$ac_objext` in
  5670. *ELF-32*)
  5671. HPUX_IA64_MODE="32"
  5672. ;;
  5673. *ELF-64*)
  5674. HPUX_IA64_MODE="64"
  5675. ;;
  5676. esac
  5677. fi
  5678. rm -rf conftest*
  5679. ;;
  5680. *-*-irix6*)
  5681. # Find out which ABI we are using.
  5682. echo '#line 6421 "configure"' > conftest.$ac_ext
  5683. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5684. (eval $ac_compile) 2>&5
  5685. ac_status=$?
  5686. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5687. test $ac_status = 0; }; then
  5688. if test "$lt_cv_prog_gnu_ld" = yes; then
  5689. case `/usr/bin/file conftest.$ac_objext` in
  5690. *32-bit*)
  5691. LD="${LD-ld} -melf32bsmip"
  5692. ;;
  5693. *N32*)
  5694. LD="${LD-ld} -melf32bmipn32"
  5695. ;;
  5696. *64-bit*)
  5697. LD="${LD-ld} -melf64bmip"
  5698. ;;
  5699. esac
  5700. else
  5701. case `/usr/bin/file conftest.$ac_objext` in
  5702. *32-bit*)
  5703. LD="${LD-ld} -32"
  5704. ;;
  5705. *N32*)
  5706. LD="${LD-ld} -n32"
  5707. ;;
  5708. *64-bit*)
  5709. LD="${LD-ld} -64"
  5710. ;;
  5711. esac
  5712. fi
  5713. fi
  5714. rm -rf conftest*
  5715. ;;
  5716. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5717. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5718. # Find out which ABI we are using.
  5719. echo 'int i;' > conftest.$ac_ext
  5720. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5721. (eval $ac_compile) 2>&5
  5722. ac_status=$?
  5723. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5724. test $ac_status = 0; }; then
  5725. case `/usr/bin/file conftest.o` in
  5726. *32-bit*)
  5727. case $host in
  5728. x86_64-*kfreebsd*-gnu)
  5729. LD="${LD-ld} -m elf_i386_fbsd"
  5730. ;;
  5731. x86_64-*linux*)
  5732. LD="${LD-ld} -m elf_i386"
  5733. ;;
  5734. ppc64-*linux*|powerpc64-*linux*)
  5735. LD="${LD-ld} -m elf32ppclinux"
  5736. ;;
  5737. s390x-*linux*)
  5738. LD="${LD-ld} -m elf_s390"
  5739. ;;
  5740. sparc64-*linux*)
  5741. LD="${LD-ld} -m elf32_sparc"
  5742. ;;
  5743. esac
  5744. ;;
  5745. *64-bit*)
  5746. case $host in
  5747. x86_64-*kfreebsd*-gnu)
  5748. LD="${LD-ld} -m elf_x86_64_fbsd"
  5749. ;;
  5750. x86_64-*linux*)
  5751. LD="${LD-ld} -m elf_x86_64"
  5752. ;;
  5753. ppc*-*linux*|powerpc*-*linux*)
  5754. LD="${LD-ld} -m elf64ppc"
  5755. ;;
  5756. s390*-*linux*|s390*-*tpf*)
  5757. LD="${LD-ld} -m elf64_s390"
  5758. ;;
  5759. sparc*-*linux*)
  5760. LD="${LD-ld} -m elf64_sparc"
  5761. ;;
  5762. esac
  5763. ;;
  5764. esac
  5765. fi
  5766. rm -rf conftest*
  5767. ;;
  5768. *-*-sco3.2v5*)
  5769. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5770. SAVE_CFLAGS="$CFLAGS"
  5771. CFLAGS="$CFLAGS -belf"
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5773. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5774. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5775. $as_echo_n "(cached) " >&6
  5776. else
  5777. ac_ext=c
  5778. ac_cpp='$CPP $CPPFLAGS'
  5779. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5780. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5781. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5783. /* end confdefs.h. */
  5784. int
  5785. main ()
  5786. {
  5787. ;
  5788. return 0;
  5789. }
  5790. _ACEOF
  5791. if ac_fn_c_try_link "$LINENO"; then :
  5792. lt_cv_cc_needs_belf=yes
  5793. else
  5794. lt_cv_cc_needs_belf=no
  5795. fi
  5796. rm -f core conftest.err conftest.$ac_objext \
  5797. conftest$ac_exeext conftest.$ac_ext
  5798. ac_ext=c
  5799. ac_cpp='$CPP $CPPFLAGS'
  5800. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5801. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5802. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5803. fi
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5805. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5806. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5807. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5808. CFLAGS="$SAVE_CFLAGS"
  5809. fi
  5810. ;;
  5811. sparc*-*solaris*)
  5812. # Find out which ABI we are using.
  5813. echo 'int i;' > conftest.$ac_ext
  5814. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5815. (eval $ac_compile) 2>&5
  5816. ac_status=$?
  5817. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5818. test $ac_status = 0; }; then
  5819. case `/usr/bin/file conftest.o` in
  5820. *64-bit*)
  5821. case $lt_cv_prog_gnu_ld in
  5822. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5823. *)
  5824. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5825. LD="${LD-ld} -64"
  5826. fi
  5827. ;;
  5828. esac
  5829. ;;
  5830. esac
  5831. fi
  5832. rm -rf conftest*
  5833. ;;
  5834. esac
  5835. need_locks="$enable_libtool_lock"
  5836. case $host_os in
  5837. rhapsody* | darwin*)
  5838. if test -n "$ac_tool_prefix"; then
  5839. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5840. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5841. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5842. $as_echo_n "checking for $ac_word... " >&6; }
  5843. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5844. $as_echo_n "(cached) " >&6
  5845. else
  5846. if test -n "$DSYMUTIL"; then
  5847. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5848. else
  5849. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5850. for as_dir in $PATH
  5851. do
  5852. IFS=$as_save_IFS
  5853. test -z "$as_dir" && as_dir=.
  5854. for ac_exec_ext in '' $ac_executable_extensions; do
  5855. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5856. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5857. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5858. break 2
  5859. fi
  5860. done
  5861. done
  5862. IFS=$as_save_IFS
  5863. fi
  5864. fi
  5865. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5866. if test -n "$DSYMUTIL"; then
  5867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5868. $as_echo "$DSYMUTIL" >&6; }
  5869. else
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5871. $as_echo "no" >&6; }
  5872. fi
  5873. fi
  5874. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5875. ac_ct_DSYMUTIL=$DSYMUTIL
  5876. # Extract the first word of "dsymutil", so it can be a program name with args.
  5877. set dummy dsymutil; ac_word=$2
  5878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5879. $as_echo_n "checking for $ac_word... " >&6; }
  5880. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5881. $as_echo_n "(cached) " >&6
  5882. else
  5883. if test -n "$ac_ct_DSYMUTIL"; then
  5884. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5885. else
  5886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5887. for as_dir in $PATH
  5888. do
  5889. IFS=$as_save_IFS
  5890. test -z "$as_dir" && as_dir=.
  5891. for ac_exec_ext in '' $ac_executable_extensions; do
  5892. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5893. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5895. break 2
  5896. fi
  5897. done
  5898. done
  5899. IFS=$as_save_IFS
  5900. fi
  5901. fi
  5902. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5903. if test -n "$ac_ct_DSYMUTIL"; then
  5904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5905. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5906. else
  5907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5908. $as_echo "no" >&6; }
  5909. fi
  5910. if test "x$ac_ct_DSYMUTIL" = x; then
  5911. DSYMUTIL=":"
  5912. else
  5913. case $cross_compiling:$ac_tool_warned in
  5914. yes:)
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5916. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5917. ac_tool_warned=yes ;;
  5918. esac
  5919. DSYMUTIL=$ac_ct_DSYMUTIL
  5920. fi
  5921. else
  5922. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5923. fi
  5924. if test -n "$ac_tool_prefix"; then
  5925. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5926. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5928. $as_echo_n "checking for $ac_word... " >&6; }
  5929. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5930. $as_echo_n "(cached) " >&6
  5931. else
  5932. if test -n "$NMEDIT"; then
  5933. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5934. else
  5935. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5936. for as_dir in $PATH
  5937. do
  5938. IFS=$as_save_IFS
  5939. test -z "$as_dir" && as_dir=.
  5940. for ac_exec_ext in '' $ac_executable_extensions; do
  5941. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5942. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5943. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5944. break 2
  5945. fi
  5946. done
  5947. done
  5948. IFS=$as_save_IFS
  5949. fi
  5950. fi
  5951. NMEDIT=$ac_cv_prog_NMEDIT
  5952. if test -n "$NMEDIT"; then
  5953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5954. $as_echo "$NMEDIT" >&6; }
  5955. else
  5956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5957. $as_echo "no" >&6; }
  5958. fi
  5959. fi
  5960. if test -z "$ac_cv_prog_NMEDIT"; then
  5961. ac_ct_NMEDIT=$NMEDIT
  5962. # Extract the first word of "nmedit", so it can be a program name with args.
  5963. set dummy nmedit; ac_word=$2
  5964. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5965. $as_echo_n "checking for $ac_word... " >&6; }
  5966. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5967. $as_echo_n "(cached) " >&6
  5968. else
  5969. if test -n "$ac_ct_NMEDIT"; then
  5970. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5971. else
  5972. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5973. for as_dir in $PATH
  5974. do
  5975. IFS=$as_save_IFS
  5976. test -z "$as_dir" && as_dir=.
  5977. for ac_exec_ext in '' $ac_executable_extensions; do
  5978. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5979. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5980. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5981. break 2
  5982. fi
  5983. done
  5984. done
  5985. IFS=$as_save_IFS
  5986. fi
  5987. fi
  5988. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5989. if test -n "$ac_ct_NMEDIT"; then
  5990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5991. $as_echo "$ac_ct_NMEDIT" >&6; }
  5992. else
  5993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5994. $as_echo "no" >&6; }
  5995. fi
  5996. if test "x$ac_ct_NMEDIT" = x; then
  5997. NMEDIT=":"
  5998. else
  5999. case $cross_compiling:$ac_tool_warned in
  6000. yes:)
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6002. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6003. ac_tool_warned=yes ;;
  6004. esac
  6005. NMEDIT=$ac_ct_NMEDIT
  6006. fi
  6007. else
  6008. NMEDIT="$ac_cv_prog_NMEDIT"
  6009. fi
  6010. if test -n "$ac_tool_prefix"; then
  6011. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6012. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6014. $as_echo_n "checking for $ac_word... " >&6; }
  6015. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6016. $as_echo_n "(cached) " >&6
  6017. else
  6018. if test -n "$LIPO"; then
  6019. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6020. else
  6021. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6022. for as_dir in $PATH
  6023. do
  6024. IFS=$as_save_IFS
  6025. test -z "$as_dir" && as_dir=.
  6026. for ac_exec_ext in '' $ac_executable_extensions; do
  6027. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6028. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6029. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6030. break 2
  6031. fi
  6032. done
  6033. done
  6034. IFS=$as_save_IFS
  6035. fi
  6036. fi
  6037. LIPO=$ac_cv_prog_LIPO
  6038. if test -n "$LIPO"; then
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6040. $as_echo "$LIPO" >&6; }
  6041. else
  6042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6043. $as_echo "no" >&6; }
  6044. fi
  6045. fi
  6046. if test -z "$ac_cv_prog_LIPO"; then
  6047. ac_ct_LIPO=$LIPO
  6048. # Extract the first word of "lipo", so it can be a program name with args.
  6049. set dummy lipo; ac_word=$2
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6051. $as_echo_n "checking for $ac_word... " >&6; }
  6052. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6053. $as_echo_n "(cached) " >&6
  6054. else
  6055. if test -n "$ac_ct_LIPO"; then
  6056. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6057. else
  6058. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6059. for as_dir in $PATH
  6060. do
  6061. IFS=$as_save_IFS
  6062. test -z "$as_dir" && as_dir=.
  6063. for ac_exec_ext in '' $ac_executable_extensions; do
  6064. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6065. ac_cv_prog_ac_ct_LIPO="lipo"
  6066. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6067. break 2
  6068. fi
  6069. done
  6070. done
  6071. IFS=$as_save_IFS
  6072. fi
  6073. fi
  6074. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6075. if test -n "$ac_ct_LIPO"; then
  6076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6077. $as_echo "$ac_ct_LIPO" >&6; }
  6078. else
  6079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6080. $as_echo "no" >&6; }
  6081. fi
  6082. if test "x$ac_ct_LIPO" = x; then
  6083. LIPO=":"
  6084. else
  6085. case $cross_compiling:$ac_tool_warned in
  6086. yes:)
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6088. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6089. ac_tool_warned=yes ;;
  6090. esac
  6091. LIPO=$ac_ct_LIPO
  6092. fi
  6093. else
  6094. LIPO="$ac_cv_prog_LIPO"
  6095. fi
  6096. if test -n "$ac_tool_prefix"; then
  6097. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6098. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6099. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6100. $as_echo_n "checking for $ac_word... " >&6; }
  6101. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6102. $as_echo_n "(cached) " >&6
  6103. else
  6104. if test -n "$OTOOL"; then
  6105. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6106. else
  6107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6108. for as_dir in $PATH
  6109. do
  6110. IFS=$as_save_IFS
  6111. test -z "$as_dir" && as_dir=.
  6112. for ac_exec_ext in '' $ac_executable_extensions; do
  6113. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6114. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6115. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6116. break 2
  6117. fi
  6118. done
  6119. done
  6120. IFS=$as_save_IFS
  6121. fi
  6122. fi
  6123. OTOOL=$ac_cv_prog_OTOOL
  6124. if test -n "$OTOOL"; then
  6125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6126. $as_echo "$OTOOL" >&6; }
  6127. else
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6129. $as_echo "no" >&6; }
  6130. fi
  6131. fi
  6132. if test -z "$ac_cv_prog_OTOOL"; then
  6133. ac_ct_OTOOL=$OTOOL
  6134. # Extract the first word of "otool", so it can be a program name with args.
  6135. set dummy otool; ac_word=$2
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6137. $as_echo_n "checking for $ac_word... " >&6; }
  6138. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6139. $as_echo_n "(cached) " >&6
  6140. else
  6141. if test -n "$ac_ct_OTOOL"; then
  6142. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6143. else
  6144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6145. for as_dir in $PATH
  6146. do
  6147. IFS=$as_save_IFS
  6148. test -z "$as_dir" && as_dir=.
  6149. for ac_exec_ext in '' $ac_executable_extensions; do
  6150. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6151. ac_cv_prog_ac_ct_OTOOL="otool"
  6152. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6153. break 2
  6154. fi
  6155. done
  6156. done
  6157. IFS=$as_save_IFS
  6158. fi
  6159. fi
  6160. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6161. if test -n "$ac_ct_OTOOL"; then
  6162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6163. $as_echo "$ac_ct_OTOOL" >&6; }
  6164. else
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6166. $as_echo "no" >&6; }
  6167. fi
  6168. if test "x$ac_ct_OTOOL" = x; then
  6169. OTOOL=":"
  6170. else
  6171. case $cross_compiling:$ac_tool_warned in
  6172. yes:)
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6174. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6175. ac_tool_warned=yes ;;
  6176. esac
  6177. OTOOL=$ac_ct_OTOOL
  6178. fi
  6179. else
  6180. OTOOL="$ac_cv_prog_OTOOL"
  6181. fi
  6182. if test -n "$ac_tool_prefix"; then
  6183. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6184. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6185. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6186. $as_echo_n "checking for $ac_word... " >&6; }
  6187. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6188. $as_echo_n "(cached) " >&6
  6189. else
  6190. if test -n "$OTOOL64"; then
  6191. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6192. else
  6193. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6194. for as_dir in $PATH
  6195. do
  6196. IFS=$as_save_IFS
  6197. test -z "$as_dir" && as_dir=.
  6198. for ac_exec_ext in '' $ac_executable_extensions; do
  6199. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6200. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6201. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6202. break 2
  6203. fi
  6204. done
  6205. done
  6206. IFS=$as_save_IFS
  6207. fi
  6208. fi
  6209. OTOOL64=$ac_cv_prog_OTOOL64
  6210. if test -n "$OTOOL64"; then
  6211. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6212. $as_echo "$OTOOL64" >&6; }
  6213. else
  6214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6215. $as_echo "no" >&6; }
  6216. fi
  6217. fi
  6218. if test -z "$ac_cv_prog_OTOOL64"; then
  6219. ac_ct_OTOOL64=$OTOOL64
  6220. # Extract the first word of "otool64", so it can be a program name with args.
  6221. set dummy otool64; ac_word=$2
  6222. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6223. $as_echo_n "checking for $ac_word... " >&6; }
  6224. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6225. $as_echo_n "(cached) " >&6
  6226. else
  6227. if test -n "$ac_ct_OTOOL64"; then
  6228. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6229. else
  6230. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6231. for as_dir in $PATH
  6232. do
  6233. IFS=$as_save_IFS
  6234. test -z "$as_dir" && as_dir=.
  6235. for ac_exec_ext in '' $ac_executable_extensions; do
  6236. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6237. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6238. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6239. break 2
  6240. fi
  6241. done
  6242. done
  6243. IFS=$as_save_IFS
  6244. fi
  6245. fi
  6246. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6247. if test -n "$ac_ct_OTOOL64"; then
  6248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6249. $as_echo "$ac_ct_OTOOL64" >&6; }
  6250. else
  6251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6252. $as_echo "no" >&6; }
  6253. fi
  6254. if test "x$ac_ct_OTOOL64" = x; then
  6255. OTOOL64=":"
  6256. else
  6257. case $cross_compiling:$ac_tool_warned in
  6258. yes:)
  6259. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6260. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6261. ac_tool_warned=yes ;;
  6262. esac
  6263. OTOOL64=$ac_ct_OTOOL64
  6264. fi
  6265. else
  6266. OTOOL64="$ac_cv_prog_OTOOL64"
  6267. fi
  6268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6269. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6270. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6271. $as_echo_n "(cached) " >&6
  6272. else
  6273. lt_cv_apple_cc_single_mod=no
  6274. if test -z "${LT_MULTI_MODULE}"; then
  6275. # By default we will add the -single_module flag. You can override
  6276. # by either setting the environment variable LT_MULTI_MODULE
  6277. # non-empty at configure time, or by adding -multi_module to the
  6278. # link flags.
  6279. rm -rf libconftest.dylib*
  6280. echo "int foo(void){return 1;}" > conftest.c
  6281. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6282. -dynamiclib -Wl,-single_module conftest.c" >&5
  6283. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6284. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6285. _lt_result=$?
  6286. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6287. lt_cv_apple_cc_single_mod=yes
  6288. else
  6289. cat conftest.err >&5
  6290. fi
  6291. rm -rf libconftest.dylib*
  6292. rm -f conftest.*
  6293. fi
  6294. fi
  6295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6296. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6298. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6299. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6300. $as_echo_n "(cached) " >&6
  6301. else
  6302. lt_cv_ld_exported_symbols_list=no
  6303. save_LDFLAGS=$LDFLAGS
  6304. echo "_main" > conftest.sym
  6305. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6306. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6307. /* end confdefs.h. */
  6308. int
  6309. main ()
  6310. {
  6311. ;
  6312. return 0;
  6313. }
  6314. _ACEOF
  6315. if ac_fn_c_try_link "$LINENO"; then :
  6316. lt_cv_ld_exported_symbols_list=yes
  6317. else
  6318. lt_cv_ld_exported_symbols_list=no
  6319. fi
  6320. rm -f core conftest.err conftest.$ac_objext \
  6321. conftest$ac_exeext conftest.$ac_ext
  6322. LDFLAGS="$save_LDFLAGS"
  6323. fi
  6324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6325. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6326. case $host_os in
  6327. rhapsody* | darwin1.[012])
  6328. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6329. darwin1.*)
  6330. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6331. darwin*) # darwin 5.x on
  6332. # if running on 10.5 or later, the deployment target defaults
  6333. # to the OS version, if on x86, and 10.4, the deployment
  6334. # target defaults to 10.4. Don't you love it?
  6335. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6336. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6337. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6338. 10.[012]*)
  6339. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6340. 10.*)
  6341. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6342. esac
  6343. ;;
  6344. esac
  6345. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6346. _lt_dar_single_mod='$single_module'
  6347. fi
  6348. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6349. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6350. else
  6351. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6352. fi
  6353. if test "$DSYMUTIL" != ":"; then
  6354. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6355. else
  6356. _lt_dsymutil=
  6357. fi
  6358. ;;
  6359. esac
  6360. ac_ext=c
  6361. ac_cpp='$CPP $CPPFLAGS'
  6362. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6363. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6364. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6366. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6367. # On Suns, sometimes $CPP names a directory.
  6368. if test -n "$CPP" && test -d "$CPP"; then
  6369. CPP=
  6370. fi
  6371. if test -z "$CPP"; then
  6372. if test "${ac_cv_prog_CPP+set}" = set; then :
  6373. $as_echo_n "(cached) " >&6
  6374. else
  6375. # Double quotes because CPP needs to be expanded
  6376. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6377. do
  6378. ac_preproc_ok=false
  6379. for ac_c_preproc_warn_flag in '' yes
  6380. do
  6381. # Use a header file that comes with gcc, so configuring glibc
  6382. # with a fresh cross-compiler works.
  6383. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6384. # <limits.h> exists even on freestanding compilers.
  6385. # On the NeXT, cc -E runs the code through the compiler's parser,
  6386. # not just through cpp. "Syntax error" is here to catch this case.
  6387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6388. /* end confdefs.h. */
  6389. #ifdef __STDC__
  6390. # include <limits.h>
  6391. #else
  6392. # include <assert.h>
  6393. #endif
  6394. Syntax error
  6395. _ACEOF
  6396. if ac_fn_c_try_cpp "$LINENO"; then :
  6397. else
  6398. # Broken: fails on valid input.
  6399. continue
  6400. fi
  6401. rm -f conftest.err conftest.i conftest.$ac_ext
  6402. # OK, works on sane cases. Now check whether nonexistent headers
  6403. # can be detected and how.
  6404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6405. /* end confdefs.h. */
  6406. #include <ac_nonexistent.h>
  6407. _ACEOF
  6408. if ac_fn_c_try_cpp "$LINENO"; then :
  6409. # Broken: success on invalid input.
  6410. continue
  6411. else
  6412. # Passes both tests.
  6413. ac_preproc_ok=:
  6414. break
  6415. fi
  6416. rm -f conftest.err conftest.i conftest.$ac_ext
  6417. done
  6418. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6419. rm -f conftest.i conftest.err conftest.$ac_ext
  6420. if $ac_preproc_ok; then :
  6421. break
  6422. fi
  6423. done
  6424. ac_cv_prog_CPP=$CPP
  6425. fi
  6426. CPP=$ac_cv_prog_CPP
  6427. else
  6428. ac_cv_prog_CPP=$CPP
  6429. fi
  6430. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6431. $as_echo "$CPP" >&6; }
  6432. ac_preproc_ok=false
  6433. for ac_c_preproc_warn_flag in '' yes
  6434. do
  6435. # Use a header file that comes with gcc, so configuring glibc
  6436. # with a fresh cross-compiler works.
  6437. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6438. # <limits.h> exists even on freestanding compilers.
  6439. # On the NeXT, cc -E runs the code through the compiler's parser,
  6440. # not just through cpp. "Syntax error" is here to catch this case.
  6441. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6442. /* end confdefs.h. */
  6443. #ifdef __STDC__
  6444. # include <limits.h>
  6445. #else
  6446. # include <assert.h>
  6447. #endif
  6448. Syntax error
  6449. _ACEOF
  6450. if ac_fn_c_try_cpp "$LINENO"; then :
  6451. else
  6452. # Broken: fails on valid input.
  6453. continue
  6454. fi
  6455. rm -f conftest.err conftest.i conftest.$ac_ext
  6456. # OK, works on sane cases. Now check whether nonexistent headers
  6457. # can be detected and how.
  6458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6459. /* end confdefs.h. */
  6460. #include <ac_nonexistent.h>
  6461. _ACEOF
  6462. if ac_fn_c_try_cpp "$LINENO"; then :
  6463. # Broken: success on invalid input.
  6464. continue
  6465. else
  6466. # Passes both tests.
  6467. ac_preproc_ok=:
  6468. break
  6469. fi
  6470. rm -f conftest.err conftest.i conftest.$ac_ext
  6471. done
  6472. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6473. rm -f conftest.i conftest.err conftest.$ac_ext
  6474. if $ac_preproc_ok; then :
  6475. else
  6476. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6477. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6478. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6479. See \`config.log' for more details" "$LINENO" 5 ; }
  6480. fi
  6481. ac_ext=c
  6482. ac_cpp='$CPP $CPPFLAGS'
  6483. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6484. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6485. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6487. $as_echo_n "checking for ANSI C header files... " >&6; }
  6488. if test "${ac_cv_header_stdc+set}" = set; then :
  6489. $as_echo_n "(cached) " >&6
  6490. else
  6491. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6492. /* end confdefs.h. */
  6493. #include <stdlib.h>
  6494. #include <stdarg.h>
  6495. #include <string.h>
  6496. #include <float.h>
  6497. int
  6498. main ()
  6499. {
  6500. ;
  6501. return 0;
  6502. }
  6503. _ACEOF
  6504. if ac_fn_c_try_compile "$LINENO"; then :
  6505. ac_cv_header_stdc=yes
  6506. else
  6507. ac_cv_header_stdc=no
  6508. fi
  6509. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6510. if test $ac_cv_header_stdc = yes; then
  6511. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6512. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6513. /* end confdefs.h. */
  6514. #include <string.h>
  6515. _ACEOF
  6516. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6517. $EGREP "memchr" >/dev/null 2>&1; then :
  6518. else
  6519. ac_cv_header_stdc=no
  6520. fi
  6521. rm -f conftest*
  6522. fi
  6523. if test $ac_cv_header_stdc = yes; then
  6524. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6526. /* end confdefs.h. */
  6527. #include <stdlib.h>
  6528. _ACEOF
  6529. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6530. $EGREP "free" >/dev/null 2>&1; then :
  6531. else
  6532. ac_cv_header_stdc=no
  6533. fi
  6534. rm -f conftest*
  6535. fi
  6536. if test $ac_cv_header_stdc = yes; then
  6537. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6538. if test "$cross_compiling" = yes; then :
  6539. :
  6540. else
  6541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6542. /* end confdefs.h. */
  6543. #include <ctype.h>
  6544. #include <stdlib.h>
  6545. #if ((' ' & 0x0FF) == 0x020)
  6546. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6547. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6548. #else
  6549. # define ISLOWER(c) \
  6550. (('a' <= (c) && (c) <= 'i') \
  6551. || ('j' <= (c) && (c) <= 'r') \
  6552. || ('s' <= (c) && (c) <= 'z'))
  6553. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6554. #endif
  6555. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6556. int
  6557. main ()
  6558. {
  6559. int i;
  6560. for (i = 0; i < 256; i++)
  6561. if (XOR (islower (i), ISLOWER (i))
  6562. || toupper (i) != TOUPPER (i))
  6563. return 2;
  6564. return 0;
  6565. }
  6566. _ACEOF
  6567. if ac_fn_c_try_run "$LINENO"; then :
  6568. else
  6569. ac_cv_header_stdc=no
  6570. fi
  6571. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6572. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6573. fi
  6574. fi
  6575. fi
  6576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6577. $as_echo "$ac_cv_header_stdc" >&6; }
  6578. if test $ac_cv_header_stdc = yes; then
  6579. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6580. fi
  6581. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6582. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6583. inttypes.h stdint.h unistd.h
  6584. do :
  6585. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6586. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6587. "
  6588. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6589. cat >>confdefs.h <<_ACEOF
  6590. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6591. _ACEOF
  6592. fi
  6593. done
  6594. for ac_header in dlfcn.h
  6595. do :
  6596. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6597. "
  6598. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6599. cat >>confdefs.h <<_ACEOF
  6600. #define HAVE_DLFCN_H 1
  6601. _ACEOF
  6602. fi
  6603. done
  6604. ac_ext=cpp
  6605. ac_cpp='$CXXCPP $CPPFLAGS'
  6606. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6607. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6608. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6609. if test -z "$CXX"; then
  6610. if test -n "$CCC"; then
  6611. CXX=$CCC
  6612. else
  6613. if test -n "$ac_tool_prefix"; then
  6614. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6615. do
  6616. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6617. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6619. $as_echo_n "checking for $ac_word... " >&6; }
  6620. if test "${ac_cv_prog_CXX+set}" = set; then :
  6621. $as_echo_n "(cached) " >&6
  6622. else
  6623. if test -n "$CXX"; then
  6624. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6625. else
  6626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6627. for as_dir in $PATH
  6628. do
  6629. IFS=$as_save_IFS
  6630. test -z "$as_dir" && as_dir=.
  6631. for ac_exec_ext in '' $ac_executable_extensions; do
  6632. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6633. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6634. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6635. break 2
  6636. fi
  6637. done
  6638. done
  6639. IFS=$as_save_IFS
  6640. fi
  6641. fi
  6642. CXX=$ac_cv_prog_CXX
  6643. if test -n "$CXX"; then
  6644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  6645. $as_echo "$CXX" >&6; }
  6646. else
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6648. $as_echo "no" >&6; }
  6649. fi
  6650. test -n "$CXX" && break
  6651. done
  6652. fi
  6653. if test -z "$CXX"; then
  6654. ac_ct_CXX=$CXX
  6655. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6656. do
  6657. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6658. set dummy $ac_prog; ac_word=$2
  6659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6660. $as_echo_n "checking for $ac_word... " >&6; }
  6661. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  6662. $as_echo_n "(cached) " >&6
  6663. else
  6664. if test -n "$ac_ct_CXX"; then
  6665. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6666. else
  6667. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6668. for as_dir in $PATH
  6669. do
  6670. IFS=$as_save_IFS
  6671. test -z "$as_dir" && as_dir=.
  6672. for ac_exec_ext in '' $ac_executable_extensions; do
  6673. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6674. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6675. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6676. break 2
  6677. fi
  6678. done
  6679. done
  6680. IFS=$as_save_IFS
  6681. fi
  6682. fi
  6683. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6684. if test -n "$ac_ct_CXX"; then
  6685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  6686. $as_echo "$ac_ct_CXX" >&6; }
  6687. else
  6688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6689. $as_echo "no" >&6; }
  6690. fi
  6691. test -n "$ac_ct_CXX" && break
  6692. done
  6693. if test "x$ac_ct_CXX" = x; then
  6694. CXX="g++"
  6695. else
  6696. case $cross_compiling:$ac_tool_warned in
  6697. yes:)
  6698. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6699. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6700. ac_tool_warned=yes ;;
  6701. esac
  6702. CXX=$ac_ct_CXX
  6703. fi
  6704. fi
  6705. fi
  6706. fi
  6707. # Provide some information about the compiler.
  6708. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  6709. set X $ac_compile
  6710. ac_compiler=$2
  6711. for ac_option in --version -v -V -qversion; do
  6712. { { ac_try="$ac_compiler $ac_option >&5"
  6713. case "(($ac_try" in
  6714. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6715. *) ac_try_echo=$ac_try;;
  6716. esac
  6717. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6718. $as_echo "$ac_try_echo"; } >&5
  6719. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6720. ac_status=$?
  6721. if test -s conftest.err; then
  6722. sed '10a\
  6723. ... rest of stderr output deleted ...
  6724. 10q' conftest.err >conftest.er1
  6725. cat conftest.er1 >&5
  6726. fi
  6727. rm -f conftest.er1 conftest.err
  6728. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6729. test $ac_status = 0; }
  6730. done
  6731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  6732. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6733. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  6734. $as_echo_n "(cached) " >&6
  6735. else
  6736. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6737. /* end confdefs.h. */
  6738. int
  6739. main ()
  6740. {
  6741. #ifndef __GNUC__
  6742. choke me
  6743. #endif
  6744. ;
  6745. return 0;
  6746. }
  6747. _ACEOF
  6748. if ac_fn_cxx_try_compile "$LINENO"; then :
  6749. ac_compiler_gnu=yes
  6750. else
  6751. ac_compiler_gnu=no
  6752. fi
  6753. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6754. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6755. fi
  6756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  6757. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6758. if test $ac_compiler_gnu = yes; then
  6759. GXX=yes
  6760. else
  6761. GXX=
  6762. fi
  6763. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6764. ac_save_CXXFLAGS=$CXXFLAGS
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  6766. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6767. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  6768. $as_echo_n "(cached) " >&6
  6769. else
  6770. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6771. ac_cxx_werror_flag=yes
  6772. ac_cv_prog_cxx_g=no
  6773. CXXFLAGS="-g"
  6774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6775. /* end confdefs.h. */
  6776. int
  6777. main ()
  6778. {
  6779. ;
  6780. return 0;
  6781. }
  6782. _ACEOF
  6783. if ac_fn_cxx_try_compile "$LINENO"; then :
  6784. ac_cv_prog_cxx_g=yes
  6785. else
  6786. CXXFLAGS=""
  6787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6788. /* end confdefs.h. */
  6789. int
  6790. main ()
  6791. {
  6792. ;
  6793. return 0;
  6794. }
  6795. _ACEOF
  6796. if ac_fn_cxx_try_compile "$LINENO"; then :
  6797. else
  6798. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6799. CXXFLAGS="-g"
  6800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6801. /* end confdefs.h. */
  6802. int
  6803. main ()
  6804. {
  6805. ;
  6806. return 0;
  6807. }
  6808. _ACEOF
  6809. if ac_fn_cxx_try_compile "$LINENO"; then :
  6810. ac_cv_prog_cxx_g=yes
  6811. fi
  6812. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6813. fi
  6814. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6815. fi
  6816. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6817. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6818. fi
  6819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  6820. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6821. if test "$ac_test_CXXFLAGS" = set; then
  6822. CXXFLAGS=$ac_save_CXXFLAGS
  6823. elif test $ac_cv_prog_cxx_g = yes; then
  6824. if test "$GXX" = yes; then
  6825. CXXFLAGS="-g -O2"
  6826. else
  6827. CXXFLAGS="-g"
  6828. fi
  6829. else
  6830. if test "$GXX" = yes; then
  6831. CXXFLAGS="-O2"
  6832. else
  6833. CXXFLAGS=
  6834. fi
  6835. fi
  6836. ac_ext=cpp
  6837. ac_cpp='$CXXCPP $CPPFLAGS'
  6838. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6839. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6840. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6841. depcc="$CXX" am_compiler_list=
  6842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6843. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6844. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  6845. $as_echo_n "(cached) " >&6
  6846. else
  6847. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6848. # We make a subdir and do the tests there. Otherwise we can end up
  6849. # making bogus files that we don't know about and never remove. For
  6850. # instance it was reported that on HP-UX the gcc test will end up
  6851. # making a dummy file named `D' -- because `-MD' means `put the output
  6852. # in D'.
  6853. mkdir conftest.dir
  6854. # Copy depcomp to subdir because otherwise we won't find it if we're
  6855. # using a relative directory.
  6856. cp "$am_depcomp" conftest.dir
  6857. cd conftest.dir
  6858. # We will build objects and dependencies in a subdirectory because
  6859. # it helps to detect inapplicable dependency modes. For instance
  6860. # both Tru64's cc and ICC support -MD to output dependencies as a
  6861. # side effect of compilation, but ICC will put the dependencies in
  6862. # the current directory while Tru64 will put them in the object
  6863. # directory.
  6864. mkdir sub
  6865. am_cv_CXX_dependencies_compiler_type=none
  6866. if test "$am_compiler_list" = ""; then
  6867. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6868. fi
  6869. am__universal=false
  6870. case " $depcc " in #(
  6871. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6872. esac
  6873. for depmode in $am_compiler_list; do
  6874. # Setup a source with many dependencies, because some compilers
  6875. # like to wrap large dependency lists on column 80 (with \), and
  6876. # we should not choose a depcomp mode which is confused by this.
  6877. #
  6878. # We need to recreate these files for each test, as the compiler may
  6879. # overwrite some of them when testing with obscure command lines.
  6880. # This happens at least with the AIX C compiler.
  6881. : > sub/conftest.c
  6882. for i in 1 2 3 4 5 6; do
  6883. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6884. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6885. # Solaris 8's {/usr,}/bin/sh.
  6886. touch sub/conftst$i.h
  6887. done
  6888. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6889. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6890. # mode. It turns out that the SunPro C++ compiler does not properly
  6891. # handle `-M -o', and we need to detect this. Also, some Intel
  6892. # versions had trouble with output in subdirs
  6893. am__obj=sub/conftest.${OBJEXT-o}
  6894. am__minus_obj="-o $am__obj"
  6895. case $depmode in
  6896. gcc)
  6897. # This depmode causes a compiler race in universal mode.
  6898. test "$am__universal" = false || continue
  6899. ;;
  6900. nosideeffect)
  6901. # after this tag, mechanisms are not by side-effect, so they'll
  6902. # only be used when explicitly requested
  6903. if test "x$enable_dependency_tracking" = xyes; then
  6904. continue
  6905. else
  6906. break
  6907. fi
  6908. ;;
  6909. msvisualcpp | msvcmsys)
  6910. # This compiler won't grok `-c -o', but also, the minuso test has
  6911. # not run yet. These depmodes are late enough in the game, and
  6912. # so weak that their functioning should not be impacted.
  6913. am__obj=conftest.${OBJEXT-o}
  6914. am__minus_obj=
  6915. ;;
  6916. none) break ;;
  6917. esac
  6918. if depmode=$depmode \
  6919. source=sub/conftest.c object=$am__obj \
  6920. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6921. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6922. >/dev/null 2>conftest.err &&
  6923. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6924. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6925. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6926. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6927. # icc doesn't choke on unknown options, it will just issue warnings
  6928. # or remarks (even with -Werror). So we grep stderr for any message
  6929. # that says an option was ignored or not supported.
  6930. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6931. # icc: Command line warning: ignoring option '-M'; no argument required
  6932. # The diagnosis changed in icc 8.0:
  6933. # icc: Command line remark: option '-MP' not supported
  6934. if (grep 'ignoring option' conftest.err ||
  6935. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6936. am_cv_CXX_dependencies_compiler_type=$depmode
  6937. break
  6938. fi
  6939. fi
  6940. done
  6941. cd ..
  6942. rm -rf conftest.dir
  6943. else
  6944. am_cv_CXX_dependencies_compiler_type=none
  6945. fi
  6946. fi
  6947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  6948. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  6949. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  6950. if
  6951. test "x$enable_dependency_tracking" != xno \
  6952. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  6953. am__fastdepCXX_TRUE=
  6954. am__fastdepCXX_FALSE='#'
  6955. else
  6956. am__fastdepCXX_TRUE='#'
  6957. am__fastdepCXX_FALSE=
  6958. fi
  6959. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6960. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6961. (test "X$CXX" != "Xg++"))) ; then
  6962. ac_ext=cpp
  6963. ac_cpp='$CXXCPP $CPPFLAGS'
  6964. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6965. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6966. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  6968. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  6969. if test -z "$CXXCPP"; then
  6970. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  6971. $as_echo_n "(cached) " >&6
  6972. else
  6973. # Double quotes because CXXCPP needs to be expanded
  6974. for CXXCPP in "$CXX -E" "/lib/cpp"
  6975. do
  6976. ac_preproc_ok=false
  6977. for ac_cxx_preproc_warn_flag in '' yes
  6978. do
  6979. # Use a header file that comes with gcc, so configuring glibc
  6980. # with a fresh cross-compiler works.
  6981. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6982. # <limits.h> exists even on freestanding compilers.
  6983. # On the NeXT, cc -E runs the code through the compiler's parser,
  6984. # not just through cpp. "Syntax error" is here to catch this case.
  6985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6986. /* end confdefs.h. */
  6987. #ifdef __STDC__
  6988. # include <limits.h>
  6989. #else
  6990. # include <assert.h>
  6991. #endif
  6992. Syntax error
  6993. _ACEOF
  6994. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6995. else
  6996. # Broken: fails on valid input.
  6997. continue
  6998. fi
  6999. rm -f conftest.err conftest.i conftest.$ac_ext
  7000. # OK, works on sane cases. Now check whether nonexistent headers
  7001. # can be detected and how.
  7002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7003. /* end confdefs.h. */
  7004. #include <ac_nonexistent.h>
  7005. _ACEOF
  7006. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7007. # Broken: success on invalid input.
  7008. continue
  7009. else
  7010. # Passes both tests.
  7011. ac_preproc_ok=:
  7012. break
  7013. fi
  7014. rm -f conftest.err conftest.i conftest.$ac_ext
  7015. done
  7016. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7017. rm -f conftest.i conftest.err conftest.$ac_ext
  7018. if $ac_preproc_ok; then :
  7019. break
  7020. fi
  7021. done
  7022. ac_cv_prog_CXXCPP=$CXXCPP
  7023. fi
  7024. CXXCPP=$ac_cv_prog_CXXCPP
  7025. else
  7026. ac_cv_prog_CXXCPP=$CXXCPP
  7027. fi
  7028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  7029. $as_echo "$CXXCPP" >&6; }
  7030. ac_preproc_ok=false
  7031. for ac_cxx_preproc_warn_flag in '' yes
  7032. do
  7033. # Use a header file that comes with gcc, so configuring glibc
  7034. # with a fresh cross-compiler works.
  7035. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7036. # <limits.h> exists even on freestanding compilers.
  7037. # On the NeXT, cc -E runs the code through the compiler's parser,
  7038. # not just through cpp. "Syntax error" is here to catch this case.
  7039. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7040. /* end confdefs.h. */
  7041. #ifdef __STDC__
  7042. # include <limits.h>
  7043. #else
  7044. # include <assert.h>
  7045. #endif
  7046. Syntax error
  7047. _ACEOF
  7048. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7049. else
  7050. # Broken: fails on valid input.
  7051. continue
  7052. fi
  7053. rm -f conftest.err conftest.i conftest.$ac_ext
  7054. # OK, works on sane cases. Now check whether nonexistent headers
  7055. # can be detected and how.
  7056. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7057. /* end confdefs.h. */
  7058. #include <ac_nonexistent.h>
  7059. _ACEOF
  7060. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7061. # Broken: success on invalid input.
  7062. continue
  7063. else
  7064. # Passes both tests.
  7065. ac_preproc_ok=:
  7066. break
  7067. fi
  7068. rm -f conftest.err conftest.i conftest.$ac_ext
  7069. done
  7070. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7071. rm -f conftest.i conftest.err conftest.$ac_ext
  7072. if $ac_preproc_ok; then :
  7073. else
  7074. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7075. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7076. _lt_caught_CXX_error=yes; }
  7077. fi
  7078. ac_ext=cpp
  7079. ac_cpp='$CXXCPP $CPPFLAGS'
  7080. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7081. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7082. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7083. else
  7084. _lt_caught_CXX_error=yes
  7085. fi
  7086. # Set options
  7087. enable_dlopen=no
  7088. enable_win32_dll=no
  7089. # Check whether --with-pic was given.
  7090. if test "${with_pic+set}" = set; then :
  7091. withval=$with_pic; pic_mode="$withval"
  7092. else
  7093. pic_mode=default
  7094. fi
  7095. test -z "$pic_mode" && pic_mode=default
  7096. # Check whether --enable-fast-install was given.
  7097. if test "${enable_fast_install+set}" = set; then :
  7098. enableval=$enable_fast_install; p=${PACKAGE-default}
  7099. case $enableval in
  7100. yes) enable_fast_install=yes ;;
  7101. no) enable_fast_install=no ;;
  7102. *)
  7103. enable_fast_install=no
  7104. # Look at the argument we got. We use all the common list separators.
  7105. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7106. for pkg in $enableval; do
  7107. IFS="$lt_save_ifs"
  7108. if test "X$pkg" = "X$p"; then
  7109. enable_fast_install=yes
  7110. fi
  7111. done
  7112. IFS="$lt_save_ifs"
  7113. ;;
  7114. esac
  7115. else
  7116. enable_fast_install=yes
  7117. fi
  7118. # This can be used to rebuild libtool when needed
  7119. LIBTOOL_DEPS="$ltmain"
  7120. # Always use our own libtool.
  7121. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7122. test -z "$LN_S" && LN_S="ln -s"
  7123. if test -n "${ZSH_VERSION+set}" ; then
  7124. setopt NO_GLOB_SUBST
  7125. fi
  7126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7127. $as_echo_n "checking for objdir... " >&6; }
  7128. if test "${lt_cv_objdir+set}" = set; then :
  7129. $as_echo_n "(cached) " >&6
  7130. else
  7131. rm -f .libs 2>/dev/null
  7132. mkdir .libs 2>/dev/null
  7133. if test -d .libs; then
  7134. lt_cv_objdir=.libs
  7135. else
  7136. # MS-DOS does not allow filenames that begin with a dot.
  7137. lt_cv_objdir=_libs
  7138. fi
  7139. rmdir .libs 2>/dev/null
  7140. fi
  7141. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7142. $as_echo "$lt_cv_objdir" >&6; }
  7143. objdir=$lt_cv_objdir
  7144. cat >>confdefs.h <<_ACEOF
  7145. #define LT_OBJDIR "$lt_cv_objdir/"
  7146. _ACEOF
  7147. case $host_os in
  7148. aix3*)
  7149. # AIX sometimes has problems with the GCC collect2 program. For some
  7150. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7151. # vanish in a puff of smoke.
  7152. if test "X${COLLECT_NAMES+set}" != Xset; then
  7153. COLLECT_NAMES=
  7154. export COLLECT_NAMES
  7155. fi
  7156. ;;
  7157. esac
  7158. # Sed substitution that helps us do robust quoting. It backslashifies
  7159. # metacharacters that are still active within double-quoted strings.
  7160. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7161. # Same as above, but do not quote variable references.
  7162. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7163. # Sed substitution to delay expansion of an escaped shell variable in a
  7164. # double_quote_subst'ed string.
  7165. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7166. # Sed substitution to delay expansion of an escaped single quote.
  7167. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7168. # Sed substitution to avoid accidental globbing in evaled expressions
  7169. no_glob_subst='s/\*/\\\*/g'
  7170. # Global variables:
  7171. ofile=libtool
  7172. can_build_shared=yes
  7173. # All known linkers require a `.a' archive for static linking (except MSVC,
  7174. # which needs '.lib').
  7175. libext=a
  7176. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7177. old_CC="$CC"
  7178. old_CFLAGS="$CFLAGS"
  7179. # Set sane defaults for various variables
  7180. test -z "$CC" && CC=cc
  7181. test -z "$LTCC" && LTCC=$CC
  7182. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7183. test -z "$LD" && LD=ld
  7184. test -z "$ac_objext" && ac_objext=o
  7185. for cc_temp in $compiler""; do
  7186. case $cc_temp in
  7187. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7188. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7189. \-*) ;;
  7190. *) break;;
  7191. esac
  7192. done
  7193. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7194. # Only perform the check for file, if the check method requires it
  7195. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7196. case $deplibs_check_method in
  7197. file_magic*)
  7198. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7200. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7201. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7202. $as_echo_n "(cached) " >&6
  7203. else
  7204. case $MAGIC_CMD in
  7205. [\\/*] | ?:[\\/]*)
  7206. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7207. ;;
  7208. *)
  7209. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7210. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7211. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7212. for ac_dir in $ac_dummy; do
  7213. IFS="$lt_save_ifs"
  7214. test -z "$ac_dir" && ac_dir=.
  7215. if test -f $ac_dir/${ac_tool_prefix}file; then
  7216. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7217. if test -n "$file_magic_test_file"; then
  7218. case $deplibs_check_method in
  7219. "file_magic "*)
  7220. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7221. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7222. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7223. $EGREP "$file_magic_regex" > /dev/null; then
  7224. :
  7225. else
  7226. cat <<_LT_EOF 1>&2
  7227. *** Warning: the command libtool uses to detect shared libraries,
  7228. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7229. *** The result is that libtool may fail to recognize shared libraries
  7230. *** as such. This will affect the creation of libtool libraries that
  7231. *** depend on shared libraries, but programs linked with such libtool
  7232. *** libraries will work regardless of this problem. Nevertheless, you
  7233. *** may want to report the problem to your system manager and/or to
  7234. *** [email protected]
  7235. _LT_EOF
  7236. fi ;;
  7237. esac
  7238. fi
  7239. break
  7240. fi
  7241. done
  7242. IFS="$lt_save_ifs"
  7243. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7244. ;;
  7245. esac
  7246. fi
  7247. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7248. if test -n "$MAGIC_CMD"; then
  7249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7250. $as_echo "$MAGIC_CMD" >&6; }
  7251. else
  7252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7253. $as_echo "no" >&6; }
  7254. fi
  7255. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7256. if test -n "$ac_tool_prefix"; then
  7257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7258. $as_echo_n "checking for file... " >&6; }
  7259. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7260. $as_echo_n "(cached) " >&6
  7261. else
  7262. case $MAGIC_CMD in
  7263. [\\/*] | ?:[\\/]*)
  7264. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7265. ;;
  7266. *)
  7267. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7268. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7269. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7270. for ac_dir in $ac_dummy; do
  7271. IFS="$lt_save_ifs"
  7272. test -z "$ac_dir" && ac_dir=.
  7273. if test -f $ac_dir/file; then
  7274. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7275. if test -n "$file_magic_test_file"; then
  7276. case $deplibs_check_method in
  7277. "file_magic "*)
  7278. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7279. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7280. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7281. $EGREP "$file_magic_regex" > /dev/null; then
  7282. :
  7283. else
  7284. cat <<_LT_EOF 1>&2
  7285. *** Warning: the command libtool uses to detect shared libraries,
  7286. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7287. *** The result is that libtool may fail to recognize shared libraries
  7288. *** as such. This will affect the creation of libtool libraries that
  7289. *** depend on shared libraries, but programs linked with such libtool
  7290. *** libraries will work regardless of this problem. Nevertheless, you
  7291. *** may want to report the problem to your system manager and/or to
  7292. *** [email protected]
  7293. _LT_EOF
  7294. fi ;;
  7295. esac
  7296. fi
  7297. break
  7298. fi
  7299. done
  7300. IFS="$lt_save_ifs"
  7301. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7302. ;;
  7303. esac
  7304. fi
  7305. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7306. if test -n "$MAGIC_CMD"; then
  7307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7308. $as_echo "$MAGIC_CMD" >&6; }
  7309. else
  7310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7311. $as_echo "no" >&6; }
  7312. fi
  7313. else
  7314. MAGIC_CMD=:
  7315. fi
  7316. fi
  7317. fi
  7318. ;;
  7319. esac
  7320. # Use C for the default configuration in the libtool script
  7321. lt_save_CC="$CC"
  7322. ac_ext=c
  7323. ac_cpp='$CPP $CPPFLAGS'
  7324. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7325. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7326. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7327. # Source file extension for C test sources.
  7328. ac_ext=c
  7329. # Object file extension for compiled C test sources.
  7330. objext=o
  7331. objext=$objext
  7332. # Code to be used in simple compile tests
  7333. lt_simple_compile_test_code="int some_variable = 0;"
  7334. # Code to be used in simple link tests
  7335. lt_simple_link_test_code='int main(){return(0);}'
  7336. # If no C compiler was specified, use CC.
  7337. LTCC=${LTCC-"$CC"}
  7338. # If no C compiler flags were specified, use CFLAGS.
  7339. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7340. # Allow CC to be a program name with arguments.
  7341. compiler=$CC
  7342. # Save the default compiler, since it gets overwritten when the other
  7343. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7344. compiler_DEFAULT=$CC
  7345. # save warnings/boilerplate of simple test code
  7346. ac_outfile=conftest.$ac_objext
  7347. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7348. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7349. _lt_compiler_boilerplate=`cat conftest.err`
  7350. $RM conftest*
  7351. ac_outfile=conftest.$ac_objext
  7352. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7353. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7354. _lt_linker_boilerplate=`cat conftest.err`
  7355. $RM -r conftest*
  7356. ## CAVEAT EMPTOR:
  7357. ## There is no encapsulation within the following macros, do not change
  7358. ## the running order or otherwise move them around unless you know exactly
  7359. ## what you are doing...
  7360. if test -n "$compiler"; then
  7361. lt_prog_compiler_no_builtin_flag=
  7362. if test "$GCC" = yes; then
  7363. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7365. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7366. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7367. $as_echo_n "(cached) " >&6
  7368. else
  7369. lt_cv_prog_compiler_rtti_exceptions=no
  7370. ac_outfile=conftest.$ac_objext
  7371. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7372. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7373. # Insert the option either (1) after the last *FLAGS variable, or
  7374. # (2) before a word containing "conftest.", or (3) at the end.
  7375. # Note that $ac_compile itself does not contain backslashes and begins
  7376. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7377. # The option is referenced via a variable to avoid confusing sed.
  7378. lt_compile=`echo "$ac_compile" | $SED \
  7379. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7380. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7381. -e 's:$: $lt_compiler_flag:'`
  7382. (eval echo "\"\$as_me:8417: $lt_compile\"" >&5)
  7383. (eval "$lt_compile" 2>conftest.err)
  7384. ac_status=$?
  7385. cat conftest.err >&5
  7386. echo "$as_me:8421: \$? = $ac_status" >&5
  7387. if (exit $ac_status) && test -s "$ac_outfile"; then
  7388. # The compiler can only warn and ignore the option if not recognized
  7389. # So say no if there are warnings other than the usual output.
  7390. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7391. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7392. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7393. lt_cv_prog_compiler_rtti_exceptions=yes
  7394. fi
  7395. fi
  7396. $RM conftest*
  7397. fi
  7398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7399. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7400. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7401. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7402. else
  7403. :
  7404. fi
  7405. fi
  7406. lt_prog_compiler_wl=
  7407. lt_prog_compiler_pic=
  7408. lt_prog_compiler_static=
  7409. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7410. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7411. if test "$GCC" = yes; then
  7412. lt_prog_compiler_wl='-Wl,'
  7413. lt_prog_compiler_static='-static'
  7414. case $host_os in
  7415. aix*)
  7416. # All AIX code is PIC.
  7417. if test "$host_cpu" = ia64; then
  7418. # AIX 5 now supports IA64 processor
  7419. lt_prog_compiler_static='-Bstatic'
  7420. fi
  7421. ;;
  7422. amigaos*)
  7423. case $host_cpu in
  7424. powerpc)
  7425. # see comment about AmigaOS4 .so support
  7426. lt_prog_compiler_pic='-fPIC'
  7427. ;;
  7428. m68k)
  7429. # FIXME: we need at least 68020 code to build shared libraries, but
  7430. # adding the `-m68020' flag to GCC prevents building anything better,
  7431. # like `-m68040'.
  7432. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7433. ;;
  7434. esac
  7435. ;;
  7436. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7437. # PIC is the default for these OSes.
  7438. ;;
  7439. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7440. # This hack is so that the source file can tell whether it is being
  7441. # built for inclusion in a dll (and should export symbols for example).
  7442. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7443. # (--disable-auto-import) libraries
  7444. lt_prog_compiler_pic='-DDLL_EXPORT'
  7445. ;;
  7446. darwin* | rhapsody*)
  7447. # PIC is the default on this platform
  7448. # Common symbols not allowed in MH_DYLIB files
  7449. lt_prog_compiler_pic='-fno-common'
  7450. ;;
  7451. hpux*)
  7452. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7453. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7454. # sets the default TLS model and affects inlining.
  7455. case $host_cpu in
  7456. hppa*64*)
  7457. # +Z the default
  7458. ;;
  7459. *)
  7460. lt_prog_compiler_pic='-fPIC'
  7461. ;;
  7462. esac
  7463. ;;
  7464. interix[3-9]*)
  7465. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7466. # Instead, we relocate shared libraries at runtime.
  7467. ;;
  7468. msdosdjgpp*)
  7469. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7470. # on systems that don't support them.
  7471. lt_prog_compiler_can_build_shared=no
  7472. enable_shared=no
  7473. ;;
  7474. *nto* | *qnx*)
  7475. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7476. # it will coredump.
  7477. lt_prog_compiler_pic='-fPIC -shared'
  7478. ;;
  7479. sysv4*MP*)
  7480. if test -d /usr/nec; then
  7481. lt_prog_compiler_pic=-Kconform_pic
  7482. fi
  7483. ;;
  7484. *)
  7485. lt_prog_compiler_pic='-fPIC'
  7486. ;;
  7487. esac
  7488. else
  7489. # PORTME Check for flag to pass linker flags through the system compiler.
  7490. case $host_os in
  7491. aix*)
  7492. lt_prog_compiler_wl='-Wl,'
  7493. if test "$host_cpu" = ia64; then
  7494. # AIX 5 now supports IA64 processor
  7495. lt_prog_compiler_static='-Bstatic'
  7496. else
  7497. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7498. fi
  7499. ;;
  7500. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7501. # This hack is so that the source file can tell whether it is being
  7502. # built for inclusion in a dll (and should export symbols for example).
  7503. lt_prog_compiler_pic='-DDLL_EXPORT'
  7504. ;;
  7505. hpux9* | hpux10* | hpux11*)
  7506. lt_prog_compiler_wl='-Wl,'
  7507. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7508. # not for PA HP-UX.
  7509. case $host_cpu in
  7510. hppa*64*|ia64*)
  7511. # +Z the default
  7512. ;;
  7513. *)
  7514. lt_prog_compiler_pic='+Z'
  7515. ;;
  7516. esac
  7517. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7518. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7519. ;;
  7520. irix5* | irix6* | nonstopux*)
  7521. lt_prog_compiler_wl='-Wl,'
  7522. # PIC (with -KPIC) is the default.
  7523. lt_prog_compiler_static='-non_shared'
  7524. ;;
  7525. linux* | k*bsd*-gnu)
  7526. case $cc_basename in
  7527. # old Intel for x86_64 which still supported -KPIC.
  7528. ecc*)
  7529. lt_prog_compiler_wl='-Wl,'
  7530. lt_prog_compiler_pic='-KPIC'
  7531. lt_prog_compiler_static='-static'
  7532. ;;
  7533. # icc used to be incompatible with GCC.
  7534. # ICC 10 doesn't accept -KPIC any more.
  7535. icc* | ifort*)
  7536. lt_prog_compiler_wl='-Wl,'
  7537. lt_prog_compiler_pic='-fPIC'
  7538. lt_prog_compiler_static='-static'
  7539. ;;
  7540. # Lahey Fortran 8.1.
  7541. lf95*)
  7542. lt_prog_compiler_wl='-Wl,'
  7543. lt_prog_compiler_pic='--shared'
  7544. lt_prog_compiler_static='--static'
  7545. ;;
  7546. pgcc* | pgf77* | pgf90* | pgf95*)
  7547. # Portland Group compilers (*not* the Pentium gcc compiler,
  7548. # which looks to be a dead project)
  7549. lt_prog_compiler_wl='-Wl,'
  7550. lt_prog_compiler_pic='-fpic'
  7551. lt_prog_compiler_static='-Bstatic'
  7552. ;;
  7553. ccc*)
  7554. lt_prog_compiler_wl='-Wl,'
  7555. # All Alpha code is PIC.
  7556. lt_prog_compiler_static='-non_shared'
  7557. ;;
  7558. xl*)
  7559. # IBM XL C 8.0/Fortran 10.1 on PPC
  7560. lt_prog_compiler_wl='-Wl,'
  7561. lt_prog_compiler_pic='-qpic'
  7562. lt_prog_compiler_static='-qstaticlink'
  7563. ;;
  7564. *)
  7565. case `$CC -V 2>&1 | sed 5q` in
  7566. *Sun\ C*)
  7567. # Sun C 5.9
  7568. lt_prog_compiler_pic='-KPIC'
  7569. lt_prog_compiler_static='-Bstatic'
  7570. lt_prog_compiler_wl='-Wl,'
  7571. ;;
  7572. *Sun\ F*)
  7573. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7574. lt_prog_compiler_pic='-KPIC'
  7575. lt_prog_compiler_static='-Bstatic'
  7576. lt_prog_compiler_wl=''
  7577. ;;
  7578. esac
  7579. ;;
  7580. esac
  7581. ;;
  7582. newsos6)
  7583. lt_prog_compiler_pic='-KPIC'
  7584. lt_prog_compiler_static='-Bstatic'
  7585. ;;
  7586. *nto* | *qnx*)
  7587. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7588. # it will coredump.
  7589. lt_prog_compiler_pic='-fPIC -shared'
  7590. ;;
  7591. osf3* | osf4* | osf5*)
  7592. lt_prog_compiler_wl='-Wl,'
  7593. # All OSF/1 code is PIC.
  7594. lt_prog_compiler_static='-non_shared'
  7595. ;;
  7596. rdos*)
  7597. lt_prog_compiler_static='-non_shared'
  7598. ;;
  7599. solaris*)
  7600. lt_prog_compiler_pic='-KPIC'
  7601. lt_prog_compiler_static='-Bstatic'
  7602. case $cc_basename in
  7603. f77* | f90* | f95*)
  7604. lt_prog_compiler_wl='-Qoption ld ';;
  7605. *)
  7606. lt_prog_compiler_wl='-Wl,';;
  7607. esac
  7608. ;;
  7609. sunos4*)
  7610. lt_prog_compiler_wl='-Qoption ld '
  7611. lt_prog_compiler_pic='-PIC'
  7612. lt_prog_compiler_static='-Bstatic'
  7613. ;;
  7614. sysv4 | sysv4.2uw2* | sysv4.3*)
  7615. lt_prog_compiler_wl='-Wl,'
  7616. lt_prog_compiler_pic='-KPIC'
  7617. lt_prog_compiler_static='-Bstatic'
  7618. ;;
  7619. sysv4*MP*)
  7620. if test -d /usr/nec ;then
  7621. lt_prog_compiler_pic='-Kconform_pic'
  7622. lt_prog_compiler_static='-Bstatic'
  7623. fi
  7624. ;;
  7625. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7626. lt_prog_compiler_wl='-Wl,'
  7627. lt_prog_compiler_pic='-KPIC'
  7628. lt_prog_compiler_static='-Bstatic'
  7629. ;;
  7630. unicos*)
  7631. lt_prog_compiler_wl='-Wl,'
  7632. lt_prog_compiler_can_build_shared=no
  7633. ;;
  7634. uts4*)
  7635. lt_prog_compiler_pic='-pic'
  7636. lt_prog_compiler_static='-Bstatic'
  7637. ;;
  7638. *)
  7639. lt_prog_compiler_can_build_shared=no
  7640. ;;
  7641. esac
  7642. fi
  7643. case $host_os in
  7644. # For platforms which do not support PIC, -DPIC is meaningless:
  7645. *djgpp*)
  7646. lt_prog_compiler_pic=
  7647. ;;
  7648. *)
  7649. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7650. ;;
  7651. esac
  7652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7653. $as_echo "$lt_prog_compiler_pic" >&6; }
  7654. #
  7655. # Check to make sure the PIC flag actually works.
  7656. #
  7657. if test -n "$lt_prog_compiler_pic"; then
  7658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7659. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7660. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7661. $as_echo_n "(cached) " >&6
  7662. else
  7663. lt_cv_prog_compiler_pic_works=no
  7664. ac_outfile=conftest.$ac_objext
  7665. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7666. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7667. # Insert the option either (1) after the last *FLAGS variable, or
  7668. # (2) before a word containing "conftest.", or (3) at the end.
  7669. # Note that $ac_compile itself does not contain backslashes and begins
  7670. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7671. # The option is referenced via a variable to avoid confusing sed.
  7672. lt_compile=`echo "$ac_compile" | $SED \
  7673. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7674. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7675. -e 's:$: $lt_compiler_flag:'`
  7676. (eval echo "\"\$as_me:8756: $lt_compile\"" >&5)
  7677. (eval "$lt_compile" 2>conftest.err)
  7678. ac_status=$?
  7679. cat conftest.err >&5
  7680. echo "$as_me:8760: \$? = $ac_status" >&5
  7681. if (exit $ac_status) && test -s "$ac_outfile"; then
  7682. # The compiler can only warn and ignore the option if not recognized
  7683. # So say no if there are warnings other than the usual output.
  7684. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7685. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7686. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7687. lt_cv_prog_compiler_pic_works=yes
  7688. fi
  7689. fi
  7690. $RM conftest*
  7691. fi
  7692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7693. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7694. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7695. case $lt_prog_compiler_pic in
  7696. "" | " "*) ;;
  7697. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7698. esac
  7699. else
  7700. lt_prog_compiler_pic=
  7701. lt_prog_compiler_can_build_shared=no
  7702. fi
  7703. fi
  7704. #
  7705. # Check to make sure the static flag actually works.
  7706. #
  7707. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7709. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7710. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7711. $as_echo_n "(cached) " >&6
  7712. else
  7713. lt_cv_prog_compiler_static_works=no
  7714. save_LDFLAGS="$LDFLAGS"
  7715. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7716. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7717. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7718. # The linker can only warn and ignore the option if not recognized
  7719. # So say no if there are warnings
  7720. if test -s conftest.err; then
  7721. # Append any errors to the config.log.
  7722. cat conftest.err 1>&5
  7723. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7724. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7725. if diff conftest.exp conftest.er2 >/dev/null; then
  7726. lt_cv_prog_compiler_static_works=yes
  7727. fi
  7728. else
  7729. lt_cv_prog_compiler_static_works=yes
  7730. fi
  7731. fi
  7732. $RM -r conftest*
  7733. LDFLAGS="$save_LDFLAGS"
  7734. fi
  7735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7736. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7737. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7738. :
  7739. else
  7740. lt_prog_compiler_static=
  7741. fi
  7742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7743. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7744. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7745. $as_echo_n "(cached) " >&6
  7746. else
  7747. lt_cv_prog_compiler_c_o=no
  7748. $RM -r conftest 2>/dev/null
  7749. mkdir conftest
  7750. cd conftest
  7751. mkdir out
  7752. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7753. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7754. # Insert the option either (1) after the last *FLAGS variable, or
  7755. # (2) before a word containing "conftest.", or (3) at the end.
  7756. # Note that $ac_compile itself does not contain backslashes and begins
  7757. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7758. lt_compile=`echo "$ac_compile" | $SED \
  7759. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7760. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7761. -e 's:$: $lt_compiler_flag:'`
  7762. (eval echo "\"\$as_me:8861: $lt_compile\"" >&5)
  7763. (eval "$lt_compile" 2>out/conftest.err)
  7764. ac_status=$?
  7765. cat out/conftest.err >&5
  7766. echo "$as_me:8865: \$? = $ac_status" >&5
  7767. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7768. then
  7769. # The compiler can only warn and ignore the option if not recognized
  7770. # So say no if there are warnings
  7771. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7772. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7773. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7774. lt_cv_prog_compiler_c_o=yes
  7775. fi
  7776. fi
  7777. chmod u+w . 2>&5
  7778. $RM conftest*
  7779. # SGI C++ compiler will create directory out/ii_files/ for
  7780. # template instantiation
  7781. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7782. $RM out/* && rmdir out
  7783. cd ..
  7784. $RM -r conftest
  7785. $RM conftest*
  7786. fi
  7787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7788. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7790. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7791. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7792. $as_echo_n "(cached) " >&6
  7793. else
  7794. lt_cv_prog_compiler_c_o=no
  7795. $RM -r conftest 2>/dev/null
  7796. mkdir conftest
  7797. cd conftest
  7798. mkdir out
  7799. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7800. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7801. # Insert the option either (1) after the last *FLAGS variable, or
  7802. # (2) before a word containing "conftest.", or (3) at the end.
  7803. # Note that $ac_compile itself does not contain backslashes and begins
  7804. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7805. lt_compile=`echo "$ac_compile" | $SED \
  7806. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7807. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7808. -e 's:$: $lt_compiler_flag:'`
  7809. (eval echo "\"\$as_me:8916: $lt_compile\"" >&5)
  7810. (eval "$lt_compile" 2>out/conftest.err)
  7811. ac_status=$?
  7812. cat out/conftest.err >&5
  7813. echo "$as_me:8920: \$? = $ac_status" >&5
  7814. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7815. then
  7816. # The compiler can only warn and ignore the option if not recognized
  7817. # So say no if there are warnings
  7818. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7819. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7820. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7821. lt_cv_prog_compiler_c_o=yes
  7822. fi
  7823. fi
  7824. chmod u+w . 2>&5
  7825. $RM conftest*
  7826. # SGI C++ compiler will create directory out/ii_files/ for
  7827. # template instantiation
  7828. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7829. $RM out/* && rmdir out
  7830. cd ..
  7831. $RM -r conftest
  7832. $RM conftest*
  7833. fi
  7834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7835. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7836. hard_links="nottested"
  7837. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7838. # do not overwrite the value of need_locks provided by the user
  7839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7840. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7841. hard_links=yes
  7842. $RM conftest*
  7843. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7844. touch conftest.a
  7845. ln conftest.a conftest.b 2>&5 || hard_links=no
  7846. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7848. $as_echo "$hard_links" >&6; }
  7849. if test "$hard_links" = no; then
  7850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7851. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7852. need_locks=warn
  7853. fi
  7854. else
  7855. need_locks=no
  7856. fi
  7857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7858. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7859. runpath_var=
  7860. allow_undefined_flag=
  7861. always_export_symbols=no
  7862. archive_cmds=
  7863. archive_expsym_cmds=
  7864. compiler_needs_object=no
  7865. enable_shared_with_static_runtimes=no
  7866. export_dynamic_flag_spec=
  7867. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7868. hardcode_automatic=no
  7869. hardcode_direct=no
  7870. hardcode_direct_absolute=no
  7871. hardcode_libdir_flag_spec=
  7872. hardcode_libdir_flag_spec_ld=
  7873. hardcode_libdir_separator=
  7874. hardcode_minus_L=no
  7875. hardcode_shlibpath_var=unsupported
  7876. inherit_rpath=no
  7877. link_all_deplibs=unknown
  7878. module_cmds=
  7879. module_expsym_cmds=
  7880. old_archive_from_new_cmds=
  7881. old_archive_from_expsyms_cmds=
  7882. thread_safe_flag_spec=
  7883. whole_archive_flag_spec=
  7884. # include_expsyms should be a list of space-separated symbols to be *always*
  7885. # included in the symbol list
  7886. include_expsyms=
  7887. # exclude_expsyms can be an extended regexp of symbols to exclude
  7888. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7889. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7890. # as well as any symbol that contains `d'.
  7891. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7892. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7893. # platforms (ab)use it in PIC code, but their linkers get confused if
  7894. # the symbol is explicitly referenced. Since portable code cannot
  7895. # rely on this symbol name, it's probably fine to never include it in
  7896. # preloaded symbol tables.
  7897. # Exclude shared library initialization/finalization symbols.
  7898. extract_expsyms_cmds=
  7899. case $host_os in
  7900. cygwin* | mingw* | pw32* | cegcc*)
  7901. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7902. # When not using gcc, we currently assume that we are using
  7903. # Microsoft Visual C++.
  7904. if test "$GCC" != yes; then
  7905. with_gnu_ld=no
  7906. fi
  7907. ;;
  7908. interix*)
  7909. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7910. with_gnu_ld=yes
  7911. ;;
  7912. openbsd*)
  7913. with_gnu_ld=no
  7914. ;;
  7915. esac
  7916. ld_shlibs=yes
  7917. if test "$with_gnu_ld" = yes; then
  7918. # If archive_cmds runs LD, not CC, wlarc should be empty
  7919. wlarc='${wl}'
  7920. # Set some defaults for GNU ld with shared library support. These
  7921. # are reset later if shared libraries are not supported. Putting them
  7922. # here allows them to be overridden if necessary.
  7923. runpath_var=LD_RUN_PATH
  7924. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7925. export_dynamic_flag_spec='${wl}--export-dynamic'
  7926. # ancient GNU ld didn't support --whole-archive et. al.
  7927. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7928. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7929. else
  7930. whole_archive_flag_spec=
  7931. fi
  7932. supports_anon_versioning=no
  7933. case `$LD -v 2>&1` in
  7934. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7935. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7936. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7937. *\ 2.11.*) ;; # other 2.11 versions
  7938. *) supports_anon_versioning=yes ;;
  7939. esac
  7940. # See if GNU ld supports shared libraries.
  7941. case $host_os in
  7942. aix[3-9]*)
  7943. # On AIX/PPC, the GNU linker is very broken
  7944. if test "$host_cpu" != ia64; then
  7945. ld_shlibs=no
  7946. cat <<_LT_EOF 1>&2
  7947. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7948. *** to be unable to reliably create shared libraries on AIX.
  7949. *** Therefore, libtool is disabling shared libraries support. If you
  7950. *** really care for shared libraries, you may want to modify your PATH
  7951. *** so that a non-GNU linker is found, and then restart.
  7952. _LT_EOF
  7953. fi
  7954. ;;
  7955. amigaos*)
  7956. case $host_cpu in
  7957. powerpc)
  7958. # see comment about AmigaOS4 .so support
  7959. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7960. archive_expsym_cmds=''
  7961. ;;
  7962. m68k)
  7963. 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)'
  7964. hardcode_libdir_flag_spec='-L$libdir'
  7965. hardcode_minus_L=yes
  7966. ;;
  7967. esac
  7968. ;;
  7969. beos*)
  7970. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7971. allow_undefined_flag=unsupported
  7972. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7973. # support --undefined. This deserves some investigation. FIXME
  7974. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7975. else
  7976. ld_shlibs=no
  7977. fi
  7978. ;;
  7979. cygwin* | mingw* | pw32* | cegcc*)
  7980. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7981. # as there is no search path for DLLs.
  7982. hardcode_libdir_flag_spec='-L$libdir'
  7983. allow_undefined_flag=unsupported
  7984. always_export_symbols=no
  7985. enable_shared_with_static_runtimes=yes
  7986. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7987. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7988. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7989. # If the export-symbols file already is a .def file (1st line
  7990. # is EXPORTS), use it as is; otherwise, prepend...
  7991. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7992. cp $export_symbols $output_objdir/$soname.def;
  7993. else
  7994. echo EXPORTS > $output_objdir/$soname.def;
  7995. cat $export_symbols >> $output_objdir/$soname.def;
  7996. fi~
  7997. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7998. else
  7999. ld_shlibs=no
  8000. fi
  8001. ;;
  8002. interix[3-9]*)
  8003. hardcode_direct=no
  8004. hardcode_shlibpath_var=no
  8005. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8006. export_dynamic_flag_spec='${wl}-E'
  8007. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8008. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8009. # default) and relocated if they conflict, which is a slow very memory
  8010. # consuming and fragmenting process. To avoid this, we pick a random,
  8011. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8012. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8013. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8014. 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'
  8015. ;;
  8016. gnu* | linux* | tpf* | k*bsd*-gnu)
  8017. tmp_diet=no
  8018. if test "$host_os" = linux-dietlibc; then
  8019. case $cc_basename in
  8020. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8021. esac
  8022. fi
  8023. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8024. && test "$tmp_diet" = no
  8025. then
  8026. tmp_addflag=
  8027. tmp_sharedflag='-shared'
  8028. case $cc_basename,$host_cpu in
  8029. pgcc*) # Portland Group C compiler
  8030. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8031. tmp_addflag=' $pic_flag'
  8032. ;;
  8033. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8034. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8035. tmp_addflag=' $pic_flag -Mnomain' ;;
  8036. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8037. tmp_addflag=' -i_dynamic' ;;
  8038. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8039. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8040. ifc* | ifort*) # Intel Fortran compiler
  8041. tmp_addflag=' -nofor_main' ;;
  8042. lf95*) # Lahey Fortran 8.1
  8043. whole_archive_flag_spec=
  8044. tmp_sharedflag='--shared' ;;
  8045. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8046. tmp_sharedflag='-qmkshrobj'
  8047. tmp_addflag= ;;
  8048. esac
  8049. case `$CC -V 2>&1 | sed 5q` in
  8050. *Sun\ C*) # Sun C 5.9
  8051. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8052. compiler_needs_object=yes
  8053. tmp_sharedflag='-G' ;;
  8054. *Sun\ F*) # Sun Fortran 8.3
  8055. tmp_sharedflag='-G' ;;
  8056. esac
  8057. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8058. if test "x$supports_anon_versioning" = xyes; then
  8059. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8060. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8061. echo "local: *; };" >> $output_objdir/$libname.ver~
  8062. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8063. fi
  8064. case $cc_basename in
  8065. xlf*)
  8066. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8067. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8068. hardcode_libdir_flag_spec=
  8069. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8070. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8071. if test "x$supports_anon_versioning" = xyes; then
  8072. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8073. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8074. echo "local: *; };" >> $output_objdir/$libname.ver~
  8075. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8076. fi
  8077. ;;
  8078. esac
  8079. else
  8080. ld_shlibs=no
  8081. fi
  8082. ;;
  8083. netbsd* | netbsdelf*-gnu)
  8084. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8085. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8086. wlarc=
  8087. else
  8088. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8089. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8090. fi
  8091. ;;
  8092. solaris*)
  8093. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8094. ld_shlibs=no
  8095. cat <<_LT_EOF 1>&2
  8096. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8097. *** create shared libraries on Solaris systems. Therefore, libtool
  8098. *** is disabling shared libraries support. We urge you to upgrade GNU
  8099. *** binutils to release 2.9.1 or newer. Another option is to modify
  8100. *** your PATH or compiler configuration so that the native linker is
  8101. *** used, and then restart.
  8102. _LT_EOF
  8103. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8104. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8105. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8106. else
  8107. ld_shlibs=no
  8108. fi
  8109. ;;
  8110. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8111. case `$LD -v 2>&1` in
  8112. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8113. ld_shlibs=no
  8114. cat <<_LT_EOF 1>&2
  8115. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8116. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8117. *** is disabling shared libraries support. We urge you to upgrade GNU
  8118. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8119. *** your PATH or compiler configuration so that the native linker is
  8120. *** used, and then restart.
  8121. _LT_EOF
  8122. ;;
  8123. *)
  8124. # For security reasons, it is highly recommended that you always
  8125. # use absolute paths for naming shared libraries, and exclude the
  8126. # DT_RUNPATH tag from executables and libraries. But doing so
  8127. # requires that you compile everything twice, which is a pain.
  8128. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8129. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8130. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8131. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8132. else
  8133. ld_shlibs=no
  8134. fi
  8135. ;;
  8136. esac
  8137. ;;
  8138. sunos4*)
  8139. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8140. wlarc=
  8141. hardcode_direct=yes
  8142. hardcode_shlibpath_var=no
  8143. ;;
  8144. *)
  8145. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8146. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8147. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8148. else
  8149. ld_shlibs=no
  8150. fi
  8151. ;;
  8152. esac
  8153. if test "$ld_shlibs" = no; then
  8154. runpath_var=
  8155. hardcode_libdir_flag_spec=
  8156. export_dynamic_flag_spec=
  8157. whole_archive_flag_spec=
  8158. fi
  8159. else
  8160. # PORTME fill in a description of your system's linker (not GNU ld)
  8161. case $host_os in
  8162. aix3*)
  8163. allow_undefined_flag=unsupported
  8164. always_export_symbols=yes
  8165. 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'
  8166. # Note: this linker hardcodes the directories in LIBPATH if there
  8167. # are no directories specified by -L.
  8168. hardcode_minus_L=yes
  8169. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8170. # Neither direct hardcoding nor static linking is supported with a
  8171. # broken collect2.
  8172. hardcode_direct=unsupported
  8173. fi
  8174. ;;
  8175. aix[4-9]*)
  8176. if test "$host_cpu" = ia64; then
  8177. # On IA64, the linker does run time linking by default, so we don't
  8178. # have to do anything special.
  8179. aix_use_runtimelinking=no
  8180. exp_sym_flag='-Bexport'
  8181. no_entry_flag=""
  8182. else
  8183. # If we're using GNU nm, then we don't want the "-C" option.
  8184. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8185. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8186. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8187. else
  8188. 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'
  8189. fi
  8190. aix_use_runtimelinking=no
  8191. # Test if we are trying to use run time linking or normal
  8192. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8193. # need to do runtime linking.
  8194. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8195. for ld_flag in $LDFLAGS; do
  8196. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8197. aix_use_runtimelinking=yes
  8198. break
  8199. fi
  8200. done
  8201. ;;
  8202. esac
  8203. exp_sym_flag='-bexport'
  8204. no_entry_flag='-bnoentry'
  8205. fi
  8206. # When large executables or shared objects are built, AIX ld can
  8207. # have problems creating the table of contents. If linking a library
  8208. # or program results in "error TOC overflow" add -mminimal-toc to
  8209. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8210. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8211. archive_cmds=''
  8212. hardcode_direct=yes
  8213. hardcode_direct_absolute=yes
  8214. hardcode_libdir_separator=':'
  8215. link_all_deplibs=yes
  8216. file_list_spec='${wl}-f,'
  8217. if test "$GCC" = yes; then
  8218. case $host_os in aix4.[012]|aix4.[012].*)
  8219. # We only want to do this on AIX 4.2 and lower, the check
  8220. # below for broken collect2 doesn't work under 4.3+
  8221. collect2name=`${CC} -print-prog-name=collect2`
  8222. if test -f "$collect2name" &&
  8223. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8224. then
  8225. # We have reworked collect2
  8226. :
  8227. else
  8228. # We have old collect2
  8229. hardcode_direct=unsupported
  8230. # It fails to find uninstalled libraries when the uninstalled
  8231. # path is not listed in the libpath. Setting hardcode_minus_L
  8232. # to unsupported forces relinking
  8233. hardcode_minus_L=yes
  8234. hardcode_libdir_flag_spec='-L$libdir'
  8235. hardcode_libdir_separator=
  8236. fi
  8237. ;;
  8238. esac
  8239. shared_flag='-shared'
  8240. if test "$aix_use_runtimelinking" = yes; then
  8241. shared_flag="$shared_flag "'${wl}-G'
  8242. fi
  8243. link_all_deplibs=no
  8244. else
  8245. # not using gcc
  8246. if test "$host_cpu" = ia64; then
  8247. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8248. # chokes on -Wl,-G. The following line is correct:
  8249. shared_flag='-G'
  8250. else
  8251. if test "$aix_use_runtimelinking" = yes; then
  8252. shared_flag='${wl}-G'
  8253. else
  8254. shared_flag='${wl}-bM:SRE'
  8255. fi
  8256. fi
  8257. fi
  8258. export_dynamic_flag_spec='${wl}-bexpall'
  8259. # It seems that -bexpall does not export symbols beginning with
  8260. # underscore (_), so it is better to generate a list of symbols to export.
  8261. always_export_symbols=yes
  8262. if test "$aix_use_runtimelinking" = yes; then
  8263. # Warning - without using the other runtime loading flags (-brtl),
  8264. # -berok will link without error, but may produce a broken library.
  8265. allow_undefined_flag='-berok'
  8266. # Determine the default libpath from the value encoded in an
  8267. # empty executable.
  8268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8269. /* end confdefs.h. */
  8270. int
  8271. main ()
  8272. {
  8273. ;
  8274. return 0;
  8275. }
  8276. _ACEOF
  8277. if ac_fn_c_try_link "$LINENO"; then :
  8278. lt_aix_libpath_sed='
  8279. /Import File Strings/,/^$/ {
  8280. /^0/ {
  8281. s/^0 *\(.*\)$/\1/
  8282. p
  8283. }
  8284. }'
  8285. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8286. # Check for a 64-bit object if we didn't find anything.
  8287. if test -z "$aix_libpath"; then
  8288. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8289. fi
  8290. fi
  8291. rm -f core conftest.err conftest.$ac_objext \
  8292. conftest$ac_exeext conftest.$ac_ext
  8293. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8294. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8295. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8296. else
  8297. if test "$host_cpu" = ia64; then
  8298. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8299. allow_undefined_flag="-z nodefs"
  8300. 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"
  8301. else
  8302. # Determine the default libpath from the value encoded in an
  8303. # empty executable.
  8304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8305. /* end confdefs.h. */
  8306. int
  8307. main ()
  8308. {
  8309. ;
  8310. return 0;
  8311. }
  8312. _ACEOF
  8313. if ac_fn_c_try_link "$LINENO"; then :
  8314. lt_aix_libpath_sed='
  8315. /Import File Strings/,/^$/ {
  8316. /^0/ {
  8317. s/^0 *\(.*\)$/\1/
  8318. p
  8319. }
  8320. }'
  8321. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8322. # Check for a 64-bit object if we didn't find anything.
  8323. if test -z "$aix_libpath"; then
  8324. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8325. fi
  8326. fi
  8327. rm -f core conftest.err conftest.$ac_objext \
  8328. conftest$ac_exeext conftest.$ac_ext
  8329. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8330. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8331. # Warning - without using the other run time loading flags,
  8332. # -berok will link without error, but may produce a broken library.
  8333. no_undefined_flag=' ${wl}-bernotok'
  8334. allow_undefined_flag=' ${wl}-berok'
  8335. # Exported symbols can be pulled into shared objects from archives
  8336. whole_archive_flag_spec='$convenience'
  8337. archive_cmds_need_lc=yes
  8338. # This is similar to how AIX traditionally builds its shared libraries.
  8339. 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'
  8340. fi
  8341. fi
  8342. ;;
  8343. amigaos*)
  8344. case $host_cpu in
  8345. powerpc)
  8346. # see comment about AmigaOS4 .so support
  8347. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8348. archive_expsym_cmds=''
  8349. ;;
  8350. m68k)
  8351. 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)'
  8352. hardcode_libdir_flag_spec='-L$libdir'
  8353. hardcode_minus_L=yes
  8354. ;;
  8355. esac
  8356. ;;
  8357. bsdi[45]*)
  8358. export_dynamic_flag_spec=-rdynamic
  8359. ;;
  8360. cygwin* | mingw* | pw32* | cegcc*)
  8361. # When not using gcc, we currently assume that we are using
  8362. # Microsoft Visual C++.
  8363. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8364. # no search path for DLLs.
  8365. hardcode_libdir_flag_spec=' '
  8366. allow_undefined_flag=unsupported
  8367. # Tell ltmain to make .lib files, not .a files.
  8368. libext=lib
  8369. # Tell ltmain to make .dll files, not .so files.
  8370. shrext_cmds=".dll"
  8371. # FIXME: Setting linknames here is a bad hack.
  8372. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8373. # The linker will automatically build a .lib file if we build a DLL.
  8374. old_archive_from_new_cmds='true'
  8375. # FIXME: Should let the user specify the lib program.
  8376. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8377. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8378. enable_shared_with_static_runtimes=yes
  8379. ;;
  8380. darwin* | rhapsody*)
  8381. archive_cmds_need_lc=no
  8382. hardcode_direct=no
  8383. hardcode_automatic=yes
  8384. hardcode_shlibpath_var=unsupported
  8385. whole_archive_flag_spec=''
  8386. link_all_deplibs=yes
  8387. allow_undefined_flag="$_lt_dar_allow_undefined"
  8388. case $cc_basename in
  8389. ifort*) _lt_dar_can_shared=yes ;;
  8390. *) _lt_dar_can_shared=$GCC ;;
  8391. esac
  8392. if test "$_lt_dar_can_shared" = "yes"; then
  8393. output_verbose_link_cmd=echo
  8394. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8395. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8396. 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}"
  8397. 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}"
  8398. else
  8399. ld_shlibs=no
  8400. fi
  8401. ;;
  8402. dgux*)
  8403. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8404. hardcode_libdir_flag_spec='-L$libdir'
  8405. hardcode_shlibpath_var=no
  8406. ;;
  8407. freebsd1*)
  8408. ld_shlibs=no
  8409. ;;
  8410. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8411. # support. Future versions do this automatically, but an explicit c++rt0.o
  8412. # does not break anything, and helps significantly (at the cost of a little
  8413. # extra space).
  8414. freebsd2.2*)
  8415. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8416. hardcode_libdir_flag_spec='-R$libdir'
  8417. hardcode_direct=yes
  8418. hardcode_shlibpath_var=no
  8419. ;;
  8420. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8421. freebsd2*)
  8422. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8423. hardcode_direct=yes
  8424. hardcode_minus_L=yes
  8425. hardcode_shlibpath_var=no
  8426. ;;
  8427. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8428. freebsd* | dragonfly*)
  8429. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8430. hardcode_libdir_flag_spec='-R$libdir'
  8431. hardcode_direct=yes
  8432. hardcode_shlibpath_var=no
  8433. ;;
  8434. hpux9*)
  8435. if test "$GCC" = yes; then
  8436. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8437. else
  8438. 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'
  8439. fi
  8440. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8441. hardcode_libdir_separator=:
  8442. hardcode_direct=yes
  8443. # hardcode_minus_L: Not really in the search PATH,
  8444. # but as the default location of the library.
  8445. hardcode_minus_L=yes
  8446. export_dynamic_flag_spec='${wl}-E'
  8447. ;;
  8448. hpux10*)
  8449. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8450. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8451. else
  8452. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8453. fi
  8454. if test "$with_gnu_ld" = no; then
  8455. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8456. hardcode_libdir_flag_spec_ld='+b $libdir'
  8457. hardcode_libdir_separator=:
  8458. hardcode_direct=yes
  8459. hardcode_direct_absolute=yes
  8460. export_dynamic_flag_spec='${wl}-E'
  8461. # hardcode_minus_L: Not really in the search PATH,
  8462. # but as the default location of the library.
  8463. hardcode_minus_L=yes
  8464. fi
  8465. ;;
  8466. hpux11*)
  8467. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8468. case $host_cpu in
  8469. hppa*64*)
  8470. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8471. ;;
  8472. ia64*)
  8473. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8474. ;;
  8475. *)
  8476. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8477. ;;
  8478. esac
  8479. else
  8480. case $host_cpu in
  8481. hppa*64*)
  8482. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8483. ;;
  8484. ia64*)
  8485. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8486. ;;
  8487. *)
  8488. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8489. ;;
  8490. esac
  8491. fi
  8492. if test "$with_gnu_ld" = no; then
  8493. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8494. hardcode_libdir_separator=:
  8495. case $host_cpu in
  8496. hppa*64*|ia64*)
  8497. hardcode_direct=no
  8498. hardcode_shlibpath_var=no
  8499. ;;
  8500. *)
  8501. hardcode_direct=yes
  8502. hardcode_direct_absolute=yes
  8503. export_dynamic_flag_spec='${wl}-E'
  8504. # hardcode_minus_L: Not really in the search PATH,
  8505. # but as the default location of the library.
  8506. hardcode_minus_L=yes
  8507. ;;
  8508. esac
  8509. fi
  8510. ;;
  8511. irix5* | irix6* | nonstopux*)
  8512. if test "$GCC" = yes; then
  8513. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8514. # Try to use the -exported_symbol ld option, if it does not
  8515. # work, assume that -exports_file does not work either and
  8516. # implicitly export all symbols.
  8517. save_LDFLAGS="$LDFLAGS"
  8518. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8520. /* end confdefs.h. */
  8521. int foo(void) {}
  8522. _ACEOF
  8523. if ac_fn_c_try_link "$LINENO"; then :
  8524. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8525. fi
  8526. rm -f core conftest.err conftest.$ac_objext \
  8527. conftest$ac_exeext conftest.$ac_ext
  8528. LDFLAGS="$save_LDFLAGS"
  8529. else
  8530. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8531. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8532. fi
  8533. archive_cmds_need_lc='no'
  8534. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8535. hardcode_libdir_separator=:
  8536. inherit_rpath=yes
  8537. link_all_deplibs=yes
  8538. ;;
  8539. netbsd* | netbsdelf*-gnu)
  8540. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8541. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8542. else
  8543. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8544. fi
  8545. hardcode_libdir_flag_spec='-R$libdir'
  8546. hardcode_direct=yes
  8547. hardcode_shlibpath_var=no
  8548. ;;
  8549. newsos6)
  8550. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8551. hardcode_direct=yes
  8552. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8553. hardcode_libdir_separator=:
  8554. hardcode_shlibpath_var=no
  8555. ;;
  8556. *nto* | *qnx*)
  8557. ;;
  8558. openbsd*)
  8559. if test -f /usr/libexec/ld.so; then
  8560. hardcode_direct=yes
  8561. hardcode_shlibpath_var=no
  8562. hardcode_direct_absolute=yes
  8563. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8564. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8565. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8566. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8567. export_dynamic_flag_spec='${wl}-E'
  8568. else
  8569. case $host_os in
  8570. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8571. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8572. hardcode_libdir_flag_spec='-R$libdir'
  8573. ;;
  8574. *)
  8575. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8576. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8577. ;;
  8578. esac
  8579. fi
  8580. else
  8581. ld_shlibs=no
  8582. fi
  8583. ;;
  8584. os2*)
  8585. hardcode_libdir_flag_spec='-L$libdir'
  8586. hardcode_minus_L=yes
  8587. allow_undefined_flag=unsupported
  8588. 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'
  8589. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8590. ;;
  8591. osf3*)
  8592. if test "$GCC" = yes; then
  8593. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8594. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8595. else
  8596. allow_undefined_flag=' -expect_unresolved \*'
  8597. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8598. fi
  8599. archive_cmds_need_lc='no'
  8600. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8601. hardcode_libdir_separator=:
  8602. ;;
  8603. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8604. if test "$GCC" = yes; then
  8605. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8606. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8607. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8608. else
  8609. allow_undefined_flag=' -expect_unresolved \*'
  8610. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8611. 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~
  8612. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8613. # Both c and cxx compiler support -rpath directly
  8614. hardcode_libdir_flag_spec='-rpath $libdir'
  8615. fi
  8616. archive_cmds_need_lc='no'
  8617. hardcode_libdir_separator=:
  8618. ;;
  8619. solaris*)
  8620. no_undefined_flag=' -z defs'
  8621. if test "$GCC" = yes; then
  8622. wlarc='${wl}'
  8623. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8624. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8625. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8626. else
  8627. case `$CC -V 2>&1` in
  8628. *"Compilers 5.0"*)
  8629. wlarc=''
  8630. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8631. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8632. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8633. ;;
  8634. *)
  8635. wlarc='${wl}'
  8636. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8637. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8638. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8639. ;;
  8640. esac
  8641. fi
  8642. hardcode_libdir_flag_spec='-R$libdir'
  8643. hardcode_shlibpath_var=no
  8644. case $host_os in
  8645. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8646. *)
  8647. # The compiler driver will combine and reorder linker options,
  8648. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8649. # but is careful enough not to reorder.
  8650. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8651. if test "$GCC" = yes; then
  8652. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8653. else
  8654. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8655. fi
  8656. ;;
  8657. esac
  8658. link_all_deplibs=yes
  8659. ;;
  8660. sunos4*)
  8661. if test "x$host_vendor" = xsequent; then
  8662. # Use $CC to link under sequent, because it throws in some extra .o
  8663. # files that make .init and .fini sections work.
  8664. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8665. else
  8666. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8667. fi
  8668. hardcode_libdir_flag_spec='-L$libdir'
  8669. hardcode_direct=yes
  8670. hardcode_minus_L=yes
  8671. hardcode_shlibpath_var=no
  8672. ;;
  8673. sysv4)
  8674. case $host_vendor in
  8675. sni)
  8676. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8677. hardcode_direct=yes # is this really true???
  8678. ;;
  8679. siemens)
  8680. ## LD is ld it makes a PLAMLIB
  8681. ## CC just makes a GrossModule.
  8682. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8683. reload_cmds='$CC -r -o $output$reload_objs'
  8684. hardcode_direct=no
  8685. ;;
  8686. motorola)
  8687. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8688. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8689. ;;
  8690. esac
  8691. runpath_var='LD_RUN_PATH'
  8692. hardcode_shlibpath_var=no
  8693. ;;
  8694. sysv4.3*)
  8695. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8696. hardcode_shlibpath_var=no
  8697. export_dynamic_flag_spec='-Bexport'
  8698. ;;
  8699. sysv4*MP*)
  8700. if test -d /usr/nec; then
  8701. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8702. hardcode_shlibpath_var=no
  8703. runpath_var=LD_RUN_PATH
  8704. hardcode_runpath_var=yes
  8705. ld_shlibs=yes
  8706. fi
  8707. ;;
  8708. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8709. no_undefined_flag='${wl}-z,text'
  8710. archive_cmds_need_lc=no
  8711. hardcode_shlibpath_var=no
  8712. runpath_var='LD_RUN_PATH'
  8713. if test "$GCC" = yes; then
  8714. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8715. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8716. else
  8717. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8718. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8719. fi
  8720. ;;
  8721. sysv5* | sco3.2v5* | sco5v6*)
  8722. # Note: We can NOT use -z defs as we might desire, because we do not
  8723. # link with -lc, and that would cause any symbols used from libc to
  8724. # always be unresolved, which means just about no library would
  8725. # ever link correctly. If we're not using GNU ld we use -z text
  8726. # though, which does catch some bad symbols but isn't as heavy-handed
  8727. # as -z defs.
  8728. no_undefined_flag='${wl}-z,text'
  8729. allow_undefined_flag='${wl}-z,nodefs'
  8730. archive_cmds_need_lc=no
  8731. hardcode_shlibpath_var=no
  8732. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8733. hardcode_libdir_separator=':'
  8734. link_all_deplibs=yes
  8735. export_dynamic_flag_spec='${wl}-Bexport'
  8736. runpath_var='LD_RUN_PATH'
  8737. if test "$GCC" = yes; then
  8738. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8739. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8740. else
  8741. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8742. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8743. fi
  8744. ;;
  8745. uts4*)
  8746. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8747. hardcode_libdir_flag_spec='-L$libdir'
  8748. hardcode_shlibpath_var=no
  8749. ;;
  8750. *)
  8751. ld_shlibs=no
  8752. ;;
  8753. esac
  8754. if test x$host_vendor = xsni; then
  8755. case $host in
  8756. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8757. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8758. ;;
  8759. esac
  8760. fi
  8761. fi
  8762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8763. $as_echo "$ld_shlibs" >&6; }
  8764. test "$ld_shlibs" = no && can_build_shared=no
  8765. with_gnu_ld=$with_gnu_ld
  8766. #
  8767. # Do we need to explicitly link libc?
  8768. #
  8769. case "x$archive_cmds_need_lc" in
  8770. x|xyes)
  8771. # Assume -lc should be added
  8772. archive_cmds_need_lc=yes
  8773. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8774. case $archive_cmds in
  8775. *'~'*)
  8776. # FIXME: we may have to deal with multi-command sequences.
  8777. ;;
  8778. '$CC '*)
  8779. # Test whether the compiler implicitly links with -lc since on some
  8780. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8781. # to ld, don't add -lc before -lgcc.
  8782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8783. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8784. $RM conftest*
  8785. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8786. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8787. (eval $ac_compile) 2>&5
  8788. ac_status=$?
  8789. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8790. test $ac_status = 0; } 2>conftest.err; then
  8791. soname=conftest
  8792. lib=conftest
  8793. libobjs=conftest.$ac_objext
  8794. deplibs=
  8795. wl=$lt_prog_compiler_wl
  8796. pic_flag=$lt_prog_compiler_pic
  8797. compiler_flags=-v
  8798. linker_flags=-v
  8799. verstring=
  8800. output_objdir=.
  8801. libname=conftest
  8802. lt_save_allow_undefined_flag=$allow_undefined_flag
  8803. allow_undefined_flag=
  8804. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8805. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8806. ac_status=$?
  8807. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8808. test $ac_status = 0; }
  8809. then
  8810. archive_cmds_need_lc=no
  8811. else
  8812. archive_cmds_need_lc=yes
  8813. fi
  8814. allow_undefined_flag=$lt_save_allow_undefined_flag
  8815. else
  8816. cat conftest.err 1>&5
  8817. fi
  8818. $RM conftest*
  8819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8820. $as_echo "$archive_cmds_need_lc" >&6; }
  8821. ;;
  8822. esac
  8823. fi
  8824. ;;
  8825. esac
  8826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8827. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8828. if test "$GCC" = yes; then
  8829. case $host_os in
  8830. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8831. *) lt_awk_arg="/^libraries:/" ;;
  8832. esac
  8833. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8834. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8835. # if the path contains ";" then we assume it to be the separator
  8836. # otherwise default to the standard path separator (i.e. ":") - it is
  8837. # assumed that no part of a normal pathname contains ";" but that should
  8838. # okay in the real world where ";" in dirpaths is itself problematic.
  8839. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8840. else
  8841. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8842. fi
  8843. # Ok, now we have the path, separated by spaces, we can step through it
  8844. # and add multilib dir if necessary.
  8845. lt_tmp_lt_search_path_spec=
  8846. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8847. for lt_sys_path in $lt_search_path_spec; do
  8848. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8849. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8850. else
  8851. test -d "$lt_sys_path" && \
  8852. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8853. fi
  8854. done
  8855. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8856. BEGIN {RS=" "; FS="/|\n";} {
  8857. lt_foo="";
  8858. lt_count=0;
  8859. for (lt_i = NF; lt_i > 0; lt_i--) {
  8860. if ($lt_i != "" && $lt_i != ".") {
  8861. if ($lt_i == "..") {
  8862. lt_count++;
  8863. } else {
  8864. if (lt_count == 0) {
  8865. lt_foo="/" $lt_i lt_foo;
  8866. } else {
  8867. lt_count--;
  8868. }
  8869. }
  8870. }
  8871. }
  8872. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8873. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8874. }'`
  8875. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8876. else
  8877. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8878. fi
  8879. library_names_spec=
  8880. libname_spec='lib$name'
  8881. soname_spec=
  8882. shrext_cmds=".so"
  8883. postinstall_cmds=
  8884. postuninstall_cmds=
  8885. finish_cmds=
  8886. finish_eval=
  8887. shlibpath_var=
  8888. shlibpath_overrides_runpath=unknown
  8889. version_type=none
  8890. dynamic_linker="$host_os ld.so"
  8891. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8892. need_lib_prefix=unknown
  8893. hardcode_into_libs=no
  8894. # when you set need_version to no, make sure it does not cause -set_version
  8895. # flags to be left without arguments
  8896. need_version=unknown
  8897. case $host_os in
  8898. aix3*)
  8899. version_type=linux
  8900. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8901. shlibpath_var=LIBPATH
  8902. # AIX 3 has no versioning support, so we append a major version to the name.
  8903. soname_spec='${libname}${release}${shared_ext}$major'
  8904. ;;
  8905. aix[4-9]*)
  8906. version_type=linux
  8907. need_lib_prefix=no
  8908. need_version=no
  8909. hardcode_into_libs=yes
  8910. if test "$host_cpu" = ia64; then
  8911. # AIX 5 supports IA64
  8912. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8913. shlibpath_var=LD_LIBRARY_PATH
  8914. else
  8915. # With GCC up to 2.95.x, collect2 would create an import file
  8916. # for dependence libraries. The import file would start with
  8917. # the line `#! .'. This would cause the generated library to
  8918. # depend on `.', always an invalid library. This was fixed in
  8919. # development snapshots of GCC prior to 3.0.
  8920. case $host_os in
  8921. aix4 | aix4.[01] | aix4.[01].*)
  8922. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8923. echo ' yes '
  8924. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8925. :
  8926. else
  8927. can_build_shared=no
  8928. fi
  8929. ;;
  8930. esac
  8931. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8932. # soname into executable. Probably we can add versioning support to
  8933. # collect2, so additional links can be useful in future.
  8934. if test "$aix_use_runtimelinking" = yes; then
  8935. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8936. # instead of lib<name>.a to let people know that these are not
  8937. # typical AIX shared libraries.
  8938. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8939. else
  8940. # We preserve .a as extension for shared libraries through AIX4.2
  8941. # and later when we are not doing run time linking.
  8942. library_names_spec='${libname}${release}.a $libname.a'
  8943. soname_spec='${libname}${release}${shared_ext}$major'
  8944. fi
  8945. shlibpath_var=LIBPATH
  8946. fi
  8947. ;;
  8948. amigaos*)
  8949. case $host_cpu in
  8950. powerpc)
  8951. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8952. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8953. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8954. ;;
  8955. m68k)
  8956. library_names_spec='$libname.ixlibrary $libname.a'
  8957. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8958. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8959. ;;
  8960. esac
  8961. ;;
  8962. beos*)
  8963. library_names_spec='${libname}${shared_ext}'
  8964. dynamic_linker="$host_os ld.so"
  8965. shlibpath_var=LIBRARY_PATH
  8966. ;;
  8967. bsdi[45]*)
  8968. version_type=linux
  8969. need_version=no
  8970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8971. soname_spec='${libname}${release}${shared_ext}$major'
  8972. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8973. shlibpath_var=LD_LIBRARY_PATH
  8974. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8975. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8976. # the default ld.so.conf also contains /usr/contrib/lib and
  8977. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8978. # libtool to hard-code these into programs
  8979. ;;
  8980. cygwin* | mingw* | pw32* | cegcc*)
  8981. version_type=windows
  8982. shrext_cmds=".dll"
  8983. need_version=no
  8984. need_lib_prefix=no
  8985. case $GCC,$host_os in
  8986. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8987. library_names_spec='$libname.dll.a'
  8988. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8989. postinstall_cmds='base_file=`basename \${file}`~
  8990. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8991. dldir=$destdir/`dirname \$dlpath`~
  8992. test -d \$dldir || mkdir -p \$dldir~
  8993. $install_prog $dir/$dlname \$dldir/$dlname~
  8994. chmod a+x \$dldir/$dlname~
  8995. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8996. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8997. fi'
  8998. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8999. dlpath=$dir/\$dldll~
  9000. $RM \$dlpath'
  9001. shlibpath_overrides_runpath=yes
  9002. case $host_os in
  9003. cygwin*)
  9004. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9005. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9006. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9007. ;;
  9008. mingw* | cegcc*)
  9009. # MinGW DLLs use traditional 'lib' prefix
  9010. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9011. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9012. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9013. # It is most probably a Windows format PATH printed by
  9014. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9015. # path with ; separators, and with drive letters. We can handle the
  9016. # drive letters (cygwin fileutils understands them), so leave them,
  9017. # especially as we might pass files found there to a mingw objdump,
  9018. # which wouldn't understand a cygwinified path. Ahh.
  9019. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9020. else
  9021. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9022. fi
  9023. ;;
  9024. pw32*)
  9025. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9026. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9027. ;;
  9028. esac
  9029. ;;
  9030. *)
  9031. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9032. ;;
  9033. esac
  9034. dynamic_linker='Win32 ld.exe'
  9035. # FIXME: first we should search . and the directory the executable is in
  9036. shlibpath_var=PATH
  9037. ;;
  9038. darwin* | rhapsody*)
  9039. dynamic_linker="$host_os dyld"
  9040. version_type=darwin
  9041. need_lib_prefix=no
  9042. need_version=no
  9043. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9044. soname_spec='${libname}${release}${major}$shared_ext'
  9045. shlibpath_overrides_runpath=yes
  9046. shlibpath_var=DYLD_LIBRARY_PATH
  9047. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9048. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9049. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9050. ;;
  9051. dgux*)
  9052. version_type=linux
  9053. need_lib_prefix=no
  9054. need_version=no
  9055. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9056. soname_spec='${libname}${release}${shared_ext}$major'
  9057. shlibpath_var=LD_LIBRARY_PATH
  9058. ;;
  9059. freebsd1*)
  9060. dynamic_linker=no
  9061. ;;
  9062. freebsd* | dragonfly*)
  9063. # DragonFly does not have aout. When/if they implement a new
  9064. # versioning mechanism, adjust this.
  9065. if test -x /usr/bin/objformat; then
  9066. objformat=`/usr/bin/objformat`
  9067. else
  9068. case $host_os in
  9069. freebsd[123]*) objformat=aout ;;
  9070. *) objformat=elf ;;
  9071. esac
  9072. fi
  9073. version_type=freebsd-$objformat
  9074. case $version_type in
  9075. freebsd-elf*)
  9076. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9077. need_version=no
  9078. need_lib_prefix=no
  9079. ;;
  9080. freebsd-*)
  9081. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9082. need_version=yes
  9083. ;;
  9084. esac
  9085. shlibpath_var=LD_LIBRARY_PATH
  9086. case $host_os in
  9087. freebsd2*)
  9088. shlibpath_overrides_runpath=yes
  9089. ;;
  9090. freebsd3.[01]* | freebsdelf3.[01]*)
  9091. shlibpath_overrides_runpath=yes
  9092. hardcode_into_libs=yes
  9093. ;;
  9094. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9095. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9096. shlibpath_overrides_runpath=no
  9097. hardcode_into_libs=yes
  9098. ;;
  9099. *) # from 4.6 on, and DragonFly
  9100. shlibpath_overrides_runpath=yes
  9101. hardcode_into_libs=yes
  9102. ;;
  9103. esac
  9104. ;;
  9105. gnu*)
  9106. version_type=linux
  9107. need_lib_prefix=no
  9108. need_version=no
  9109. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9110. soname_spec='${libname}${release}${shared_ext}$major'
  9111. shlibpath_var=LD_LIBRARY_PATH
  9112. hardcode_into_libs=yes
  9113. ;;
  9114. hpux9* | hpux10* | hpux11*)
  9115. # Give a soname corresponding to the major version so that dld.sl refuses to
  9116. # link against other versions.
  9117. version_type=sunos
  9118. need_lib_prefix=no
  9119. need_version=no
  9120. case $host_cpu in
  9121. ia64*)
  9122. shrext_cmds='.so'
  9123. hardcode_into_libs=yes
  9124. dynamic_linker="$host_os dld.so"
  9125. shlibpath_var=LD_LIBRARY_PATH
  9126. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9127. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9128. soname_spec='${libname}${release}${shared_ext}$major'
  9129. if test "X$HPUX_IA64_MODE" = X32; then
  9130. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9131. else
  9132. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9133. fi
  9134. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9135. ;;
  9136. hppa*64*)
  9137. shrext_cmds='.sl'
  9138. hardcode_into_libs=yes
  9139. dynamic_linker="$host_os dld.sl"
  9140. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9141. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9142. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9143. soname_spec='${libname}${release}${shared_ext}$major'
  9144. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9145. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9146. ;;
  9147. *)
  9148. shrext_cmds='.sl'
  9149. dynamic_linker="$host_os dld.sl"
  9150. shlibpath_var=SHLIB_PATH
  9151. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9152. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9153. soname_spec='${libname}${release}${shared_ext}$major'
  9154. ;;
  9155. esac
  9156. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9157. postinstall_cmds='chmod 555 $lib'
  9158. ;;
  9159. interix[3-9]*)
  9160. version_type=linux
  9161. need_lib_prefix=no
  9162. need_version=no
  9163. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9164. soname_spec='${libname}${release}${shared_ext}$major'
  9165. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9166. shlibpath_var=LD_LIBRARY_PATH
  9167. shlibpath_overrides_runpath=no
  9168. hardcode_into_libs=yes
  9169. ;;
  9170. irix5* | irix6* | nonstopux*)
  9171. case $host_os in
  9172. nonstopux*) version_type=nonstopux ;;
  9173. *)
  9174. if test "$lt_cv_prog_gnu_ld" = yes; then
  9175. version_type=linux
  9176. else
  9177. version_type=irix
  9178. fi ;;
  9179. esac
  9180. need_lib_prefix=no
  9181. need_version=no
  9182. soname_spec='${libname}${release}${shared_ext}$major'
  9183. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9184. case $host_os in
  9185. irix5* | nonstopux*)
  9186. libsuff= shlibsuff=
  9187. ;;
  9188. *)
  9189. case $LD in # libtool.m4 will add one of these switches to LD
  9190. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9191. libsuff= shlibsuff= libmagic=32-bit;;
  9192. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9193. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9194. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9195. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9196. *) libsuff= shlibsuff= libmagic=never-match;;
  9197. esac
  9198. ;;
  9199. esac
  9200. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9201. shlibpath_overrides_runpath=no
  9202. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9203. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9204. hardcode_into_libs=yes
  9205. ;;
  9206. # No shared lib support for Linux oldld, aout, or coff.
  9207. linux*oldld* | linux*aout* | linux*coff*)
  9208. dynamic_linker=no
  9209. ;;
  9210. # This must be Linux ELF.
  9211. linux* | k*bsd*-gnu)
  9212. version_type=linux
  9213. need_lib_prefix=no
  9214. need_version=no
  9215. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9216. soname_spec='${libname}${release}${shared_ext}$major'
  9217. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9218. shlibpath_var=LD_LIBRARY_PATH
  9219. shlibpath_overrides_runpath=no
  9220. # Some binutils ld are patched to set DT_RUNPATH
  9221. save_LDFLAGS=$LDFLAGS
  9222. save_libdir=$libdir
  9223. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9224. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9225. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9226. /* end confdefs.h. */
  9227. int
  9228. main ()
  9229. {
  9230. ;
  9231. return 0;
  9232. }
  9233. _ACEOF
  9234. if ac_fn_c_try_link "$LINENO"; then :
  9235. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9236. shlibpath_overrides_runpath=yes
  9237. fi
  9238. fi
  9239. rm -f core conftest.err conftest.$ac_objext \
  9240. conftest$ac_exeext conftest.$ac_ext
  9241. LDFLAGS=$save_LDFLAGS
  9242. libdir=$save_libdir
  9243. # This implies no fast_install, which is unacceptable.
  9244. # Some rework will be needed to allow for fast_install
  9245. # before this can be enabled.
  9246. hardcode_into_libs=yes
  9247. # Append ld.so.conf contents to the search path
  9248. if test -f /etc/ld.so.conf; then
  9249. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  9250. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9251. fi
  9252. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9253. # powerpc, because MkLinux only supported shared libraries with the
  9254. # GNU dynamic linker. Since this was broken with cross compilers,
  9255. # most powerpc-linux boxes support dynamic linking these days and
  9256. # people can always --disable-shared, the test was removed, and we
  9257. # assume the GNU/Linux dynamic linker is in use.
  9258. dynamic_linker='GNU/Linux ld.so'
  9259. ;;
  9260. netbsdelf*-gnu)
  9261. version_type=linux
  9262. need_lib_prefix=no
  9263. need_version=no
  9264. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9265. soname_spec='${libname}${release}${shared_ext}$major'
  9266. shlibpath_var=LD_LIBRARY_PATH
  9267. shlibpath_overrides_runpath=no
  9268. hardcode_into_libs=yes
  9269. dynamic_linker='NetBSD ld.elf_so'
  9270. ;;
  9271. netbsd*)
  9272. version_type=sunos
  9273. need_lib_prefix=no
  9274. need_version=no
  9275. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9277. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9278. dynamic_linker='NetBSD (a.out) ld.so'
  9279. else
  9280. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9281. soname_spec='${libname}${release}${shared_ext}$major'
  9282. dynamic_linker='NetBSD ld.elf_so'
  9283. fi
  9284. shlibpath_var=LD_LIBRARY_PATH
  9285. shlibpath_overrides_runpath=yes
  9286. hardcode_into_libs=yes
  9287. ;;
  9288. newsos6)
  9289. version_type=linux
  9290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9291. shlibpath_var=LD_LIBRARY_PATH
  9292. shlibpath_overrides_runpath=yes
  9293. ;;
  9294. *nto* | *qnx*)
  9295. version_type=qnx
  9296. need_lib_prefix=no
  9297. need_version=no
  9298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9299. soname_spec='${libname}${release}${shared_ext}$major'
  9300. shlibpath_var=LD_LIBRARY_PATH
  9301. shlibpath_overrides_runpath=no
  9302. hardcode_into_libs=yes
  9303. dynamic_linker='ldqnx.so'
  9304. ;;
  9305. openbsd*)
  9306. version_type=sunos
  9307. sys_lib_dlsearch_path_spec="/usr/lib"
  9308. need_lib_prefix=no
  9309. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9310. case $host_os in
  9311. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9312. *) need_version=no ;;
  9313. esac
  9314. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9315. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9316. shlibpath_var=LD_LIBRARY_PATH
  9317. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9318. case $host_os in
  9319. openbsd2.[89] | openbsd2.[89].*)
  9320. shlibpath_overrides_runpath=no
  9321. ;;
  9322. *)
  9323. shlibpath_overrides_runpath=yes
  9324. ;;
  9325. esac
  9326. else
  9327. shlibpath_overrides_runpath=yes
  9328. fi
  9329. ;;
  9330. os2*)
  9331. libname_spec='$name'
  9332. shrext_cmds=".dll"
  9333. need_lib_prefix=no
  9334. library_names_spec='$libname${shared_ext} $libname.a'
  9335. dynamic_linker='OS/2 ld.exe'
  9336. shlibpath_var=LIBPATH
  9337. ;;
  9338. osf3* | osf4* | osf5*)
  9339. version_type=osf
  9340. need_lib_prefix=no
  9341. need_version=no
  9342. soname_spec='${libname}${release}${shared_ext}$major'
  9343. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9344. shlibpath_var=LD_LIBRARY_PATH
  9345. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9346. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9347. ;;
  9348. rdos*)
  9349. dynamic_linker=no
  9350. ;;
  9351. solaris*)
  9352. version_type=linux
  9353. need_lib_prefix=no
  9354. need_version=no
  9355. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9356. soname_spec='${libname}${release}${shared_ext}$major'
  9357. shlibpath_var=LD_LIBRARY_PATH
  9358. shlibpath_overrides_runpath=yes
  9359. hardcode_into_libs=yes
  9360. # ldd complains unless libraries are executable
  9361. postinstall_cmds='chmod +x $lib'
  9362. ;;
  9363. sunos4*)
  9364. version_type=sunos
  9365. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9366. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9367. shlibpath_var=LD_LIBRARY_PATH
  9368. shlibpath_overrides_runpath=yes
  9369. if test "$with_gnu_ld" = yes; then
  9370. need_lib_prefix=no
  9371. fi
  9372. need_version=yes
  9373. ;;
  9374. sysv4 | sysv4.3*)
  9375. version_type=linux
  9376. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9377. soname_spec='${libname}${release}${shared_ext}$major'
  9378. shlibpath_var=LD_LIBRARY_PATH
  9379. case $host_vendor in
  9380. sni)
  9381. shlibpath_overrides_runpath=no
  9382. need_lib_prefix=no
  9383. runpath_var=LD_RUN_PATH
  9384. ;;
  9385. siemens)
  9386. need_lib_prefix=no
  9387. ;;
  9388. motorola)
  9389. need_lib_prefix=no
  9390. need_version=no
  9391. shlibpath_overrides_runpath=no
  9392. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9393. ;;
  9394. esac
  9395. ;;
  9396. sysv4*MP*)
  9397. if test -d /usr/nec ;then
  9398. version_type=linux
  9399. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9400. soname_spec='$libname${shared_ext}.$major'
  9401. shlibpath_var=LD_LIBRARY_PATH
  9402. fi
  9403. ;;
  9404. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9405. version_type=freebsd-elf
  9406. need_lib_prefix=no
  9407. need_version=no
  9408. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9409. soname_spec='${libname}${release}${shared_ext}$major'
  9410. shlibpath_var=LD_LIBRARY_PATH
  9411. shlibpath_overrides_runpath=yes
  9412. hardcode_into_libs=yes
  9413. if test "$with_gnu_ld" = yes; then
  9414. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9415. else
  9416. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9417. case $host_os in
  9418. sco3.2v5*)
  9419. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9420. ;;
  9421. esac
  9422. fi
  9423. sys_lib_dlsearch_path_spec='/usr/lib'
  9424. ;;
  9425. tpf*)
  9426. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9427. version_type=linux
  9428. need_lib_prefix=no
  9429. need_version=no
  9430. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9431. shlibpath_var=LD_LIBRARY_PATH
  9432. shlibpath_overrides_runpath=no
  9433. hardcode_into_libs=yes
  9434. ;;
  9435. uts4*)
  9436. version_type=linux
  9437. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9438. soname_spec='${libname}${release}${shared_ext}$major'
  9439. shlibpath_var=LD_LIBRARY_PATH
  9440. ;;
  9441. *)
  9442. dynamic_linker=no
  9443. ;;
  9444. esac
  9445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9446. $as_echo "$dynamic_linker" >&6; }
  9447. test "$dynamic_linker" = no && can_build_shared=no
  9448. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9449. if test "$GCC" = yes; then
  9450. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9451. fi
  9452. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9453. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9454. fi
  9455. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9456. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9457. fi
  9458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9459. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9460. hardcode_action=
  9461. if test -n "$hardcode_libdir_flag_spec" ||
  9462. test -n "$runpath_var" ||
  9463. test "X$hardcode_automatic" = "Xyes" ; then
  9464. # We can hardcode non-existent directories.
  9465. if test "$hardcode_direct" != no &&
  9466. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9467. # have to relink, otherwise we might link with an installed library
  9468. # when we should be linking with a yet-to-be-installed one
  9469. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9470. test "$hardcode_minus_L" != no; then
  9471. # Linking always hardcodes the temporary library directory.
  9472. hardcode_action=relink
  9473. else
  9474. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9475. hardcode_action=immediate
  9476. fi
  9477. else
  9478. # We cannot hardcode anything, or else we can only hardcode existing
  9479. # directories.
  9480. hardcode_action=unsupported
  9481. fi
  9482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9483. $as_echo "$hardcode_action" >&6; }
  9484. if test "$hardcode_action" = relink ||
  9485. test "$inherit_rpath" = yes; then
  9486. # Fast installation is not supported
  9487. enable_fast_install=no
  9488. elif test "$shlibpath_overrides_runpath" = yes ||
  9489. test "$enable_shared" = no; then
  9490. # Fast installation is not necessary
  9491. enable_fast_install=needless
  9492. fi
  9493. if test "x$enable_dlopen" != xyes; then
  9494. enable_dlopen=unknown
  9495. enable_dlopen_self=unknown
  9496. enable_dlopen_self_static=unknown
  9497. else
  9498. lt_cv_dlopen=no
  9499. lt_cv_dlopen_libs=
  9500. case $host_os in
  9501. beos*)
  9502. lt_cv_dlopen="load_add_on"
  9503. lt_cv_dlopen_libs=
  9504. lt_cv_dlopen_self=yes
  9505. ;;
  9506. mingw* | pw32* | cegcc*)
  9507. lt_cv_dlopen="LoadLibrary"
  9508. lt_cv_dlopen_libs=
  9509. ;;
  9510. cygwin*)
  9511. lt_cv_dlopen="dlopen"
  9512. lt_cv_dlopen_libs=
  9513. ;;
  9514. darwin*)
  9515. # if libdl is installed we need to link against it
  9516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9517. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9518. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9519. $as_echo_n "(cached) " >&6
  9520. else
  9521. ac_check_lib_save_LIBS=$LIBS
  9522. LIBS="-ldl $LIBS"
  9523. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9524. /* end confdefs.h. */
  9525. /* Override any GCC internal prototype to avoid an error.
  9526. Use char because int might match the return type of a GCC
  9527. builtin and then its argument prototype would still apply. */
  9528. #ifdef __cplusplus
  9529. extern "C"
  9530. #endif
  9531. char dlopen ();
  9532. int
  9533. main ()
  9534. {
  9535. return dlopen ();
  9536. ;
  9537. return 0;
  9538. }
  9539. _ACEOF
  9540. if ac_fn_c_try_link "$LINENO"; then :
  9541. ac_cv_lib_dl_dlopen=yes
  9542. else
  9543. ac_cv_lib_dl_dlopen=no
  9544. fi
  9545. rm -f core conftest.err conftest.$ac_objext \
  9546. conftest$ac_exeext conftest.$ac_ext
  9547. LIBS=$ac_check_lib_save_LIBS
  9548. fi
  9549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9550. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9551. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9552. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9553. else
  9554. lt_cv_dlopen="dyld"
  9555. lt_cv_dlopen_libs=
  9556. lt_cv_dlopen_self=yes
  9557. fi
  9558. ;;
  9559. *)
  9560. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9561. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9562. lt_cv_dlopen="shl_load"
  9563. else
  9564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9565. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9566. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9567. $as_echo_n "(cached) " >&6
  9568. else
  9569. ac_check_lib_save_LIBS=$LIBS
  9570. LIBS="-ldld $LIBS"
  9571. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9572. /* end confdefs.h. */
  9573. /* Override any GCC internal prototype to avoid an error.
  9574. Use char because int might match the return type of a GCC
  9575. builtin and then its argument prototype would still apply. */
  9576. #ifdef __cplusplus
  9577. extern "C"
  9578. #endif
  9579. char shl_load ();
  9580. int
  9581. main ()
  9582. {
  9583. return shl_load ();
  9584. ;
  9585. return 0;
  9586. }
  9587. _ACEOF
  9588. if ac_fn_c_try_link "$LINENO"; then :
  9589. ac_cv_lib_dld_shl_load=yes
  9590. else
  9591. ac_cv_lib_dld_shl_load=no
  9592. fi
  9593. rm -f core conftest.err conftest.$ac_objext \
  9594. conftest$ac_exeext conftest.$ac_ext
  9595. LIBS=$ac_check_lib_save_LIBS
  9596. fi
  9597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9598. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9599. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9600. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9601. else
  9602. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9603. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9604. lt_cv_dlopen="dlopen"
  9605. else
  9606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9607. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9608. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9609. $as_echo_n "(cached) " >&6
  9610. else
  9611. ac_check_lib_save_LIBS=$LIBS
  9612. LIBS="-ldl $LIBS"
  9613. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9614. /* end confdefs.h. */
  9615. /* Override any GCC internal prototype to avoid an error.
  9616. Use char because int might match the return type of a GCC
  9617. builtin and then its argument prototype would still apply. */
  9618. #ifdef __cplusplus
  9619. extern "C"
  9620. #endif
  9621. char dlopen ();
  9622. int
  9623. main ()
  9624. {
  9625. return dlopen ();
  9626. ;
  9627. return 0;
  9628. }
  9629. _ACEOF
  9630. if ac_fn_c_try_link "$LINENO"; then :
  9631. ac_cv_lib_dl_dlopen=yes
  9632. else
  9633. ac_cv_lib_dl_dlopen=no
  9634. fi
  9635. rm -f core conftest.err conftest.$ac_objext \
  9636. conftest$ac_exeext conftest.$ac_ext
  9637. LIBS=$ac_check_lib_save_LIBS
  9638. fi
  9639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9640. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9641. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9642. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9643. else
  9644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9645. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9646. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9647. $as_echo_n "(cached) " >&6
  9648. else
  9649. ac_check_lib_save_LIBS=$LIBS
  9650. LIBS="-lsvld $LIBS"
  9651. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9652. /* end confdefs.h. */
  9653. /* Override any GCC internal prototype to avoid an error.
  9654. Use char because int might match the return type of a GCC
  9655. builtin and then its argument prototype would still apply. */
  9656. #ifdef __cplusplus
  9657. extern "C"
  9658. #endif
  9659. char dlopen ();
  9660. int
  9661. main ()
  9662. {
  9663. return dlopen ();
  9664. ;
  9665. return 0;
  9666. }
  9667. _ACEOF
  9668. if ac_fn_c_try_link "$LINENO"; then :
  9669. ac_cv_lib_svld_dlopen=yes
  9670. else
  9671. ac_cv_lib_svld_dlopen=no
  9672. fi
  9673. rm -f core conftest.err conftest.$ac_objext \
  9674. conftest$ac_exeext conftest.$ac_ext
  9675. LIBS=$ac_check_lib_save_LIBS
  9676. fi
  9677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9678. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9679. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9680. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9681. else
  9682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9683. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9684. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9685. $as_echo_n "(cached) " >&6
  9686. else
  9687. ac_check_lib_save_LIBS=$LIBS
  9688. LIBS="-ldld $LIBS"
  9689. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9690. /* end confdefs.h. */
  9691. /* Override any GCC internal prototype to avoid an error.
  9692. Use char because int might match the return type of a GCC
  9693. builtin and then its argument prototype would still apply. */
  9694. #ifdef __cplusplus
  9695. extern "C"
  9696. #endif
  9697. char dld_link ();
  9698. int
  9699. main ()
  9700. {
  9701. return dld_link ();
  9702. ;
  9703. return 0;
  9704. }
  9705. _ACEOF
  9706. if ac_fn_c_try_link "$LINENO"; then :
  9707. ac_cv_lib_dld_dld_link=yes
  9708. else
  9709. ac_cv_lib_dld_dld_link=no
  9710. fi
  9711. rm -f core conftest.err conftest.$ac_objext \
  9712. conftest$ac_exeext conftest.$ac_ext
  9713. LIBS=$ac_check_lib_save_LIBS
  9714. fi
  9715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9716. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9717. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9718. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9719. fi
  9720. fi
  9721. fi
  9722. fi
  9723. fi
  9724. fi
  9725. ;;
  9726. esac
  9727. if test "x$lt_cv_dlopen" != xno; then
  9728. enable_dlopen=yes
  9729. else
  9730. enable_dlopen=no
  9731. fi
  9732. case $lt_cv_dlopen in
  9733. dlopen)
  9734. save_CPPFLAGS="$CPPFLAGS"
  9735. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9736. save_LDFLAGS="$LDFLAGS"
  9737. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9738. save_LIBS="$LIBS"
  9739. LIBS="$lt_cv_dlopen_libs $LIBS"
  9740. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9741. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9742. if test "${lt_cv_dlopen_self+set}" = set; then :
  9743. $as_echo_n "(cached) " >&6
  9744. else
  9745. if test "$cross_compiling" = yes; then :
  9746. lt_cv_dlopen_self=cross
  9747. else
  9748. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9749. lt_status=$lt_dlunknown
  9750. cat > conftest.$ac_ext <<_LT_EOF
  9751. #line 11296 "configure"
  9752. #include "confdefs.h"
  9753. #if HAVE_DLFCN_H
  9754. #include <dlfcn.h>
  9755. #endif
  9756. #include <stdio.h>
  9757. #ifdef RTLD_GLOBAL
  9758. # define LT_DLGLOBAL RTLD_GLOBAL
  9759. #else
  9760. # ifdef DL_GLOBAL
  9761. # define LT_DLGLOBAL DL_GLOBAL
  9762. # else
  9763. # define LT_DLGLOBAL 0
  9764. # endif
  9765. #endif
  9766. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9767. find out it does not work in some platform. */
  9768. #ifndef LT_DLLAZY_OR_NOW
  9769. # ifdef RTLD_LAZY
  9770. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9771. # else
  9772. # ifdef DL_LAZY
  9773. # define LT_DLLAZY_OR_NOW DL_LAZY
  9774. # else
  9775. # ifdef RTLD_NOW
  9776. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9777. # else
  9778. # ifdef DL_NOW
  9779. # define LT_DLLAZY_OR_NOW DL_NOW
  9780. # else
  9781. # define LT_DLLAZY_OR_NOW 0
  9782. # endif
  9783. # endif
  9784. # endif
  9785. # endif
  9786. #endif
  9787. void fnord() { int i=42;}
  9788. int main ()
  9789. {
  9790. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9791. int status = $lt_dlunknown;
  9792. if (self)
  9793. {
  9794. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9795. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9796. /* dlclose (self); */
  9797. }
  9798. else
  9799. puts (dlerror ());
  9800. return status;
  9801. }
  9802. _LT_EOF
  9803. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9804. (eval $ac_link) 2>&5
  9805. ac_status=$?
  9806. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9807. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9808. (./conftest; exit; ) >&5 2>/dev/null
  9809. lt_status=$?
  9810. case x$lt_status in
  9811. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9812. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9813. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9814. esac
  9815. else :
  9816. # compilation failed
  9817. lt_cv_dlopen_self=no
  9818. fi
  9819. fi
  9820. rm -fr conftest*
  9821. fi
  9822. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9823. $as_echo "$lt_cv_dlopen_self" >&6; }
  9824. if test "x$lt_cv_dlopen_self" = xyes; then
  9825. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9827. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9828. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9829. $as_echo_n "(cached) " >&6
  9830. else
  9831. if test "$cross_compiling" = yes; then :
  9832. lt_cv_dlopen_self_static=cross
  9833. else
  9834. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9835. lt_status=$lt_dlunknown
  9836. cat > conftest.$ac_ext <<_LT_EOF
  9837. #line 11392 "configure"
  9838. #include "confdefs.h"
  9839. #if HAVE_DLFCN_H
  9840. #include <dlfcn.h>
  9841. #endif
  9842. #include <stdio.h>
  9843. #ifdef RTLD_GLOBAL
  9844. # define LT_DLGLOBAL RTLD_GLOBAL
  9845. #else
  9846. # ifdef DL_GLOBAL
  9847. # define LT_DLGLOBAL DL_GLOBAL
  9848. # else
  9849. # define LT_DLGLOBAL 0
  9850. # endif
  9851. #endif
  9852. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9853. find out it does not work in some platform. */
  9854. #ifndef LT_DLLAZY_OR_NOW
  9855. # ifdef RTLD_LAZY
  9856. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9857. # else
  9858. # ifdef DL_LAZY
  9859. # define LT_DLLAZY_OR_NOW DL_LAZY
  9860. # else
  9861. # ifdef RTLD_NOW
  9862. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9863. # else
  9864. # ifdef DL_NOW
  9865. # define LT_DLLAZY_OR_NOW DL_NOW
  9866. # else
  9867. # define LT_DLLAZY_OR_NOW 0
  9868. # endif
  9869. # endif
  9870. # endif
  9871. # endif
  9872. #endif
  9873. void fnord() { int i=42;}
  9874. int main ()
  9875. {
  9876. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9877. int status = $lt_dlunknown;
  9878. if (self)
  9879. {
  9880. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9881. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9882. /* dlclose (self); */
  9883. }
  9884. else
  9885. puts (dlerror ());
  9886. return status;
  9887. }
  9888. _LT_EOF
  9889. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9890. (eval $ac_link) 2>&5
  9891. ac_status=$?
  9892. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9893. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9894. (./conftest; exit; ) >&5 2>/dev/null
  9895. lt_status=$?
  9896. case x$lt_status in
  9897. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9898. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9899. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9900. esac
  9901. else :
  9902. # compilation failed
  9903. lt_cv_dlopen_self_static=no
  9904. fi
  9905. fi
  9906. rm -fr conftest*
  9907. fi
  9908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9909. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9910. fi
  9911. CPPFLAGS="$save_CPPFLAGS"
  9912. LDFLAGS="$save_LDFLAGS"
  9913. LIBS="$save_LIBS"
  9914. ;;
  9915. esac
  9916. case $lt_cv_dlopen_self in
  9917. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9918. *) enable_dlopen_self=unknown ;;
  9919. esac
  9920. case $lt_cv_dlopen_self_static in
  9921. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9922. *) enable_dlopen_self_static=unknown ;;
  9923. esac
  9924. fi
  9925. striplib=
  9926. old_striplib=
  9927. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9928. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9929. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9930. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9931. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9932. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9933. $as_echo "yes" >&6; }
  9934. else
  9935. # FIXME - insert some real tests, host_os isn't really good enough
  9936. case $host_os in
  9937. darwin*)
  9938. if test -n "$STRIP" ; then
  9939. striplib="$STRIP -x"
  9940. old_striplib="$STRIP -S"
  9941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9942. $as_echo "yes" >&6; }
  9943. else
  9944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9945. $as_echo "no" >&6; }
  9946. fi
  9947. ;;
  9948. *)
  9949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9950. $as_echo "no" >&6; }
  9951. ;;
  9952. esac
  9953. fi
  9954. # Report which library types will actually be built
  9955. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9956. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9958. $as_echo "$can_build_shared" >&6; }
  9959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9960. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9961. test "$can_build_shared" = "no" && enable_shared=no
  9962. # On AIX, shared libraries and static libraries use the same namespace, and
  9963. # are all built from PIC.
  9964. case $host_os in
  9965. aix3*)
  9966. test "$enable_shared" = yes && enable_static=no
  9967. if test -n "$RANLIB"; then
  9968. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9969. postinstall_cmds='$RANLIB $lib'
  9970. fi
  9971. ;;
  9972. aix[4-9]*)
  9973. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9974. test "$enable_shared" = yes && enable_static=no
  9975. fi
  9976. ;;
  9977. esac
  9978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9979. $as_echo "$enable_shared" >&6; }
  9980. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9981. $as_echo_n "checking whether to build static libraries... " >&6; }
  9982. # Make sure either enable_shared or enable_static is yes.
  9983. test "$enable_shared" = yes || enable_static=yes
  9984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9985. $as_echo "$enable_static" >&6; }
  9986. fi
  9987. ac_ext=cpp
  9988. ac_cpp='$CXXCPP $CPPFLAGS'
  9989. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9990. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9991. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9992. CC="$lt_save_CC"
  9993. ac_ext=cpp
  9994. ac_cpp='$CXXCPP $CPPFLAGS'
  9995. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9996. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9997. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9998. archive_cmds_need_lc_CXX=no
  9999. allow_undefined_flag_CXX=
  10000. always_export_symbols_CXX=no
  10001. archive_expsym_cmds_CXX=
  10002. compiler_needs_object_CXX=no
  10003. export_dynamic_flag_spec_CXX=
  10004. hardcode_direct_CXX=no
  10005. hardcode_direct_absolute_CXX=no
  10006. hardcode_libdir_flag_spec_CXX=
  10007. hardcode_libdir_flag_spec_ld_CXX=
  10008. hardcode_libdir_separator_CXX=
  10009. hardcode_minus_L_CXX=no
  10010. hardcode_shlibpath_var_CXX=unsupported
  10011. hardcode_automatic_CXX=no
  10012. inherit_rpath_CXX=no
  10013. module_cmds_CXX=
  10014. module_expsym_cmds_CXX=
  10015. link_all_deplibs_CXX=unknown
  10016. old_archive_cmds_CXX=$old_archive_cmds
  10017. no_undefined_flag_CXX=
  10018. whole_archive_flag_spec_CXX=
  10019. enable_shared_with_static_runtimes_CXX=no
  10020. # Source file extension for C++ test sources.
  10021. ac_ext=cpp
  10022. # Object file extension for compiled C++ test sources.
  10023. objext=o
  10024. objext_CXX=$objext
  10025. # No sense in running all these tests if we already determined that
  10026. # the CXX compiler isn't working. Some variables (like enable_shared)
  10027. # are currently assumed to apply to all compilers on this platform,
  10028. # and will be corrupted by setting them based on a non-working compiler.
  10029. if test "$_lt_caught_CXX_error" != yes; then
  10030. # Code to be used in simple compile tests
  10031. lt_simple_compile_test_code="int some_variable = 0;"
  10032. # Code to be used in simple link tests
  10033. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10034. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10035. # If no C compiler was specified, use CC.
  10036. LTCC=${LTCC-"$CC"}
  10037. # If no C compiler flags were specified, use CFLAGS.
  10038. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10039. # Allow CC to be a program name with arguments.
  10040. compiler=$CC
  10041. # save warnings/boilerplate of simple test code
  10042. ac_outfile=conftest.$ac_objext
  10043. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10044. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10045. _lt_compiler_boilerplate=`cat conftest.err`
  10046. $RM conftest*
  10047. ac_outfile=conftest.$ac_objext
  10048. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10049. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10050. _lt_linker_boilerplate=`cat conftest.err`
  10051. $RM -r conftest*
  10052. # Allow CC to be a program name with arguments.
  10053. lt_save_CC=$CC
  10054. lt_save_LD=$LD
  10055. lt_save_GCC=$GCC
  10056. GCC=$GXX
  10057. lt_save_with_gnu_ld=$with_gnu_ld
  10058. lt_save_path_LD=$lt_cv_path_LD
  10059. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10060. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10061. else
  10062. $as_unset lt_cv_prog_gnu_ld
  10063. fi
  10064. if test -n "${lt_cv_path_LDCXX+set}"; then
  10065. lt_cv_path_LD=$lt_cv_path_LDCXX
  10066. else
  10067. $as_unset lt_cv_path_LD
  10068. fi
  10069. test -z "${LDCXX+set}" || LD=$LDCXX
  10070. CC=${CXX-"c++"}
  10071. compiler=$CC
  10072. compiler_CXX=$CC
  10073. for cc_temp in $compiler""; do
  10074. case $cc_temp in
  10075. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10076. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10077. \-*) ;;
  10078. *) break;;
  10079. esac
  10080. done
  10081. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10082. if test -n "$compiler"; then
  10083. # We don't want -fno-exception when compiling C++ code, so set the
  10084. # no_builtin_flag separately
  10085. if test "$GXX" = yes; then
  10086. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10087. else
  10088. lt_prog_compiler_no_builtin_flag_CXX=
  10089. fi
  10090. if test "$GXX" = yes; then
  10091. # Set up default GNU C++ configuration
  10092. # Check whether --with-gnu-ld was given.
  10093. if test "${with_gnu_ld+set}" = set; then :
  10094. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10095. else
  10096. with_gnu_ld=no
  10097. fi
  10098. ac_prog=ld
  10099. if test "$GCC" = yes; then
  10100. # Check if gcc -print-prog-name=ld gives a path.
  10101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10102. $as_echo_n "checking for ld used by $CC... " >&6; }
  10103. case $host in
  10104. *-*-mingw*)
  10105. # gcc leaves a trailing carriage return which upsets mingw
  10106. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10107. *)
  10108. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10109. esac
  10110. case $ac_prog in
  10111. # Accept absolute paths.
  10112. [\\/]* | ?:[\\/]*)
  10113. re_direlt='/[^/][^/]*/\.\./'
  10114. # Canonicalize the pathname of ld
  10115. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10116. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10117. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10118. done
  10119. test -z "$LD" && LD="$ac_prog"
  10120. ;;
  10121. "")
  10122. # If it fails, then pretend we aren't using GCC.
  10123. ac_prog=ld
  10124. ;;
  10125. *)
  10126. # If it is relative, then search for the first ld in PATH.
  10127. with_gnu_ld=unknown
  10128. ;;
  10129. esac
  10130. elif test "$with_gnu_ld" = yes; then
  10131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10132. $as_echo_n "checking for GNU ld... " >&6; }
  10133. else
  10134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10135. $as_echo_n "checking for non-GNU ld... " >&6; }
  10136. fi
  10137. if test "${lt_cv_path_LD+set}" = set; then :
  10138. $as_echo_n "(cached) " >&6
  10139. else
  10140. if test -z "$LD"; then
  10141. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10142. for ac_dir in $PATH; do
  10143. IFS="$lt_save_ifs"
  10144. test -z "$ac_dir" && ac_dir=.
  10145. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10146. lt_cv_path_LD="$ac_dir/$ac_prog"
  10147. # Check to see if the program is GNU ld. I'd rather use --version,
  10148. # but apparently some variants of GNU ld only accept -v.
  10149. # Break only if it was the GNU/non-GNU ld that we prefer.
  10150. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10151. *GNU* | *'with BFD'*)
  10152. test "$with_gnu_ld" != no && break
  10153. ;;
  10154. *)
  10155. test "$with_gnu_ld" != yes && break
  10156. ;;
  10157. esac
  10158. fi
  10159. done
  10160. IFS="$lt_save_ifs"
  10161. else
  10162. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10163. fi
  10164. fi
  10165. LD="$lt_cv_path_LD"
  10166. if test -n "$LD"; then
  10167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10168. $as_echo "$LD" >&6; }
  10169. else
  10170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10171. $as_echo "no" >&6; }
  10172. fi
  10173. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10174. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10175. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10176. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10177. $as_echo_n "(cached) " >&6
  10178. else
  10179. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10180. case `$LD -v 2>&1 </dev/null` in
  10181. *GNU* | *'with BFD'*)
  10182. lt_cv_prog_gnu_ld=yes
  10183. ;;
  10184. *)
  10185. lt_cv_prog_gnu_ld=no
  10186. ;;
  10187. esac
  10188. fi
  10189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10190. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10191. with_gnu_ld=$lt_cv_prog_gnu_ld
  10192. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10193. # archiving commands below assume that GNU ld is being used.
  10194. if test "$with_gnu_ld" = yes; then
  10195. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10196. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10197. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10198. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10199. # If archive_cmds runs LD, not CC, wlarc should be empty
  10200. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10201. # investigate it a little bit more. (MM)
  10202. wlarc='${wl}'
  10203. # ancient GNU ld didn't support --whole-archive et. al.
  10204. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10205. $GREP 'no-whole-archive' > /dev/null; then
  10206. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10207. else
  10208. whole_archive_flag_spec_CXX=
  10209. fi
  10210. else
  10211. with_gnu_ld=no
  10212. wlarc=
  10213. # A generic and very simple default shared library creation
  10214. # command for GNU C++ for the case where it uses the native
  10215. # linker, instead of GNU ld. If possible, this setting should
  10216. # overridden to take advantage of the native linker features on
  10217. # the platform it is being used on.
  10218. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10219. fi
  10220. # Commands to make compiler produce verbose output that lists
  10221. # what "hidden" libraries, object files and flags are used when
  10222. # linking a shared library.
  10223. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10224. else
  10225. GXX=no
  10226. with_gnu_ld=no
  10227. wlarc=
  10228. fi
  10229. # PORTME: fill in a description of your system's C++ link characteristics
  10230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10231. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10232. ld_shlibs_CXX=yes
  10233. case $host_os in
  10234. aix3*)
  10235. # FIXME: insert proper C++ library support
  10236. ld_shlibs_CXX=no
  10237. ;;
  10238. aix[4-9]*)
  10239. if test "$host_cpu" = ia64; then
  10240. # On IA64, the linker does run time linking by default, so we don't
  10241. # have to do anything special.
  10242. aix_use_runtimelinking=no
  10243. exp_sym_flag='-Bexport'
  10244. no_entry_flag=""
  10245. else
  10246. aix_use_runtimelinking=no
  10247. # Test if we are trying to use run time linking or normal
  10248. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10249. # need to do runtime linking.
  10250. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10251. for ld_flag in $LDFLAGS; do
  10252. case $ld_flag in
  10253. *-brtl*)
  10254. aix_use_runtimelinking=yes
  10255. break
  10256. ;;
  10257. esac
  10258. done
  10259. ;;
  10260. esac
  10261. exp_sym_flag='-bexport'
  10262. no_entry_flag='-bnoentry'
  10263. fi
  10264. # When large executables or shared objects are built, AIX ld can
  10265. # have problems creating the table of contents. If linking a library
  10266. # or program results in "error TOC overflow" add -mminimal-toc to
  10267. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10268. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10269. archive_cmds_CXX=''
  10270. hardcode_direct_CXX=yes
  10271. hardcode_direct_absolute_CXX=yes
  10272. hardcode_libdir_separator_CXX=':'
  10273. link_all_deplibs_CXX=yes
  10274. file_list_spec_CXX='${wl}-f,'
  10275. if test "$GXX" = yes; then
  10276. case $host_os in aix4.[012]|aix4.[012].*)
  10277. # We only want to do this on AIX 4.2 and lower, the check
  10278. # below for broken collect2 doesn't work under 4.3+
  10279. collect2name=`${CC} -print-prog-name=collect2`
  10280. if test -f "$collect2name" &&
  10281. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10282. then
  10283. # We have reworked collect2
  10284. :
  10285. else
  10286. # We have old collect2
  10287. hardcode_direct_CXX=unsupported
  10288. # It fails to find uninstalled libraries when the uninstalled
  10289. # path is not listed in the libpath. Setting hardcode_minus_L
  10290. # to unsupported forces relinking
  10291. hardcode_minus_L_CXX=yes
  10292. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10293. hardcode_libdir_separator_CXX=
  10294. fi
  10295. esac
  10296. shared_flag='-shared'
  10297. if test "$aix_use_runtimelinking" = yes; then
  10298. shared_flag="$shared_flag "'${wl}-G'
  10299. fi
  10300. else
  10301. # not using gcc
  10302. if test "$host_cpu" = ia64; then
  10303. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10304. # chokes on -Wl,-G. The following line is correct:
  10305. shared_flag='-G'
  10306. else
  10307. if test "$aix_use_runtimelinking" = yes; then
  10308. shared_flag='${wl}-G'
  10309. else
  10310. shared_flag='${wl}-bM:SRE'
  10311. fi
  10312. fi
  10313. fi
  10314. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10315. # It seems that -bexpall does not export symbols beginning with
  10316. # underscore (_), so it is better to generate a list of symbols to
  10317. # export.
  10318. always_export_symbols_CXX=yes
  10319. if test "$aix_use_runtimelinking" = yes; then
  10320. # Warning - without using the other runtime loading flags (-brtl),
  10321. # -berok will link without error, but may produce a broken library.
  10322. allow_undefined_flag_CXX='-berok'
  10323. # Determine the default libpath from the value encoded in an empty
  10324. # executable.
  10325. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10326. /* end confdefs.h. */
  10327. int
  10328. main ()
  10329. {
  10330. ;
  10331. return 0;
  10332. }
  10333. _ACEOF
  10334. if ac_fn_cxx_try_link "$LINENO"; then :
  10335. lt_aix_libpath_sed='
  10336. /Import File Strings/,/^$/ {
  10337. /^0/ {
  10338. s/^0 *\(.*\)$/\1/
  10339. p
  10340. }
  10341. }'
  10342. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10343. # Check for a 64-bit object if we didn't find anything.
  10344. if test -z "$aix_libpath"; then
  10345. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10346. fi
  10347. fi
  10348. rm -f core conftest.err conftest.$ac_objext \
  10349. conftest$ac_exeext conftest.$ac_ext
  10350. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10351. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10352. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10353. else
  10354. if test "$host_cpu" = ia64; then
  10355. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10356. allow_undefined_flag_CXX="-z nodefs"
  10357. 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"
  10358. else
  10359. # Determine the default libpath from the value encoded in an
  10360. # empty executable.
  10361. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10362. /* end confdefs.h. */
  10363. int
  10364. main ()
  10365. {
  10366. ;
  10367. return 0;
  10368. }
  10369. _ACEOF
  10370. if ac_fn_cxx_try_link "$LINENO"; then :
  10371. lt_aix_libpath_sed='
  10372. /Import File Strings/,/^$/ {
  10373. /^0/ {
  10374. s/^0 *\(.*\)$/\1/
  10375. p
  10376. }
  10377. }'
  10378. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10379. # Check for a 64-bit object if we didn't find anything.
  10380. if test -z "$aix_libpath"; then
  10381. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10382. fi
  10383. fi
  10384. rm -f core conftest.err conftest.$ac_objext \
  10385. conftest$ac_exeext conftest.$ac_ext
  10386. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10387. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10388. # Warning - without using the other run time loading flags,
  10389. # -berok will link without error, but may produce a broken library.
  10390. no_undefined_flag_CXX=' ${wl}-bernotok'
  10391. allow_undefined_flag_CXX=' ${wl}-berok'
  10392. # Exported symbols can be pulled into shared objects from archives
  10393. whole_archive_flag_spec_CXX='$convenience'
  10394. archive_cmds_need_lc_CXX=yes
  10395. # This is similar to how AIX traditionally builds its shared
  10396. # libraries.
  10397. 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'
  10398. fi
  10399. fi
  10400. ;;
  10401. beos*)
  10402. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10403. allow_undefined_flag_CXX=unsupported
  10404. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10405. # support --undefined. This deserves some investigation. FIXME
  10406. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10407. else
  10408. ld_shlibs_CXX=no
  10409. fi
  10410. ;;
  10411. chorus*)
  10412. case $cc_basename in
  10413. *)
  10414. # FIXME: insert proper C++ library support
  10415. ld_shlibs_CXX=no
  10416. ;;
  10417. esac
  10418. ;;
  10419. cygwin* | mingw* | pw32* | cegcc*)
  10420. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10421. # as there is no search path for DLLs.
  10422. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10423. allow_undefined_flag_CXX=unsupported
  10424. always_export_symbols_CXX=no
  10425. enable_shared_with_static_runtimes_CXX=yes
  10426. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10427. 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'
  10428. # If the export-symbols file already is a .def file (1st line
  10429. # is EXPORTS), use it as is; otherwise, prepend...
  10430. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10431. cp $export_symbols $output_objdir/$soname.def;
  10432. else
  10433. echo EXPORTS > $output_objdir/$soname.def;
  10434. cat $export_symbols >> $output_objdir/$soname.def;
  10435. fi~
  10436. $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'
  10437. else
  10438. ld_shlibs_CXX=no
  10439. fi
  10440. ;;
  10441. darwin* | rhapsody*)
  10442. archive_cmds_need_lc_CXX=no
  10443. hardcode_direct_CXX=no
  10444. hardcode_automatic_CXX=yes
  10445. hardcode_shlibpath_var_CXX=unsupported
  10446. whole_archive_flag_spec_CXX=''
  10447. link_all_deplibs_CXX=yes
  10448. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10449. case $cc_basename in
  10450. ifort*) _lt_dar_can_shared=yes ;;
  10451. *) _lt_dar_can_shared=$GCC ;;
  10452. esac
  10453. if test "$_lt_dar_can_shared" = "yes"; then
  10454. output_verbose_link_cmd=echo
  10455. 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}"
  10456. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10457. 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}"
  10458. 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}"
  10459. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10460. 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}"
  10461. 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}"
  10462. fi
  10463. else
  10464. ld_shlibs_CXX=no
  10465. fi
  10466. ;;
  10467. dgux*)
  10468. case $cc_basename in
  10469. ec++*)
  10470. # FIXME: insert proper C++ library support
  10471. ld_shlibs_CXX=no
  10472. ;;
  10473. ghcx*)
  10474. # Green Hills C++ Compiler
  10475. # FIXME: insert proper C++ library support
  10476. ld_shlibs_CXX=no
  10477. ;;
  10478. *)
  10479. # FIXME: insert proper C++ library support
  10480. ld_shlibs_CXX=no
  10481. ;;
  10482. esac
  10483. ;;
  10484. freebsd[12]*)
  10485. # C++ shared libraries reported to be fairly broken before
  10486. # switch to ELF
  10487. ld_shlibs_CXX=no
  10488. ;;
  10489. freebsd-elf*)
  10490. archive_cmds_need_lc_CXX=no
  10491. ;;
  10492. freebsd* | dragonfly*)
  10493. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10494. # conventions
  10495. ld_shlibs_CXX=yes
  10496. ;;
  10497. gnu*)
  10498. ;;
  10499. hpux9*)
  10500. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10501. hardcode_libdir_separator_CXX=:
  10502. export_dynamic_flag_spec_CXX='${wl}-E'
  10503. hardcode_direct_CXX=yes
  10504. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10505. # but as the default
  10506. # location of the library.
  10507. case $cc_basename in
  10508. CC*)
  10509. # FIXME: insert proper C++ library support
  10510. ld_shlibs_CXX=no
  10511. ;;
  10512. aCC*)
  10513. 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'
  10514. # Commands to make compiler produce verbose output that lists
  10515. # what "hidden" libraries, object files and flags are used when
  10516. # linking a shared library.
  10517. #
  10518. # There doesn't appear to be a way to prevent this compiler from
  10519. # explicitly linking system object files so we need to strip them
  10520. # from the output so that they don't get included in the library
  10521. # dependencies.
  10522. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10523. ;;
  10524. *)
  10525. if test "$GXX" = yes; then
  10526. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10527. else
  10528. # FIXME: insert proper C++ library support
  10529. ld_shlibs_CXX=no
  10530. fi
  10531. ;;
  10532. esac
  10533. ;;
  10534. hpux10*|hpux11*)
  10535. if test $with_gnu_ld = no; then
  10536. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10537. hardcode_libdir_separator_CXX=:
  10538. case $host_cpu in
  10539. hppa*64*|ia64*)
  10540. ;;
  10541. *)
  10542. export_dynamic_flag_spec_CXX='${wl}-E'
  10543. ;;
  10544. esac
  10545. fi
  10546. case $host_cpu in
  10547. hppa*64*|ia64*)
  10548. hardcode_direct_CXX=no
  10549. hardcode_shlibpath_var_CXX=no
  10550. ;;
  10551. *)
  10552. hardcode_direct_CXX=yes
  10553. hardcode_direct_absolute_CXX=yes
  10554. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10555. # but as the default
  10556. # location of the library.
  10557. ;;
  10558. esac
  10559. case $cc_basename in
  10560. CC*)
  10561. # FIXME: insert proper C++ library support
  10562. ld_shlibs_CXX=no
  10563. ;;
  10564. aCC*)
  10565. case $host_cpu in
  10566. hppa*64*)
  10567. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10568. ;;
  10569. ia64*)
  10570. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10571. ;;
  10572. *)
  10573. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10574. ;;
  10575. esac
  10576. # Commands to make compiler produce verbose output that lists
  10577. # what "hidden" libraries, object files and flags are used when
  10578. # linking a shared library.
  10579. #
  10580. # There doesn't appear to be a way to prevent this compiler from
  10581. # explicitly linking system object files so we need to strip them
  10582. # from the output so that they don't get included in the library
  10583. # dependencies.
  10584. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10585. ;;
  10586. *)
  10587. if test "$GXX" = yes; then
  10588. if test $with_gnu_ld = no; then
  10589. case $host_cpu in
  10590. hppa*64*)
  10591. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10592. ;;
  10593. ia64*)
  10594. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10595. ;;
  10596. *)
  10597. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10598. ;;
  10599. esac
  10600. fi
  10601. else
  10602. # FIXME: insert proper C++ library support
  10603. ld_shlibs_CXX=no
  10604. fi
  10605. ;;
  10606. esac
  10607. ;;
  10608. interix[3-9]*)
  10609. hardcode_direct_CXX=no
  10610. hardcode_shlibpath_var_CXX=no
  10611. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10612. export_dynamic_flag_spec_CXX='${wl}-E'
  10613. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10614. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10615. # default) and relocated if they conflict, which is a slow very memory
  10616. # consuming and fragmenting process. To avoid this, we pick a random,
  10617. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10618. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10619. 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'
  10620. 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'
  10621. ;;
  10622. irix5* | irix6*)
  10623. case $cc_basename in
  10624. CC*)
  10625. # SGI C++
  10626. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10627. # Archives containing C++ object files must be created using
  10628. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10629. # necessary to make sure instantiated templates are included
  10630. # in the archive.
  10631. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10632. ;;
  10633. *)
  10634. if test "$GXX" = yes; then
  10635. if test "$with_gnu_ld" = no; then
  10636. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10637. else
  10638. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  10639. fi
  10640. fi
  10641. link_all_deplibs_CXX=yes
  10642. ;;
  10643. esac
  10644. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10645. hardcode_libdir_separator_CXX=:
  10646. inherit_rpath_CXX=yes
  10647. ;;
  10648. linux* | k*bsd*-gnu)
  10649. case $cc_basename in
  10650. KCC*)
  10651. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10652. # KCC will only create a shared library if the output file
  10653. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10654. # to its proper name (with version) after linking.
  10655. 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'
  10656. 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'
  10657. # Commands to make compiler produce verbose output that lists
  10658. # what "hidden" libraries, object files and flags are used when
  10659. # linking a shared library.
  10660. #
  10661. # There doesn't appear to be a way to prevent this compiler from
  10662. # explicitly linking system object files so we need to strip them
  10663. # from the output so that they don't get included in the library
  10664. # dependencies.
  10665. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10666. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10667. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10668. # Archives containing C++ object files must be created using
  10669. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10670. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10671. ;;
  10672. icpc* | ecpc* )
  10673. # Intel C++
  10674. with_gnu_ld=yes
  10675. # version 8.0 and above of icpc choke on multiply defined symbols
  10676. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10677. # earlier do not add the objects themselves.
  10678. case `$CC -V 2>&1` in
  10679. *"Version 7."*)
  10680. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10681. 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'
  10682. ;;
  10683. *) # Version 8.0 or newer
  10684. tmp_idyn=
  10685. case $host_cpu in
  10686. ia64*) tmp_idyn=' -i_dynamic';;
  10687. esac
  10688. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10689. 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'
  10690. ;;
  10691. esac
  10692. archive_cmds_need_lc_CXX=no
  10693. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10694. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10695. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10696. ;;
  10697. pgCC* | pgcpp*)
  10698. # Portland Group C++ compiler
  10699. case `$CC -V` in
  10700. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  10701. prelink_cmds_CXX='tpldir=Template.dir~
  10702. rm -rf $tpldir~
  10703. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10704. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10705. old_archive_cmds_CXX='tpldir=Template.dir~
  10706. rm -rf $tpldir~
  10707. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10708. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10709. $RANLIB $oldlib'
  10710. archive_cmds_CXX='tpldir=Template.dir~
  10711. rm -rf $tpldir~
  10712. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10713. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10714. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10715. rm -rf $tpldir~
  10716. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10717. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10718. ;;
  10719. *) # Version 6 will use weak symbols
  10720. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10721. 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'
  10722. ;;
  10723. esac
  10724. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10725. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10726. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10727. ;;
  10728. cxx*)
  10729. # Compaq C++
  10730. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10731. 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'
  10732. runpath_var=LD_RUN_PATH
  10733. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10734. hardcode_libdir_separator_CXX=:
  10735. # Commands to make compiler produce verbose output that lists
  10736. # what "hidden" libraries, object files and flags are used when
  10737. # linking a shared library.
  10738. #
  10739. # There doesn't appear to be a way to prevent this compiler from
  10740. # explicitly linking system object files so we need to strip them
  10741. # from the output so that they don't get included in the library
  10742. # dependencies.
  10743. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10744. ;;
  10745. xl*)
  10746. # IBM XL 8.0 on PPC, with GNU ld
  10747. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10748. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10749. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10750. if test "x$supports_anon_versioning" = xyes; then
  10751. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10752. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10753. echo "local: *; };" >> $output_objdir/$libname.ver~
  10754. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10755. fi
  10756. ;;
  10757. *)
  10758. case `$CC -V 2>&1 | sed 5q` in
  10759. *Sun\ C*)
  10760. # Sun C++ 5.9
  10761. no_undefined_flag_CXX=' -zdefs'
  10762. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10763. 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'
  10764. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10765. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10766. compiler_needs_object_CXX=yes
  10767. # Not sure whether something based on
  10768. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10769. # would be better.
  10770. output_verbose_link_cmd='echo'
  10771. # Archives containing C++ object files must be created using
  10772. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10773. # necessary to make sure instantiated templates are included
  10774. # in the archive.
  10775. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10776. ;;
  10777. esac
  10778. ;;
  10779. esac
  10780. ;;
  10781. lynxos*)
  10782. # FIXME: insert proper C++ library support
  10783. ld_shlibs_CXX=no
  10784. ;;
  10785. m88k*)
  10786. # FIXME: insert proper C++ library support
  10787. ld_shlibs_CXX=no
  10788. ;;
  10789. mvs*)
  10790. case $cc_basename in
  10791. cxx*)
  10792. # FIXME: insert proper C++ library support
  10793. ld_shlibs_CXX=no
  10794. ;;
  10795. *)
  10796. # FIXME: insert proper C++ library support
  10797. ld_shlibs_CXX=no
  10798. ;;
  10799. esac
  10800. ;;
  10801. netbsd*)
  10802. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10803. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10804. wlarc=
  10805. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10806. hardcode_direct_CXX=yes
  10807. hardcode_shlibpath_var_CXX=no
  10808. fi
  10809. # Workaround some broken pre-1.5 toolchains
  10810. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10811. ;;
  10812. *nto* | *qnx*)
  10813. ld_shlibs_CXX=yes
  10814. ;;
  10815. openbsd2*)
  10816. # C++ shared libraries are fairly broken
  10817. ld_shlibs_CXX=no
  10818. ;;
  10819. openbsd*)
  10820. if test -f /usr/libexec/ld.so; then
  10821. hardcode_direct_CXX=yes
  10822. hardcode_shlibpath_var_CXX=no
  10823. hardcode_direct_absolute_CXX=yes
  10824. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10825. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10826. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10827. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10828. export_dynamic_flag_spec_CXX='${wl}-E'
  10829. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10830. fi
  10831. output_verbose_link_cmd=echo
  10832. else
  10833. ld_shlibs_CXX=no
  10834. fi
  10835. ;;
  10836. osf3* | osf4* | osf5*)
  10837. case $cc_basename in
  10838. KCC*)
  10839. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10840. # KCC will only create a shared library if the output file
  10841. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10842. # to its proper name (with version) after linking.
  10843. 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'
  10844. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10845. hardcode_libdir_separator_CXX=:
  10846. # Archives containing C++ object files must be created using
  10847. # the KAI C++ compiler.
  10848. case $host in
  10849. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10850. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10851. esac
  10852. ;;
  10853. RCC*)
  10854. # Rational C++ 2.4.1
  10855. # FIXME: insert proper C++ library support
  10856. ld_shlibs_CXX=no
  10857. ;;
  10858. cxx*)
  10859. case $host in
  10860. osf3*)
  10861. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10862. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10863. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10864. ;;
  10865. *)
  10866. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10867. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10868. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10869. echo "-hidden">> $lib.exp~
  10870. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  10871. $RM $lib.exp'
  10872. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10873. ;;
  10874. esac
  10875. hardcode_libdir_separator_CXX=:
  10876. # Commands to make compiler produce verbose output that lists
  10877. # what "hidden" libraries, object files and flags are used when
  10878. # linking a shared library.
  10879. #
  10880. # There doesn't appear to be a way to prevent this compiler from
  10881. # explicitly linking system object files so we need to strip them
  10882. # from the output so that they don't get included in the library
  10883. # dependencies.
  10884. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10885. ;;
  10886. *)
  10887. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10888. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10889. case $host in
  10890. osf3*)
  10891. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10892. ;;
  10893. *)
  10894. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10895. ;;
  10896. esac
  10897. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10898. hardcode_libdir_separator_CXX=:
  10899. # Commands to make compiler produce verbose output that lists
  10900. # what "hidden" libraries, object files and flags are used when
  10901. # linking a shared library.
  10902. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10903. else
  10904. # FIXME: insert proper C++ library support
  10905. ld_shlibs_CXX=no
  10906. fi
  10907. ;;
  10908. esac
  10909. ;;
  10910. psos*)
  10911. # FIXME: insert proper C++ library support
  10912. ld_shlibs_CXX=no
  10913. ;;
  10914. sunos4*)
  10915. case $cc_basename in
  10916. CC*)
  10917. # Sun C++ 4.x
  10918. # FIXME: insert proper C++ library support
  10919. ld_shlibs_CXX=no
  10920. ;;
  10921. lcc*)
  10922. # Lucid
  10923. # FIXME: insert proper C++ library support
  10924. ld_shlibs_CXX=no
  10925. ;;
  10926. *)
  10927. # FIXME: insert proper C++ library support
  10928. ld_shlibs_CXX=no
  10929. ;;
  10930. esac
  10931. ;;
  10932. solaris*)
  10933. case $cc_basename in
  10934. CC*)
  10935. # Sun C++ 4.2, 5.x and Centerline C++
  10936. archive_cmds_need_lc_CXX=yes
  10937. no_undefined_flag_CXX=' -zdefs'
  10938. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10939. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10940. $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'
  10941. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10942. hardcode_shlibpath_var_CXX=no
  10943. case $host_os in
  10944. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10945. *)
  10946. # The compiler driver will combine and reorder linker options,
  10947. # but understands `-z linker_flag'.
  10948. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10949. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10950. ;;
  10951. esac
  10952. link_all_deplibs_CXX=yes
  10953. output_verbose_link_cmd='echo'
  10954. # Archives containing C++ object files must be created using
  10955. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10956. # necessary to make sure instantiated templates are included
  10957. # in the archive.
  10958. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10959. ;;
  10960. gcx*)
  10961. # Green Hills C++ Compiler
  10962. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10963. # The C++ compiler must be used to create the archive.
  10964. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10965. ;;
  10966. *)
  10967. # GNU C++ compiler with Solaris linker
  10968. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10969. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10970. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10971. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10972. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10973. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10974. # Commands to make compiler produce verbose output that lists
  10975. # what "hidden" libraries, object files and flags are used when
  10976. # linking a shared library.
  10977. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10978. else
  10979. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10980. # platform.
  10981. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10982. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10983. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10984. # Commands to make compiler produce verbose output that lists
  10985. # what "hidden" libraries, object files and flags are used when
  10986. # linking a shared library.
  10987. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10988. fi
  10989. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10990. case $host_os in
  10991. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10992. *)
  10993. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10994. ;;
  10995. esac
  10996. fi
  10997. ;;
  10998. esac
  10999. ;;
  11000. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11001. no_undefined_flag_CXX='${wl}-z,text'
  11002. archive_cmds_need_lc_CXX=no
  11003. hardcode_shlibpath_var_CXX=no
  11004. runpath_var='LD_RUN_PATH'
  11005. case $cc_basename in
  11006. CC*)
  11007. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11008. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11009. ;;
  11010. *)
  11011. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11012. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11013. ;;
  11014. esac
  11015. ;;
  11016. sysv5* | sco3.2v5* | sco5v6*)
  11017. # Note: We can NOT use -z defs as we might desire, because we do not
  11018. # link with -lc, and that would cause any symbols used from libc to
  11019. # always be unresolved, which means just about no library would
  11020. # ever link correctly. If we're not using GNU ld we use -z text
  11021. # though, which does catch some bad symbols but isn't as heavy-handed
  11022. # as -z defs.
  11023. no_undefined_flag_CXX='${wl}-z,text'
  11024. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11025. archive_cmds_need_lc_CXX=no
  11026. hardcode_shlibpath_var_CXX=no
  11027. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11028. hardcode_libdir_separator_CXX=':'
  11029. link_all_deplibs_CXX=yes
  11030. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11031. runpath_var='LD_RUN_PATH'
  11032. case $cc_basename in
  11033. CC*)
  11034. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11035. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11036. ;;
  11037. *)
  11038. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11039. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11040. ;;
  11041. esac
  11042. ;;
  11043. tandem*)
  11044. case $cc_basename in
  11045. NCC*)
  11046. # NonStop-UX NCC 3.20
  11047. # FIXME: insert proper C++ library support
  11048. ld_shlibs_CXX=no
  11049. ;;
  11050. *)
  11051. # FIXME: insert proper C++ library support
  11052. ld_shlibs_CXX=no
  11053. ;;
  11054. esac
  11055. ;;
  11056. vxworks*)
  11057. # FIXME: insert proper C++ library support
  11058. ld_shlibs_CXX=no
  11059. ;;
  11060. *)
  11061. # FIXME: insert proper C++ library support
  11062. ld_shlibs_CXX=no
  11063. ;;
  11064. esac
  11065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11066. $as_echo "$ld_shlibs_CXX" >&6; }
  11067. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11068. GCC_CXX="$GXX"
  11069. LD_CXX="$LD"
  11070. ## CAVEAT EMPTOR:
  11071. ## There is no encapsulation within the following macros, do not change
  11072. ## the running order or otherwise move them around unless you know exactly
  11073. ## what you are doing...
  11074. # Dependencies to place before and after the object being linked:
  11075. predep_objects_CXX=
  11076. postdep_objects_CXX=
  11077. predeps_CXX=
  11078. postdeps_CXX=
  11079. compiler_lib_search_path_CXX=
  11080. cat > conftest.$ac_ext <<_LT_EOF
  11081. class Foo
  11082. {
  11083. public:
  11084. Foo (void) { a = 0; }
  11085. private:
  11086. int a;
  11087. };
  11088. _LT_EOF
  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. # Parse the compiler output and extract the necessary
  11095. # objects, libraries and library flags.
  11096. # Sentinel used to keep track of whether or not we are before
  11097. # the conftest object file.
  11098. pre_test_object_deps_done=no
  11099. for p in `eval "$output_verbose_link_cmd"`; do
  11100. case $p in
  11101. -L* | -R* | -l*)
  11102. # Some compilers place space between "-{L,R}" and the path.
  11103. # Remove the space.
  11104. if test $p = "-L" ||
  11105. test $p = "-R"; then
  11106. prev=$p
  11107. continue
  11108. else
  11109. prev=
  11110. fi
  11111. if test "$pre_test_object_deps_done" = no; then
  11112. case $p in
  11113. -L* | -R*)
  11114. # Internal compiler library paths should come after those
  11115. # provided the user. The postdeps already come after the
  11116. # user supplied libs so there is no need to process them.
  11117. if test -z "$compiler_lib_search_path_CXX"; then
  11118. compiler_lib_search_path_CXX="${prev}${p}"
  11119. else
  11120. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11121. fi
  11122. ;;
  11123. # The "-l" case would never come before the object being
  11124. # linked, so don't bother handling this case.
  11125. esac
  11126. else
  11127. if test -z "$postdeps_CXX"; then
  11128. postdeps_CXX="${prev}${p}"
  11129. else
  11130. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11131. fi
  11132. fi
  11133. ;;
  11134. *.$objext)
  11135. # This assumes that the test object file only shows up
  11136. # once in the compiler output.
  11137. if test "$p" = "conftest.$objext"; then
  11138. pre_test_object_deps_done=yes
  11139. continue
  11140. fi
  11141. if test "$pre_test_object_deps_done" = no; then
  11142. if test -z "$predep_objects_CXX"; then
  11143. predep_objects_CXX="$p"
  11144. else
  11145. predep_objects_CXX="$predep_objects_CXX $p"
  11146. fi
  11147. else
  11148. if test -z "$postdep_objects_CXX"; then
  11149. postdep_objects_CXX="$p"
  11150. else
  11151. postdep_objects_CXX="$postdep_objects_CXX $p"
  11152. fi
  11153. fi
  11154. ;;
  11155. *) ;; # Ignore the rest.
  11156. esac
  11157. done
  11158. # Clean up.
  11159. rm -f a.out a.exe
  11160. else
  11161. echo "libtool.m4: error: problem compiling CXX test program"
  11162. fi
  11163. $RM -f confest.$objext
  11164. # PORTME: override above test on systems where it is broken
  11165. case $host_os in
  11166. interix[3-9]*)
  11167. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11168. # hack all around it, let's just trust "g++" to DTRT.
  11169. predep_objects_CXX=
  11170. postdep_objects_CXX=
  11171. postdeps_CXX=
  11172. ;;
  11173. linux*)
  11174. case `$CC -V 2>&1 | sed 5q` in
  11175. *Sun\ C*)
  11176. # Sun C++ 5.9
  11177. # The more standards-conforming stlport4 library is
  11178. # incompatible with the Cstd library. Avoid specifying
  11179. # it if it's in CXXFLAGS. Ignore libCrun as
  11180. # -library=stlport4 depends on it.
  11181. case " $CXX $CXXFLAGS " in
  11182. *" -library=stlport4 "*)
  11183. solaris_use_stlport4=yes
  11184. ;;
  11185. esac
  11186. if test "$solaris_use_stlport4" != yes; then
  11187. postdeps_CXX='-library=Cstd -library=Crun'
  11188. fi
  11189. ;;
  11190. esac
  11191. ;;
  11192. solaris*)
  11193. case $cc_basename in
  11194. CC*)
  11195. # The more standards-conforming stlport4 library is
  11196. # incompatible with the Cstd library. Avoid specifying
  11197. # it if it's in CXXFLAGS. Ignore libCrun as
  11198. # -library=stlport4 depends on it.
  11199. case " $CXX $CXXFLAGS " in
  11200. *" -library=stlport4 "*)
  11201. solaris_use_stlport4=yes
  11202. ;;
  11203. esac
  11204. # Adding this requires a known-good setup of shared libraries for
  11205. # Sun compiler versions before 5.6, else PIC objects from an old
  11206. # archive will be linked into the output, leading to subtle bugs.
  11207. if test "$solaris_use_stlport4" != yes; then
  11208. postdeps_CXX='-library=Cstd -library=Crun'
  11209. fi
  11210. ;;
  11211. esac
  11212. ;;
  11213. esac
  11214. case " $postdeps_CXX " in
  11215. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11216. esac
  11217. compiler_lib_search_dirs_CXX=
  11218. if test -n "${compiler_lib_search_path_CXX}"; then
  11219. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11220. fi
  11221. lt_prog_compiler_wl_CXX=
  11222. lt_prog_compiler_pic_CXX=
  11223. lt_prog_compiler_static_CXX=
  11224. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11225. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11226. # C++ specific cases for pic, static, wl, etc.
  11227. if test "$GXX" = yes; then
  11228. lt_prog_compiler_wl_CXX='-Wl,'
  11229. lt_prog_compiler_static_CXX='-static'
  11230. case $host_os in
  11231. aix*)
  11232. # All AIX code is PIC.
  11233. if test "$host_cpu" = ia64; then
  11234. # AIX 5 now supports IA64 processor
  11235. lt_prog_compiler_static_CXX='-Bstatic'
  11236. fi
  11237. ;;
  11238. amigaos*)
  11239. case $host_cpu in
  11240. powerpc)
  11241. # see comment about AmigaOS4 .so support
  11242. lt_prog_compiler_pic_CXX='-fPIC'
  11243. ;;
  11244. m68k)
  11245. # FIXME: we need at least 68020 code to build shared libraries, but
  11246. # adding the `-m68020' flag to GCC prevents building anything better,
  11247. # like `-m68040'.
  11248. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11249. ;;
  11250. esac
  11251. ;;
  11252. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11253. # PIC is the default for these OSes.
  11254. ;;
  11255. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11256. # This hack is so that the source file can tell whether it is being
  11257. # built for inclusion in a dll (and should export symbols for example).
  11258. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11259. # (--disable-auto-import) libraries
  11260. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11261. ;;
  11262. darwin* | rhapsody*)
  11263. # PIC is the default on this platform
  11264. # Common symbols not allowed in MH_DYLIB files
  11265. lt_prog_compiler_pic_CXX='-fno-common'
  11266. ;;
  11267. *djgpp*)
  11268. # DJGPP does not support shared libraries at all
  11269. lt_prog_compiler_pic_CXX=
  11270. ;;
  11271. interix[3-9]*)
  11272. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11273. # Instead, we relocate shared libraries at runtime.
  11274. ;;
  11275. sysv4*MP*)
  11276. if test -d /usr/nec; then
  11277. lt_prog_compiler_pic_CXX=-Kconform_pic
  11278. fi
  11279. ;;
  11280. hpux*)
  11281. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11282. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11283. # sets the default TLS model and affects inlining.
  11284. case $host_cpu in
  11285. hppa*64*)
  11286. ;;
  11287. *)
  11288. lt_prog_compiler_pic_CXX='-fPIC'
  11289. ;;
  11290. esac
  11291. ;;
  11292. *qnx* | *nto*)
  11293. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11294. # it will coredump.
  11295. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11296. ;;
  11297. *)
  11298. lt_prog_compiler_pic_CXX='-fPIC'
  11299. ;;
  11300. esac
  11301. else
  11302. case $host_os in
  11303. aix[4-9]*)
  11304. # All AIX code is PIC.
  11305. if test "$host_cpu" = ia64; then
  11306. # AIX 5 now supports IA64 processor
  11307. lt_prog_compiler_static_CXX='-Bstatic'
  11308. else
  11309. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11310. fi
  11311. ;;
  11312. chorus*)
  11313. case $cc_basename in
  11314. cxch68*)
  11315. # Green Hills C++ Compiler
  11316. # _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"
  11317. ;;
  11318. esac
  11319. ;;
  11320. dgux*)
  11321. case $cc_basename in
  11322. ec++*)
  11323. lt_prog_compiler_pic_CXX='-KPIC'
  11324. ;;
  11325. ghcx*)
  11326. # Green Hills C++ Compiler
  11327. lt_prog_compiler_pic_CXX='-pic'
  11328. ;;
  11329. *)
  11330. ;;
  11331. esac
  11332. ;;
  11333. freebsd* | dragonfly*)
  11334. # FreeBSD uses GNU C++
  11335. ;;
  11336. hpux9* | hpux10* | hpux11*)
  11337. case $cc_basename in
  11338. CC*)
  11339. lt_prog_compiler_wl_CXX='-Wl,'
  11340. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11341. if test "$host_cpu" != ia64; then
  11342. lt_prog_compiler_pic_CXX='+Z'
  11343. fi
  11344. ;;
  11345. aCC*)
  11346. lt_prog_compiler_wl_CXX='-Wl,'
  11347. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11348. case $host_cpu in
  11349. hppa*64*|ia64*)
  11350. # +Z the default
  11351. ;;
  11352. *)
  11353. lt_prog_compiler_pic_CXX='+Z'
  11354. ;;
  11355. esac
  11356. ;;
  11357. *)
  11358. ;;
  11359. esac
  11360. ;;
  11361. interix*)
  11362. # This is c89, which is MS Visual C++ (no shared libs)
  11363. # Anyone wants to do a port?
  11364. ;;
  11365. irix5* | irix6* | nonstopux*)
  11366. case $cc_basename in
  11367. CC*)
  11368. lt_prog_compiler_wl_CXX='-Wl,'
  11369. lt_prog_compiler_static_CXX='-non_shared'
  11370. # CC pic flag -KPIC is the default.
  11371. ;;
  11372. *)
  11373. ;;
  11374. esac
  11375. ;;
  11376. linux* | k*bsd*-gnu)
  11377. case $cc_basename in
  11378. KCC*)
  11379. # KAI C++ Compiler
  11380. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11381. lt_prog_compiler_pic_CXX='-fPIC'
  11382. ;;
  11383. ecpc* )
  11384. # old Intel C++ for x86_64 which still supported -KPIC.
  11385. lt_prog_compiler_wl_CXX='-Wl,'
  11386. lt_prog_compiler_pic_CXX='-KPIC'
  11387. lt_prog_compiler_static_CXX='-static'
  11388. ;;
  11389. icpc* )
  11390. # Intel C++, used to be incompatible with GCC.
  11391. # ICC 10 doesn't accept -KPIC any more.
  11392. lt_prog_compiler_wl_CXX='-Wl,'
  11393. lt_prog_compiler_pic_CXX='-fPIC'
  11394. lt_prog_compiler_static_CXX='-static'
  11395. ;;
  11396. pgCC* | pgcpp*)
  11397. # Portland Group C++ compiler
  11398. lt_prog_compiler_wl_CXX='-Wl,'
  11399. lt_prog_compiler_pic_CXX='-fpic'
  11400. lt_prog_compiler_static_CXX='-Bstatic'
  11401. ;;
  11402. cxx*)
  11403. # Compaq C++
  11404. # Make sure the PIC flag is empty. It appears that all Alpha
  11405. # Linux and Compaq Tru64 Unix objects are PIC.
  11406. lt_prog_compiler_pic_CXX=
  11407. lt_prog_compiler_static_CXX='-non_shared'
  11408. ;;
  11409. xlc* | xlC*)
  11410. # IBM XL 8.0 on PPC
  11411. lt_prog_compiler_wl_CXX='-Wl,'
  11412. lt_prog_compiler_pic_CXX='-qpic'
  11413. lt_prog_compiler_static_CXX='-qstaticlink'
  11414. ;;
  11415. *)
  11416. case `$CC -V 2>&1 | sed 5q` in
  11417. *Sun\ C*)
  11418. # Sun C++ 5.9
  11419. lt_prog_compiler_pic_CXX='-KPIC'
  11420. lt_prog_compiler_static_CXX='-Bstatic'
  11421. lt_prog_compiler_wl_CXX='-Qoption ld '
  11422. ;;
  11423. esac
  11424. ;;
  11425. esac
  11426. ;;
  11427. lynxos*)
  11428. ;;
  11429. m88k*)
  11430. ;;
  11431. mvs*)
  11432. case $cc_basename in
  11433. cxx*)
  11434. lt_prog_compiler_pic_CXX='-W c,exportall'
  11435. ;;
  11436. *)
  11437. ;;
  11438. esac
  11439. ;;
  11440. netbsd* | netbsdelf*-gnu)
  11441. ;;
  11442. *qnx* | *nto*)
  11443. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11444. # it will coredump.
  11445. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11446. ;;
  11447. osf3* | osf4* | osf5*)
  11448. case $cc_basename in
  11449. KCC*)
  11450. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11451. ;;
  11452. RCC*)
  11453. # Rational C++ 2.4.1
  11454. lt_prog_compiler_pic_CXX='-pic'
  11455. ;;
  11456. cxx*)
  11457. # Digital/Compaq C++
  11458. lt_prog_compiler_wl_CXX='-Wl,'
  11459. # Make sure the PIC flag is empty. It appears that all Alpha
  11460. # Linux and Compaq Tru64 Unix objects are PIC.
  11461. lt_prog_compiler_pic_CXX=
  11462. lt_prog_compiler_static_CXX='-non_shared'
  11463. ;;
  11464. *)
  11465. ;;
  11466. esac
  11467. ;;
  11468. psos*)
  11469. ;;
  11470. solaris*)
  11471. case $cc_basename in
  11472. CC*)
  11473. # Sun C++ 4.2, 5.x and Centerline C++
  11474. lt_prog_compiler_pic_CXX='-KPIC'
  11475. lt_prog_compiler_static_CXX='-Bstatic'
  11476. lt_prog_compiler_wl_CXX='-Qoption ld '
  11477. ;;
  11478. gcx*)
  11479. # Green Hills C++ Compiler
  11480. lt_prog_compiler_pic_CXX='-PIC'
  11481. ;;
  11482. *)
  11483. ;;
  11484. esac
  11485. ;;
  11486. sunos4*)
  11487. case $cc_basename in
  11488. CC*)
  11489. # Sun C++ 4.x
  11490. lt_prog_compiler_pic_CXX='-pic'
  11491. lt_prog_compiler_static_CXX='-Bstatic'
  11492. ;;
  11493. lcc*)
  11494. # Lucid
  11495. lt_prog_compiler_pic_CXX='-pic'
  11496. ;;
  11497. *)
  11498. ;;
  11499. esac
  11500. ;;
  11501. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11502. case $cc_basename in
  11503. CC*)
  11504. lt_prog_compiler_wl_CXX='-Wl,'
  11505. lt_prog_compiler_pic_CXX='-KPIC'
  11506. lt_prog_compiler_static_CXX='-Bstatic'
  11507. ;;
  11508. esac
  11509. ;;
  11510. tandem*)
  11511. case $cc_basename in
  11512. NCC*)
  11513. # NonStop-UX NCC 3.20
  11514. lt_prog_compiler_pic_CXX='-KPIC'
  11515. ;;
  11516. *)
  11517. ;;
  11518. esac
  11519. ;;
  11520. vxworks*)
  11521. ;;
  11522. *)
  11523. lt_prog_compiler_can_build_shared_CXX=no
  11524. ;;
  11525. esac
  11526. fi
  11527. case $host_os in
  11528. # For platforms which do not support PIC, -DPIC is meaningless:
  11529. *djgpp*)
  11530. lt_prog_compiler_pic_CXX=
  11531. ;;
  11532. *)
  11533. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11534. ;;
  11535. esac
  11536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11537. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11538. #
  11539. # Check to make sure the PIC flag actually works.
  11540. #
  11541. if test -n "$lt_prog_compiler_pic_CXX"; then
  11542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11543. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11544. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11545. $as_echo_n "(cached) " >&6
  11546. else
  11547. lt_cv_prog_compiler_pic_works_CXX=no
  11548. ac_outfile=conftest.$ac_objext
  11549. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11550. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11551. # Insert the option either (1) after the last *FLAGS variable, or
  11552. # (2) before a word containing "conftest.", or (3) at the end.
  11553. # Note that $ac_compile itself does not contain backslashes and begins
  11554. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11555. # The option is referenced via a variable to avoid confusing sed.
  11556. lt_compile=`echo "$ac_compile" | $SED \
  11557. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11558. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11559. -e 's:$: $lt_compiler_flag:'`
  11560. (eval echo "\"\$as_me:13348: $lt_compile\"" >&5)
  11561. (eval "$lt_compile" 2>conftest.err)
  11562. ac_status=$?
  11563. cat conftest.err >&5
  11564. echo "$as_me:13352: \$? = $ac_status" >&5
  11565. if (exit $ac_status) && test -s "$ac_outfile"; then
  11566. # The compiler can only warn and ignore the option if not recognized
  11567. # So say no if there are warnings other than the usual output.
  11568. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11569. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11570. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11571. lt_cv_prog_compiler_pic_works_CXX=yes
  11572. fi
  11573. fi
  11574. $RM conftest*
  11575. fi
  11576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11577. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11578. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11579. case $lt_prog_compiler_pic_CXX in
  11580. "" | " "*) ;;
  11581. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11582. esac
  11583. else
  11584. lt_prog_compiler_pic_CXX=
  11585. lt_prog_compiler_can_build_shared_CXX=no
  11586. fi
  11587. fi
  11588. #
  11589. # Check to make sure the static flag actually works.
  11590. #
  11591. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11593. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11594. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11595. $as_echo_n "(cached) " >&6
  11596. else
  11597. lt_cv_prog_compiler_static_works_CXX=no
  11598. save_LDFLAGS="$LDFLAGS"
  11599. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11600. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11601. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11602. # The linker can only warn and ignore the option if not recognized
  11603. # So say no if there are warnings
  11604. if test -s conftest.err; then
  11605. # Append any errors to the config.log.
  11606. cat conftest.err 1>&5
  11607. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11608. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11609. if diff conftest.exp conftest.er2 >/dev/null; then
  11610. lt_cv_prog_compiler_static_works_CXX=yes
  11611. fi
  11612. else
  11613. lt_cv_prog_compiler_static_works_CXX=yes
  11614. fi
  11615. fi
  11616. $RM -r conftest*
  11617. LDFLAGS="$save_LDFLAGS"
  11618. fi
  11619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11620. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11621. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11622. :
  11623. else
  11624. lt_prog_compiler_static_CXX=
  11625. fi
  11626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11627. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11628. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11629. $as_echo_n "(cached) " >&6
  11630. else
  11631. lt_cv_prog_compiler_c_o_CXX=no
  11632. $RM -r conftest 2>/dev/null
  11633. mkdir conftest
  11634. cd conftest
  11635. mkdir out
  11636. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11637. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11638. # Insert the option either (1) after the last *FLAGS variable, or
  11639. # (2) before a word containing "conftest.", or (3) at the end.
  11640. # Note that $ac_compile itself does not contain backslashes and begins
  11641. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11642. lt_compile=`echo "$ac_compile" | $SED \
  11643. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11644. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11645. -e 's:$: $lt_compiler_flag:'`
  11646. (eval echo "\"\$as_me:13447: $lt_compile\"" >&5)
  11647. (eval "$lt_compile" 2>out/conftest.err)
  11648. ac_status=$?
  11649. cat out/conftest.err >&5
  11650. echo "$as_me:13451: \$? = $ac_status" >&5
  11651. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11652. then
  11653. # The compiler can only warn and ignore the option if not recognized
  11654. # So say no if there are warnings
  11655. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11656. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11657. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11658. lt_cv_prog_compiler_c_o_CXX=yes
  11659. fi
  11660. fi
  11661. chmod u+w . 2>&5
  11662. $RM conftest*
  11663. # SGI C++ compiler will create directory out/ii_files/ for
  11664. # template instantiation
  11665. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11666. $RM out/* && rmdir out
  11667. cd ..
  11668. $RM -r conftest
  11669. $RM conftest*
  11670. fi
  11671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11672. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11674. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11675. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11676. $as_echo_n "(cached) " >&6
  11677. else
  11678. lt_cv_prog_compiler_c_o_CXX=no
  11679. $RM -r conftest 2>/dev/null
  11680. mkdir conftest
  11681. cd conftest
  11682. mkdir out
  11683. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11684. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11685. # Insert the option either (1) after the last *FLAGS variable, or
  11686. # (2) before a word containing "conftest.", or (3) at the end.
  11687. # Note that $ac_compile itself does not contain backslashes and begins
  11688. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11689. lt_compile=`echo "$ac_compile" | $SED \
  11690. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11691. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11692. -e 's:$: $lt_compiler_flag:'`
  11693. (eval echo "\"\$as_me:13499: $lt_compile\"" >&5)
  11694. (eval "$lt_compile" 2>out/conftest.err)
  11695. ac_status=$?
  11696. cat out/conftest.err >&5
  11697. echo "$as_me:13503: \$? = $ac_status" >&5
  11698. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11699. then
  11700. # The compiler can only warn and ignore the option if not recognized
  11701. # So say no if there are warnings
  11702. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11703. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11704. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11705. lt_cv_prog_compiler_c_o_CXX=yes
  11706. fi
  11707. fi
  11708. chmod u+w . 2>&5
  11709. $RM conftest*
  11710. # SGI C++ compiler will create directory out/ii_files/ for
  11711. # template instantiation
  11712. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11713. $RM out/* && rmdir out
  11714. cd ..
  11715. $RM -r conftest
  11716. $RM conftest*
  11717. fi
  11718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11719. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11720. hard_links="nottested"
  11721. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11722. # do not overwrite the value of need_locks provided by the user
  11723. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11724. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11725. hard_links=yes
  11726. $RM conftest*
  11727. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11728. touch conftest.a
  11729. ln conftest.a conftest.b 2>&5 || hard_links=no
  11730. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11732. $as_echo "$hard_links" >&6; }
  11733. if test "$hard_links" = no; then
  11734. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11735. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11736. need_locks=warn
  11737. fi
  11738. else
  11739. need_locks=no
  11740. fi
  11741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11742. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11743. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11744. case $host_os in
  11745. aix[4-9]*)
  11746. # If we're using GNU nm, then we don't want the "-C" option.
  11747. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11748. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11749. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11750. else
  11751. 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'
  11752. fi
  11753. ;;
  11754. pw32*)
  11755. export_symbols_cmds_CXX="$ltdll_cmds"
  11756. ;;
  11757. cygwin* | mingw* | cegcc*)
  11758. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  11759. ;;
  11760. linux* | k*bsd*-gnu)
  11761. link_all_deplibs_CXX=no
  11762. ;;
  11763. *)
  11764. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11765. ;;
  11766. esac
  11767. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11769. $as_echo "$ld_shlibs_CXX" >&6; }
  11770. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11771. with_gnu_ld_CXX=$with_gnu_ld
  11772. #
  11773. # Do we need to explicitly link libc?
  11774. #
  11775. case "x$archive_cmds_need_lc_CXX" in
  11776. x|xyes)
  11777. # Assume -lc should be added
  11778. archive_cmds_need_lc_CXX=yes
  11779. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11780. case $archive_cmds_CXX in
  11781. *'~'*)
  11782. # FIXME: we may have to deal with multi-command sequences.
  11783. ;;
  11784. '$CC '*)
  11785. # Test whether the compiler implicitly links with -lc since on some
  11786. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11787. # to ld, don't add -lc before -lgcc.
  11788. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11789. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11790. $RM conftest*
  11791. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11792. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11793. (eval $ac_compile) 2>&5
  11794. ac_status=$?
  11795. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11796. test $ac_status = 0; } 2>conftest.err; then
  11797. soname=conftest
  11798. lib=conftest
  11799. libobjs=conftest.$ac_objext
  11800. deplibs=
  11801. wl=$lt_prog_compiler_wl_CXX
  11802. pic_flag=$lt_prog_compiler_pic_CXX
  11803. compiler_flags=-v
  11804. linker_flags=-v
  11805. verstring=
  11806. output_objdir=.
  11807. libname=conftest
  11808. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11809. allow_undefined_flag_CXX=
  11810. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11811. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11812. ac_status=$?
  11813. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11814. test $ac_status = 0; }
  11815. then
  11816. archive_cmds_need_lc_CXX=no
  11817. else
  11818. archive_cmds_need_lc_CXX=yes
  11819. fi
  11820. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11821. else
  11822. cat conftest.err 1>&5
  11823. fi
  11824. $RM conftest*
  11825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  11826. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  11827. ;;
  11828. esac
  11829. fi
  11830. ;;
  11831. esac
  11832. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11833. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11834. library_names_spec=
  11835. libname_spec='lib$name'
  11836. soname_spec=
  11837. shrext_cmds=".so"
  11838. postinstall_cmds=
  11839. postuninstall_cmds=
  11840. finish_cmds=
  11841. finish_eval=
  11842. shlibpath_var=
  11843. shlibpath_overrides_runpath=unknown
  11844. version_type=none
  11845. dynamic_linker="$host_os ld.so"
  11846. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11847. need_lib_prefix=unknown
  11848. hardcode_into_libs=no
  11849. # when you set need_version to no, make sure it does not cause -set_version
  11850. # flags to be left without arguments
  11851. need_version=unknown
  11852. case $host_os in
  11853. aix3*)
  11854. version_type=linux
  11855. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11856. shlibpath_var=LIBPATH
  11857. # AIX 3 has no versioning support, so we append a major version to the name.
  11858. soname_spec='${libname}${release}${shared_ext}$major'
  11859. ;;
  11860. aix[4-9]*)
  11861. version_type=linux
  11862. need_lib_prefix=no
  11863. need_version=no
  11864. hardcode_into_libs=yes
  11865. if test "$host_cpu" = ia64; then
  11866. # AIX 5 supports IA64
  11867. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11868. shlibpath_var=LD_LIBRARY_PATH
  11869. else
  11870. # With GCC up to 2.95.x, collect2 would create an import file
  11871. # for dependence libraries. The import file would start with
  11872. # the line `#! .'. This would cause the generated library to
  11873. # depend on `.', always an invalid library. This was fixed in
  11874. # development snapshots of GCC prior to 3.0.
  11875. case $host_os in
  11876. aix4 | aix4.[01] | aix4.[01].*)
  11877. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11878. echo ' yes '
  11879. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11880. :
  11881. else
  11882. can_build_shared=no
  11883. fi
  11884. ;;
  11885. esac
  11886. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11887. # soname into executable. Probably we can add versioning support to
  11888. # collect2, so additional links can be useful in future.
  11889. if test "$aix_use_runtimelinking" = yes; then
  11890. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11891. # instead of lib<name>.a to let people know that these are not
  11892. # typical AIX shared libraries.
  11893. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11894. else
  11895. # We preserve .a as extension for shared libraries through AIX4.2
  11896. # and later when we are not doing run time linking.
  11897. library_names_spec='${libname}${release}.a $libname.a'
  11898. soname_spec='${libname}${release}${shared_ext}$major'
  11899. fi
  11900. shlibpath_var=LIBPATH
  11901. fi
  11902. ;;
  11903. amigaos*)
  11904. case $host_cpu in
  11905. powerpc)
  11906. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11907. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11909. ;;
  11910. m68k)
  11911. library_names_spec='$libname.ixlibrary $libname.a'
  11912. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11913. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  11914. ;;
  11915. esac
  11916. ;;
  11917. beos*)
  11918. library_names_spec='${libname}${shared_ext}'
  11919. dynamic_linker="$host_os ld.so"
  11920. shlibpath_var=LIBRARY_PATH
  11921. ;;
  11922. bsdi[45]*)
  11923. version_type=linux
  11924. need_version=no
  11925. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11926. soname_spec='${libname}${release}${shared_ext}$major'
  11927. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11928. shlibpath_var=LD_LIBRARY_PATH
  11929. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11930. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11931. # the default ld.so.conf also contains /usr/contrib/lib and
  11932. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11933. # libtool to hard-code these into programs
  11934. ;;
  11935. cygwin* | mingw* | pw32* | cegcc*)
  11936. version_type=windows
  11937. shrext_cmds=".dll"
  11938. need_version=no
  11939. need_lib_prefix=no
  11940. case $GCC,$host_os in
  11941. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11942. library_names_spec='$libname.dll.a'
  11943. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11944. postinstall_cmds='base_file=`basename \${file}`~
  11945. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11946. dldir=$destdir/`dirname \$dlpath`~
  11947. test -d \$dldir || mkdir -p \$dldir~
  11948. $install_prog $dir/$dlname \$dldir/$dlname~
  11949. chmod a+x \$dldir/$dlname~
  11950. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11951. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11952. fi'
  11953. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11954. dlpath=$dir/\$dldll~
  11955. $RM \$dlpath'
  11956. shlibpath_overrides_runpath=yes
  11957. case $host_os in
  11958. cygwin*)
  11959. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11960. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11961. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11962. ;;
  11963. mingw* | cegcc*)
  11964. # MinGW DLLs use traditional 'lib' prefix
  11965. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11966. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11967. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11968. # It is most probably a Windows format PATH printed by
  11969. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11970. # path with ; separators, and with drive letters. We can handle the
  11971. # drive letters (cygwin fileutils understands them), so leave them,
  11972. # especially as we might pass files found there to a mingw objdump,
  11973. # which wouldn't understand a cygwinified path. Ahh.
  11974. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11975. else
  11976. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11977. fi
  11978. ;;
  11979. pw32*)
  11980. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11981. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11982. ;;
  11983. esac
  11984. ;;
  11985. *)
  11986. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11987. ;;
  11988. esac
  11989. dynamic_linker='Win32 ld.exe'
  11990. # FIXME: first we should search . and the directory the executable is in
  11991. shlibpath_var=PATH
  11992. ;;
  11993. darwin* | rhapsody*)
  11994. dynamic_linker="$host_os dyld"
  11995. version_type=darwin
  11996. need_lib_prefix=no
  11997. need_version=no
  11998. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11999. soname_spec='${libname}${release}${major}$shared_ext'
  12000. shlibpath_overrides_runpath=yes
  12001. shlibpath_var=DYLD_LIBRARY_PATH
  12002. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12003. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12004. ;;
  12005. dgux*)
  12006. version_type=linux
  12007. need_lib_prefix=no
  12008. need_version=no
  12009. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12010. soname_spec='${libname}${release}${shared_ext}$major'
  12011. shlibpath_var=LD_LIBRARY_PATH
  12012. ;;
  12013. freebsd1*)
  12014. dynamic_linker=no
  12015. ;;
  12016. freebsd* | dragonfly*)
  12017. # DragonFly does not have aout. When/if they implement a new
  12018. # versioning mechanism, adjust this.
  12019. if test -x /usr/bin/objformat; then
  12020. objformat=`/usr/bin/objformat`
  12021. else
  12022. case $host_os in
  12023. freebsd[123]*) objformat=aout ;;
  12024. *) objformat=elf ;;
  12025. esac
  12026. fi
  12027. version_type=freebsd-$objformat
  12028. case $version_type in
  12029. freebsd-elf*)
  12030. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12031. need_version=no
  12032. need_lib_prefix=no
  12033. ;;
  12034. freebsd-*)
  12035. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12036. need_version=yes
  12037. ;;
  12038. esac
  12039. shlibpath_var=LD_LIBRARY_PATH
  12040. case $host_os in
  12041. freebsd2*)
  12042. shlibpath_overrides_runpath=yes
  12043. ;;
  12044. freebsd3.[01]* | freebsdelf3.[01]*)
  12045. shlibpath_overrides_runpath=yes
  12046. hardcode_into_libs=yes
  12047. ;;
  12048. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12049. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12050. shlibpath_overrides_runpath=no
  12051. hardcode_into_libs=yes
  12052. ;;
  12053. *) # from 4.6 on, and DragonFly
  12054. shlibpath_overrides_runpath=yes
  12055. hardcode_into_libs=yes
  12056. ;;
  12057. esac
  12058. ;;
  12059. gnu*)
  12060. version_type=linux
  12061. need_lib_prefix=no
  12062. need_version=no
  12063. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12064. soname_spec='${libname}${release}${shared_ext}$major'
  12065. shlibpath_var=LD_LIBRARY_PATH
  12066. hardcode_into_libs=yes
  12067. ;;
  12068. hpux9* | hpux10* | hpux11*)
  12069. # Give a soname corresponding to the major version so that dld.sl refuses to
  12070. # link against other versions.
  12071. version_type=sunos
  12072. need_lib_prefix=no
  12073. need_version=no
  12074. case $host_cpu in
  12075. ia64*)
  12076. shrext_cmds='.so'
  12077. hardcode_into_libs=yes
  12078. dynamic_linker="$host_os dld.so"
  12079. shlibpath_var=LD_LIBRARY_PATH
  12080. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12081. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12082. soname_spec='${libname}${release}${shared_ext}$major'
  12083. if test "X$HPUX_IA64_MODE" = X32; then
  12084. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12085. else
  12086. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12087. fi
  12088. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12089. ;;
  12090. hppa*64*)
  12091. shrext_cmds='.sl'
  12092. hardcode_into_libs=yes
  12093. dynamic_linker="$host_os dld.sl"
  12094. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12095. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12097. soname_spec='${libname}${release}${shared_ext}$major'
  12098. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12099. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12100. ;;
  12101. *)
  12102. shrext_cmds='.sl'
  12103. dynamic_linker="$host_os dld.sl"
  12104. shlibpath_var=SHLIB_PATH
  12105. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12106. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12107. soname_spec='${libname}${release}${shared_ext}$major'
  12108. ;;
  12109. esac
  12110. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12111. postinstall_cmds='chmod 555 $lib'
  12112. ;;
  12113. interix[3-9]*)
  12114. version_type=linux
  12115. need_lib_prefix=no
  12116. need_version=no
  12117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12118. soname_spec='${libname}${release}${shared_ext}$major'
  12119. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12120. shlibpath_var=LD_LIBRARY_PATH
  12121. shlibpath_overrides_runpath=no
  12122. hardcode_into_libs=yes
  12123. ;;
  12124. irix5* | irix6* | nonstopux*)
  12125. case $host_os in
  12126. nonstopux*) version_type=nonstopux ;;
  12127. *)
  12128. if test "$lt_cv_prog_gnu_ld" = yes; then
  12129. version_type=linux
  12130. else
  12131. version_type=irix
  12132. fi ;;
  12133. esac
  12134. need_lib_prefix=no
  12135. need_version=no
  12136. soname_spec='${libname}${release}${shared_ext}$major'
  12137. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12138. case $host_os in
  12139. irix5* | nonstopux*)
  12140. libsuff= shlibsuff=
  12141. ;;
  12142. *)
  12143. case $LD in # libtool.m4 will add one of these switches to LD
  12144. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12145. libsuff= shlibsuff= libmagic=32-bit;;
  12146. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12147. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12148. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12149. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12150. *) libsuff= shlibsuff= libmagic=never-match;;
  12151. esac
  12152. ;;
  12153. esac
  12154. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12155. shlibpath_overrides_runpath=no
  12156. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12157. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12158. hardcode_into_libs=yes
  12159. ;;
  12160. # No shared lib support for Linux oldld, aout, or coff.
  12161. linux*oldld* | linux*aout* | linux*coff*)
  12162. dynamic_linker=no
  12163. ;;
  12164. # This must be Linux ELF.
  12165. linux* | k*bsd*-gnu)
  12166. version_type=linux
  12167. need_lib_prefix=no
  12168. need_version=no
  12169. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12170. soname_spec='${libname}${release}${shared_ext}$major'
  12171. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12172. shlibpath_var=LD_LIBRARY_PATH
  12173. shlibpath_overrides_runpath=no
  12174. # Some binutils ld are patched to set DT_RUNPATH
  12175. save_LDFLAGS=$LDFLAGS
  12176. save_libdir=$libdir
  12177. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12178. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12179. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12180. /* end confdefs.h. */
  12181. int
  12182. main ()
  12183. {
  12184. ;
  12185. return 0;
  12186. }
  12187. _ACEOF
  12188. if ac_fn_cxx_try_link "$LINENO"; then :
  12189. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12190. shlibpath_overrides_runpath=yes
  12191. fi
  12192. fi
  12193. rm -f core conftest.err conftest.$ac_objext \
  12194. conftest$ac_exeext conftest.$ac_ext
  12195. LDFLAGS=$save_LDFLAGS
  12196. libdir=$save_libdir
  12197. # This implies no fast_install, which is unacceptable.
  12198. # Some rework will be needed to allow for fast_install
  12199. # before this can be enabled.
  12200. hardcode_into_libs=yes
  12201. # Append ld.so.conf contents to the search path
  12202. if test -f /etc/ld.so.conf; then
  12203. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  12204. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12205. fi
  12206. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12207. # powerpc, because MkLinux only supported shared libraries with the
  12208. # GNU dynamic linker. Since this was broken with cross compilers,
  12209. # most powerpc-linux boxes support dynamic linking these days and
  12210. # people can always --disable-shared, the test was removed, and we
  12211. # assume the GNU/Linux dynamic linker is in use.
  12212. dynamic_linker='GNU/Linux ld.so'
  12213. ;;
  12214. netbsdelf*-gnu)
  12215. version_type=linux
  12216. need_lib_prefix=no
  12217. need_version=no
  12218. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12219. soname_spec='${libname}${release}${shared_ext}$major'
  12220. shlibpath_var=LD_LIBRARY_PATH
  12221. shlibpath_overrides_runpath=no
  12222. hardcode_into_libs=yes
  12223. dynamic_linker='NetBSD ld.elf_so'
  12224. ;;
  12225. netbsd*)
  12226. version_type=sunos
  12227. need_lib_prefix=no
  12228. need_version=no
  12229. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12230. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12231. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12232. dynamic_linker='NetBSD (a.out) ld.so'
  12233. else
  12234. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12235. soname_spec='${libname}${release}${shared_ext}$major'
  12236. dynamic_linker='NetBSD ld.elf_so'
  12237. fi
  12238. shlibpath_var=LD_LIBRARY_PATH
  12239. shlibpath_overrides_runpath=yes
  12240. hardcode_into_libs=yes
  12241. ;;
  12242. newsos6)
  12243. version_type=linux
  12244. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12245. shlibpath_var=LD_LIBRARY_PATH
  12246. shlibpath_overrides_runpath=yes
  12247. ;;
  12248. *nto* | *qnx*)
  12249. version_type=qnx
  12250. need_lib_prefix=no
  12251. need_version=no
  12252. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12253. soname_spec='${libname}${release}${shared_ext}$major'
  12254. shlibpath_var=LD_LIBRARY_PATH
  12255. shlibpath_overrides_runpath=no
  12256. hardcode_into_libs=yes
  12257. dynamic_linker='ldqnx.so'
  12258. ;;
  12259. openbsd*)
  12260. version_type=sunos
  12261. sys_lib_dlsearch_path_spec="/usr/lib"
  12262. need_lib_prefix=no
  12263. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12264. case $host_os in
  12265. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12266. *) need_version=no ;;
  12267. esac
  12268. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12269. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12270. shlibpath_var=LD_LIBRARY_PATH
  12271. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12272. case $host_os in
  12273. openbsd2.[89] | openbsd2.[89].*)
  12274. shlibpath_overrides_runpath=no
  12275. ;;
  12276. *)
  12277. shlibpath_overrides_runpath=yes
  12278. ;;
  12279. esac
  12280. else
  12281. shlibpath_overrides_runpath=yes
  12282. fi
  12283. ;;
  12284. os2*)
  12285. libname_spec='$name'
  12286. shrext_cmds=".dll"
  12287. need_lib_prefix=no
  12288. library_names_spec='$libname${shared_ext} $libname.a'
  12289. dynamic_linker='OS/2 ld.exe'
  12290. shlibpath_var=LIBPATH
  12291. ;;
  12292. osf3* | osf4* | osf5*)
  12293. version_type=osf
  12294. need_lib_prefix=no
  12295. need_version=no
  12296. soname_spec='${libname}${release}${shared_ext}$major'
  12297. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12298. shlibpath_var=LD_LIBRARY_PATH
  12299. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12300. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12301. ;;
  12302. rdos*)
  12303. dynamic_linker=no
  12304. ;;
  12305. solaris*)
  12306. version_type=linux
  12307. need_lib_prefix=no
  12308. need_version=no
  12309. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12310. soname_spec='${libname}${release}${shared_ext}$major'
  12311. shlibpath_var=LD_LIBRARY_PATH
  12312. shlibpath_overrides_runpath=yes
  12313. hardcode_into_libs=yes
  12314. # ldd complains unless libraries are executable
  12315. postinstall_cmds='chmod +x $lib'
  12316. ;;
  12317. sunos4*)
  12318. version_type=sunos
  12319. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12320. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12321. shlibpath_var=LD_LIBRARY_PATH
  12322. shlibpath_overrides_runpath=yes
  12323. if test "$with_gnu_ld" = yes; then
  12324. need_lib_prefix=no
  12325. fi
  12326. need_version=yes
  12327. ;;
  12328. sysv4 | sysv4.3*)
  12329. version_type=linux
  12330. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12331. soname_spec='${libname}${release}${shared_ext}$major'
  12332. shlibpath_var=LD_LIBRARY_PATH
  12333. case $host_vendor in
  12334. sni)
  12335. shlibpath_overrides_runpath=no
  12336. need_lib_prefix=no
  12337. runpath_var=LD_RUN_PATH
  12338. ;;
  12339. siemens)
  12340. need_lib_prefix=no
  12341. ;;
  12342. motorola)
  12343. need_lib_prefix=no
  12344. need_version=no
  12345. shlibpath_overrides_runpath=no
  12346. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12347. ;;
  12348. esac
  12349. ;;
  12350. sysv4*MP*)
  12351. if test -d /usr/nec ;then
  12352. version_type=linux
  12353. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12354. soname_spec='$libname${shared_ext}.$major'
  12355. shlibpath_var=LD_LIBRARY_PATH
  12356. fi
  12357. ;;
  12358. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12359. version_type=freebsd-elf
  12360. need_lib_prefix=no
  12361. need_version=no
  12362. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12363. soname_spec='${libname}${release}${shared_ext}$major'
  12364. shlibpath_var=LD_LIBRARY_PATH
  12365. shlibpath_overrides_runpath=yes
  12366. hardcode_into_libs=yes
  12367. if test "$with_gnu_ld" = yes; then
  12368. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12369. else
  12370. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12371. case $host_os in
  12372. sco3.2v5*)
  12373. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12374. ;;
  12375. esac
  12376. fi
  12377. sys_lib_dlsearch_path_spec='/usr/lib'
  12378. ;;
  12379. tpf*)
  12380. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12381. version_type=linux
  12382. need_lib_prefix=no
  12383. need_version=no
  12384. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12385. shlibpath_var=LD_LIBRARY_PATH
  12386. shlibpath_overrides_runpath=no
  12387. hardcode_into_libs=yes
  12388. ;;
  12389. uts4*)
  12390. version_type=linux
  12391. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12392. soname_spec='${libname}${release}${shared_ext}$major'
  12393. shlibpath_var=LD_LIBRARY_PATH
  12394. ;;
  12395. *)
  12396. dynamic_linker=no
  12397. ;;
  12398. esac
  12399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12400. $as_echo "$dynamic_linker" >&6; }
  12401. test "$dynamic_linker" = no && can_build_shared=no
  12402. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12403. if test "$GCC" = yes; then
  12404. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12405. fi
  12406. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12407. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12408. fi
  12409. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12410. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12411. fi
  12412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12413. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12414. hardcode_action_CXX=
  12415. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12416. test -n "$runpath_var_CXX" ||
  12417. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12418. # We can hardcode non-existent directories.
  12419. if test "$hardcode_direct_CXX" != no &&
  12420. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12421. # have to relink, otherwise we might link with an installed library
  12422. # when we should be linking with a yet-to-be-installed one
  12423. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12424. test "$hardcode_minus_L_CXX" != no; then
  12425. # Linking always hardcodes the temporary library directory.
  12426. hardcode_action_CXX=relink
  12427. else
  12428. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12429. hardcode_action_CXX=immediate
  12430. fi
  12431. else
  12432. # We cannot hardcode anything, or else we can only hardcode existing
  12433. # directories.
  12434. hardcode_action_CXX=unsupported
  12435. fi
  12436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12437. $as_echo "$hardcode_action_CXX" >&6; }
  12438. if test "$hardcode_action_CXX" = relink ||
  12439. test "$inherit_rpath_CXX" = yes; then
  12440. # Fast installation is not supported
  12441. enable_fast_install=no
  12442. elif test "$shlibpath_overrides_runpath" = yes ||
  12443. test "$enable_shared" = no; then
  12444. # Fast installation is not necessary
  12445. enable_fast_install=needless
  12446. fi
  12447. fi # test -n "$compiler"
  12448. CC=$lt_save_CC
  12449. LDCXX=$LD
  12450. LD=$lt_save_LD
  12451. GCC=$lt_save_GCC
  12452. with_gnu_ld=$lt_save_with_gnu_ld
  12453. lt_cv_path_LDCXX=$lt_cv_path_LD
  12454. lt_cv_path_LD=$lt_save_path_LD
  12455. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12456. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12457. fi # test "$_lt_caught_CXX_error" != yes
  12458. ac_ext=cpp
  12459. ac_cpp='$CXXCPP $CPPFLAGS'
  12460. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12461. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12462. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12463. ac_config_commands="$ac_config_commands libtool"
  12464. # Only expand once:
  12465. # Use silent rules if supported.
  12466. # Check whether --enable-silent-rules was given.
  12467. if test "${enable_silent_rules+set}" = set; then :
  12468. enableval=$enable_silent_rules;
  12469. fi
  12470. case $enable_silent_rules in
  12471. yes) AM_DEFAULT_VERBOSITY=0;;
  12472. no) AM_DEFAULT_VERBOSITY=1;;
  12473. *) AM_DEFAULT_VERBOSITY=0;;
  12474. esac
  12475. AM_BACKSLASH='\'
  12476. # Check whether --enable-debug was given.
  12477. if test "${enable_debug+set}" = set; then :
  12478. enableval=$enable_debug; if test x$enableval = xyes ; then
  12479. enable_debug="yes"
  12480. else
  12481. enable_debug="no"
  12482. fi
  12483. else
  12484. enable_debug="yes"
  12485. fi
  12486. if test "x$GXX" = "xyes" -a "x$enable_debug" = "xyes" ; then
  12487. CXXFLAGS="-O0 -ggdb"
  12488. fi
  12489. if test "x$GXX" = "xyes" ; then
  12490. CXXFLAGS="$CXXFLAGS -Wall -Wno-switch -Wno-sign-compare -Wcast-align -Wpointer-arith"
  12491. fi
  12492. # For clang only. Need an autoconf test.
  12493. # CXXFLAGS="$CXXFLAGS -Wno-address-of-temporary -Wno-unused-value -Wno-unknown-pragmas -Wno-cast-align"
  12494. # Check for Boost libraries
  12495. # Check whether --with-boost was given.
  12496. if test "${with_boost+set}" = set; then :
  12497. withval=$with_boost;
  12498. if test "$withval" = "no"; then
  12499. want_boost="no"
  12500. elif test "$withval" = "yes"; then
  12501. want_boost="yes"
  12502. ac_boost_path=""
  12503. else
  12504. want_boost="yes"
  12505. ac_boost_path="$withval"
  12506. fi
  12507. else
  12508. want_boost="yes"
  12509. fi
  12510. # Check whether --with-boost-libdir was given.
  12511. if test "${with_boost_libdir+set}" = set; then :
  12512. withval=$with_boost_libdir;
  12513. if test -d $withval
  12514. then
  12515. ac_boost_lib_path="$withval"
  12516. else
  12517. as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
  12518. fi
  12519. else
  12520. ac_boost_lib_path=""
  12521. fi
  12522. if test "x$want_boost" = "xyes"; then
  12523. boost_lib_version_req=1.36
  12524. boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
  12525. boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
  12526. boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
  12527. boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  12528. if test "x$boost_lib_version_req_sub_minor" = "x" ; then
  12529. boost_lib_version_req_sub_minor="0"
  12530. fi
  12531. WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
  12532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
  12533. $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
  12534. succeeded=no
  12535. if test "$ac_boost_path" != ""; then
  12536. BOOST_LDFLAGS="-L$ac_boost_path/lib"
  12537. BOOST_CPPFLAGS="-I$ac_boost_path/include"
  12538. else
  12539. for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
  12540. if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
  12541. BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
  12542. BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
  12543. break;
  12544. fi
  12545. done
  12546. fi
  12547. if test "$ac_boost_lib_path" != ""; then
  12548. BOOST_LDFLAGS="-L$ac_boost_lib_path"
  12549. fi
  12550. CPPFLAGS_SAVED="$CPPFLAGS"
  12551. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12552. export CPPFLAGS
  12553. LDFLAGS_SAVED="$LDFLAGS"
  12554. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12555. export LDFLAGS
  12556. ac_ext=cpp
  12557. ac_cpp='$CXXCPP $CPPFLAGS'
  12558. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12559. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12560. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12561. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12562. /* end confdefs.h. */
  12563. #include <boost/version.hpp>
  12564. int
  12565. main ()
  12566. {
  12567. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  12568. // Everything is okay
  12569. #else
  12570. # error Boost version is too old
  12571. #endif
  12572. ;
  12573. return 0;
  12574. }
  12575. _ACEOF
  12576. if ac_fn_cxx_try_compile "$LINENO"; then :
  12577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12578. $as_echo "yes" >&6; }
  12579. succeeded=yes
  12580. found_system=yes
  12581. fi
  12582. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12583. ac_ext=cpp
  12584. ac_cpp='$CXXCPP $CPPFLAGS'
  12585. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12586. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12587. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12588. if test "x$succeeded" != "xyes"; then
  12589. _version=0
  12590. if test "$ac_boost_path" != ""; then
  12591. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  12592. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  12593. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  12594. V_CHECK=`expr $_version_tmp \> $_version`
  12595. if test "$V_CHECK" = "1" ; then
  12596. _version=$_version_tmp
  12597. fi
  12598. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  12599. BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
  12600. done
  12601. fi
  12602. else
  12603. for ac_boost_path in /usr /usr/local /opt /opt/local ; do
  12604. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  12605. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  12606. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  12607. V_CHECK=`expr $_version_tmp \> $_version`
  12608. if test "$V_CHECK" = "1" ; then
  12609. _version=$_version_tmp
  12610. best_path=$ac_boost_path
  12611. fi
  12612. done
  12613. fi
  12614. done
  12615. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  12616. BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
  12617. if test "$ac_boost_lib_path" = ""
  12618. then
  12619. BOOST_LDFLAGS="-L$best_path/lib"
  12620. fi
  12621. if test "x$BOOST_ROOT" != "x"; then
  12622. if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
  12623. version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
  12624. stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
  12625. stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
  12626. V_CHECK=`expr $stage_version_shorten \>\= $_version`
  12627. if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
  12628. { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
  12629. $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
  12630. BOOST_CPPFLAGS="-I$BOOST_ROOT"
  12631. BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
  12632. fi
  12633. fi
  12634. fi
  12635. fi
  12636. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12637. export CPPFLAGS
  12638. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12639. export LDFLAGS
  12640. ac_ext=cpp
  12641. ac_cpp='$CXXCPP $CPPFLAGS'
  12642. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12643. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12644. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12645. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12646. /* end confdefs.h. */
  12647. #include <boost/version.hpp>
  12648. int
  12649. main ()
  12650. {
  12651. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  12652. // Everything is okay
  12653. #else
  12654. # error Boost version is too old
  12655. #endif
  12656. ;
  12657. return 0;
  12658. }
  12659. _ACEOF
  12660. if ac_fn_cxx_try_compile "$LINENO"; then :
  12661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12662. $as_echo "yes" >&6; }
  12663. succeeded=yes
  12664. found_system=yes
  12665. fi
  12666. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12667. ac_ext=cpp
  12668. ac_cpp='$CXXCPP $CPPFLAGS'
  12669. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12670. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12671. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12672. fi
  12673. if test "$succeeded" != "yes" ; then
  12674. if test "$_version" = "0" ; then
  12675. as_fn_error $? "We could not detect the boost libraries (version $boost_lib_version_req_shorten or higher). If you have a staged boost library (still not installed) please specify \$BOOST_ROOT in your environment and do not give a PATH to --with-boost option. If you are sure you have boost installed, then check your version number looking in <boost/version.hpp>. See http://randspringer.de/boost for more documentation." "$LINENO" 5
  12676. else
  12677. { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
  12678. $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
  12679. fi
  12680. else
  12681. $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
  12682. fi
  12683. CPPFLAGS="$CPPFLAGS_SAVED"
  12684. LDFLAGS="$LDFLAGS_SAVED"
  12685. fi
  12686. # Check whether --with-boost-system was given.
  12687. if test "${with_boost_system+set}" = set; then :
  12688. withval=$with_boost_system;
  12689. if test "$withval" = "no"; then
  12690. want_boost="no"
  12691. elif test "$withval" = "yes"; then
  12692. want_boost="yes"
  12693. ax_boost_user_system_lib=""
  12694. else
  12695. want_boost="yes"
  12696. ax_boost_user_system_lib="$withval"
  12697. fi
  12698. else
  12699. want_boost="yes"
  12700. fi
  12701. if test "x$want_boost" = "xyes"; then
  12702. CPPFLAGS_SAVED="$CPPFLAGS"
  12703. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12704. export CPPFLAGS
  12705. LDFLAGS_SAVED="$LDFLAGS"
  12706. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12707. export LDFLAGS
  12708. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
  12709. $as_echo_n "checking whether the Boost::System library is available... " >&6; }
  12710. if test "${ax_cv_boost_system+set}" = set; then :
  12711. $as_echo_n "(cached) " >&6
  12712. else
  12713. ac_ext=cpp
  12714. ac_cpp='$CXXCPP $CPPFLAGS'
  12715. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12716. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12717. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12718. CXXFLAGS_SAVE=$CXXFLAGS
  12719. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12720. /* end confdefs.h. */
  12721. #include <boost/system/error_code.hpp>
  12722. int
  12723. main ()
  12724. {
  12725. boost::system::system_category
  12726. ;
  12727. return 0;
  12728. }
  12729. _ACEOF
  12730. if ac_fn_cxx_try_compile "$LINENO"; then :
  12731. ax_cv_boost_system=yes
  12732. else
  12733. ax_cv_boost_system=no
  12734. fi
  12735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12736. CXXFLAGS=$CXXFLAGS_SAVE
  12737. ac_ext=cpp
  12738. ac_cpp='$CXXCPP $CPPFLAGS'
  12739. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12740. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12741. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12742. fi
  12743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
  12744. $as_echo "$ax_cv_boost_system" >&6; }
  12745. if test "x$ax_cv_boost_system" = "xyes"; then
  12746. $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
  12747. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  12748. LDFLAGS_SAVE=$LDFLAGS
  12749. if test "x$ax_boost_user_system_lib" = "x"; then
  12750. for libextension in `ls $BOOSTLIBDIR/libboost_system*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do
  12751. ax_lib=${libextension}
  12752. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12754. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12755. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  12756. $as_echo_n "(cached) " >&6
  12757. else
  12758. ac_check_lib_save_LIBS=$LIBS
  12759. LIBS="-l$ax_lib $LIBS"
  12760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12761. /* end confdefs.h. */
  12762. /* Override any GCC internal prototype to avoid an error.
  12763. Use char because int might match the return type of a GCC
  12764. builtin and then its argument prototype would still apply. */
  12765. #ifdef __cplusplus
  12766. extern "C"
  12767. #endif
  12768. char exit ();
  12769. int
  12770. main ()
  12771. {
  12772. return exit ();
  12773. ;
  12774. return 0;
  12775. }
  12776. _ACEOF
  12777. if ac_fn_cxx_try_link "$LINENO"; then :
  12778. eval "$as_ac_Lib=yes"
  12779. else
  12780. eval "$as_ac_Lib=no"
  12781. fi
  12782. rm -f core conftest.err conftest.$ac_objext \
  12783. conftest$ac_exeext conftest.$ac_ext
  12784. LIBS=$ac_check_lib_save_LIBS
  12785. fi
  12786. eval ac_res=\$$as_ac_Lib
  12787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12788. $as_echo "$ac_res" >&6; }
  12789. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  12790. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12791. else
  12792. link_system="no"
  12793. fi
  12794. done
  12795. if test "x$link_system" != "xyes"; then
  12796. for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.dll.*$;\1;' -e 's;^\(boost_system.*\)\.a*$;\1;'` ; do
  12797. ax_lib=${libextension}
  12798. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12800. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12801. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  12802. $as_echo_n "(cached) " >&6
  12803. else
  12804. ac_check_lib_save_LIBS=$LIBS
  12805. LIBS="-l$ax_lib $LIBS"
  12806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12807. /* end confdefs.h. */
  12808. /* Override any GCC internal prototype to avoid an error.
  12809. Use char because int might match the return type of a GCC
  12810. builtin and then its argument prototype would still apply. */
  12811. #ifdef __cplusplus
  12812. extern "C"
  12813. #endif
  12814. char exit ();
  12815. int
  12816. main ()
  12817. {
  12818. return exit ();
  12819. ;
  12820. return 0;
  12821. }
  12822. _ACEOF
  12823. if ac_fn_cxx_try_link "$LINENO"; then :
  12824. eval "$as_ac_Lib=yes"
  12825. else
  12826. eval "$as_ac_Lib=no"
  12827. fi
  12828. rm -f core conftest.err conftest.$ac_objext \
  12829. conftest$ac_exeext conftest.$ac_ext
  12830. LIBS=$ac_check_lib_save_LIBS
  12831. fi
  12832. eval ac_res=\$$as_ac_Lib
  12833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12834. $as_echo "$ac_res" >&6; }
  12835. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  12836. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12837. else
  12838. link_system="no"
  12839. fi
  12840. done
  12841. fi
  12842. else
  12843. for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
  12844. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12846. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12847. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  12848. $as_echo_n "(cached) " >&6
  12849. else
  12850. ac_check_lib_save_LIBS=$LIBS
  12851. LIBS="-l$ax_lib $LIBS"
  12852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12853. /* end confdefs.h. */
  12854. /* Override any GCC internal prototype to avoid an error.
  12855. Use char because int might match the return type of a GCC
  12856. builtin and then its argument prototype would still apply. */
  12857. #ifdef __cplusplus
  12858. extern "C"
  12859. #endif
  12860. char exit ();
  12861. int
  12862. main ()
  12863. {
  12864. return exit ();
  12865. ;
  12866. return 0;
  12867. }
  12868. _ACEOF
  12869. if ac_fn_cxx_try_link "$LINENO"; then :
  12870. eval "$as_ac_Lib=yes"
  12871. else
  12872. eval "$as_ac_Lib=no"
  12873. fi
  12874. rm -f core conftest.err conftest.$ac_objext \
  12875. conftest$ac_exeext conftest.$ac_ext
  12876. LIBS=$ac_check_lib_save_LIBS
  12877. fi
  12878. eval ac_res=\$$as_ac_Lib
  12879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12880. $as_echo "$ac_res" >&6; }
  12881. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  12882. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12883. else
  12884. link_system="no"
  12885. fi
  12886. done
  12887. fi
  12888. if test "x$link_system" = "xno"; then
  12889. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  12890. fi
  12891. fi
  12892. CPPFLAGS="$CPPFLAGS_SAVED"
  12893. LDFLAGS="$LDFLAGS_SAVED"
  12894. fi
  12895. # Check whether --with-boost-filesystem was given.
  12896. if test "${with_boost_filesystem+set}" = set; then :
  12897. withval=$with_boost_filesystem;
  12898. if test "$withval" = "no"; then
  12899. want_boost="no"
  12900. elif test "$withval" = "yes"; then
  12901. want_boost="yes"
  12902. ax_boost_user_filesystem_lib=""
  12903. else
  12904. want_boost="yes"
  12905. ax_boost_user_filesystem_lib="$withval"
  12906. fi
  12907. else
  12908. want_boost="yes"
  12909. fi
  12910. if test "x$want_boost" = "xyes"; then
  12911. CPPFLAGS_SAVED="$CPPFLAGS"
  12912. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12913. export CPPFLAGS
  12914. LDFLAGS_SAVED="$LDFLAGS"
  12915. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12916. export LDFLAGS
  12917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5
  12918. $as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
  12919. if test "${ax_cv_boost_filesystem+set}" = set; then :
  12920. $as_echo_n "(cached) " >&6
  12921. else
  12922. ac_ext=cpp
  12923. ac_cpp='$CXXCPP $CPPFLAGS'
  12924. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12925. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12926. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12928. /* end confdefs.h. */
  12929. #include <boost/filesystem/path.hpp>
  12930. int
  12931. main ()
  12932. {
  12933. using namespace boost::filesystem;
  12934. path my_path( "foo/bar/data.txt" );
  12935. return 0;
  12936. ;
  12937. return 0;
  12938. }
  12939. _ACEOF
  12940. if ac_fn_cxx_try_compile "$LINENO"; then :
  12941. ax_cv_boost_filesystem=yes
  12942. else
  12943. ax_cv_boost_filesystem=no
  12944. fi
  12945. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12946. ac_ext=cpp
  12947. ac_cpp='$CXXCPP $CPPFLAGS'
  12948. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12949. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12950. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12951. fi
  12952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_filesystem" >&5
  12953. $as_echo "$ax_cv_boost_filesystem" >&6; }
  12954. if test "x$ax_cv_boost_filesystem" = "xyes"; then
  12955. $as_echo "#define HAVE_BOOST_FILESYSTEM /**/" >>confdefs.h
  12956. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  12957. if test "x$ax_boost_user_filesystem_lib" = "x"; then
  12958. for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;'` ; do
  12959. ax_lib=${libextension}
  12960. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12961. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12962. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12963. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  12964. $as_echo_n "(cached) " >&6
  12965. else
  12966. ac_check_lib_save_LIBS=$LIBS
  12967. LIBS="-l$ax_lib $LIBS"
  12968. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12969. /* end confdefs.h. */
  12970. /* Override any GCC internal prototype to avoid an error.
  12971. Use char because int might match the return type of a GCC
  12972. builtin and then its argument prototype would still apply. */
  12973. #ifdef __cplusplus
  12974. extern "C"
  12975. #endif
  12976. char exit ();
  12977. int
  12978. main ()
  12979. {
  12980. return exit ();
  12981. ;
  12982. return 0;
  12983. }
  12984. _ACEOF
  12985. if ac_fn_cxx_try_link "$LINENO"; then :
  12986. eval "$as_ac_Lib=yes"
  12987. else
  12988. eval "$as_ac_Lib=no"
  12989. fi
  12990. rm -f core conftest.err conftest.$ac_objext \
  12991. conftest$ac_exeext conftest.$ac_ext
  12992. LIBS=$ac_check_lib_save_LIBS
  12993. fi
  12994. eval ac_res=\$$as_ac_Lib
  12995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12996. $as_echo "$ac_res" >&6; }
  12997. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  12998. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  12999. else
  13000. link_filesystem="no"
  13001. fi
  13002. done
  13003. if test "x$link_program_options" != "xyes"; then
  13004. for libextension in `ls $BOOSTLIBDIR/boost_filesystem*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_filesystem.*\)\.dll.*$;\1;' -e 's;^\(boost_filesystem.*\)\.a*$;\1;'` ; do
  13005. ax_lib=${libextension}
  13006. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13008. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13009. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13010. $as_echo_n "(cached) " >&6
  13011. else
  13012. ac_check_lib_save_LIBS=$LIBS
  13013. LIBS="-l$ax_lib $LIBS"
  13014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13015. /* end confdefs.h. */
  13016. /* Override any GCC internal prototype to avoid an error.
  13017. Use char because int might match the return type of a GCC
  13018. builtin and then its argument prototype would still apply. */
  13019. #ifdef __cplusplus
  13020. extern "C"
  13021. #endif
  13022. char exit ();
  13023. int
  13024. main ()
  13025. {
  13026. return exit ();
  13027. ;
  13028. return 0;
  13029. }
  13030. _ACEOF
  13031. if ac_fn_cxx_try_link "$LINENO"; then :
  13032. eval "$as_ac_Lib=yes"
  13033. else
  13034. eval "$as_ac_Lib=no"
  13035. fi
  13036. rm -f core conftest.err conftest.$ac_objext \
  13037. conftest$ac_exeext conftest.$ac_ext
  13038. LIBS=$ac_check_lib_save_LIBS
  13039. fi
  13040. eval ac_res=\$$as_ac_Lib
  13041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13042. $as_echo "$ac_res" >&6; }
  13043. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13044. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13045. else
  13046. link_filesystem="no"
  13047. fi
  13048. done
  13049. fi
  13050. else
  13051. for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
  13052. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13054. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13055. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13056. $as_echo_n "(cached) " >&6
  13057. else
  13058. ac_check_lib_save_LIBS=$LIBS
  13059. LIBS="-l$ax_lib $LIBS"
  13060. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13061. /* end confdefs.h. */
  13062. /* Override any GCC internal prototype to avoid an error.
  13063. Use char because int might match the return type of a GCC
  13064. builtin and then its argument prototype would still apply. */
  13065. #ifdef __cplusplus
  13066. extern "C"
  13067. #endif
  13068. char exit ();
  13069. int
  13070. main ()
  13071. {
  13072. return exit ();
  13073. ;
  13074. return 0;
  13075. }
  13076. _ACEOF
  13077. if ac_fn_cxx_try_link "$LINENO"; then :
  13078. eval "$as_ac_Lib=yes"
  13079. else
  13080. eval "$as_ac_Lib=no"
  13081. fi
  13082. rm -f core conftest.err conftest.$ac_objext \
  13083. conftest$ac_exeext conftest.$ac_ext
  13084. LIBS=$ac_check_lib_save_LIBS
  13085. fi
  13086. eval ac_res=\$$as_ac_Lib
  13087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13088. $as_echo "$ac_res" >&6; }
  13089. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13090. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13091. else
  13092. link_filesystem="no"
  13093. fi
  13094. done
  13095. fi
  13096. if test "x$link_filesystem" != "xyes"; then
  13097. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13098. fi
  13099. fi
  13100. CPPFLAGS="$CPPFLAGS_SAVED"
  13101. LDFLAGS="$LDFLAGS_SAVED"
  13102. fi
  13103. # Check whether --with-boost-thread was given.
  13104. if test "${with_boost_thread+set}" = set; then :
  13105. withval=$with_boost_thread;
  13106. if test "$withval" = "no"; then
  13107. want_boost="no"
  13108. elif test "$withval" = "yes"; then
  13109. want_boost="yes"
  13110. ax_boost_user_thread_lib=""
  13111. else
  13112. want_boost="yes"
  13113. ax_boost_user_thread_lib="$withval"
  13114. fi
  13115. else
  13116. want_boost="yes"
  13117. fi
  13118. if test "x$want_boost" = "xyes"; then
  13119. CPPFLAGS_SAVED="$CPPFLAGS"
  13120. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13121. export CPPFLAGS
  13122. LDFLAGS_SAVED="$LDFLAGS"
  13123. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13124. export LDFLAGS
  13125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5
  13126. $as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
  13127. if test "${ax_cv_boost_thread+set}" = set; then :
  13128. $as_echo_n "(cached) " >&6
  13129. else
  13130. ac_ext=cpp
  13131. ac_cpp='$CXXCPP $CPPFLAGS'
  13132. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13133. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13134. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13135. CXXFLAGS_SAVE=$CXXFLAGS
  13136. if test "x$build_os" = "xsolaris" ; then
  13137. CXXFLAGS="-pthreads $CXXFLAGS"
  13138. elif test "x$build_os" = "xming32" ; then
  13139. CXXFLAGS="-mthreads $CXXFLAGS"
  13140. else
  13141. CXXFLAGS="-pthread $CXXFLAGS"
  13142. fi
  13143. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13144. /* end confdefs.h. */
  13145. #include <boost/thread/thread.hpp>
  13146. int
  13147. main ()
  13148. {
  13149. boost::thread_group thrds;
  13150. return 0;
  13151. ;
  13152. return 0;
  13153. }
  13154. _ACEOF
  13155. if ac_fn_cxx_try_compile "$LINENO"; then :
  13156. ax_cv_boost_thread=yes
  13157. else
  13158. ax_cv_boost_thread=no
  13159. fi
  13160. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13161. CXXFLAGS=$CXXFLAGS_SAVE
  13162. ac_ext=cpp
  13163. ac_cpp='$CXXCPP $CPPFLAGS'
  13164. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13165. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13166. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13167. fi
  13168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
  13169. $as_echo "$ax_cv_boost_thread" >&6; }
  13170. if test "x$ax_cv_boost_thread" = "xyes"; then
  13171. if test "x$build_os" = "xsolaris" ; then
  13172. BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
  13173. elif test "x$build_os" = "xming32" ; then
  13174. BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
  13175. else
  13176. BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
  13177. fi
  13178. $as_echo "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
  13179. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13180. LDFLAGS_SAVE=$LDFLAGS
  13181. case "x$build_os" in
  13182. *bsd* )
  13183. LDFLAGS="-pthread $LDFLAGS"
  13184. break;
  13185. ;;
  13186. esac
  13187. if test "x$ax_boost_user_thread_lib" = "x"; then
  13188. for libextension in `ls $BOOSTLIBDIR/libboost_thread*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.so.*$;\1;' -e 's;^lib\(boost_thread.*\)\.a*$;\1;'` ; do
  13189. ax_lib=${libextension}
  13190. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13192. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13193. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13194. $as_echo_n "(cached) " >&6
  13195. else
  13196. ac_check_lib_save_LIBS=$LIBS
  13197. LIBS="-l$ax_lib $LIBS"
  13198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13199. /* end confdefs.h. */
  13200. /* Override any GCC internal prototype to avoid an error.
  13201. Use char because int might match the return type of a GCC
  13202. builtin and then its argument prototype would still apply. */
  13203. #ifdef __cplusplus
  13204. extern "C"
  13205. #endif
  13206. char exit ();
  13207. int
  13208. main ()
  13209. {
  13210. return exit ();
  13211. ;
  13212. return 0;
  13213. }
  13214. _ACEOF
  13215. if ac_fn_cxx_try_link "$LINENO"; then :
  13216. eval "$as_ac_Lib=yes"
  13217. else
  13218. eval "$as_ac_Lib=no"
  13219. fi
  13220. rm -f core conftest.err conftest.$ac_objext \
  13221. conftest$ac_exeext conftest.$ac_ext
  13222. LIBS=$ac_check_lib_save_LIBS
  13223. fi
  13224. eval ac_res=\$$as_ac_Lib
  13225. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13226. $as_echo "$ac_res" >&6; }
  13227. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13228. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13229. else
  13230. link_thread="no"
  13231. fi
  13232. done
  13233. if test "x$link_thread" != "xyes"; then
  13234. for libextension in `ls $BOOSTLIBDIR/boost_thread*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.dll.*$;\1;' -e 's;^\(boost_thread.*\)\.a*$;\1;'` ; do
  13235. ax_lib=${libextension}
  13236. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13237. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13238. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13239. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13240. $as_echo_n "(cached) " >&6
  13241. else
  13242. ac_check_lib_save_LIBS=$LIBS
  13243. LIBS="-l$ax_lib $LIBS"
  13244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13245. /* end confdefs.h. */
  13246. /* Override any GCC internal prototype to avoid an error.
  13247. Use char because int might match the return type of a GCC
  13248. builtin and then its argument prototype would still apply. */
  13249. #ifdef __cplusplus
  13250. extern "C"
  13251. #endif
  13252. char exit ();
  13253. int
  13254. main ()
  13255. {
  13256. return exit ();
  13257. ;
  13258. return 0;
  13259. }
  13260. _ACEOF
  13261. if ac_fn_cxx_try_link "$LINENO"; then :
  13262. eval "$as_ac_Lib=yes"
  13263. else
  13264. eval "$as_ac_Lib=no"
  13265. fi
  13266. rm -f core conftest.err conftest.$ac_objext \
  13267. conftest$ac_exeext conftest.$ac_ext
  13268. LIBS=$ac_check_lib_save_LIBS
  13269. fi
  13270. eval ac_res=\$$as_ac_Lib
  13271. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13272. $as_echo "$ac_res" >&6; }
  13273. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13274. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13275. else
  13276. link_thread="no"
  13277. fi
  13278. done
  13279. fi
  13280. else
  13281. for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
  13282. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13283. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13284. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13285. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13286. $as_echo_n "(cached) " >&6
  13287. else
  13288. ac_check_lib_save_LIBS=$LIBS
  13289. LIBS="-l$ax_lib $LIBS"
  13290. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13291. /* end confdefs.h. */
  13292. /* Override any GCC internal prototype to avoid an error.
  13293. Use char because int might match the return type of a GCC
  13294. builtin and then its argument prototype would still apply. */
  13295. #ifdef __cplusplus
  13296. extern "C"
  13297. #endif
  13298. char exit ();
  13299. int
  13300. main ()
  13301. {
  13302. return exit ();
  13303. ;
  13304. return 0;
  13305. }
  13306. _ACEOF
  13307. if ac_fn_cxx_try_link "$LINENO"; then :
  13308. eval "$as_ac_Lib=yes"
  13309. else
  13310. eval "$as_ac_Lib=no"
  13311. fi
  13312. rm -f core conftest.err conftest.$ac_objext \
  13313. conftest$ac_exeext conftest.$ac_ext
  13314. LIBS=$ac_check_lib_save_LIBS
  13315. fi
  13316. eval ac_res=\$$as_ac_Lib
  13317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13318. $as_echo "$ac_res" >&6; }
  13319. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13320. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13321. else
  13322. link_thread="no"
  13323. fi
  13324. done
  13325. fi
  13326. if test "x$link_thread" = "xno"; then
  13327. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13328. else
  13329. case "x$build_os" in
  13330. *bsd* )
  13331. BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
  13332. break;
  13333. ;;
  13334. esac
  13335. fi
  13336. fi
  13337. CPPFLAGS="$CPPFLAGS_SAVED"
  13338. LDFLAGS="$LDFLAGS_SAVED"
  13339. fi
  13340. # Check whether --with-boost-iostreams was given.
  13341. if test "${with_boost_iostreams+set}" = set; then :
  13342. withval=$with_boost_iostreams;
  13343. if test "$withval" = "no"; then
  13344. want_boost="no"
  13345. elif test "$withval" = "yes"; then
  13346. want_boost="yes"
  13347. ax_boost_user_iostreams_lib=""
  13348. else
  13349. want_boost="yes"
  13350. ax_boost_user_iostreams_lib="$withval"
  13351. fi
  13352. else
  13353. want_boost="yes"
  13354. fi
  13355. if test "x$want_boost" = "xyes"; then
  13356. CPPFLAGS_SAVED="$CPPFLAGS"
  13357. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13358. export CPPFLAGS
  13359. LDFLAGS_SAVED="$LDFLAGS"
  13360. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13361. export LDFLAGS
  13362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::IOStreams library is available" >&5
  13363. $as_echo_n "checking whether the Boost::IOStreams library is available... " >&6; }
  13364. if test "${ax_cv_boost_iostreams+set}" = set; then :
  13365. $as_echo_n "(cached) " >&6
  13366. else
  13367. ac_ext=cpp
  13368. ac_cpp='$CXXCPP $CPPFLAGS'
  13369. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13370. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13371. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13373. /* end confdefs.h. */
  13374. #include <boost/iostreams/filtering_stream.hpp>
  13375. #include <boost/range/iterator_range.hpp>
  13376. int
  13377. main ()
  13378. {
  13379. std::string input = "Hello World!";
  13380. namespace io = boost::iostreams;
  13381. io::filtering_istream in(boost::make_iterator_range(input));
  13382. return 0;
  13383. ;
  13384. return 0;
  13385. }
  13386. _ACEOF
  13387. if ac_fn_cxx_try_compile "$LINENO"; then :
  13388. ax_cv_boost_iostreams=yes
  13389. else
  13390. ax_cv_boost_iostreams=no
  13391. fi
  13392. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13393. ac_ext=cpp
  13394. ac_cpp='$CXXCPP $CPPFLAGS'
  13395. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13396. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13397. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13398. fi
  13399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_iostreams" >&5
  13400. $as_echo "$ax_cv_boost_iostreams" >&6; }
  13401. if test "x$ax_cv_boost_iostreams" = "xyes"; then
  13402. $as_echo "#define HAVE_BOOST_IOSTREAMS /**/" >>confdefs.h
  13403. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13404. if test "x$ax_boost_user_iostreams_lib" = "x"; then
  13405. for libextension in `ls $BOOSTLIBDIR/libboost_iostreams*.{so,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_iostreams.*\)\.so.*$;\1;' -e 's;^lib\(boost_iostreams.*\)\.a*$;\1;'` ; do
  13406. ax_lib=${libextension}
  13407. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13408. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13409. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13410. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13411. $as_echo_n "(cached) " >&6
  13412. else
  13413. ac_check_lib_save_LIBS=$LIBS
  13414. LIBS="-l$ax_lib $LIBS"
  13415. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13416. /* end confdefs.h. */
  13417. /* Override any GCC internal prototype to avoid an error.
  13418. Use char because int might match the return type of a GCC
  13419. builtin and then its argument prototype would still apply. */
  13420. #ifdef __cplusplus
  13421. extern "C"
  13422. #endif
  13423. char exit ();
  13424. int
  13425. main ()
  13426. {
  13427. return exit ();
  13428. ;
  13429. return 0;
  13430. }
  13431. _ACEOF
  13432. if ac_fn_cxx_try_link "$LINENO"; then :
  13433. eval "$as_ac_Lib=yes"
  13434. else
  13435. eval "$as_ac_Lib=no"
  13436. fi
  13437. rm -f core conftest.err conftest.$ac_objext \
  13438. conftest$ac_exeext conftest.$ac_ext
  13439. LIBS=$ac_check_lib_save_LIBS
  13440. fi
  13441. eval ac_res=\$$as_ac_Lib
  13442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13443. $as_echo "$ac_res" >&6; }
  13444. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13445. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13446. else
  13447. link_iostreams="no"
  13448. fi
  13449. done
  13450. if test "x$link_iostreams" != "xyes"; then
  13451. for libextension in `ls $BOOSTLIBDIR/boost_iostreams*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_iostreams.*\)\.dll.*$;\1;' -e 's;^\(boost_iostreams.*\)\.a*$;\1;'` ; do
  13452. ax_lib=${libextension}
  13453. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13454. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13455. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13456. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13457. $as_echo_n "(cached) " >&6
  13458. else
  13459. ac_check_lib_save_LIBS=$LIBS
  13460. LIBS="-l$ax_lib $LIBS"
  13461. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13462. /* end confdefs.h. */
  13463. /* Override any GCC internal prototype to avoid an error.
  13464. Use char because int might match the return type of a GCC
  13465. builtin and then its argument prototype would still apply. */
  13466. #ifdef __cplusplus
  13467. extern "C"
  13468. #endif
  13469. char exit ();
  13470. int
  13471. main ()
  13472. {
  13473. return exit ();
  13474. ;
  13475. return 0;
  13476. }
  13477. _ACEOF
  13478. if ac_fn_cxx_try_link "$LINENO"; then :
  13479. eval "$as_ac_Lib=yes"
  13480. else
  13481. eval "$as_ac_Lib=no"
  13482. fi
  13483. rm -f core conftest.err conftest.$ac_objext \
  13484. conftest$ac_exeext conftest.$ac_ext
  13485. LIBS=$ac_check_lib_save_LIBS
  13486. fi
  13487. eval ac_res=\$$as_ac_Lib
  13488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13489. $as_echo "$ac_res" >&6; }
  13490. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13491. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13492. else
  13493. link_iostreams="no"
  13494. fi
  13495. done
  13496. fi
  13497. else
  13498. for ax_lib in $ax_boost_user_iostreams_lib boost_iostreams-$ax_boost_user_iostreams_lib; do
  13499. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  13500. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
  13501. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  13502. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13503. $as_echo_n "(cached) " >&6
  13504. else
  13505. ac_check_lib_save_LIBS=$LIBS
  13506. LIBS="-l$ax_lib $LIBS"
  13507. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13508. /* end confdefs.h. */
  13509. int
  13510. main ()
  13511. {
  13512. return main ();
  13513. ;
  13514. return 0;
  13515. }
  13516. _ACEOF
  13517. if ac_fn_cxx_try_link "$LINENO"; then :
  13518. eval "$as_ac_Lib=yes"
  13519. else
  13520. eval "$as_ac_Lib=no"
  13521. fi
  13522. rm -f core conftest.err conftest.$ac_objext \
  13523. conftest$ac_exeext conftest.$ac_ext
  13524. LIBS=$ac_check_lib_save_LIBS
  13525. fi
  13526. eval ac_res=\$$as_ac_Lib
  13527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13528. $as_echo "$ac_res" >&6; }
  13529. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13530. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13531. else
  13532. link_iostreams="no"
  13533. fi
  13534. done
  13535. fi
  13536. if test "x$link_iostreams" != "xyes"; then
  13537. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13538. fi
  13539. fi
  13540. CPPFLAGS="$CPPFLAGS_SAVED"
  13541. LDFLAGS="$LDFLAGS_SAVED"
  13542. fi
  13543. # Check for SDL libraries
  13544. saved_LIBS=$LIBS
  13545. # Extract the first word of "sdl-config", so it can be a program name with args.
  13546. set dummy sdl-config; ac_word=$2
  13547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13548. $as_echo_n "checking for $ac_word... " >&6; }
  13549. if test "${ac_cv_prog_HAVE_SDL_CONFIG+set}" = set; then :
  13550. $as_echo_n "(cached) " >&6
  13551. else
  13552. if test -n "$HAVE_SDL_CONFIG"; then
  13553. ac_cv_prog_HAVE_SDL_CONFIG="$HAVE_SDL_CONFIG" # Let the user override the test.
  13554. else
  13555. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13556. for as_dir in $PATH
  13557. do
  13558. IFS=$as_save_IFS
  13559. test -z "$as_dir" && as_dir=.
  13560. for ac_exec_ext in '' $ac_executable_extensions; do
  13561. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13562. ac_cv_prog_HAVE_SDL_CONFIG="yes"
  13563. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13564. break 2
  13565. fi
  13566. done
  13567. done
  13568. IFS=$as_save_IFS
  13569. test -z "$ac_cv_prog_HAVE_SDL_CONFIG" && ac_cv_prog_HAVE_SDL_CONFIG="no"
  13570. fi
  13571. fi
  13572. HAVE_SDL_CONFIG=$ac_cv_prog_HAVE_SDL_CONFIG
  13573. if test -n "$HAVE_SDL_CONFIG"; then
  13574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SDL_CONFIG" >&5
  13575. $as_echo "$HAVE_SDL_CONFIG" >&6; }
  13576. else
  13577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13578. $as_echo "no" >&6; }
  13579. fi
  13580. if test "$HAVE_SDL_CONFIG" = no; then
  13581. as_fn_error $? "sdl-config doesn't exist. Try to check the PATH enviroment." "$LINENO" 5
  13582. fi
  13583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
  13584. $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
  13585. if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then :
  13586. $as_echo_n "(cached) " >&6
  13587. else
  13588. ac_check_lib_save_LIBS=$LIBS
  13589. LIBS="-lSDL $LIBS"
  13590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13591. /* end confdefs.h. */
  13592. /* Override any GCC internal prototype to avoid an error.
  13593. Use char because int might match the return type of a GCC
  13594. builtin and then its argument prototype would still apply. */
  13595. #ifdef __cplusplus
  13596. extern "C"
  13597. #endif
  13598. char SDL_Init ();
  13599. int
  13600. main ()
  13601. {
  13602. return SDL_Init ();
  13603. ;
  13604. return 0;
  13605. }
  13606. _ACEOF
  13607. if ac_fn_cxx_try_link "$LINENO"; then :
  13608. ac_cv_lib_SDL_SDL_Init=yes
  13609. else
  13610. ac_cv_lib_SDL_SDL_Init=no
  13611. fi
  13612. rm -f core conftest.err conftest.$ac_objext \
  13613. conftest$ac_exeext conftest.$ac_ext
  13614. LIBS=$ac_check_lib_save_LIBS
  13615. fi
  13616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
  13617. $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
  13618. if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then :
  13619. cat >>confdefs.h <<_ACEOF
  13620. #define HAVE_LIBSDL 1
  13621. _ACEOF
  13622. LIBS="-lSDL $LIBS"
  13623. else
  13624. as_fn_error $? "SDL library not found. Please install it." "$LINENO" 5
  13625. fi
  13626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_mixer" >&5
  13627. $as_echo_n "checking for main in -lSDL_mixer... " >&6; }
  13628. if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then :
  13629. $as_echo_n "(cached) " >&6
  13630. else
  13631. ac_check_lib_save_LIBS=$LIBS
  13632. LIBS="-lSDL_mixer $LIBS"
  13633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13634. /* end confdefs.h. */
  13635. int
  13636. main ()
  13637. {
  13638. return main ();
  13639. ;
  13640. return 0;
  13641. }
  13642. _ACEOF
  13643. if ac_fn_cxx_try_link "$LINENO"; then :
  13644. ac_cv_lib_SDL_mixer_main=yes
  13645. else
  13646. ac_cv_lib_SDL_mixer_main=no
  13647. fi
  13648. rm -f core conftest.err conftest.$ac_objext \
  13649. conftest$ac_exeext conftest.$ac_ext
  13650. LIBS=$ac_check_lib_save_LIBS
  13651. fi
  13652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_main" >&5
  13653. $as_echo "$ac_cv_lib_SDL_mixer_main" >&6; }
  13654. if test "x$ac_cv_lib_SDL_mixer_main" = x""yes; then :
  13655. cat >>confdefs.h <<_ACEOF
  13656. #define HAVE_LIBSDL_MIXER 1
  13657. _ACEOF
  13658. LIBS="-lSDL_mixer $LIBS"
  13659. else
  13660. as_fn_error $? "SDL_mixer library not found. Please install it." "$LINENO" 5
  13661. fi
  13662. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
  13663. $as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
  13664. if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then :
  13665. $as_echo_n "(cached) " >&6
  13666. else
  13667. ac_check_lib_save_LIBS=$LIBS
  13668. LIBS="-lSDL_image $LIBS"
  13669. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13670. /* end confdefs.h. */
  13671. /* Override any GCC internal prototype to avoid an error.
  13672. Use char because int might match the return type of a GCC
  13673. builtin and then its argument prototype would still apply. */
  13674. #ifdef __cplusplus
  13675. extern "C"
  13676. #endif
  13677. char IMG_Load ();
  13678. int
  13679. main ()
  13680. {
  13681. return IMG_Load ();
  13682. ;
  13683. return 0;
  13684. }
  13685. _ACEOF
  13686. if ac_fn_cxx_try_link "$LINENO"; then :
  13687. ac_cv_lib_SDL_image_IMG_Load=yes
  13688. else
  13689. ac_cv_lib_SDL_image_IMG_Load=no
  13690. fi
  13691. rm -f core conftest.err conftest.$ac_objext \
  13692. conftest$ac_exeext conftest.$ac_ext
  13693. LIBS=$ac_check_lib_save_LIBS
  13694. fi
  13695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
  13696. $as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
  13697. if test "x$ac_cv_lib_SDL_image_IMG_Load" = x""yes; then :
  13698. cat >>confdefs.h <<_ACEOF
  13699. #define HAVE_LIBSDL_IMAGE 1
  13700. _ACEOF
  13701. LIBS="-lSDL_image $LIBS"
  13702. else
  13703. as_fn_error $? "SDL_image library not found. Please install it." "$LINENO" 5
  13704. fi
  13705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_ttf" >&5
  13706. $as_echo_n "checking for main in -lSDL_ttf... " >&6; }
  13707. if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then :
  13708. $as_echo_n "(cached) " >&6
  13709. else
  13710. ac_check_lib_save_LIBS=$LIBS
  13711. LIBS="-lSDL_ttf $LIBS"
  13712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13713. /* end confdefs.h. */
  13714. int
  13715. main ()
  13716. {
  13717. return main ();
  13718. ;
  13719. return 0;
  13720. }
  13721. _ACEOF
  13722. if ac_fn_cxx_try_link "$LINENO"; then :
  13723. ac_cv_lib_SDL_ttf_main=yes
  13724. else
  13725. ac_cv_lib_SDL_ttf_main=no
  13726. fi
  13727. rm -f core conftest.err conftest.$ac_objext \
  13728. conftest$ac_exeext conftest.$ac_ext
  13729. LIBS=$ac_check_lib_save_LIBS
  13730. fi
  13731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_ttf_main" >&5
  13732. $as_echo "$ac_cv_lib_SDL_ttf_main" >&6; }
  13733. if test "x$ac_cv_lib_SDL_ttf_main" = x""yes; then :
  13734. cat >>confdefs.h <<_ACEOF
  13735. #define HAVE_LIBSDL_TTF 1
  13736. _ACEOF
  13737. LIBS="-lSDL_ttf $LIBS"
  13738. else
  13739. as_fn_error $? "SDL_ttf library not found. Please install it." "$LINENO" 5
  13740. fi
  13741. SDL_CXXFLAGS=`sdl-config --cflags`
  13742. SDL_LIBS="`sdl-config --libs` $LIBS"
  13743. LIBS=$saved_LIBS
  13744. # Check for ffmpeg libraries
  13745. saved_LIBS=$LIBS
  13746. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavformat" >&5
  13747. $as_echo_n "checking for main in -lavformat... " >&6; }
  13748. if test "${ac_cv_lib_avformat_main+set}" = set; then :
  13749. $as_echo_n "(cached) " >&6
  13750. else
  13751. ac_check_lib_save_LIBS=$LIBS
  13752. LIBS="-lavformat $LIBS"
  13753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13754. /* end confdefs.h. */
  13755. int
  13756. main ()
  13757. {
  13758. return main ();
  13759. ;
  13760. return 0;
  13761. }
  13762. _ACEOF
  13763. if ac_fn_cxx_try_link "$LINENO"; then :
  13764. ac_cv_lib_avformat_main=yes
  13765. else
  13766. ac_cv_lib_avformat_main=no
  13767. fi
  13768. rm -f core conftest.err conftest.$ac_objext \
  13769. conftest$ac_exeext conftest.$ac_ext
  13770. LIBS=$ac_check_lib_save_LIBS
  13771. fi
  13772. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_main" >&5
  13773. $as_echo "$ac_cv_lib_avformat_main" >&6; }
  13774. if test "x$ac_cv_lib_avformat_main" = x""yes; then :
  13775. cat >>confdefs.h <<_ACEOF
  13776. #define HAVE_LIBAVFORMAT 1
  13777. _ACEOF
  13778. LIBS="-lavformat $LIBS"
  13779. else
  13780. as_fn_error $? "FFMpeg avformat library not found. Please install it." "$LINENO" 5
  13781. fi
  13782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lswscale" >&5
  13783. $as_echo_n "checking for main in -lswscale... " >&6; }
  13784. if test "${ac_cv_lib_swscale_main+set}" = set; then :
  13785. $as_echo_n "(cached) " >&6
  13786. else
  13787. ac_check_lib_save_LIBS=$LIBS
  13788. LIBS="-lswscale $LIBS"
  13789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13790. /* end confdefs.h. */
  13791. int
  13792. main ()
  13793. {
  13794. return main ();
  13795. ;
  13796. return 0;
  13797. }
  13798. _ACEOF
  13799. if ac_fn_cxx_try_link "$LINENO"; then :
  13800. ac_cv_lib_swscale_main=yes
  13801. else
  13802. ac_cv_lib_swscale_main=no
  13803. fi
  13804. rm -f core conftest.err conftest.$ac_objext \
  13805. conftest$ac_exeext conftest.$ac_ext
  13806. LIBS=$ac_check_lib_save_LIBS
  13807. fi
  13808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_main" >&5
  13809. $as_echo "$ac_cv_lib_swscale_main" >&6; }
  13810. if test "x$ac_cv_lib_swscale_main" = x""yes; then :
  13811. cat >>confdefs.h <<_ACEOF
  13812. #define HAVE_LIBSWSCALE 1
  13813. _ACEOF
  13814. LIBS="-lswscale $LIBS"
  13815. else
  13816. as_fn_error $? "FFMpeg swscale library not found. Please install it." "$LINENO" 5
  13817. fi
  13818. FFMPEG_CXXFLAGS=`pkg-config --cflags libavformat libswscale`
  13819. FFMPEG_LIBS=`pkg-config --libs libavformat libswscale`
  13820. LIBS=$saved_LIBS
  13821. # Checks for header files.
  13822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13823. $as_echo_n "checking for ANSI C header files... " >&6; }
  13824. if test "${ac_cv_header_stdc+set}" = set; then :
  13825. $as_echo_n "(cached) " >&6
  13826. else
  13827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13828. /* end confdefs.h. */
  13829. #include <stdlib.h>
  13830. #include <stdarg.h>
  13831. #include <string.h>
  13832. #include <float.h>
  13833. int
  13834. main ()
  13835. {
  13836. ;
  13837. return 0;
  13838. }
  13839. _ACEOF
  13840. if ac_fn_cxx_try_compile "$LINENO"; then :
  13841. ac_cv_header_stdc=yes
  13842. else
  13843. ac_cv_header_stdc=no
  13844. fi
  13845. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13846. if test $ac_cv_header_stdc = yes; then
  13847. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13848. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13849. /* end confdefs.h. */
  13850. #include <string.h>
  13851. _ACEOF
  13852. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13853. $EGREP "memchr" >/dev/null 2>&1; then :
  13854. else
  13855. ac_cv_header_stdc=no
  13856. fi
  13857. rm -f conftest*
  13858. fi
  13859. if test $ac_cv_header_stdc = yes; then
  13860. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13861. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13862. /* end confdefs.h. */
  13863. #include <stdlib.h>
  13864. _ACEOF
  13865. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13866. $EGREP "free" >/dev/null 2>&1; then :
  13867. else
  13868. ac_cv_header_stdc=no
  13869. fi
  13870. rm -f conftest*
  13871. fi
  13872. if test $ac_cv_header_stdc = yes; then
  13873. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13874. if test "$cross_compiling" = yes; then :
  13875. :
  13876. else
  13877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13878. /* end confdefs.h. */
  13879. #include <ctype.h>
  13880. #include <stdlib.h>
  13881. #if ((' ' & 0x0FF) == 0x020)
  13882. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13883. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13884. #else
  13885. # define ISLOWER(c) \
  13886. (('a' <= (c) && (c) <= 'i') \
  13887. || ('j' <= (c) && (c) <= 'r') \
  13888. || ('s' <= (c) && (c) <= 'z'))
  13889. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13890. #endif
  13891. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13892. int
  13893. main ()
  13894. {
  13895. int i;
  13896. for (i = 0; i < 256; i++)
  13897. if (XOR (islower (i), ISLOWER (i))
  13898. || toupper (i) != TOUPPER (i))
  13899. return 2;
  13900. return 0;
  13901. }
  13902. _ACEOF
  13903. if ac_fn_cxx_try_run "$LINENO"; then :
  13904. else
  13905. ac_cv_header_stdc=no
  13906. fi
  13907. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13908. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13909. fi
  13910. fi
  13911. fi
  13912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13913. $as_echo "$ac_cv_header_stdc" >&6; }
  13914. if test $ac_cv_header_stdc = yes; then
  13915. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13916. fi
  13917. for ac_header in fcntl.h stdlib.h string.h
  13918. do :
  13919. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13920. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13921. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13922. cat >>confdefs.h <<_ACEOF
  13923. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13924. _ACEOF
  13925. fi
  13926. done
  13927. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13928. for ac_header in boost/filesystem.hpp boost/algorithm/string.hpp boost/algorithm/string/replace.hpp boost/filesystem/operations.hpp boost/assign/std/vector.hpp boost/algorithm/string/find.hpp boost/function.hpp boost/bind.hpp
  13929. do :
  13930. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13931. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13932. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  13933. cat >>confdefs.h <<_ACEOF
  13934. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13935. _ACEOF
  13936. else
  13937. as_fn_error $? "Required boost headers not found. Please install it." "$LINENO" 5
  13938. fi
  13939. done
  13940. # Checks for library functions.
  13941. for ac_func in atexit memset pow select sqrt
  13942. do :
  13943. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13944. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13945. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  13946. cat >>confdefs.h <<_ACEOF
  13947. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13948. _ACEOF
  13949. fi
  13950. done
  13951. CXXFLAGS="$CXXFLAGS -DDATA_DIR=\\\"\$(pkgdatadir)\\\" -DBIN_DIR=\\\"\$(bindir)\\\" -DLIB_DIR=\\\"\$(pkglibdir)\\\""
  13952. ac_config_files="$ac_config_files Makefile lib/Makefile client/Makefile server/Makefile AI/Makefile AI/GeniusAI/Makefile AI/EmptyAI/Makefile"
  13953. cat >confcache <<\_ACEOF
  13954. # This file is a shell script that caches the results of configure
  13955. # tests run on this system so they can be shared between configure
  13956. # scripts and configure runs, see configure's option --config-cache.
  13957. # It is not useful on other systems. If it contains results you don't
  13958. # want to keep, you may remove or edit it.
  13959. #
  13960. # config.status only pays attention to the cache file if you give it
  13961. # the --recheck option to rerun configure.
  13962. #
  13963. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13964. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13965. # following values.
  13966. _ACEOF
  13967. # The following way of writing the cache mishandles newlines in values,
  13968. # but we know of no workaround that is simple, portable, and efficient.
  13969. # So, we kill variables containing newlines.
  13970. # Ultrix sh set writes to stderr and can't be redirected directly,
  13971. # and sets the high bit in the cache file unless we assign to the vars.
  13972. (
  13973. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13974. eval ac_val=\$$ac_var
  13975. case $ac_val in #(
  13976. *${as_nl}*)
  13977. case $ac_var in #(
  13978. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13979. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13980. esac
  13981. case $ac_var in #(
  13982. _ | IFS | as_nl) ;; #(
  13983. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13984. *) { eval $ac_var=; unset $ac_var;} ;;
  13985. esac ;;
  13986. esac
  13987. done
  13988. (set) 2>&1 |
  13989. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13990. *${as_nl}ac_space=\ *)
  13991. # `set' does not quote correctly, so add quotes: double-quote
  13992. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13993. sed -n \
  13994. "s/'/'\\\\''/g;
  13995. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13996. ;; #(
  13997. *)
  13998. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13999. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14000. ;;
  14001. esac |
  14002. sort
  14003. ) |
  14004. sed '
  14005. /^ac_cv_env_/b end
  14006. t clear
  14007. :clear
  14008. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14009. t end
  14010. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14011. :end' >>confcache
  14012. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14013. if test -w "$cache_file"; then
  14014. test "x$cache_file" != "x/dev/null" &&
  14015. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14016. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14017. cat confcache >$cache_file
  14018. else
  14019. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14020. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14021. fi
  14022. fi
  14023. rm -f confcache
  14024. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14025. # Let make expand exec_prefix.
  14026. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14027. # Transform confdefs.h into DEFS.
  14028. # Protect against shell expansion while executing Makefile rules.
  14029. # Protect against Makefile macro expansion.
  14030. #
  14031. # If the first sed substitution is executed (which looks for macros that
  14032. # take arguments), then branch to the quote section. Otherwise,
  14033. # look for a macro that doesn't take arguments.
  14034. ac_script='
  14035. :mline
  14036. /\\$/{
  14037. N
  14038. s,\\\n,,
  14039. b mline
  14040. }
  14041. t clear
  14042. :clear
  14043. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  14044. t quote
  14045. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  14046. t quote
  14047. b any
  14048. :quote
  14049. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  14050. s/\[/\\&/g
  14051. s/\]/\\&/g
  14052. s/\$/$$/g
  14053. H
  14054. :any
  14055. ${
  14056. g
  14057. s/^\n//
  14058. s/\n/ /g
  14059. p
  14060. }
  14061. '
  14062. DEFS=`sed -n "$ac_script" confdefs.h`
  14063. ac_libobjs=
  14064. ac_ltlibobjs=
  14065. U=
  14066. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14067. # 1. Remove the extension, and $U if already installed.
  14068. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14069. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14070. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14071. # will be set to the directory where LIBOBJS objects are built.
  14072. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14073. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14074. done
  14075. LIBOBJS=$ac_libobjs
  14076. LTLIBOBJS=$ac_ltlibobjs
  14077. if test -n "$EXEEXT"; then
  14078. am__EXEEXT_TRUE=
  14079. am__EXEEXT_FALSE='#'
  14080. else
  14081. am__EXEEXT_TRUE='#'
  14082. am__EXEEXT_FALSE=
  14083. fi
  14084. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14085. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14086. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14087. fi
  14088. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14089. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14090. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14091. fi
  14092. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14093. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14094. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14095. fi
  14096. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14097. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14098. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14099. fi
  14100. : ${CONFIG_STATUS=./config.status}
  14101. ac_write_fail=0
  14102. ac_clean_files_save=$ac_clean_files
  14103. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14104. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14105. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14106. as_write_fail=0
  14107. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14108. #! $SHELL
  14109. # Generated by $as_me.
  14110. # Run this file to recreate the current configuration.
  14111. # Compiler output produced by configure, useful for debugging
  14112. # configure, is in config.log if it exists.
  14113. debug=false
  14114. ac_cs_recheck=false
  14115. ac_cs_silent=false
  14116. SHELL=\${CONFIG_SHELL-$SHELL}
  14117. export SHELL
  14118. _ASEOF
  14119. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14120. ## -------------------- ##
  14121. ## M4sh Initialization. ##
  14122. ## -------------------- ##
  14123. # Be more Bourne compatible
  14124. DUALCASE=1; export DUALCASE # for MKS sh
  14125. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14126. emulate sh
  14127. NULLCMD=:
  14128. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14129. # is contrary to our usage. Disable this feature.
  14130. alias -g '${1+"$@"}'='"$@"'
  14131. setopt NO_GLOB_SUBST
  14132. else
  14133. case `(set -o) 2>/dev/null` in #(
  14134. *posix*) :
  14135. set -o posix ;; #(
  14136. *) :
  14137. ;;
  14138. esac
  14139. fi
  14140. as_nl='
  14141. '
  14142. export as_nl
  14143. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14144. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14145. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14146. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14147. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14148. # but without wasting forks for bash or zsh.
  14149. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14150. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14151. as_echo='print -r --'
  14152. as_echo_n='print -rn --'
  14153. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14154. as_echo='printf %s\n'
  14155. as_echo_n='printf %s'
  14156. else
  14157. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14158. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14159. as_echo_n='/usr/ucb/echo -n'
  14160. else
  14161. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14162. as_echo_n_body='eval
  14163. arg=$1;
  14164. case $arg in #(
  14165. *"$as_nl"*)
  14166. expr "X$arg" : "X\\(.*\\)$as_nl";
  14167. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14168. esac;
  14169. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14170. '
  14171. export as_echo_n_body
  14172. as_echo_n='sh -c $as_echo_n_body as_echo'
  14173. fi
  14174. export as_echo_body
  14175. as_echo='sh -c $as_echo_body as_echo'
  14176. fi
  14177. # The user is always right.
  14178. if test "${PATH_SEPARATOR+set}" != set; then
  14179. PATH_SEPARATOR=:
  14180. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14181. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14182. PATH_SEPARATOR=';'
  14183. }
  14184. fi
  14185. # IFS
  14186. # We need space, tab and new line, in precisely that order. Quoting is
  14187. # there to prevent editors from complaining about space-tab.
  14188. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14189. # splitting by setting IFS to empty value.)
  14190. IFS=" "" $as_nl"
  14191. # Find who we are. Look in the path if we contain no directory separator.
  14192. case $0 in #((
  14193. *[\\/]* ) as_myself=$0 ;;
  14194. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14195. for as_dir in $PATH
  14196. do
  14197. IFS=$as_save_IFS
  14198. test -z "$as_dir" && as_dir=.
  14199. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14200. done
  14201. IFS=$as_save_IFS
  14202. ;;
  14203. esac
  14204. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14205. # in which case we are not to be found in the path.
  14206. if test "x$as_myself" = x; then
  14207. as_myself=$0
  14208. fi
  14209. if test ! -f "$as_myself"; then
  14210. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14211. exit 1
  14212. fi
  14213. # Unset variables that we do not need and which cause bugs (e.g. in
  14214. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14215. # suppresses any "Segmentation fault" message there. '((' could
  14216. # trigger a bug in pdksh 5.2.14.
  14217. for as_var in BASH_ENV ENV MAIL MAILPATH
  14218. do eval test x\${$as_var+set} = xset \
  14219. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14220. done
  14221. PS1='$ '
  14222. PS2='> '
  14223. PS4='+ '
  14224. # NLS nuisances.
  14225. LC_ALL=C
  14226. export LC_ALL
  14227. LANGUAGE=C
  14228. export LANGUAGE
  14229. # CDPATH.
  14230. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14231. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14232. # ----------------------------------------
  14233. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14234. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14235. # script with STATUS, using 1 if that was 0.
  14236. as_fn_error ()
  14237. {
  14238. as_status=$1; test $as_status -eq 0 && as_status=1
  14239. if test "$4"; then
  14240. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14241. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14242. fi
  14243. $as_echo "$as_me: error: $2" >&2
  14244. as_fn_exit $as_status
  14245. } # as_fn_error
  14246. # as_fn_set_status STATUS
  14247. # -----------------------
  14248. # Set $? to STATUS, without forking.
  14249. as_fn_set_status ()
  14250. {
  14251. return $1
  14252. } # as_fn_set_status
  14253. # as_fn_exit STATUS
  14254. # -----------------
  14255. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14256. as_fn_exit ()
  14257. {
  14258. set +e
  14259. as_fn_set_status $1
  14260. exit $1
  14261. } # as_fn_exit
  14262. # as_fn_unset VAR
  14263. # ---------------
  14264. # Portably unset VAR.
  14265. as_fn_unset ()
  14266. {
  14267. { eval $1=; unset $1;}
  14268. }
  14269. as_unset=as_fn_unset
  14270. # as_fn_append VAR VALUE
  14271. # ----------------------
  14272. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14273. # advantage of any shell optimizations that allow amortized linear growth over
  14274. # repeated appends, instead of the typical quadratic growth present in naive
  14275. # implementations.
  14276. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14277. eval 'as_fn_append ()
  14278. {
  14279. eval $1+=\$2
  14280. }'
  14281. else
  14282. as_fn_append ()
  14283. {
  14284. eval $1=\$$1\$2
  14285. }
  14286. fi # as_fn_append
  14287. # as_fn_arith ARG...
  14288. # ------------------
  14289. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14290. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14291. # must be portable across $(()) and expr.
  14292. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14293. eval 'as_fn_arith ()
  14294. {
  14295. as_val=$(( $* ))
  14296. }'
  14297. else
  14298. as_fn_arith ()
  14299. {
  14300. as_val=`expr "$@" || test $? -eq 1`
  14301. }
  14302. fi # as_fn_arith
  14303. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14304. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14305. as_expr=expr
  14306. else
  14307. as_expr=false
  14308. fi
  14309. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14310. as_basename=basename
  14311. else
  14312. as_basename=false
  14313. fi
  14314. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14315. as_dirname=dirname
  14316. else
  14317. as_dirname=false
  14318. fi
  14319. as_me=`$as_basename -- "$0" ||
  14320. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14321. X"$0" : 'X\(//\)$' \| \
  14322. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14323. $as_echo X/"$0" |
  14324. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14325. s//\1/
  14326. q
  14327. }
  14328. /^X\/\(\/\/\)$/{
  14329. s//\1/
  14330. q
  14331. }
  14332. /^X\/\(\/\).*/{
  14333. s//\1/
  14334. q
  14335. }
  14336. s/.*/./; q'`
  14337. # Avoid depending upon Character Ranges.
  14338. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14339. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14340. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14341. as_cr_digits='0123456789'
  14342. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14343. ECHO_C= ECHO_N= ECHO_T=
  14344. case `echo -n x` in #(((((
  14345. -n*)
  14346. case `echo 'xy\c'` in
  14347. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14348. xy) ECHO_C='\c';;
  14349. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14350. ECHO_T=' ';;
  14351. esac;;
  14352. *)
  14353. ECHO_N='-n';;
  14354. esac
  14355. rm -f conf$$ conf$$.exe conf$$.file
  14356. if test -d conf$$.dir; then
  14357. rm -f conf$$.dir/conf$$.file
  14358. else
  14359. rm -f conf$$.dir
  14360. mkdir conf$$.dir 2>/dev/null
  14361. fi
  14362. if (echo >conf$$.file) 2>/dev/null; then
  14363. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14364. as_ln_s='ln -s'
  14365. # ... but there are two gotchas:
  14366. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14367. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14368. # In both cases, we have to default to `cp -p'.
  14369. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14370. as_ln_s='cp -p'
  14371. elif ln conf$$.file conf$$ 2>/dev/null; then
  14372. as_ln_s=ln
  14373. else
  14374. as_ln_s='cp -p'
  14375. fi
  14376. else
  14377. as_ln_s='cp -p'
  14378. fi
  14379. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14380. rmdir conf$$.dir 2>/dev/null
  14381. # as_fn_mkdir_p
  14382. # -------------
  14383. # Create "$as_dir" as a directory, including parents if necessary.
  14384. as_fn_mkdir_p ()
  14385. {
  14386. case $as_dir in #(
  14387. -*) as_dir=./$as_dir;;
  14388. esac
  14389. test -d "$as_dir" || eval $as_mkdir_p || {
  14390. as_dirs=
  14391. while :; do
  14392. case $as_dir in #(
  14393. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14394. *) as_qdir=$as_dir;;
  14395. esac
  14396. as_dirs="'$as_qdir' $as_dirs"
  14397. as_dir=`$as_dirname -- "$as_dir" ||
  14398. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14399. X"$as_dir" : 'X\(//\)[^/]' \| \
  14400. X"$as_dir" : 'X\(//\)$' \| \
  14401. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14402. $as_echo X"$as_dir" |
  14403. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14404. s//\1/
  14405. q
  14406. }
  14407. /^X\(\/\/\)[^/].*/{
  14408. s//\1/
  14409. q
  14410. }
  14411. /^X\(\/\/\)$/{
  14412. s//\1/
  14413. q
  14414. }
  14415. /^X\(\/\).*/{
  14416. s//\1/
  14417. q
  14418. }
  14419. s/.*/./; q'`
  14420. test -d "$as_dir" && break
  14421. done
  14422. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14423. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14424. } # as_fn_mkdir_p
  14425. if mkdir -p . 2>/dev/null; then
  14426. as_mkdir_p='mkdir -p "$as_dir"'
  14427. else
  14428. test -d ./-p && rmdir ./-p
  14429. as_mkdir_p=false
  14430. fi
  14431. if test -x / >/dev/null 2>&1; then
  14432. as_test_x='test -x'
  14433. else
  14434. if ls -dL / >/dev/null 2>&1; then
  14435. as_ls_L_option=L
  14436. else
  14437. as_ls_L_option=
  14438. fi
  14439. as_test_x='
  14440. eval sh -c '\''
  14441. if test -d "$1"; then
  14442. test -d "$1/.";
  14443. else
  14444. case $1 in #(
  14445. -*)set "./$1";;
  14446. esac;
  14447. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14448. ???[sx]*):;;*)false;;esac;fi
  14449. '\'' sh
  14450. '
  14451. fi
  14452. as_executable_p=$as_test_x
  14453. # Sed expression to map a string onto a valid CPP name.
  14454. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14455. # Sed expression to map a string onto a valid variable name.
  14456. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14457. exec 6>&1
  14458. ## ----------------------------------- ##
  14459. ## Main body of $CONFIG_STATUS script. ##
  14460. ## ----------------------------------- ##
  14461. _ASEOF
  14462. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14463. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14464. # Save the log message, to keep $0 and so on meaningful, and to
  14465. # report actual input values of CONFIG_FILES etc. instead of their
  14466. # values after options handling.
  14467. ac_log="
  14468. This file was extended by vcmi $as_me 0.82b, which was
  14469. generated by GNU Autoconf 2.67. Invocation command line was
  14470. CONFIG_FILES = $CONFIG_FILES
  14471. CONFIG_HEADERS = $CONFIG_HEADERS
  14472. CONFIG_LINKS = $CONFIG_LINKS
  14473. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14474. $ $0 $@
  14475. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14476. "
  14477. _ACEOF
  14478. case $ac_config_files in *"
  14479. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14480. esac
  14481. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14482. # Files that config.status was made for.
  14483. config_files="$ac_config_files"
  14484. config_commands="$ac_config_commands"
  14485. _ACEOF
  14486. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14487. ac_cs_usage="\
  14488. \`$as_me' instantiates files and other configuration actions
  14489. from templates according to the current configuration. Unless the files
  14490. and actions are specified as TAGs, all are instantiated by default.
  14491. Usage: $0 [OPTION]... [TAG]...
  14492. -h, --help print this help, then exit
  14493. -V, --version print version number and configuration settings, then exit
  14494. --config print configuration, then exit
  14495. -q, --quiet, --silent
  14496. do not print progress messages
  14497. -d, --debug don't remove temporary files
  14498. --recheck update $as_me by reconfiguring in the same conditions
  14499. --file=FILE[:TEMPLATE]
  14500. instantiate the configuration file FILE
  14501. Configuration files:
  14502. $config_files
  14503. Configuration commands:
  14504. $config_commands
  14505. Report bugs to the package provider."
  14506. _ACEOF
  14507. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14508. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14509. ac_cs_version="\\
  14510. vcmi config.status 0.82b
  14511. configured by $0, generated by GNU Autoconf 2.67,
  14512. with options \\"\$ac_cs_config\\"
  14513. Copyright (C) 2010 Free Software Foundation, Inc.
  14514. This config.status script is free software; the Free Software Foundation
  14515. gives unlimited permission to copy, distribute and modify it."
  14516. ac_pwd='$ac_pwd'
  14517. srcdir='$srcdir'
  14518. INSTALL='$INSTALL'
  14519. MKDIR_P='$MKDIR_P'
  14520. AWK='$AWK'
  14521. test -n "\$AWK" || AWK=awk
  14522. _ACEOF
  14523. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14524. # The default lists apply if the user does not specify any file.
  14525. ac_need_defaults=:
  14526. while test $# != 0
  14527. do
  14528. case $1 in
  14529. --*=?*)
  14530. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14531. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14532. ac_shift=:
  14533. ;;
  14534. --*=)
  14535. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14536. ac_optarg=
  14537. ac_shift=:
  14538. ;;
  14539. *)
  14540. ac_option=$1
  14541. ac_optarg=$2
  14542. ac_shift=shift
  14543. ;;
  14544. esac
  14545. case $ac_option in
  14546. # Handling of the options.
  14547. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14548. ac_cs_recheck=: ;;
  14549. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14550. $as_echo "$ac_cs_version"; exit ;;
  14551. --config | --confi | --conf | --con | --co | --c )
  14552. $as_echo "$ac_cs_config"; exit ;;
  14553. --debug | --debu | --deb | --de | --d | -d )
  14554. debug=: ;;
  14555. --file | --fil | --fi | --f )
  14556. $ac_shift
  14557. case $ac_optarg in
  14558. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14559. '') as_fn_error $? "missing file argument" ;;
  14560. esac
  14561. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14562. ac_need_defaults=false;;
  14563. --he | --h | --help | --hel | -h )
  14564. $as_echo "$ac_cs_usage"; exit ;;
  14565. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14566. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14567. ac_cs_silent=: ;;
  14568. # This is an error.
  14569. -*) as_fn_error $? "unrecognized option: \`$1'
  14570. Try \`$0 --help' for more information." ;;
  14571. *) as_fn_append ac_config_targets " $1"
  14572. ac_need_defaults=false ;;
  14573. esac
  14574. shift
  14575. done
  14576. ac_configure_extra_args=
  14577. if $ac_cs_silent; then
  14578. exec 6>/dev/null
  14579. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14580. fi
  14581. _ACEOF
  14582. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14583. if \$ac_cs_recheck; then
  14584. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14585. shift
  14586. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14587. CONFIG_SHELL='$SHELL'
  14588. export CONFIG_SHELL
  14589. exec "\$@"
  14590. fi
  14591. _ACEOF
  14592. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14593. exec 5>>config.log
  14594. {
  14595. echo
  14596. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14597. ## Running $as_me. ##
  14598. _ASBOX
  14599. $as_echo "$ac_log"
  14600. } >&5
  14601. _ACEOF
  14602. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14603. #
  14604. # INIT-COMMANDS
  14605. #
  14606. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14607. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14608. # if CDPATH is set.
  14609. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14610. sed_quote_subst='$sed_quote_subst'
  14611. double_quote_subst='$double_quote_subst'
  14612. delay_variable_subst='$delay_variable_subst'
  14613. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  14614. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  14615. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  14616. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  14617. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  14618. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  14619. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  14620. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  14621. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  14622. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  14623. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  14624. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  14625. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  14626. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  14627. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  14628. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  14629. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  14630. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  14631. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  14632. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  14633. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  14634. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  14635. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  14636. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  14637. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  14638. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  14639. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14640. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14641. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  14642. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  14643. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  14644. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  14645. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  14646. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  14647. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  14648. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14649. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14650. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14651. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  14652. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  14653. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  14654. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  14655. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  14656. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  14657. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  14658. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  14659. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  14660. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  14661. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  14662. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  14663. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14664. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  14665. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  14666. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  14667. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  14668. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  14669. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  14670. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  14671. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  14672. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  14673. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  14674. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  14675. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14676. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14677. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  14678. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  14679. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14680. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14681. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  14682. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14683. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14684. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14685. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14686. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14687. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14688. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  14689. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14690. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14691. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14692. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  14693. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  14694. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  14695. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  14696. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  14697. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14698. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  14699. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  14700. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  14701. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  14702. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  14703. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14704. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  14705. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  14706. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14707. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14708. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  14709. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  14710. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  14711. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  14712. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14713. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14714. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  14715. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14716. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14717. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14718. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14719. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14720. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14721. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  14722. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  14723. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14724. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14725. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  14726. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  14727. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  14728. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  14729. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  14730. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  14731. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  14732. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  14733. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  14734. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  14735. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  14736. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  14737. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14738. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14739. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14740. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14741. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14742. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14743. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14744. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14745. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14746. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14747. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14748. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14749. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14750. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14751. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14752. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14753. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14754. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14755. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14756. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14757. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14758. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14759. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14760. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14761. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14762. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14763. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14764. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14765. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14766. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14767. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14768. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14769. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14770. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14771. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14772. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14773. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14774. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14775. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14776. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14777. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14778. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14779. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14780. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14781. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14782. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14783. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14784. LTCC='$LTCC'
  14785. LTCFLAGS='$LTCFLAGS'
  14786. compiler='$compiler_DEFAULT'
  14787. # Quote evaled strings.
  14788. for var in SED \
  14789. GREP \
  14790. EGREP \
  14791. FGREP \
  14792. LD \
  14793. NM \
  14794. LN_S \
  14795. lt_SP2NL \
  14796. lt_NL2SP \
  14797. reload_flag \
  14798. OBJDUMP \
  14799. deplibs_check_method \
  14800. file_magic_cmd \
  14801. AR \
  14802. AR_FLAGS \
  14803. STRIP \
  14804. RANLIB \
  14805. CC \
  14806. CFLAGS \
  14807. compiler \
  14808. lt_cv_sys_global_symbol_pipe \
  14809. lt_cv_sys_global_symbol_to_cdecl \
  14810. lt_cv_sys_global_symbol_to_c_name_address \
  14811. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14812. SHELL \
  14813. ECHO \
  14814. lt_prog_compiler_no_builtin_flag \
  14815. lt_prog_compiler_wl \
  14816. lt_prog_compiler_pic \
  14817. lt_prog_compiler_static \
  14818. lt_cv_prog_compiler_c_o \
  14819. need_locks \
  14820. DSYMUTIL \
  14821. NMEDIT \
  14822. LIPO \
  14823. OTOOL \
  14824. OTOOL64 \
  14825. shrext_cmds \
  14826. export_dynamic_flag_spec \
  14827. whole_archive_flag_spec \
  14828. compiler_needs_object \
  14829. with_gnu_ld \
  14830. allow_undefined_flag \
  14831. no_undefined_flag \
  14832. hardcode_libdir_flag_spec \
  14833. hardcode_libdir_flag_spec_ld \
  14834. hardcode_libdir_separator \
  14835. fix_srcfile_path \
  14836. exclude_expsyms \
  14837. include_expsyms \
  14838. file_list_spec \
  14839. variables_saved_for_relink \
  14840. libname_spec \
  14841. library_names_spec \
  14842. soname_spec \
  14843. finish_eval \
  14844. old_striplib \
  14845. striplib \
  14846. compiler_lib_search_dirs \
  14847. predep_objects \
  14848. postdep_objects \
  14849. predeps \
  14850. postdeps \
  14851. compiler_lib_search_path \
  14852. LD_CXX \
  14853. compiler_CXX \
  14854. lt_prog_compiler_no_builtin_flag_CXX \
  14855. lt_prog_compiler_wl_CXX \
  14856. lt_prog_compiler_pic_CXX \
  14857. lt_prog_compiler_static_CXX \
  14858. lt_cv_prog_compiler_c_o_CXX \
  14859. export_dynamic_flag_spec_CXX \
  14860. whole_archive_flag_spec_CXX \
  14861. compiler_needs_object_CXX \
  14862. with_gnu_ld_CXX \
  14863. allow_undefined_flag_CXX \
  14864. no_undefined_flag_CXX \
  14865. hardcode_libdir_flag_spec_CXX \
  14866. hardcode_libdir_flag_spec_ld_CXX \
  14867. hardcode_libdir_separator_CXX \
  14868. fix_srcfile_path_CXX \
  14869. exclude_expsyms_CXX \
  14870. include_expsyms_CXX \
  14871. file_list_spec_CXX \
  14872. compiler_lib_search_dirs_CXX \
  14873. predep_objects_CXX \
  14874. postdep_objects_CXX \
  14875. predeps_CXX \
  14876. postdeps_CXX \
  14877. compiler_lib_search_path_CXX; do
  14878. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14879. *[\\\\\\\`\\"\\\$]*)
  14880. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14881. ;;
  14882. *)
  14883. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14884. ;;
  14885. esac
  14886. done
  14887. # Double-quote double-evaled strings.
  14888. for var in reload_cmds \
  14889. old_postinstall_cmds \
  14890. old_postuninstall_cmds \
  14891. old_archive_cmds \
  14892. extract_expsyms_cmds \
  14893. old_archive_from_new_cmds \
  14894. old_archive_from_expsyms_cmds \
  14895. archive_cmds \
  14896. archive_expsym_cmds \
  14897. module_cmds \
  14898. module_expsym_cmds \
  14899. export_symbols_cmds \
  14900. prelink_cmds \
  14901. postinstall_cmds \
  14902. postuninstall_cmds \
  14903. finish_cmds \
  14904. sys_lib_search_path_spec \
  14905. sys_lib_dlsearch_path_spec \
  14906. old_archive_cmds_CXX \
  14907. old_archive_from_new_cmds_CXX \
  14908. old_archive_from_expsyms_cmds_CXX \
  14909. archive_cmds_CXX \
  14910. archive_expsym_cmds_CXX \
  14911. module_cmds_CXX \
  14912. module_expsym_cmds_CXX \
  14913. export_symbols_cmds_CXX \
  14914. prelink_cmds_CXX; do
  14915. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14916. *[\\\\\\\`\\"\\\$]*)
  14917. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14918. ;;
  14919. *)
  14920. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14921. ;;
  14922. esac
  14923. done
  14924. # Fix-up fallback echo if it was mangled by the above quoting rules.
  14925. case \$lt_ECHO in
  14926. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  14927. ;;
  14928. esac
  14929. ac_aux_dir='$ac_aux_dir'
  14930. xsi_shell='$xsi_shell'
  14931. lt_shell_append='$lt_shell_append'
  14932. # See if we are running on zsh, and set the options which allow our
  14933. # commands through without removal of \ escapes INIT.
  14934. if test -n "\${ZSH_VERSION+set}" ; then
  14935. setopt NO_GLOB_SUBST
  14936. fi
  14937. PACKAGE='$PACKAGE'
  14938. VERSION='$VERSION'
  14939. TIMESTAMP='$TIMESTAMP'
  14940. RM='$RM'
  14941. ofile='$ofile'
  14942. _ACEOF
  14943. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14944. # Handling of arguments.
  14945. for ac_config_target in $ac_config_targets
  14946. do
  14947. case $ac_config_target in
  14948. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14949. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14950. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14951. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  14952. "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
  14953. "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
  14954. "AI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/Makefile" ;;
  14955. "AI/GeniusAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/GeniusAI/Makefile" ;;
  14956. "AI/EmptyAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/EmptyAI/Makefile" ;;
  14957. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  14958. esac
  14959. done
  14960. # If the user did not use the arguments to specify the items to instantiate,
  14961. # then the envvar interface is used. Set only those that are not.
  14962. # We use the long form for the default assignment because of an extremely
  14963. # bizarre bug on SunOS 4.1.3.
  14964. if $ac_need_defaults; then
  14965. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14966. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14967. fi
  14968. # Have a temporary directory for convenience. Make it in the build tree
  14969. # simply because there is no reason against having it here, and in addition,
  14970. # creating and moving files from /tmp can sometimes cause problems.
  14971. # Hook for its removal unless debugging.
  14972. # Note that there is a small window in which the directory will not be cleaned:
  14973. # after its creation but before its name has been assigned to `$tmp'.
  14974. $debug ||
  14975. {
  14976. tmp=
  14977. trap 'exit_status=$?
  14978. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14979. ' 0
  14980. trap 'as_fn_exit 1' 1 2 13 15
  14981. }
  14982. # Create a (secure) tmp directory for tmp files.
  14983. {
  14984. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14985. test -n "$tmp" && test -d "$tmp"
  14986. } ||
  14987. {
  14988. tmp=./conf$$-$RANDOM
  14989. (umask 077 && mkdir "$tmp")
  14990. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  14991. # Set up the scripts for CONFIG_FILES section.
  14992. # No need to generate them if there are no CONFIG_FILES.
  14993. # This happens for instance with `./config.status config.h'.
  14994. if test -n "$CONFIG_FILES"; then
  14995. ac_cr=`echo X | tr X '\015'`
  14996. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14997. # But we know of no other shell where ac_cr would be empty at this
  14998. # point, so we can use a bashism as a fallback.
  14999. if test "x$ac_cr" = x; then
  15000. eval ac_cr=\$\'\\r\'
  15001. fi
  15002. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15003. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15004. ac_cs_awk_cr='\\r'
  15005. else
  15006. ac_cs_awk_cr=$ac_cr
  15007. fi
  15008. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  15009. _ACEOF
  15010. {
  15011. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15012. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15013. echo "_ACEOF"
  15014. } >conf$$subs.sh ||
  15015. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15016. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15017. ac_delim='%!_!# '
  15018. for ac_last_try in false false false false false :; do
  15019. . ./conf$$subs.sh ||
  15020. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15021. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15022. if test $ac_delim_n = $ac_delim_num; then
  15023. break
  15024. elif $ac_last_try; then
  15025. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15026. else
  15027. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15028. fi
  15029. done
  15030. rm -f conf$$subs.sh
  15031. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15032. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  15033. _ACEOF
  15034. sed -n '
  15035. h
  15036. s/^/S["/; s/!.*/"]=/
  15037. p
  15038. g
  15039. s/^[^!]*!//
  15040. :repl
  15041. t repl
  15042. s/'"$ac_delim"'$//
  15043. t delim
  15044. :nl
  15045. h
  15046. s/\(.\{148\}\)..*/\1/
  15047. t more1
  15048. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15049. p
  15050. n
  15051. b repl
  15052. :more1
  15053. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15054. p
  15055. g
  15056. s/.\{148\}//
  15057. t nl
  15058. :delim
  15059. h
  15060. s/\(.\{148\}\)..*/\1/
  15061. t more2
  15062. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15063. p
  15064. b
  15065. :more2
  15066. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15067. p
  15068. g
  15069. s/.\{148\}//
  15070. t delim
  15071. ' <conf$$subs.awk | sed '
  15072. /^[^""]/{
  15073. N
  15074. s/\n//
  15075. }
  15076. ' >>$CONFIG_STATUS || ac_write_fail=1
  15077. rm -f conf$$subs.awk
  15078. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15079. _ACAWK
  15080. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  15081. for (key in S) S_is_set[key] = 1
  15082. FS = ""
  15083. }
  15084. {
  15085. line = $ 0
  15086. nfields = split(line, field, "@")
  15087. substed = 0
  15088. len = length(field[1])
  15089. for (i = 2; i < nfields; i++) {
  15090. key = field[i]
  15091. keylen = length(key)
  15092. if (S_is_set[key]) {
  15093. value = S[key]
  15094. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15095. len += length(value) + length(field[++i])
  15096. substed = 1
  15097. } else
  15098. len += 1 + keylen
  15099. }
  15100. print line
  15101. }
  15102. _ACAWK
  15103. _ACEOF
  15104. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15105. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15106. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15107. else
  15108. cat
  15109. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  15110. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15111. _ACEOF
  15112. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15113. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15114. # trailing colons and then remove the whole line if VPATH becomes empty
  15115. # (actually we leave an empty line to preserve line numbers).
  15116. if test "x$srcdir" = x.; then
  15117. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15118. h
  15119. s///
  15120. s/^/:/
  15121. s/[ ]*$/:/
  15122. s/:\$(srcdir):/:/g
  15123. s/:\${srcdir}:/:/g
  15124. s/:@srcdir@:/:/g
  15125. s/^:*//
  15126. s/:*$//
  15127. x
  15128. s/\(=[ ]*\).*/\1/
  15129. G
  15130. s/\n//
  15131. s/^[^=]*=[ ]*$//
  15132. }'
  15133. fi
  15134. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15135. fi # test -n "$CONFIG_FILES"
  15136. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  15137. shift
  15138. for ac_tag
  15139. do
  15140. case $ac_tag in
  15141. :[FHLC]) ac_mode=$ac_tag; continue;;
  15142. esac
  15143. case $ac_mode$ac_tag in
  15144. :[FHL]*:*);;
  15145. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  15146. :[FH]-) ac_tag=-:-;;
  15147. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15148. esac
  15149. ac_save_IFS=$IFS
  15150. IFS=:
  15151. set x $ac_tag
  15152. IFS=$ac_save_IFS
  15153. shift
  15154. ac_file=$1
  15155. shift
  15156. case $ac_mode in
  15157. :L) ac_source=$1;;
  15158. :[FH])
  15159. ac_file_inputs=
  15160. for ac_f
  15161. do
  15162. case $ac_f in
  15163. -) ac_f="$tmp/stdin";;
  15164. *) # Look for the file first in the build tree, then in the source tree
  15165. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15166. # because $ac_f cannot contain `:'.
  15167. test -f "$ac_f" ||
  15168. case $ac_f in
  15169. [\\/$]*) false;;
  15170. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15171. esac ||
  15172. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  15173. esac
  15174. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15175. as_fn_append ac_file_inputs " '$ac_f'"
  15176. done
  15177. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15178. # use $as_me), people would be surprised to read:
  15179. # /* config.h. Generated by config.status. */
  15180. configure_input='Generated from '`
  15181. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15182. `' by configure.'
  15183. if test x"$ac_file" != x-; then
  15184. configure_input="$ac_file. $configure_input"
  15185. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15186. $as_echo "$as_me: creating $ac_file" >&6;}
  15187. fi
  15188. # Neutralize special characters interpreted by sed in replacement strings.
  15189. case $configure_input in #(
  15190. *\&* | *\|* | *\\* )
  15191. ac_sed_conf_input=`$as_echo "$configure_input" |
  15192. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15193. *) ac_sed_conf_input=$configure_input;;
  15194. esac
  15195. case $ac_tag in
  15196. *:-:* | *:-) cat >"$tmp/stdin" \
  15197. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15198. esac
  15199. ;;
  15200. esac
  15201. ac_dir=`$as_dirname -- "$ac_file" ||
  15202. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15203. X"$ac_file" : 'X\(//\)[^/]' \| \
  15204. X"$ac_file" : 'X\(//\)$' \| \
  15205. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15206. $as_echo X"$ac_file" |
  15207. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15208. s//\1/
  15209. q
  15210. }
  15211. /^X\(\/\/\)[^/].*/{
  15212. s//\1/
  15213. q
  15214. }
  15215. /^X\(\/\/\)$/{
  15216. s//\1/
  15217. q
  15218. }
  15219. /^X\(\/\).*/{
  15220. s//\1/
  15221. q
  15222. }
  15223. s/.*/./; q'`
  15224. as_dir="$ac_dir"; as_fn_mkdir_p
  15225. ac_builddir=.
  15226. case "$ac_dir" in
  15227. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15228. *)
  15229. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15230. # A ".." for each directory in $ac_dir_suffix.
  15231. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15232. case $ac_top_builddir_sub in
  15233. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15234. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15235. esac ;;
  15236. esac
  15237. ac_abs_top_builddir=$ac_pwd
  15238. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15239. # for backward compatibility:
  15240. ac_top_builddir=$ac_top_build_prefix
  15241. case $srcdir in
  15242. .) # We are building in place.
  15243. ac_srcdir=.
  15244. ac_top_srcdir=$ac_top_builddir_sub
  15245. ac_abs_top_srcdir=$ac_pwd ;;
  15246. [\\/]* | ?:[\\/]* ) # Absolute name.
  15247. ac_srcdir=$srcdir$ac_dir_suffix;
  15248. ac_top_srcdir=$srcdir
  15249. ac_abs_top_srcdir=$srcdir ;;
  15250. *) # Relative name.
  15251. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15252. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15253. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15254. esac
  15255. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15256. case $ac_mode in
  15257. :F)
  15258. #
  15259. # CONFIG_FILE
  15260. #
  15261. case $INSTALL in
  15262. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15263. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15264. esac
  15265. ac_MKDIR_P=$MKDIR_P
  15266. case $MKDIR_P in
  15267. [\\/$]* | ?:[\\/]* ) ;;
  15268. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15269. esac
  15270. _ACEOF
  15271. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15272. # If the template does not know about datarootdir, expand it.
  15273. # FIXME: This hack should be removed a few years after 2.60.
  15274. ac_datarootdir_hack=; ac_datarootdir_seen=
  15275. ac_sed_dataroot='
  15276. /datarootdir/ {
  15277. p
  15278. q
  15279. }
  15280. /@datadir@/p
  15281. /@docdir@/p
  15282. /@infodir@/p
  15283. /@localedir@/p
  15284. /@mandir@/p'
  15285. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15286. *datarootdir*) ac_datarootdir_seen=yes;;
  15287. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15288. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15289. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15290. _ACEOF
  15291. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15292. ac_datarootdir_hack='
  15293. s&@datadir@&$datadir&g
  15294. s&@docdir@&$docdir&g
  15295. s&@infodir@&$infodir&g
  15296. s&@localedir@&$localedir&g
  15297. s&@mandir@&$mandir&g
  15298. s&\\\${datarootdir}&$datarootdir&g' ;;
  15299. esac
  15300. _ACEOF
  15301. # Neutralize VPATH when `$srcdir' = `.'.
  15302. # Shell code in configure.ac might set extrasub.
  15303. # FIXME: do we really want to maintain this feature?
  15304. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15305. ac_sed_extra="$ac_vpsub
  15306. $extrasub
  15307. _ACEOF
  15308. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15309. :t
  15310. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15311. s|@configure_input@|$ac_sed_conf_input|;t t
  15312. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15313. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15314. s&@srcdir@&$ac_srcdir&;t t
  15315. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15316. s&@top_srcdir@&$ac_top_srcdir&;t t
  15317. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15318. s&@builddir@&$ac_builddir&;t t
  15319. s&@abs_builddir@&$ac_abs_builddir&;t t
  15320. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15321. s&@INSTALL@&$ac_INSTALL&;t t
  15322. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15323. $ac_datarootdir_hack
  15324. "
  15325. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  15326. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15327. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15328. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  15329. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  15330. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15331. which seems to be undefined. Please make sure it is defined" >&5
  15332. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15333. which seems to be undefined. Please make sure it is defined" >&2;}
  15334. rm -f "$tmp/stdin"
  15335. case $ac_file in
  15336. -) cat "$tmp/out" && rm -f "$tmp/out";;
  15337. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  15338. esac \
  15339. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15340. ;;
  15341. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15342. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15343. ;;
  15344. esac
  15345. case $ac_file$ac_mode in
  15346. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15347. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15348. # are listed without --file. Let's play safe and only enable the eval
  15349. # if we detect the quoting.
  15350. case $CONFIG_FILES in
  15351. *\'*) eval set x "$CONFIG_FILES" ;;
  15352. *) set x $CONFIG_FILES ;;
  15353. esac
  15354. shift
  15355. for mf
  15356. do
  15357. # Strip MF so we end up with the name of the file.
  15358. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15359. # Check whether this is an Automake generated Makefile or not.
  15360. # We used to match only the files named `Makefile.in', but
  15361. # some people rename them; so instead we look at the file content.
  15362. # Grep'ing the first line is not enough: some people post-process
  15363. # each Makefile.in and add a new line on top of each file to say so.
  15364. # Grep'ing the whole file is not good either: AIX grep has a line
  15365. # limit of 2048, but all sed's we know have understand at least 4000.
  15366. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15367. dirpart=`$as_dirname -- "$mf" ||
  15368. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15369. X"$mf" : 'X\(//\)[^/]' \| \
  15370. X"$mf" : 'X\(//\)$' \| \
  15371. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15372. $as_echo X"$mf" |
  15373. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15374. s//\1/
  15375. q
  15376. }
  15377. /^X\(\/\/\)[^/].*/{
  15378. s//\1/
  15379. q
  15380. }
  15381. /^X\(\/\/\)$/{
  15382. s//\1/
  15383. q
  15384. }
  15385. /^X\(\/\).*/{
  15386. s//\1/
  15387. q
  15388. }
  15389. s/.*/./; q'`
  15390. else
  15391. continue
  15392. fi
  15393. # Extract the definition of DEPDIR, am__include, and am__quote
  15394. # from the Makefile without running `make'.
  15395. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15396. test -z "$DEPDIR" && continue
  15397. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15398. test -z "am__include" && continue
  15399. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15400. # When using ansi2knr, U may be empty or an underscore; expand it
  15401. U=`sed -n 's/^U = //p' < "$mf"`
  15402. # Find all dependency output files, they are included files with
  15403. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15404. # simplest approach to changing $(DEPDIR) to its actual value in the
  15405. # expansion.
  15406. for file in `sed -n "
  15407. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15408. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15409. # Make sure the directory exists.
  15410. test -f "$dirpart/$file" && continue
  15411. fdir=`$as_dirname -- "$file" ||
  15412. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15413. X"$file" : 'X\(//\)[^/]' \| \
  15414. X"$file" : 'X\(//\)$' \| \
  15415. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15416. $as_echo X"$file" |
  15417. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15418. s//\1/
  15419. q
  15420. }
  15421. /^X\(\/\/\)[^/].*/{
  15422. s//\1/
  15423. q
  15424. }
  15425. /^X\(\/\/\)$/{
  15426. s//\1/
  15427. q
  15428. }
  15429. /^X\(\/\).*/{
  15430. s//\1/
  15431. q
  15432. }
  15433. s/.*/./; q'`
  15434. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15435. # echo "creating $dirpart/$file"
  15436. echo '# dummy' > "$dirpart/$file"
  15437. done
  15438. done
  15439. }
  15440. ;;
  15441. "libtool":C)
  15442. # See if we are running on zsh, and set the options which allow our
  15443. # commands through without removal of \ escapes.
  15444. if test -n "${ZSH_VERSION+set}" ; then
  15445. setopt NO_GLOB_SUBST
  15446. fi
  15447. cfgfile="${ofile}T"
  15448. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15449. $RM "$cfgfile"
  15450. cat <<_LT_EOF >> "$cfgfile"
  15451. #! $SHELL
  15452. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15453. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15454. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15455. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15456. #
  15457. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15458. # 2006, 2007, 2008 Free Software Foundation, Inc.
  15459. # Written by Gordon Matzigkeit, 1996
  15460. #
  15461. # This file is part of GNU Libtool.
  15462. #
  15463. # GNU Libtool is free software; you can redistribute it and/or
  15464. # modify it under the terms of the GNU General Public License as
  15465. # published by the Free Software Foundation; either version 2 of
  15466. # the License, or (at your option) any later version.
  15467. #
  15468. # As a special exception to the GNU General Public License,
  15469. # if you distribute this file as part of a program or library that
  15470. # is built using GNU Libtool, you may include this file under the
  15471. # same distribution terms that you use for the rest of that program.
  15472. #
  15473. # GNU Libtool is distributed in the hope that it will be useful,
  15474. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15475. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15476. # GNU General Public License for more details.
  15477. #
  15478. # You should have received a copy of the GNU General Public License
  15479. # along with GNU Libtool; see the file COPYING. If not, a copy
  15480. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15481. # obtained by writing to the Free Software Foundation, Inc.,
  15482. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15483. # The names of the tagged configurations supported by this script.
  15484. available_tags="CXX "
  15485. # ### BEGIN LIBTOOL CONFIG
  15486. # Whether or not to build shared libraries.
  15487. build_libtool_libs=$enable_shared
  15488. # Whether or not to build static libraries.
  15489. build_old_libs=$enable_static
  15490. # Which release of libtool.m4 was used?
  15491. macro_version=$macro_version
  15492. macro_revision=$macro_revision
  15493. # What type of objects to build.
  15494. pic_mode=$pic_mode
  15495. # Whether or not to optimize for fast installation.
  15496. fast_install=$enable_fast_install
  15497. # The host system.
  15498. host_alias=$host_alias
  15499. host=$host
  15500. host_os=$host_os
  15501. # The build system.
  15502. build_alias=$build_alias
  15503. build=$build
  15504. build_os=$build_os
  15505. # A sed program that does not truncate output.
  15506. SED=$lt_SED
  15507. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15508. Xsed="\$SED -e 1s/^X//"
  15509. # A grep program that handles long lines.
  15510. GREP=$lt_GREP
  15511. # An ERE matcher.
  15512. EGREP=$lt_EGREP
  15513. # A literal string matcher.
  15514. FGREP=$lt_FGREP
  15515. # A BSD- or MS-compatible name lister.
  15516. NM=$lt_NM
  15517. # Whether we need soft or hard links.
  15518. LN_S=$lt_LN_S
  15519. # What is the maximum length of a command?
  15520. max_cmd_len=$max_cmd_len
  15521. # Object file suffix (normally "o").
  15522. objext=$ac_objext
  15523. # Executable file suffix (normally "").
  15524. exeext=$exeext
  15525. # whether the shell understands "unset".
  15526. lt_unset=$lt_unset
  15527. # turn spaces into newlines.
  15528. SP2NL=$lt_lt_SP2NL
  15529. # turn newlines into spaces.
  15530. NL2SP=$lt_lt_NL2SP
  15531. # How to create reloadable object files.
  15532. reload_flag=$lt_reload_flag
  15533. reload_cmds=$lt_reload_cmds
  15534. # An object symbol dumper.
  15535. OBJDUMP=$lt_OBJDUMP
  15536. # Method to check whether dependent libraries are shared objects.
  15537. deplibs_check_method=$lt_deplibs_check_method
  15538. # Command to use when deplibs_check_method == "file_magic".
  15539. file_magic_cmd=$lt_file_magic_cmd
  15540. # The archiver.
  15541. AR=$lt_AR
  15542. AR_FLAGS=$lt_AR_FLAGS
  15543. # A symbol stripping program.
  15544. STRIP=$lt_STRIP
  15545. # Commands used to install an old-style archive.
  15546. RANLIB=$lt_RANLIB
  15547. old_postinstall_cmds=$lt_old_postinstall_cmds
  15548. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15549. # A C compiler.
  15550. LTCC=$lt_CC
  15551. # LTCC compiler flags.
  15552. LTCFLAGS=$lt_CFLAGS
  15553. # Take the output of nm and produce a listing of raw symbols and C names.
  15554. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15555. # Transform the output of nm in a proper C declaration.
  15556. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15557. # Transform the output of nm in a C name address pair.
  15558. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15559. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15560. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15561. # The name of the directory that contains temporary libtool files.
  15562. objdir=$objdir
  15563. # Shell to use when invoking shell scripts.
  15564. SHELL=$lt_SHELL
  15565. # An echo program that does not interpret backslashes.
  15566. ECHO=$lt_ECHO
  15567. # Used to examine libraries when file_magic_cmd begins with "file".
  15568. MAGIC_CMD=$MAGIC_CMD
  15569. # Must we lock files when doing compilation?
  15570. need_locks=$lt_need_locks
  15571. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15572. DSYMUTIL=$lt_DSYMUTIL
  15573. # Tool to change global to local symbols on Mac OS X.
  15574. NMEDIT=$lt_NMEDIT
  15575. # Tool to manipulate fat objects and archives on Mac OS X.
  15576. LIPO=$lt_LIPO
  15577. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15578. OTOOL=$lt_OTOOL
  15579. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15580. OTOOL64=$lt_OTOOL64
  15581. # Old archive suffix (normally "a").
  15582. libext=$libext
  15583. # Shared library suffix (normally ".so").
  15584. shrext_cmds=$lt_shrext_cmds
  15585. # The commands to extract the exported symbol list from a shared archive.
  15586. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15587. # Variables whose values should be saved in libtool wrapper scripts and
  15588. # restored at link time.
  15589. variables_saved_for_relink=$lt_variables_saved_for_relink
  15590. # Do we need the "lib" prefix for modules?
  15591. need_lib_prefix=$need_lib_prefix
  15592. # Do we need a version for libraries?
  15593. need_version=$need_version
  15594. # Library versioning type.
  15595. version_type=$version_type
  15596. # Shared library runtime path variable.
  15597. runpath_var=$runpath_var
  15598. # Shared library path variable.
  15599. shlibpath_var=$shlibpath_var
  15600. # Is shlibpath searched before the hard-coded library search path?
  15601. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15602. # Format of library name prefix.
  15603. libname_spec=$lt_libname_spec
  15604. # List of archive names. First name is the real one, the rest are links.
  15605. # The last name is the one that the linker finds with -lNAME
  15606. library_names_spec=$lt_library_names_spec
  15607. # The coded name of the library, if different from the real name.
  15608. soname_spec=$lt_soname_spec
  15609. # Command to use after installation of a shared archive.
  15610. postinstall_cmds=$lt_postinstall_cmds
  15611. # Command to use after uninstallation of a shared archive.
  15612. postuninstall_cmds=$lt_postuninstall_cmds
  15613. # Commands used to finish a libtool library installation in a directory.
  15614. finish_cmds=$lt_finish_cmds
  15615. # As "finish_cmds", except a single script fragment to be evaled but
  15616. # not shown.
  15617. finish_eval=$lt_finish_eval
  15618. # Whether we should hardcode library paths into libraries.
  15619. hardcode_into_libs=$hardcode_into_libs
  15620. # Compile-time system search path for libraries.
  15621. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15622. # Run-time system search path for libraries.
  15623. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15624. # Whether dlopen is supported.
  15625. dlopen_support=$enable_dlopen
  15626. # Whether dlopen of programs is supported.
  15627. dlopen_self=$enable_dlopen_self
  15628. # Whether dlopen of statically linked programs is supported.
  15629. dlopen_self_static=$enable_dlopen_self_static
  15630. # Commands to strip libraries.
  15631. old_striplib=$lt_old_striplib
  15632. striplib=$lt_striplib
  15633. # The linker used to build libraries.
  15634. LD=$lt_LD
  15635. # Commands used to build an old-style archive.
  15636. old_archive_cmds=$lt_old_archive_cmds
  15637. # A language specific compiler.
  15638. CC=$lt_compiler
  15639. # Is the compiler the GNU compiler?
  15640. with_gcc=$GCC
  15641. # Compiler flag to turn off builtin functions.
  15642. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15643. # How to pass a linker flag through the compiler.
  15644. wl=$lt_lt_prog_compiler_wl
  15645. # Additional compiler flags for building library objects.
  15646. pic_flag=$lt_lt_prog_compiler_pic
  15647. # Compiler flag to prevent dynamic linking.
  15648. link_static_flag=$lt_lt_prog_compiler_static
  15649. # Does compiler simultaneously support -c and -o options?
  15650. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15651. # Whether or not to add -lc for building shared libraries.
  15652. build_libtool_need_lc=$archive_cmds_need_lc
  15653. # Whether or not to disallow shared libs when runtime libs are static.
  15654. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15655. # Compiler flag to allow reflexive dlopens.
  15656. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15657. # Compiler flag to generate shared objects directly from archives.
  15658. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15659. # Whether the compiler copes with passing no objects directly.
  15660. compiler_needs_object=$lt_compiler_needs_object
  15661. # Create an old-style archive from a shared archive.
  15662. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15663. # Create a temporary old-style archive to link instead of a shared archive.
  15664. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15665. # Commands used to build a shared archive.
  15666. archive_cmds=$lt_archive_cmds
  15667. archive_expsym_cmds=$lt_archive_expsym_cmds
  15668. # Commands used to build a loadable module if different from building
  15669. # a shared archive.
  15670. module_cmds=$lt_module_cmds
  15671. module_expsym_cmds=$lt_module_expsym_cmds
  15672. # Whether we are building with GNU ld or not.
  15673. with_gnu_ld=$lt_with_gnu_ld
  15674. # Flag that allows shared libraries with undefined symbols to be built.
  15675. allow_undefined_flag=$lt_allow_undefined_flag
  15676. # Flag that enforces no undefined symbols.
  15677. no_undefined_flag=$lt_no_undefined_flag
  15678. # Flag to hardcode \$libdir into a binary during linking.
  15679. # This must work even if \$libdir does not exist
  15680. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15681. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15682. # during linking. This must work even if \$libdir does not exist.
  15683. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15684. # Whether we need a single "-rpath" flag with a separated argument.
  15685. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15686. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15687. # DIR into the resulting binary.
  15688. hardcode_direct=$hardcode_direct
  15689. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15690. # DIR into the resulting binary and the resulting library dependency is
  15691. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15692. # library is relocated.
  15693. hardcode_direct_absolute=$hardcode_direct_absolute
  15694. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15695. # into the resulting binary.
  15696. hardcode_minus_L=$hardcode_minus_L
  15697. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15698. # into the resulting binary.
  15699. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15700. # Set to "yes" if building a shared library automatically hardcodes DIR
  15701. # into the library and all subsequent libraries and executables linked
  15702. # against it.
  15703. hardcode_automatic=$hardcode_automatic
  15704. # Set to yes if linker adds runtime paths of dependent libraries
  15705. # to runtime path list.
  15706. inherit_rpath=$inherit_rpath
  15707. # Whether libtool must link a program against all its dependency libraries.
  15708. link_all_deplibs=$link_all_deplibs
  15709. # Fix the shell variable \$srcfile for the compiler.
  15710. fix_srcfile_path=$lt_fix_srcfile_path
  15711. # Set to "yes" if exported symbols are required.
  15712. always_export_symbols=$always_export_symbols
  15713. # The commands to list exported symbols.
  15714. export_symbols_cmds=$lt_export_symbols_cmds
  15715. # Symbols that should not be listed in the preloaded symbols.
  15716. exclude_expsyms=$lt_exclude_expsyms
  15717. # Symbols that must always be exported.
  15718. include_expsyms=$lt_include_expsyms
  15719. # Commands necessary for linking programs (against libraries) with templates.
  15720. prelink_cmds=$lt_prelink_cmds
  15721. # Specify filename containing input files.
  15722. file_list_spec=$lt_file_list_spec
  15723. # How to hardcode a shared library path into an executable.
  15724. hardcode_action=$hardcode_action
  15725. # The directories searched by this compiler when creating a shared library.
  15726. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15727. # Dependencies to place before and after the objects being linked to
  15728. # create a shared library.
  15729. predep_objects=$lt_predep_objects
  15730. postdep_objects=$lt_postdep_objects
  15731. predeps=$lt_predeps
  15732. postdeps=$lt_postdeps
  15733. # The library search path used internally by the compiler when linking
  15734. # a shared library.
  15735. compiler_lib_search_path=$lt_compiler_lib_search_path
  15736. # ### END LIBTOOL CONFIG
  15737. _LT_EOF
  15738. case $host_os in
  15739. aix3*)
  15740. cat <<\_LT_EOF >> "$cfgfile"
  15741. # AIX sometimes has problems with the GCC collect2 program. For some
  15742. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15743. # vanish in a puff of smoke.
  15744. if test "X${COLLECT_NAMES+set}" != Xset; then
  15745. COLLECT_NAMES=
  15746. export COLLECT_NAMES
  15747. fi
  15748. _LT_EOF
  15749. ;;
  15750. esac
  15751. ltmain="$ac_aux_dir/ltmain.sh"
  15752. # We use sed instead of cat because bash on DJGPP gets confused if
  15753. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15754. # text mode, it properly converts lines to CR/LF. This bash problem
  15755. # is reportedly fixed, but why not run on old versions too?
  15756. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15757. || (rm -f "$cfgfile"; exit 1)
  15758. case $xsi_shell in
  15759. yes)
  15760. cat << \_LT_EOF >> "$cfgfile"
  15761. # func_dirname file append nondir_replacement
  15762. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15763. # otherwise set result to NONDIR_REPLACEMENT.
  15764. func_dirname ()
  15765. {
  15766. case ${1} in
  15767. */*) func_dirname_result="${1%/*}${2}" ;;
  15768. * ) func_dirname_result="${3}" ;;
  15769. esac
  15770. }
  15771. # func_basename file
  15772. func_basename ()
  15773. {
  15774. func_basename_result="${1##*/}"
  15775. }
  15776. # func_dirname_and_basename file append nondir_replacement
  15777. # perform func_basename and func_dirname in a single function
  15778. # call:
  15779. # dirname: Compute the dirname of FILE. If nonempty,
  15780. # add APPEND to the result, otherwise set result
  15781. # to NONDIR_REPLACEMENT.
  15782. # value returned in "$func_dirname_result"
  15783. # basename: Compute filename of FILE.
  15784. # value retuned in "$func_basename_result"
  15785. # Implementation must be kept synchronized with func_dirname
  15786. # and func_basename. For efficiency, we do not delegate to
  15787. # those functions but instead duplicate the functionality here.
  15788. func_dirname_and_basename ()
  15789. {
  15790. case ${1} in
  15791. */*) func_dirname_result="${1%/*}${2}" ;;
  15792. * ) func_dirname_result="${3}" ;;
  15793. esac
  15794. func_basename_result="${1##*/}"
  15795. }
  15796. # func_stripname prefix suffix name
  15797. # strip PREFIX and SUFFIX off of NAME.
  15798. # PREFIX and SUFFIX must not contain globbing or regex special
  15799. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15800. # dot (in which case that matches only a dot).
  15801. func_stripname ()
  15802. {
  15803. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15804. # positional parameters, so assign one to ordinary parameter first.
  15805. func_stripname_result=${3}
  15806. func_stripname_result=${func_stripname_result#"${1}"}
  15807. func_stripname_result=${func_stripname_result%"${2}"}
  15808. }
  15809. # func_opt_split
  15810. func_opt_split ()
  15811. {
  15812. func_opt_split_opt=${1%%=*}
  15813. func_opt_split_arg=${1#*=}
  15814. }
  15815. # func_lo2o object
  15816. func_lo2o ()
  15817. {
  15818. case ${1} in
  15819. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15820. *) func_lo2o_result=${1} ;;
  15821. esac
  15822. }
  15823. # func_xform libobj-or-source
  15824. func_xform ()
  15825. {
  15826. func_xform_result=${1%.*}.lo
  15827. }
  15828. # func_arith arithmetic-term...
  15829. func_arith ()
  15830. {
  15831. func_arith_result=$(( $* ))
  15832. }
  15833. # func_len string
  15834. # STRING may not start with a hyphen.
  15835. func_len ()
  15836. {
  15837. func_len_result=${#1}
  15838. }
  15839. _LT_EOF
  15840. ;;
  15841. *) # Bourne compatible functions.
  15842. cat << \_LT_EOF >> "$cfgfile"
  15843. # func_dirname file append nondir_replacement
  15844. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15845. # otherwise set result to NONDIR_REPLACEMENT.
  15846. func_dirname ()
  15847. {
  15848. # Extract subdirectory from the argument.
  15849. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  15850. if test "X$func_dirname_result" = "X${1}"; then
  15851. func_dirname_result="${3}"
  15852. else
  15853. func_dirname_result="$func_dirname_result${2}"
  15854. fi
  15855. }
  15856. # func_basename file
  15857. func_basename ()
  15858. {
  15859. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  15860. }
  15861. # func_stripname prefix suffix name
  15862. # strip PREFIX and SUFFIX off of NAME.
  15863. # PREFIX and SUFFIX must not contain globbing or regex special
  15864. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15865. # dot (in which case that matches only a dot).
  15866. # func_strip_suffix prefix name
  15867. func_stripname ()
  15868. {
  15869. case ${2} in
  15870. .*) func_stripname_result=`$ECHO "X${3}" \
  15871. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  15872. *) func_stripname_result=`$ECHO "X${3}" \
  15873. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  15874. esac
  15875. }
  15876. # sed scripts:
  15877. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15878. my_sed_long_arg='1s/^-[^=]*=//'
  15879. # func_opt_split
  15880. func_opt_split ()
  15881. {
  15882. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  15883. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  15884. }
  15885. # func_lo2o object
  15886. func_lo2o ()
  15887. {
  15888. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  15889. }
  15890. # func_xform libobj-or-source
  15891. func_xform ()
  15892. {
  15893. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  15894. }
  15895. # func_arith arithmetic-term...
  15896. func_arith ()
  15897. {
  15898. func_arith_result=`expr "$@"`
  15899. }
  15900. # func_len string
  15901. # STRING may not start with a hyphen.
  15902. func_len ()
  15903. {
  15904. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  15905. }
  15906. _LT_EOF
  15907. esac
  15908. case $lt_shell_append in
  15909. yes)
  15910. cat << \_LT_EOF >> "$cfgfile"
  15911. # func_append var value
  15912. # Append VALUE to the end of shell variable VAR.
  15913. func_append ()
  15914. {
  15915. eval "$1+=\$2"
  15916. }
  15917. _LT_EOF
  15918. ;;
  15919. *)
  15920. cat << \_LT_EOF >> "$cfgfile"
  15921. # func_append var value
  15922. # Append VALUE to the end of shell variable VAR.
  15923. func_append ()
  15924. {
  15925. eval "$1=\$$1\$2"
  15926. }
  15927. _LT_EOF
  15928. ;;
  15929. esac
  15930. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  15931. || (rm -f "$cfgfile"; exit 1)
  15932. mv -f "$cfgfile" "$ofile" ||
  15933. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15934. chmod +x "$ofile"
  15935. cat <<_LT_EOF >> "$ofile"
  15936. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15937. # The linker used to build libraries.
  15938. LD=$lt_LD_CXX
  15939. # Commands used to build an old-style archive.
  15940. old_archive_cmds=$lt_old_archive_cmds_CXX
  15941. # A language specific compiler.
  15942. CC=$lt_compiler_CXX
  15943. # Is the compiler the GNU compiler?
  15944. with_gcc=$GCC_CXX
  15945. # Compiler flag to turn off builtin functions.
  15946. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15947. # How to pass a linker flag through the compiler.
  15948. wl=$lt_lt_prog_compiler_wl_CXX
  15949. # Additional compiler flags for building library objects.
  15950. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15951. # Compiler flag to prevent dynamic linking.
  15952. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15953. # Does compiler simultaneously support -c and -o options?
  15954. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15955. # Whether or not to add -lc for building shared libraries.
  15956. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15957. # Whether or not to disallow shared libs when runtime libs are static.
  15958. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15959. # Compiler flag to allow reflexive dlopens.
  15960. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15961. # Compiler flag to generate shared objects directly from archives.
  15962. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15963. # Whether the compiler copes with passing no objects directly.
  15964. compiler_needs_object=$lt_compiler_needs_object_CXX
  15965. # Create an old-style archive from a shared archive.
  15966. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15967. # Create a temporary old-style archive to link instead of a shared archive.
  15968. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15969. # Commands used to build a shared archive.
  15970. archive_cmds=$lt_archive_cmds_CXX
  15971. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15972. # Commands used to build a loadable module if different from building
  15973. # a shared archive.
  15974. module_cmds=$lt_module_cmds_CXX
  15975. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15976. # Whether we are building with GNU ld or not.
  15977. with_gnu_ld=$lt_with_gnu_ld_CXX
  15978. # Flag that allows shared libraries with undefined symbols to be built.
  15979. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15980. # Flag that enforces no undefined symbols.
  15981. no_undefined_flag=$lt_no_undefined_flag_CXX
  15982. # Flag to hardcode \$libdir into a binary during linking.
  15983. # This must work even if \$libdir does not exist
  15984. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15985. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15986. # during linking. This must work even if \$libdir does not exist.
  15987. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  15988. # Whether we need a single "-rpath" flag with a separated argument.
  15989. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15990. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15991. # DIR into the resulting binary.
  15992. hardcode_direct=$hardcode_direct_CXX
  15993. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15994. # DIR into the resulting binary and the resulting library dependency is
  15995. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15996. # library is relocated.
  15997. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  15998. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15999. # into the resulting binary.
  16000. hardcode_minus_L=$hardcode_minus_L_CXX
  16001. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16002. # into the resulting binary.
  16003. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16004. # Set to "yes" if building a shared library automatically hardcodes DIR
  16005. # into the library and all subsequent libraries and executables linked
  16006. # against it.
  16007. hardcode_automatic=$hardcode_automatic_CXX
  16008. # Set to yes if linker adds runtime paths of dependent libraries
  16009. # to runtime path list.
  16010. inherit_rpath=$inherit_rpath_CXX
  16011. # Whether libtool must link a program against all its dependency libraries.
  16012. link_all_deplibs=$link_all_deplibs_CXX
  16013. # Fix the shell variable \$srcfile for the compiler.
  16014. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  16015. # Set to "yes" if exported symbols are required.
  16016. always_export_symbols=$always_export_symbols_CXX
  16017. # The commands to list exported symbols.
  16018. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16019. # Symbols that should not be listed in the preloaded symbols.
  16020. exclude_expsyms=$lt_exclude_expsyms_CXX
  16021. # Symbols that must always be exported.
  16022. include_expsyms=$lt_include_expsyms_CXX
  16023. # Commands necessary for linking programs (against libraries) with templates.
  16024. prelink_cmds=$lt_prelink_cmds_CXX
  16025. # Specify filename containing input files.
  16026. file_list_spec=$lt_file_list_spec_CXX
  16027. # How to hardcode a shared library path into an executable.
  16028. hardcode_action=$hardcode_action_CXX
  16029. # The directories searched by this compiler when creating a shared library.
  16030. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16031. # Dependencies to place before and after the objects being linked to
  16032. # create a shared library.
  16033. predep_objects=$lt_predep_objects_CXX
  16034. postdep_objects=$lt_postdep_objects_CXX
  16035. predeps=$lt_predeps_CXX
  16036. postdeps=$lt_postdeps_CXX
  16037. # The library search path used internally by the compiler when linking
  16038. # a shared library.
  16039. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16040. # ### END LIBTOOL TAG CONFIG: CXX
  16041. _LT_EOF
  16042. ;;
  16043. esac
  16044. done # for ac_tag
  16045. as_fn_exit 0
  16046. _ACEOF
  16047. ac_clean_files=$ac_clean_files_save
  16048. test $ac_write_fail = 0 ||
  16049. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16050. # configure is writing to config.log, and then calls config.status.
  16051. # config.status does its own redirection, appending to config.log.
  16052. # Unfortunately, on DOS this fails, as config.log is still kept open
  16053. # by configure, so config.status won't be able to write to it; its
  16054. # output is simply discarded. So we exec the FD to /dev/null,
  16055. # effectively closing config.log, so it can be properly (re)opened and
  16056. # appended to by config.status. When coming back to configure, we
  16057. # need to make the FD available again.
  16058. if test "$no_create" != yes; then
  16059. ac_cs_success=:
  16060. ac_config_status_args=
  16061. test "$silent" = yes &&
  16062. ac_config_status_args="$ac_config_status_args --quiet"
  16063. exec 5>/dev/null
  16064. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16065. exec 5>>config.log
  16066. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16067. # would make configure fail if this is the last instruction.
  16068. $ac_cs_success || as_fn_exit 1
  16069. fi
  16070. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16071. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16072. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16073. fi