configure 555 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.64 for vcmi 0.75.
  4. #
  5. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  6. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  7. # Foundation, Inc.
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. case $0 in #((
  84. *[\\/]* ) as_myself=$0 ;;
  85. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  86. for as_dir in $PATH
  87. do
  88. IFS=$as_save_IFS
  89. test -z "$as_dir" && as_dir=.
  90. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  91. done
  92. IFS=$as_save_IFS
  93. ;;
  94. esac
  95. # We did not find ourselves, most probably we were run as `sh COMMAND'
  96. # in which case we are not to be found in the path.
  97. if test "x$as_myself" = x; then
  98. as_myself=$0
  99. fi
  100. if test ! -f "$as_myself"; then
  101. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  102. exit 1
  103. fi
  104. # Unset variables that we do not need and which cause bugs (e.g. in
  105. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  106. # suppresses any "Segmentation fault" message there. '((' could
  107. # trigger a bug in pdksh 5.2.14.
  108. for as_var in BASH_ENV ENV MAIL MAILPATH
  109. do eval test x\${$as_var+set} = xset \
  110. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  111. done
  112. PS1='$ '
  113. PS2='> '
  114. PS4='+ '
  115. # NLS nuisances.
  116. LC_ALL=C
  117. export LC_ALL
  118. LANGUAGE=C
  119. export LANGUAGE
  120. # CDPATH.
  121. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  122. if test "x$CONFIG_SHELL" = x; then
  123. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  124. emulate sh
  125. NULLCMD=:
  126. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  127. # is contrary to our usage. Disable this feature.
  128. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  129. setopt NO_GLOB_SUBST
  130. else
  131. case \`(set -o) 2>/dev/null\` in #(
  132. *posix*) :
  133. set -o posix ;; #(
  134. *) :
  135. ;;
  136. esac
  137. fi
  138. "
  139. as_required="as_fn_return () { (exit \$1); }
  140. as_fn_success () { as_fn_return 0; }
  141. as_fn_failure () { as_fn_return 1; }
  142. as_fn_ret_success () { return 0; }
  143. as_fn_ret_failure () { return 1; }
  144. exitcode=0
  145. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  146. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  147. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  148. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  149. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  150. else
  151. exitcode=1; echo positional parameters were not saved.
  152. fi
  153. test x\$exitcode = x0 || exit 1"
  154. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  155. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  156. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  157. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  158. test \$(( 1 + 1 )) = 2 || exit 1"
  159. if (eval "$as_required") 2>/dev/null; then :
  160. as_have_required=yes
  161. else
  162. as_have_required=no
  163. fi
  164. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  165. else
  166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  167. as_found=false
  168. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  169. do
  170. IFS=$as_save_IFS
  171. test -z "$as_dir" && as_dir=.
  172. as_found=:
  173. case $as_dir in #(
  174. /*)
  175. for as_base in sh bash ksh sh5; do
  176. # Try only shells that exist, to save several forks.
  177. as_shell=$as_dir/$as_base
  178. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  179. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  180. CONFIG_SHELL=$as_shell as_have_required=yes
  181. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. break 2
  183. fi
  184. fi
  185. done;;
  186. esac
  187. as_found=false
  188. done
  189. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  190. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  191. CONFIG_SHELL=$SHELL as_have_required=yes
  192. fi; }
  193. IFS=$as_save_IFS
  194. if test "x$CONFIG_SHELL" != x; then :
  195. # We cannot yet assume a decent shell, so we have to provide a
  196. # neutralization value for shells without unset; and this also
  197. # works around shells that cannot unset nonexistent variables.
  198. BASH_ENV=/dev/null
  199. ENV=/dev/null
  200. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  201. export CONFIG_SHELL
  202. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  203. fi
  204. if test x$as_have_required = xno; then :
  205. $as_echo "$0: This script requires a shell more modern than all"
  206. $as_echo "$0: the shells that I found on your system."
  207. if test x${ZSH_VERSION+set} = xset ; then
  208. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  209. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  210. else
  211. $as_echo "$0: Please tell [email protected] about your system,
  212. $0: including any error possibly output before this
  213. $0: message. Then install a modern shell, or manually run
  214. $0: the script under such a shell if you do have one."
  215. fi
  216. exit 1
  217. fi
  218. fi
  219. fi
  220. SHELL=${CONFIG_SHELL-/bin/sh}
  221. export SHELL
  222. # Unset more variables known to interfere with behavior of common tools.
  223. CLICOLOR_FORCE= GREP_OPTIONS=
  224. unset CLICOLOR_FORCE GREP_OPTIONS
  225. ## --------------------- ##
  226. ## M4sh Shell Functions. ##
  227. ## --------------------- ##
  228. # as_fn_unset VAR
  229. # ---------------
  230. # Portably unset VAR.
  231. as_fn_unset ()
  232. {
  233. { eval $1=; unset $1;}
  234. }
  235. as_unset=as_fn_unset
  236. # as_fn_set_status STATUS
  237. # -----------------------
  238. # Set $? to STATUS, without forking.
  239. as_fn_set_status ()
  240. {
  241. return $1
  242. } # as_fn_set_status
  243. # as_fn_exit STATUS
  244. # -----------------
  245. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  246. as_fn_exit ()
  247. {
  248. set +e
  249. as_fn_set_status $1
  250. exit $1
  251. } # as_fn_exit
  252. # as_fn_mkdir_p
  253. # -------------
  254. # Create "$as_dir" as a directory, including parents if necessary.
  255. as_fn_mkdir_p ()
  256. {
  257. case $as_dir in #(
  258. -*) as_dir=./$as_dir;;
  259. esac
  260. test -d "$as_dir" || eval $as_mkdir_p || {
  261. as_dirs=
  262. while :; do
  263. case $as_dir in #(
  264. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  265. *) as_qdir=$as_dir;;
  266. esac
  267. as_dirs="'$as_qdir' $as_dirs"
  268. as_dir=`$as_dirname -- "$as_dir" ||
  269. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  270. X"$as_dir" : 'X\(//\)[^/]' \| \
  271. X"$as_dir" : 'X\(//\)$' \| \
  272. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  273. $as_echo X"$as_dir" |
  274. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  275. s//\1/
  276. q
  277. }
  278. /^X\(\/\/\)[^/].*/{
  279. s//\1/
  280. q
  281. }
  282. /^X\(\/\/\)$/{
  283. s//\1/
  284. q
  285. }
  286. /^X\(\/\).*/{
  287. s//\1/
  288. q
  289. }
  290. s/.*/./; q'`
  291. test -d "$as_dir" && break
  292. done
  293. test -z "$as_dirs" || eval "mkdir $as_dirs"
  294. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  295. } # as_fn_mkdir_p
  296. # as_fn_append VAR VALUE
  297. # ----------------------
  298. # Append the text in VALUE to the end of the definition contained in VAR. Take
  299. # advantage of any shell optimizations that allow amortized linear growth over
  300. # repeated appends, instead of the typical quadratic growth present in naive
  301. # implementations.
  302. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  303. eval 'as_fn_append ()
  304. {
  305. eval $1+=\$2
  306. }'
  307. else
  308. as_fn_append ()
  309. {
  310. eval $1=\$$1\$2
  311. }
  312. fi # as_fn_append
  313. # as_fn_arith ARG...
  314. # ------------------
  315. # Perform arithmetic evaluation on the ARGs, and store the result in the
  316. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  317. # must be portable across $(()) and expr.
  318. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  319. eval 'as_fn_arith ()
  320. {
  321. as_val=$(( $* ))
  322. }'
  323. else
  324. as_fn_arith ()
  325. {
  326. as_val=`expr "$@" || test $? -eq 1`
  327. }
  328. fi # as_fn_arith
  329. # as_fn_error ERROR [LINENO LOG_FD]
  330. # ---------------------------------
  331. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  332. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  333. # script with status $?, using 1 if that was 0.
  334. as_fn_error ()
  335. {
  336. as_status=$?; test $as_status -eq 0 && as_status=1
  337. if test "$3"; then
  338. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  339. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  340. fi
  341. $as_echo "$as_me: error: $1" >&2
  342. as_fn_exit $as_status
  343. } # as_fn_error
  344. if expr a : '\(a\)' >/dev/null 2>&1 &&
  345. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  346. as_expr=expr
  347. else
  348. as_expr=false
  349. fi
  350. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  351. as_basename=basename
  352. else
  353. as_basename=false
  354. fi
  355. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  356. as_dirname=dirname
  357. else
  358. as_dirname=false
  359. fi
  360. as_me=`$as_basename -- "$0" ||
  361. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  362. X"$0" : 'X\(//\)$' \| \
  363. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  364. $as_echo X/"$0" |
  365. sed '/^.*\/\([^/][^/]*\)\/*$/{
  366. s//\1/
  367. q
  368. }
  369. /^X\/\(\/\/\)$/{
  370. s//\1/
  371. q
  372. }
  373. /^X\/\(\/\).*/{
  374. s//\1/
  375. q
  376. }
  377. s/.*/./; q'`
  378. # Avoid depending upon Character Ranges.
  379. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  380. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  381. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  382. as_cr_digits='0123456789'
  383. as_cr_alnum=$as_cr_Letters$as_cr_digits
  384. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  385. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  386. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  387. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  388. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  389. sed -n '
  390. p
  391. /[$]LINENO/=
  392. ' <$as_myself |
  393. sed '
  394. s/[$]LINENO.*/&-/
  395. t lineno
  396. b
  397. :lineno
  398. N
  399. :loop
  400. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  401. t loop
  402. s/-\n.*//
  403. ' >$as_me.lineno &&
  404. chmod +x "$as_me.lineno" ||
  405. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  406. # Don't try to exec as it changes $[0], causing all sort of problems
  407. # (the dirname of $[0] is not the place where we might find the
  408. # original and so on. Autoconf is especially sensitive to this).
  409. . "./$as_me.lineno"
  410. # Exit status is that of the last command.
  411. exit
  412. }
  413. ECHO_C= ECHO_N= ECHO_T=
  414. case `echo -n x` in #(((((
  415. -n*)
  416. case `echo 'xy\c'` in
  417. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  418. xy) ECHO_C='\c';;
  419. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  420. ECHO_T=' ';;
  421. esac;;
  422. *)
  423. ECHO_N='-n';;
  424. esac
  425. rm -f conf$$ conf$$.exe conf$$.file
  426. if test -d conf$$.dir; then
  427. rm -f conf$$.dir/conf$$.file
  428. else
  429. rm -f conf$$.dir
  430. mkdir conf$$.dir 2>/dev/null
  431. fi
  432. if (echo >conf$$.file) 2>/dev/null; then
  433. if ln -s conf$$.file conf$$ 2>/dev/null; then
  434. as_ln_s='ln -s'
  435. # ... but there are two gotchas:
  436. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  437. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  438. # In both cases, we have to default to `cp -p'.
  439. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  440. as_ln_s='cp -p'
  441. elif ln conf$$.file conf$$ 2>/dev/null; then
  442. as_ln_s=ln
  443. else
  444. as_ln_s='cp -p'
  445. fi
  446. else
  447. as_ln_s='cp -p'
  448. fi
  449. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  450. rmdir conf$$.dir 2>/dev/null
  451. if mkdir -p . 2>/dev/null; then
  452. as_mkdir_p='mkdir -p "$as_dir"'
  453. else
  454. test -d ./-p && rmdir ./-p
  455. as_mkdir_p=false
  456. fi
  457. if test -x / >/dev/null 2>&1; then
  458. as_test_x='test -x'
  459. else
  460. if ls -dL / >/dev/null 2>&1; then
  461. as_ls_L_option=L
  462. else
  463. as_ls_L_option=
  464. fi
  465. as_test_x='
  466. eval sh -c '\''
  467. if test -d "$1"; then
  468. test -d "$1/.";
  469. else
  470. case $1 in #(
  471. -*)set "./$1";;
  472. esac;
  473. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  474. ???[sx]*):;;*)false;;esac;fi
  475. '\'' sh
  476. '
  477. fi
  478. as_executable_p=$as_test_x
  479. # Sed expression to map a string onto a valid CPP name.
  480. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  481. # Sed expression to map a string onto a valid variable name.
  482. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  483. # Check that we are running under the correct shell.
  484. SHELL=${CONFIG_SHELL-/bin/sh}
  485. case X$lt_ECHO in
  486. X*--fallback-echo)
  487. # Remove one level of quotation (which was required for Make).
  488. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  489. ;;
  490. esac
  491. ECHO=${lt_ECHO-echo}
  492. if test "X$1" = X--no-reexec; then
  493. # Discard the --no-reexec flag, and continue.
  494. shift
  495. elif test "X$1" = X--fallback-echo; then
  496. # Avoid inline document here, it may be left over
  497. :
  498. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  499. # Yippee, $ECHO works!
  500. :
  501. else
  502. # Restart under the correct shell.
  503. exec $SHELL "$0" --no-reexec ${1+"$@"}
  504. fi
  505. if test "X$1" = X--fallback-echo; then
  506. # used as fallback echo
  507. shift
  508. cat <<_LT_EOF
  509. $*
  510. _LT_EOF
  511. exit 0
  512. fi
  513. # The HP-UX ksh and POSIX shell print the target directory to stdout
  514. # if CDPATH is set.
  515. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  516. if test -z "$lt_ECHO"; then
  517. if test "X${echo_test_string+set}" != Xset; then
  518. # find a string as large as possible, as long as the shell can cope with it
  519. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  520. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  521. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  522. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  523. then
  524. break
  525. fi
  526. done
  527. fi
  528. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  529. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  530. test "X$echo_testing_string" = "X$echo_test_string"; then
  531. :
  532. else
  533. # The Solaris, AIX, and Digital Unix default echo programs unquote
  534. # backslashes. This makes it impossible to quote backslashes using
  535. # echo "$something" | sed 's/\\/\\\\/g'
  536. #
  537. # So, first we look for a working echo in the user's PATH.
  538. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  539. for dir in $PATH /usr/ucb; do
  540. IFS="$lt_save_ifs"
  541. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  542. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  543. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  544. test "X$echo_testing_string" = "X$echo_test_string"; then
  545. ECHO="$dir/echo"
  546. break
  547. fi
  548. done
  549. IFS="$lt_save_ifs"
  550. if test "X$ECHO" = Xecho; then
  551. # We didn't find a better echo, so look for alternatives.
  552. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  553. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  554. test "X$echo_testing_string" = "X$echo_test_string"; then
  555. # This shell has a builtin print -r that does the trick.
  556. ECHO='print -r'
  557. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  558. test "X$CONFIG_SHELL" != X/bin/ksh; then
  559. # If we have ksh, try running configure again with it.
  560. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  561. export ORIGINAL_CONFIG_SHELL
  562. CONFIG_SHELL=/bin/ksh
  563. export CONFIG_SHELL
  564. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  565. else
  566. # Try using printf.
  567. ECHO='printf %s\n'
  568. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  569. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  570. test "X$echo_testing_string" = "X$echo_test_string"; then
  571. # Cool, printf works
  572. :
  573. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  574. test "X$echo_testing_string" = 'X\t' &&
  575. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  576. test "X$echo_testing_string" = "X$echo_test_string"; then
  577. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  578. export CONFIG_SHELL
  579. SHELL="$CONFIG_SHELL"
  580. export SHELL
  581. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  582. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  583. test "X$echo_testing_string" = 'X\t' &&
  584. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  585. test "X$echo_testing_string" = "X$echo_test_string"; then
  586. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  587. else
  588. # maybe with a smaller string...
  589. prev=:
  590. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  591. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  592. then
  593. break
  594. fi
  595. prev="$cmd"
  596. done
  597. if test "$prev" != 'sed 50q "$0"'; then
  598. echo_test_string=`eval $prev`
  599. export echo_test_string
  600. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  601. else
  602. # Oops. We lost completely, so just stick with echo.
  603. ECHO=echo
  604. fi
  605. fi
  606. fi
  607. fi
  608. fi
  609. fi
  610. # Copy echo and quote the copy suitably for passing to libtool from
  611. # the Makefile, instead of quoting the original, which is used later.
  612. lt_ECHO=$ECHO
  613. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  614. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  615. fi
  616. exec 7<&0 </dev/null 6>&1
  617. # Name of the host.
  618. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  619. # so uname gets run too.
  620. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  621. #
  622. # Initializations.
  623. #
  624. ac_default_prefix=/usr/local
  625. ac_clean_files=
  626. ac_config_libobj_dir=.
  627. LIBOBJS=
  628. cross_compiling=no
  629. subdirs=
  630. MFLAGS=
  631. MAKEFLAGS=
  632. # Identity of this package.
  633. PACKAGE_NAME='vcmi'
  634. PACKAGE_TARNAME='vcmi'
  635. PACKAGE_VERSION='0.75'
  636. PACKAGE_STRING='vcmi 0.75'
  637. PACKAGE_BUGREPORT=''
  638. PACKAGE_URL=''
  639. # Factoring default headers for most tests.
  640. ac_includes_default="\
  641. #include <stdio.h>
  642. #ifdef HAVE_SYS_TYPES_H
  643. # include <sys/types.h>
  644. #endif
  645. #ifdef HAVE_SYS_STAT_H
  646. # include <sys/stat.h>
  647. #endif
  648. #ifdef STDC_HEADERS
  649. # include <stdlib.h>
  650. # include <stddef.h>
  651. #else
  652. # ifdef HAVE_STDLIB_H
  653. # include <stdlib.h>
  654. # endif
  655. #endif
  656. #ifdef HAVE_STRING_H
  657. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  658. # include <memory.h>
  659. # endif
  660. # include <string.h>
  661. #endif
  662. #ifdef HAVE_STRINGS_H
  663. # include <strings.h>
  664. #endif
  665. #ifdef HAVE_INTTYPES_H
  666. # include <inttypes.h>
  667. #endif
  668. #ifdef HAVE_STDINT_H
  669. # include <stdint.h>
  670. #endif
  671. #ifdef HAVE_UNISTD_H
  672. # include <unistd.h>
  673. #endif"
  674. ac_subst_vars='am__EXEEXT_FALSE
  675. am__EXEEXT_TRUE
  676. LTLIBOBJS
  677. LIBOBJS
  678. FFMPEG_CXXFLAGS
  679. FFMPEG_LIBS
  680. SDL_CXXFLAGS
  681. SDL_LIBS
  682. HAVE_SDL_CONFIG
  683. BOOST_IOSTREAMS_LIB
  684. BOOST_THREAD_LIB
  685. BOOST_FILESYSTEM_LIB
  686. BOOST_SYSTEM_LIB
  687. BOOST_LDFLAGS
  688. BOOST_CPPFLAGS
  689. CXXCPP
  690. CPP
  691. OTOOL64
  692. OTOOL
  693. LIPO
  694. NMEDIT
  695. DSYMUTIL
  696. lt_ECHO
  697. RANLIB
  698. AR
  699. OBJDUMP
  700. LN_S
  701. NM
  702. ac_ct_DUMPBIN
  703. DUMPBIN
  704. LD
  705. FGREP
  706. EGREP
  707. GREP
  708. SED
  709. am__fastdepCC_FALSE
  710. am__fastdepCC_TRUE
  711. CCDEPMODE
  712. ac_ct_CC
  713. CFLAGS
  714. CC
  715. host_os
  716. host_vendor
  717. host_cpu
  718. host
  719. build_os
  720. build_vendor
  721. build_cpu
  722. build
  723. LIBTOOL
  724. am__fastdepCXX_FALSE
  725. am__fastdepCXX_TRUE
  726. CXXDEPMODE
  727. AMDEPBACKSLASH
  728. AMDEP_FALSE
  729. AMDEP_TRUE
  730. am__quote
  731. am__include
  732. DEPDIR
  733. OBJEXT
  734. EXEEXT
  735. ac_ct_CXX
  736. CPPFLAGS
  737. LDFLAGS
  738. CXXFLAGS
  739. CXX
  740. am__untar
  741. am__tar
  742. AMTAR
  743. am__leading_dot
  744. SET_MAKE
  745. AWK
  746. mkdir_p
  747. MKDIR_P
  748. INSTALL_STRIP_PROGRAM
  749. STRIP
  750. install_sh
  751. MAKEINFO
  752. AUTOHEADER
  753. AUTOMAKE
  754. AUTOCONF
  755. ACLOCAL
  756. VERSION
  757. PACKAGE
  758. CYGPATH_W
  759. am__isrc
  760. INSTALL_DATA
  761. INSTALL_SCRIPT
  762. INSTALL_PROGRAM
  763. target_alias
  764. host_alias
  765. build_alias
  766. LIBS
  767. ECHO_T
  768. ECHO_N
  769. ECHO_C
  770. DEFS
  771. mandir
  772. localedir
  773. libdir
  774. psdir
  775. pdfdir
  776. dvidir
  777. htmldir
  778. infodir
  779. docdir
  780. oldincludedir
  781. includedir
  782. localstatedir
  783. sharedstatedir
  784. sysconfdir
  785. datadir
  786. datarootdir
  787. libexecdir
  788. sbindir
  789. bindir
  790. program_transform_name
  791. prefix
  792. exec_prefix
  793. PACKAGE_URL
  794. PACKAGE_BUGREPORT
  795. PACKAGE_STRING
  796. PACKAGE_VERSION
  797. PACKAGE_TARNAME
  798. PACKAGE_NAME
  799. PATH_SEPARATOR
  800. SHELL'
  801. ac_subst_files=''
  802. ac_user_opts='
  803. enable_option_checking
  804. enable_dependency_tracking
  805. enable_shared
  806. enable_static
  807. with_pic
  808. enable_fast_install
  809. with_gnu_ld
  810. enable_libtool_lock
  811. enable_debug
  812. with_boost
  813. with_boost_libdir
  814. with_boost_system
  815. with_boost_filesystem
  816. with_boost_thread
  817. with_boost_iostreams
  818. '
  819. ac_precious_vars='build_alias
  820. host_alias
  821. target_alias
  822. CXX
  823. CXXFLAGS
  824. LDFLAGS
  825. LIBS
  826. CPPFLAGS
  827. CCC
  828. CC
  829. CFLAGS
  830. CPP
  831. CXXCPP'
  832. # Initialize some variables set by options.
  833. ac_init_help=
  834. ac_init_version=false
  835. ac_unrecognized_opts=
  836. ac_unrecognized_sep=
  837. # The variables have the same names as the options, with
  838. # dashes changed to underlines.
  839. cache_file=/dev/null
  840. exec_prefix=NONE
  841. no_create=
  842. no_recursion=
  843. prefix=NONE
  844. program_prefix=NONE
  845. program_suffix=NONE
  846. program_transform_name=s,x,x,
  847. silent=
  848. site=
  849. srcdir=
  850. verbose=
  851. x_includes=NONE
  852. x_libraries=NONE
  853. # Installation directory options.
  854. # These are left unexpanded so users can "make install exec_prefix=/foo"
  855. # and all the variables that are supposed to be based on exec_prefix
  856. # by default will actually change.
  857. # Use braces instead of parens because sh, perl, etc. also accept them.
  858. # (The list follows the same order as the GNU Coding Standards.)
  859. bindir='${exec_prefix}/bin'
  860. sbindir='${exec_prefix}/sbin'
  861. libexecdir='${exec_prefix}/libexec'
  862. datarootdir='${prefix}/share'
  863. datadir='${datarootdir}'
  864. sysconfdir='${prefix}/etc'
  865. sharedstatedir='${prefix}/com'
  866. localstatedir='${prefix}/var'
  867. includedir='${prefix}/include'
  868. oldincludedir='/usr/include'
  869. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  870. infodir='${datarootdir}/info'
  871. htmldir='${docdir}'
  872. dvidir='${docdir}'
  873. pdfdir='${docdir}'
  874. psdir='${docdir}'
  875. libdir='${exec_prefix}/lib'
  876. localedir='${datarootdir}/locale'
  877. mandir='${datarootdir}/man'
  878. ac_prev=
  879. ac_dashdash=
  880. for ac_option
  881. do
  882. # If the previous option needs an argument, assign it.
  883. if test -n "$ac_prev"; then
  884. eval $ac_prev=\$ac_option
  885. ac_prev=
  886. continue
  887. fi
  888. case $ac_option in
  889. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  890. *) ac_optarg=yes ;;
  891. esac
  892. # Accept the important Cygnus configure options, so we can diagnose typos.
  893. case $ac_dashdash$ac_option in
  894. --)
  895. ac_dashdash=yes ;;
  896. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  897. ac_prev=bindir ;;
  898. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  899. bindir=$ac_optarg ;;
  900. -build | --build | --buil | --bui | --bu)
  901. ac_prev=build_alias ;;
  902. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  903. build_alias=$ac_optarg ;;
  904. -cache-file | --cache-file | --cache-fil | --cache-fi \
  905. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  906. ac_prev=cache_file ;;
  907. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  908. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  909. cache_file=$ac_optarg ;;
  910. --config-cache | -C)
  911. cache_file=config.cache ;;
  912. -datadir | --datadir | --datadi | --datad)
  913. ac_prev=datadir ;;
  914. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  915. datadir=$ac_optarg ;;
  916. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  917. | --dataroo | --dataro | --datar)
  918. ac_prev=datarootdir ;;
  919. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  920. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  921. datarootdir=$ac_optarg ;;
  922. -disable-* | --disable-*)
  923. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  924. # Reject names that are not valid shell variable names.
  925. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  926. as_fn_error "invalid feature name: $ac_useropt"
  927. ac_useropt_orig=$ac_useropt
  928. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  929. case $ac_user_opts in
  930. *"
  931. "enable_$ac_useropt"
  932. "*) ;;
  933. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  934. ac_unrecognized_sep=', ';;
  935. esac
  936. eval enable_$ac_useropt=no ;;
  937. -docdir | --docdir | --docdi | --doc | --do)
  938. ac_prev=docdir ;;
  939. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  940. docdir=$ac_optarg ;;
  941. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  942. ac_prev=dvidir ;;
  943. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  944. dvidir=$ac_optarg ;;
  945. -enable-* | --enable-*)
  946. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  947. # Reject names that are not valid shell variable names.
  948. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  949. as_fn_error "invalid feature name: $ac_useropt"
  950. ac_useropt_orig=$ac_useropt
  951. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  952. case $ac_user_opts in
  953. *"
  954. "enable_$ac_useropt"
  955. "*) ;;
  956. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  957. ac_unrecognized_sep=', ';;
  958. esac
  959. eval enable_$ac_useropt=\$ac_optarg ;;
  960. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  961. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  962. | --exec | --exe | --ex)
  963. ac_prev=exec_prefix ;;
  964. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  965. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  966. | --exec=* | --exe=* | --ex=*)
  967. exec_prefix=$ac_optarg ;;
  968. -gas | --gas | --ga | --g)
  969. # Obsolete; use --with-gas.
  970. with_gas=yes ;;
  971. -help | --help | --hel | --he | -h)
  972. ac_init_help=long ;;
  973. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  974. ac_init_help=recursive ;;
  975. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  976. ac_init_help=short ;;
  977. -host | --host | --hos | --ho)
  978. ac_prev=host_alias ;;
  979. -host=* | --host=* | --hos=* | --ho=*)
  980. host_alias=$ac_optarg ;;
  981. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  982. ac_prev=htmldir ;;
  983. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  984. | --ht=*)
  985. htmldir=$ac_optarg ;;
  986. -includedir | --includedir | --includedi | --included | --include \
  987. | --includ | --inclu | --incl | --inc)
  988. ac_prev=includedir ;;
  989. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  990. | --includ=* | --inclu=* | --incl=* | --inc=*)
  991. includedir=$ac_optarg ;;
  992. -infodir | --infodir | --infodi | --infod | --info | --inf)
  993. ac_prev=infodir ;;
  994. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  995. infodir=$ac_optarg ;;
  996. -libdir | --libdir | --libdi | --libd)
  997. ac_prev=libdir ;;
  998. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  999. libdir=$ac_optarg ;;
  1000. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1001. | --libexe | --libex | --libe)
  1002. ac_prev=libexecdir ;;
  1003. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1004. | --libexe=* | --libex=* | --libe=*)
  1005. libexecdir=$ac_optarg ;;
  1006. -localedir | --localedir | --localedi | --localed | --locale)
  1007. ac_prev=localedir ;;
  1008. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1009. localedir=$ac_optarg ;;
  1010. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1011. | --localstate | --localstat | --localsta | --localst | --locals)
  1012. ac_prev=localstatedir ;;
  1013. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1014. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1015. localstatedir=$ac_optarg ;;
  1016. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1017. ac_prev=mandir ;;
  1018. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1019. mandir=$ac_optarg ;;
  1020. -nfp | --nfp | --nf)
  1021. # Obsolete; use --without-fp.
  1022. with_fp=no ;;
  1023. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1024. | --no-cr | --no-c | -n)
  1025. no_create=yes ;;
  1026. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1027. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1028. no_recursion=yes ;;
  1029. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1030. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1031. | --oldin | --oldi | --old | --ol | --o)
  1032. ac_prev=oldincludedir ;;
  1033. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1034. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1035. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1036. oldincludedir=$ac_optarg ;;
  1037. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1038. ac_prev=prefix ;;
  1039. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1040. prefix=$ac_optarg ;;
  1041. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1042. | --program-pre | --program-pr | --program-p)
  1043. ac_prev=program_prefix ;;
  1044. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1045. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1046. program_prefix=$ac_optarg ;;
  1047. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1048. | --program-suf | --program-su | --program-s)
  1049. ac_prev=program_suffix ;;
  1050. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1051. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1052. program_suffix=$ac_optarg ;;
  1053. -program-transform-name | --program-transform-name \
  1054. | --program-transform-nam | --program-transform-na \
  1055. | --program-transform-n | --program-transform- \
  1056. | --program-transform | --program-transfor \
  1057. | --program-transfo | --program-transf \
  1058. | --program-trans | --program-tran \
  1059. | --progr-tra | --program-tr | --program-t)
  1060. ac_prev=program_transform_name ;;
  1061. -program-transform-name=* | --program-transform-name=* \
  1062. | --program-transform-nam=* | --program-transform-na=* \
  1063. | --program-transform-n=* | --program-transform-=* \
  1064. | --program-transform=* | --program-transfor=* \
  1065. | --program-transfo=* | --program-transf=* \
  1066. | --program-trans=* | --program-tran=* \
  1067. | --progr-tra=* | --program-tr=* | --program-t=*)
  1068. program_transform_name=$ac_optarg ;;
  1069. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1070. ac_prev=pdfdir ;;
  1071. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1072. pdfdir=$ac_optarg ;;
  1073. -psdir | --psdir | --psdi | --psd | --ps)
  1074. ac_prev=psdir ;;
  1075. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1076. psdir=$ac_optarg ;;
  1077. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1078. | -silent | --silent | --silen | --sile | --sil)
  1079. silent=yes ;;
  1080. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1081. ac_prev=sbindir ;;
  1082. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1083. | --sbi=* | --sb=*)
  1084. sbindir=$ac_optarg ;;
  1085. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1086. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1087. | --sharedst | --shareds | --shared | --share | --shar \
  1088. | --sha | --sh)
  1089. ac_prev=sharedstatedir ;;
  1090. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1091. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1092. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1093. | --sha=* | --sh=*)
  1094. sharedstatedir=$ac_optarg ;;
  1095. -site | --site | --sit)
  1096. ac_prev=site ;;
  1097. -site=* | --site=* | --sit=*)
  1098. site=$ac_optarg ;;
  1099. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1100. ac_prev=srcdir ;;
  1101. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1102. srcdir=$ac_optarg ;;
  1103. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1104. | --syscon | --sysco | --sysc | --sys | --sy)
  1105. ac_prev=sysconfdir ;;
  1106. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1107. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1108. sysconfdir=$ac_optarg ;;
  1109. -target | --target | --targe | --targ | --tar | --ta | --t)
  1110. ac_prev=target_alias ;;
  1111. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1112. target_alias=$ac_optarg ;;
  1113. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1114. verbose=yes ;;
  1115. -version | --version | --versio | --versi | --vers | -V)
  1116. ac_init_version=: ;;
  1117. -with-* | --with-*)
  1118. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1119. # Reject names that are not valid shell variable names.
  1120. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1121. as_fn_error "invalid package name: $ac_useropt"
  1122. ac_useropt_orig=$ac_useropt
  1123. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1124. case $ac_user_opts in
  1125. *"
  1126. "with_$ac_useropt"
  1127. "*) ;;
  1128. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1129. ac_unrecognized_sep=', ';;
  1130. esac
  1131. eval with_$ac_useropt=\$ac_optarg ;;
  1132. -without-* | --without-*)
  1133. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1134. # Reject names that are not valid shell variable names.
  1135. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1136. as_fn_error "invalid package name: $ac_useropt"
  1137. ac_useropt_orig=$ac_useropt
  1138. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1139. case $ac_user_opts in
  1140. *"
  1141. "with_$ac_useropt"
  1142. "*) ;;
  1143. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1144. ac_unrecognized_sep=', ';;
  1145. esac
  1146. eval with_$ac_useropt=no ;;
  1147. --x)
  1148. # Obsolete; use --with-x.
  1149. with_x=yes ;;
  1150. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1151. | --x-incl | --x-inc | --x-in | --x-i)
  1152. ac_prev=x_includes ;;
  1153. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1154. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1155. x_includes=$ac_optarg ;;
  1156. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1157. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1158. ac_prev=x_libraries ;;
  1159. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1160. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1161. x_libraries=$ac_optarg ;;
  1162. -*) as_fn_error "unrecognized option: \`$ac_option'
  1163. Try \`$0 --help' for more information."
  1164. ;;
  1165. *=*)
  1166. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1167. # Reject names that are not valid shell variable names.
  1168. case $ac_envvar in #(
  1169. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1170. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1171. esac
  1172. eval $ac_envvar=\$ac_optarg
  1173. export $ac_envvar ;;
  1174. *)
  1175. # FIXME: should be removed in autoconf 3.0.
  1176. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1177. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1178. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1179. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1180. ;;
  1181. esac
  1182. done
  1183. if test -n "$ac_prev"; then
  1184. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1185. as_fn_error "missing argument to $ac_option"
  1186. fi
  1187. if test -n "$ac_unrecognized_opts"; then
  1188. case $enable_option_checking in
  1189. no) ;;
  1190. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1191. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1192. esac
  1193. fi
  1194. # Check all directory arguments for consistency.
  1195. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1196. datadir sysconfdir sharedstatedir localstatedir includedir \
  1197. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1198. libdir localedir mandir
  1199. do
  1200. eval ac_val=\$$ac_var
  1201. # Remove trailing slashes.
  1202. case $ac_val in
  1203. */ )
  1204. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1205. eval $ac_var=\$ac_val;;
  1206. esac
  1207. # Be sure to have absolute directory names.
  1208. case $ac_val in
  1209. [\\/$]* | ?:[\\/]* ) continue;;
  1210. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1211. esac
  1212. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1213. done
  1214. # There might be people who depend on the old broken behavior: `$host'
  1215. # used to hold the argument of --host etc.
  1216. # FIXME: To remove some day.
  1217. build=$build_alias
  1218. host=$host_alias
  1219. target=$target_alias
  1220. # FIXME: To remove some day.
  1221. if test "x$host_alias" != x; then
  1222. if test "x$build_alias" = x; then
  1223. cross_compiling=maybe
  1224. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1225. If a cross compiler is detected then cross compile mode will be used." >&2
  1226. elif test "x$build_alias" != "x$host_alias"; then
  1227. cross_compiling=yes
  1228. fi
  1229. fi
  1230. ac_tool_prefix=
  1231. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1232. test "$silent" = yes && exec 6>/dev/null
  1233. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1234. ac_ls_di=`ls -di .` &&
  1235. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1236. as_fn_error "working directory cannot be determined"
  1237. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1238. as_fn_error "pwd does not report name of working directory"
  1239. # Find the source files, if location was not specified.
  1240. if test -z "$srcdir"; then
  1241. ac_srcdir_defaulted=yes
  1242. # Try the directory containing this script, then the parent directory.
  1243. ac_confdir=`$as_dirname -- "$as_myself" ||
  1244. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1245. X"$as_myself" : 'X\(//\)[^/]' \| \
  1246. X"$as_myself" : 'X\(//\)$' \| \
  1247. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1248. $as_echo X"$as_myself" |
  1249. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1250. s//\1/
  1251. q
  1252. }
  1253. /^X\(\/\/\)[^/].*/{
  1254. s//\1/
  1255. q
  1256. }
  1257. /^X\(\/\/\)$/{
  1258. s//\1/
  1259. q
  1260. }
  1261. /^X\(\/\).*/{
  1262. s//\1/
  1263. q
  1264. }
  1265. s/.*/./; q'`
  1266. srcdir=$ac_confdir
  1267. if test ! -r "$srcdir/$ac_unique_file"; then
  1268. srcdir=..
  1269. fi
  1270. else
  1271. ac_srcdir_defaulted=no
  1272. fi
  1273. if test ! -r "$srcdir/$ac_unique_file"; then
  1274. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1275. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1276. fi
  1277. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1278. ac_abs_confdir=`(
  1279. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1280. pwd)`
  1281. # When building in place, set srcdir=.
  1282. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1283. srcdir=.
  1284. fi
  1285. # Remove unnecessary trailing slashes from srcdir.
  1286. # Double slashes in file names in object file debugging info
  1287. # mess up M-x gdb in Emacs.
  1288. case $srcdir in
  1289. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1290. esac
  1291. for ac_var in $ac_precious_vars; do
  1292. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1293. eval ac_env_${ac_var}_value=\$${ac_var}
  1294. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1295. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1296. done
  1297. #
  1298. # Report the --help message.
  1299. #
  1300. if test "$ac_init_help" = "long"; then
  1301. # Omit some internal or obsolete options to make the list less imposing.
  1302. # This message is too long to be a string in the A/UX 3.1 sh.
  1303. cat <<_ACEOF
  1304. \`configure' configures vcmi 0.75 to adapt to many kinds of systems.
  1305. Usage: $0 [OPTION]... [VAR=VALUE]...
  1306. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1307. VAR=VALUE. See below for descriptions of some of the useful variables.
  1308. Defaults for the options are specified in brackets.
  1309. Configuration:
  1310. -h, --help display this help and exit
  1311. --help=short display options specific to this package
  1312. --help=recursive display the short help of all the included packages
  1313. -V, --version display version information and exit
  1314. -q, --quiet, --silent do not print \`checking...' messages
  1315. --cache-file=FILE cache test results in FILE [disabled]
  1316. -C, --config-cache alias for \`--cache-file=config.cache'
  1317. -n, --no-create do not create output files
  1318. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1319. Installation directories:
  1320. --prefix=PREFIX install architecture-independent files in PREFIX
  1321. [$ac_default_prefix]
  1322. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1323. [PREFIX]
  1324. By default, \`make install' will install all the files in
  1325. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1326. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1327. for instance \`--prefix=\$HOME'.
  1328. For better control, use the options below.
  1329. Fine tuning of the installation directories:
  1330. --bindir=DIR user executables [EPREFIX/bin]
  1331. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1332. --libexecdir=DIR program executables [EPREFIX/libexec]
  1333. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1334. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1335. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1336. --libdir=DIR object code libraries [EPREFIX/lib]
  1337. --includedir=DIR C header files [PREFIX/include]
  1338. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1339. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1340. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1341. --infodir=DIR info documentation [DATAROOTDIR/info]
  1342. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1343. --mandir=DIR man documentation [DATAROOTDIR/man]
  1344. --docdir=DIR documentation root [DATAROOTDIR/doc/vcmi]
  1345. --htmldir=DIR html documentation [DOCDIR]
  1346. --dvidir=DIR dvi documentation [DOCDIR]
  1347. --pdfdir=DIR pdf documentation [DOCDIR]
  1348. --psdir=DIR ps documentation [DOCDIR]
  1349. _ACEOF
  1350. cat <<\_ACEOF
  1351. Program names:
  1352. --program-prefix=PREFIX prepend PREFIX to installed program names
  1353. --program-suffix=SUFFIX append SUFFIX to installed program names
  1354. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1355. System types:
  1356. --build=BUILD configure for building on BUILD [guessed]
  1357. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1358. _ACEOF
  1359. fi
  1360. if test -n "$ac_init_help"; then
  1361. case $ac_init_help in
  1362. short | recursive ) echo "Configuration of vcmi 0.75:";;
  1363. esac
  1364. cat <<\_ACEOF
  1365. Optional Features:
  1366. --disable-option-checking ignore unrecognized --enable/--with options
  1367. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1368. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1369. --disable-dependency-tracking speeds up one-time build
  1370. --enable-dependency-tracking do not reject slow dependency extractors
  1371. --enable-shared[=PKGS] build shared libraries [default=yes]
  1372. --enable-static[=PKGS] build static libraries [default=no]
  1373. --enable-fast-install[=PKGS]
  1374. optimize for fast installation [default=yes]
  1375. --disable-libtool-lock avoid locking (might break parallel builds)
  1376. --disable-debug turn off debugging (default=enable)
  1377. Optional Packages:
  1378. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1379. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1380. --with-pic try to use only PIC/non-PIC objects [default=use
  1381. both]
  1382. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1383. --with-boost[=DIR] use boost (default is yes) - it is possible to
  1384. specify the root directory for boost (optional)
  1385. --with-boost-libdir=LIB_DIR
  1386. Force given directory for boost libraries. Note that
  1387. this will overwrite library path detection, so use
  1388. this parameter only if default library detection
  1389. fails and you know exactly where your boost
  1390. libraries are located.
  1391. --with-boost-system[=special-lib]
  1392. use the System library from boost - it is possible
  1393. to specify a certain library for the linker e.g.
  1394. --with-boost-system=boost_system-gcc-mt
  1395. --with-boost-filesystem[=special-lib]
  1396. use the Filesystem library from boost - it is
  1397. possible to specify a certain library for the linker
  1398. e.g. --with-boost-filesystem=boost_filesystem-gcc-mt
  1399. --with-boost-thread[=special-lib]
  1400. use the Thread library from boost - it is possible
  1401. to specify a certain library for the linker e.g.
  1402. --with-boost-thread=boost_thread-gcc-mt
  1403. --with-boost-iostreams[=special-lib]
  1404. use the IOStreams library from boost - it is
  1405. possible to specify a certain library for the
  1406. linker e.g.
  1407. --with-boost-iostreams=boost_iostreams-gcc-mt-d-1_33_1
  1408. Some influential environment variables:
  1409. CXX C++ compiler command
  1410. CXXFLAGS C++ compiler flags
  1411. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1412. nonstandard directory <lib dir>
  1413. LIBS libraries to pass to the linker, e.g. -l<library>
  1414. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1415. you have headers in a nonstandard directory <include dir>
  1416. CC C compiler command
  1417. CFLAGS C compiler flags
  1418. CPP C preprocessor
  1419. CXXCPP C++ preprocessor
  1420. Use these variables to override the choices made by `configure' or to help
  1421. it to find libraries and programs with nonstandard names/locations.
  1422. Report bugs to the package provider.
  1423. _ACEOF
  1424. ac_status=$?
  1425. fi
  1426. if test "$ac_init_help" = "recursive"; then
  1427. # If there are subdirs, report their specific --help.
  1428. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1429. test -d "$ac_dir" ||
  1430. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1431. continue
  1432. ac_builddir=.
  1433. case "$ac_dir" in
  1434. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1435. *)
  1436. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1437. # A ".." for each directory in $ac_dir_suffix.
  1438. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1439. case $ac_top_builddir_sub in
  1440. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1441. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1442. esac ;;
  1443. esac
  1444. ac_abs_top_builddir=$ac_pwd
  1445. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1446. # for backward compatibility:
  1447. ac_top_builddir=$ac_top_build_prefix
  1448. case $srcdir in
  1449. .) # We are building in place.
  1450. ac_srcdir=.
  1451. ac_top_srcdir=$ac_top_builddir_sub
  1452. ac_abs_top_srcdir=$ac_pwd ;;
  1453. [\\/]* | ?:[\\/]* ) # Absolute name.
  1454. ac_srcdir=$srcdir$ac_dir_suffix;
  1455. ac_top_srcdir=$srcdir
  1456. ac_abs_top_srcdir=$srcdir ;;
  1457. *) # Relative name.
  1458. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1459. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1460. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1461. esac
  1462. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1463. cd "$ac_dir" || { ac_status=$?; continue; }
  1464. # Check for guested configure.
  1465. if test -f "$ac_srcdir/configure.gnu"; then
  1466. echo &&
  1467. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1468. elif test -f "$ac_srcdir/configure"; then
  1469. echo &&
  1470. $SHELL "$ac_srcdir/configure" --help=recursive
  1471. else
  1472. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1473. fi || ac_status=$?
  1474. cd "$ac_pwd" || { ac_status=$?; break; }
  1475. done
  1476. fi
  1477. test -n "$ac_init_help" && exit $ac_status
  1478. if $ac_init_version; then
  1479. cat <<\_ACEOF
  1480. vcmi configure 0.75
  1481. generated by GNU Autoconf 2.64
  1482. Copyright (C) 2009 Free Software Foundation, Inc.
  1483. This configure script is free software; the Free Software Foundation
  1484. gives unlimited permission to copy, distribute and modify it.
  1485. _ACEOF
  1486. exit
  1487. fi
  1488. ## ------------------------ ##
  1489. ## Autoconf initialization. ##
  1490. ## ------------------------ ##
  1491. # ac_fn_cxx_try_compile LINENO
  1492. # ----------------------------
  1493. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1494. ac_fn_cxx_try_compile ()
  1495. {
  1496. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1497. rm -f conftest.$ac_objext
  1498. if { { ac_try="$ac_compile"
  1499. case "(($ac_try" in
  1500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1501. *) ac_try_echo=$ac_try;;
  1502. esac
  1503. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1504. $as_echo "$ac_try_echo"; } >&5
  1505. (eval "$ac_compile") 2>conftest.err
  1506. ac_status=$?
  1507. if test -s conftest.err; then
  1508. grep -v '^ *+' conftest.err >conftest.er1
  1509. cat conftest.er1 >&5
  1510. mv -f conftest.er1 conftest.err
  1511. fi
  1512. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1513. test $ac_status = 0; } && {
  1514. test -z "$ac_cxx_werror_flag" ||
  1515. test ! -s conftest.err
  1516. } && test -s conftest.$ac_objext; then :
  1517. ac_retval=0
  1518. else
  1519. $as_echo "$as_me: failed program was:" >&5
  1520. sed 's/^/| /' conftest.$ac_ext >&5
  1521. ac_retval=1
  1522. fi
  1523. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1524. return $ac_retval
  1525. } # ac_fn_cxx_try_compile
  1526. # ac_fn_c_try_compile LINENO
  1527. # --------------------------
  1528. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1529. ac_fn_c_try_compile ()
  1530. {
  1531. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1532. rm -f conftest.$ac_objext
  1533. if { { ac_try="$ac_compile"
  1534. case "(($ac_try" in
  1535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1536. *) ac_try_echo=$ac_try;;
  1537. esac
  1538. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1539. $as_echo "$ac_try_echo"; } >&5
  1540. (eval "$ac_compile") 2>conftest.err
  1541. ac_status=$?
  1542. if test -s conftest.err; then
  1543. grep -v '^ *+' conftest.err >conftest.er1
  1544. cat conftest.er1 >&5
  1545. mv -f conftest.er1 conftest.err
  1546. fi
  1547. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1548. test $ac_status = 0; } && {
  1549. test -z "$ac_c_werror_flag" ||
  1550. test ! -s conftest.err
  1551. } && test -s conftest.$ac_objext; then :
  1552. ac_retval=0
  1553. else
  1554. $as_echo "$as_me: failed program was:" >&5
  1555. sed 's/^/| /' conftest.$ac_ext >&5
  1556. ac_retval=1
  1557. fi
  1558. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1559. return $ac_retval
  1560. } # ac_fn_c_try_compile
  1561. # ac_fn_c_try_link LINENO
  1562. # -----------------------
  1563. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1564. ac_fn_c_try_link ()
  1565. {
  1566. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1567. rm -f conftest.$ac_objext conftest$ac_exeext
  1568. if { { ac_try="$ac_link"
  1569. case "(($ac_try" in
  1570. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1571. *) ac_try_echo=$ac_try;;
  1572. esac
  1573. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1574. $as_echo "$ac_try_echo"; } >&5
  1575. (eval "$ac_link") 2>conftest.err
  1576. ac_status=$?
  1577. if test -s conftest.err; then
  1578. grep -v '^ *+' conftest.err >conftest.er1
  1579. cat conftest.er1 >&5
  1580. mv -f conftest.er1 conftest.err
  1581. fi
  1582. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1583. test $ac_status = 0; } && {
  1584. test -z "$ac_c_werror_flag" ||
  1585. test ! -s conftest.err
  1586. } && test -s conftest$ac_exeext && {
  1587. test "$cross_compiling" = yes ||
  1588. $as_test_x conftest$ac_exeext
  1589. }; then :
  1590. ac_retval=0
  1591. else
  1592. $as_echo "$as_me: failed program was:" >&5
  1593. sed 's/^/| /' conftest.$ac_ext >&5
  1594. ac_retval=1
  1595. fi
  1596. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1597. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1598. # interfere with the next link command; also delete a directory that is
  1599. # left behind by Apple's compiler. We do this before executing the actions.
  1600. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1601. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1602. return $ac_retval
  1603. } # ac_fn_c_try_link
  1604. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1605. # -------------------------------------------------------
  1606. # Tests whether HEADER exists and can be compiled using the include files in
  1607. # INCLUDES, setting the cache variable VAR accordingly.
  1608. ac_fn_c_check_header_compile ()
  1609. {
  1610. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1612. $as_echo_n "checking for $2... " >&6; }
  1613. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1614. $as_echo_n "(cached) " >&6
  1615. else
  1616. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1617. /* end confdefs.h. */
  1618. $4
  1619. #include <$2>
  1620. _ACEOF
  1621. if ac_fn_c_try_compile "$LINENO"; then :
  1622. eval "$3=yes"
  1623. else
  1624. eval "$3=no"
  1625. fi
  1626. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1627. fi
  1628. eval ac_res=\$$3
  1629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1630. $as_echo "$ac_res" >&6; }
  1631. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1632. } # ac_fn_c_check_header_compile
  1633. # ac_fn_c_try_cpp LINENO
  1634. # ----------------------
  1635. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1636. ac_fn_c_try_cpp ()
  1637. {
  1638. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1639. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1640. case "(($ac_try" in
  1641. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1642. *) ac_try_echo=$ac_try;;
  1643. esac
  1644. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1645. $as_echo "$ac_try_echo"; } >&5
  1646. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1647. ac_status=$?
  1648. if test -s conftest.err; then
  1649. grep -v '^ *+' conftest.err >conftest.er1
  1650. cat conftest.er1 >&5
  1651. mv -f conftest.er1 conftest.err
  1652. fi
  1653. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1654. test $ac_status = 0; } >/dev/null && {
  1655. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1656. test ! -s conftest.err
  1657. }; then :
  1658. ac_retval=0
  1659. else
  1660. $as_echo "$as_me: failed program was:" >&5
  1661. sed 's/^/| /' conftest.$ac_ext >&5
  1662. ac_retval=1
  1663. fi
  1664. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1665. return $ac_retval
  1666. } # ac_fn_c_try_cpp
  1667. # ac_fn_c_try_run LINENO
  1668. # ----------------------
  1669. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1670. # that executables *can* be run.
  1671. ac_fn_c_try_run ()
  1672. {
  1673. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1674. if { { ac_try="$ac_link"
  1675. case "(($ac_try" in
  1676. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1677. *) ac_try_echo=$ac_try;;
  1678. esac
  1679. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1680. $as_echo "$ac_try_echo"; } >&5
  1681. (eval "$ac_link") 2>&5
  1682. ac_status=$?
  1683. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1684. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1685. { { case "(($ac_try" in
  1686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1687. *) ac_try_echo=$ac_try;;
  1688. esac
  1689. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1690. $as_echo "$ac_try_echo"; } >&5
  1691. (eval "$ac_try") 2>&5
  1692. ac_status=$?
  1693. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1694. test $ac_status = 0; }; }; then :
  1695. ac_retval=0
  1696. else
  1697. $as_echo "$as_me: program exited with status $ac_status" >&5
  1698. $as_echo "$as_me: failed program was:" >&5
  1699. sed 's/^/| /' conftest.$ac_ext >&5
  1700. ac_retval=$ac_status
  1701. fi
  1702. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1703. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1704. return $ac_retval
  1705. } # ac_fn_c_try_run
  1706. # ac_fn_c_check_func LINENO FUNC VAR
  1707. # ----------------------------------
  1708. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1709. ac_fn_c_check_func ()
  1710. {
  1711. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1712. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1713. $as_echo_n "checking for $2... " >&6; }
  1714. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1715. $as_echo_n "(cached) " >&6
  1716. else
  1717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1718. /* end confdefs.h. */
  1719. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1720. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1721. #define $2 innocuous_$2
  1722. /* System header to define __stub macros and hopefully few prototypes,
  1723. which can conflict with char $2 (); below.
  1724. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1725. <limits.h> exists even on freestanding compilers. */
  1726. #ifdef __STDC__
  1727. # include <limits.h>
  1728. #else
  1729. # include <assert.h>
  1730. #endif
  1731. #undef $2
  1732. /* Override any GCC internal prototype to avoid an error.
  1733. Use char because int might match the return type of a GCC
  1734. builtin and then its argument prototype would still apply. */
  1735. #ifdef __cplusplus
  1736. extern "C"
  1737. #endif
  1738. char $2 ();
  1739. /* The GNU C library defines this for functions which it implements
  1740. to always fail with ENOSYS. Some functions are actually named
  1741. something starting with __ and the normal name is an alias. */
  1742. #if defined __stub_$2 || defined __stub___$2
  1743. choke me
  1744. #endif
  1745. int
  1746. main ()
  1747. {
  1748. return $2 ();
  1749. ;
  1750. return 0;
  1751. }
  1752. _ACEOF
  1753. if ac_fn_c_try_link "$LINENO"; then :
  1754. eval "$3=yes"
  1755. else
  1756. eval "$3=no"
  1757. fi
  1758. rm -f core conftest.err conftest.$ac_objext \
  1759. conftest$ac_exeext conftest.$ac_ext
  1760. fi
  1761. eval ac_res=\$$3
  1762. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1763. $as_echo "$ac_res" >&6; }
  1764. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1765. } # ac_fn_c_check_func
  1766. # ac_fn_cxx_try_cpp LINENO
  1767. # ------------------------
  1768. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1769. ac_fn_cxx_try_cpp ()
  1770. {
  1771. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1772. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1773. case "(($ac_try" in
  1774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1775. *) ac_try_echo=$ac_try;;
  1776. esac
  1777. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1778. $as_echo "$ac_try_echo"; } >&5
  1779. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1780. ac_status=$?
  1781. if test -s conftest.err; then
  1782. grep -v '^ *+' conftest.err >conftest.er1
  1783. cat conftest.er1 >&5
  1784. mv -f conftest.er1 conftest.err
  1785. fi
  1786. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1787. test $ac_status = 0; } >/dev/null && {
  1788. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1789. test ! -s conftest.err
  1790. }; then :
  1791. ac_retval=0
  1792. else
  1793. $as_echo "$as_me: failed program was:" >&5
  1794. sed 's/^/| /' conftest.$ac_ext >&5
  1795. ac_retval=1
  1796. fi
  1797. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1798. return $ac_retval
  1799. } # ac_fn_cxx_try_cpp
  1800. # ac_fn_cxx_try_link LINENO
  1801. # -------------------------
  1802. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1803. ac_fn_cxx_try_link ()
  1804. {
  1805. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1806. rm -f conftest.$ac_objext conftest$ac_exeext
  1807. if { { ac_try="$ac_link"
  1808. case "(($ac_try" in
  1809. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1810. *) ac_try_echo=$ac_try;;
  1811. esac
  1812. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1813. $as_echo "$ac_try_echo"; } >&5
  1814. (eval "$ac_link") 2>conftest.err
  1815. ac_status=$?
  1816. if test -s conftest.err; then
  1817. grep -v '^ *+' conftest.err >conftest.er1
  1818. cat conftest.er1 >&5
  1819. mv -f conftest.er1 conftest.err
  1820. fi
  1821. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1822. test $ac_status = 0; } && {
  1823. test -z "$ac_cxx_werror_flag" ||
  1824. test ! -s conftest.err
  1825. } && test -s conftest$ac_exeext && {
  1826. test "$cross_compiling" = yes ||
  1827. $as_test_x conftest$ac_exeext
  1828. }; then :
  1829. ac_retval=0
  1830. else
  1831. $as_echo "$as_me: failed program was:" >&5
  1832. sed 's/^/| /' conftest.$ac_ext >&5
  1833. ac_retval=1
  1834. fi
  1835. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1836. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1837. # interfere with the next link command; also delete a directory that is
  1838. # left behind by Apple's compiler. We do this before executing the actions.
  1839. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1840. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1841. return $ac_retval
  1842. } # ac_fn_cxx_try_link
  1843. # ac_fn_cxx_try_run LINENO
  1844. # ------------------------
  1845. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1846. # that executables *can* be run.
  1847. ac_fn_cxx_try_run ()
  1848. {
  1849. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1850. if { { ac_try="$ac_link"
  1851. case "(($ac_try" in
  1852. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1853. *) ac_try_echo=$ac_try;;
  1854. esac
  1855. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1856. $as_echo "$ac_try_echo"; } >&5
  1857. (eval "$ac_link") 2>&5
  1858. ac_status=$?
  1859. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1860. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1861. { { case "(($ac_try" in
  1862. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1863. *) ac_try_echo=$ac_try;;
  1864. esac
  1865. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1866. $as_echo "$ac_try_echo"; } >&5
  1867. (eval "$ac_try") 2>&5
  1868. ac_status=$?
  1869. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1870. test $ac_status = 0; }; }; then :
  1871. ac_retval=0
  1872. else
  1873. $as_echo "$as_me: program exited with status $ac_status" >&5
  1874. $as_echo "$as_me: failed program was:" >&5
  1875. sed 's/^/| /' conftest.$ac_ext >&5
  1876. ac_retval=$ac_status
  1877. fi
  1878. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1879. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1880. return $ac_retval
  1881. } # ac_fn_cxx_try_run
  1882. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1883. # ---------------------------------------------------------
  1884. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1885. # the include files in INCLUDES and setting the cache variable VAR
  1886. # accordingly.
  1887. ac_fn_cxx_check_header_mongrel ()
  1888. {
  1889. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1890. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1892. $as_echo_n "checking for $2... " >&6; }
  1893. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1894. $as_echo_n "(cached) " >&6
  1895. fi
  1896. eval ac_res=\$$3
  1897. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1898. $as_echo "$ac_res" >&6; }
  1899. else
  1900. # Is the header compilable?
  1901. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1902. $as_echo_n "checking $2 usability... " >&6; }
  1903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1904. /* end confdefs.h. */
  1905. $4
  1906. #include <$2>
  1907. _ACEOF
  1908. if ac_fn_cxx_try_compile "$LINENO"; then :
  1909. ac_header_compiler=yes
  1910. else
  1911. ac_header_compiler=no
  1912. fi
  1913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1915. $as_echo "$ac_header_compiler" >&6; }
  1916. # Is the header present?
  1917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1918. $as_echo_n "checking $2 presence... " >&6; }
  1919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1920. /* end confdefs.h. */
  1921. #include <$2>
  1922. _ACEOF
  1923. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1924. ac_header_preproc=yes
  1925. else
  1926. ac_header_preproc=no
  1927. fi
  1928. rm -f conftest.err conftest.$ac_ext
  1929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1930. $as_echo "$ac_header_preproc" >&6; }
  1931. # So? What about this header?
  1932. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1933. yes:no: )
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1935. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1936. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1937. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1938. ;;
  1939. no:yes:* )
  1940. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1941. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1942. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1943. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1944. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1945. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1947. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1948. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1949. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1950. ;;
  1951. esac
  1952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1953. $as_echo_n "checking for $2... " >&6; }
  1954. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1955. $as_echo_n "(cached) " >&6
  1956. else
  1957. eval "$3=\$ac_header_compiler"
  1958. fi
  1959. eval ac_res=\$$3
  1960. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1961. $as_echo "$ac_res" >&6; }
  1962. fi
  1963. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1964. } # ac_fn_cxx_check_header_mongrel
  1965. # ac_fn_cxx_check_func LINENO FUNC VAR
  1966. # ------------------------------------
  1967. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1968. ac_fn_cxx_check_func ()
  1969. {
  1970. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1972. $as_echo_n "checking for $2... " >&6; }
  1973. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  1974. $as_echo_n "(cached) " >&6
  1975. else
  1976. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1977. /* end confdefs.h. */
  1978. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1979. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1980. #define $2 innocuous_$2
  1981. /* System header to define __stub macros and hopefully few prototypes,
  1982. which can conflict with char $2 (); below.
  1983. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1984. <limits.h> exists even on freestanding compilers. */
  1985. #ifdef __STDC__
  1986. # include <limits.h>
  1987. #else
  1988. # include <assert.h>
  1989. #endif
  1990. #undef $2
  1991. /* Override any GCC internal prototype to avoid an error.
  1992. Use char because int might match the return type of a GCC
  1993. builtin and then its argument prototype would still apply. */
  1994. #ifdef __cplusplus
  1995. extern "C"
  1996. #endif
  1997. char $2 ();
  1998. /* The GNU C library defines this for functions which it implements
  1999. to always fail with ENOSYS. Some functions are actually named
  2000. something starting with __ and the normal name is an alias. */
  2001. #if defined __stub_$2 || defined __stub___$2
  2002. choke me
  2003. #endif
  2004. int
  2005. main ()
  2006. {
  2007. return $2 ();
  2008. ;
  2009. return 0;
  2010. }
  2011. _ACEOF
  2012. if ac_fn_cxx_try_link "$LINENO"; then :
  2013. eval "$3=yes"
  2014. else
  2015. eval "$3=no"
  2016. fi
  2017. rm -f core conftest.err conftest.$ac_objext \
  2018. conftest$ac_exeext conftest.$ac_ext
  2019. fi
  2020. eval ac_res=\$$3
  2021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2022. $as_echo "$ac_res" >&6; }
  2023. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2024. } # ac_fn_cxx_check_func
  2025. cat >config.log <<_ACEOF
  2026. This file contains any messages produced by compilers while
  2027. running configure, to aid debugging if configure makes a mistake.
  2028. It was created by vcmi $as_me 0.75, which was
  2029. generated by GNU Autoconf 2.64. Invocation command line was
  2030. $ $0 $@
  2031. _ACEOF
  2032. exec 5>>config.log
  2033. {
  2034. cat <<_ASUNAME
  2035. ## --------- ##
  2036. ## Platform. ##
  2037. ## --------- ##
  2038. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2039. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2040. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2041. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2042. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2043. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2044. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2045. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2046. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2047. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2048. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2049. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2050. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2051. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2052. _ASUNAME
  2053. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2054. for as_dir in $PATH
  2055. do
  2056. IFS=$as_save_IFS
  2057. test -z "$as_dir" && as_dir=.
  2058. $as_echo "PATH: $as_dir"
  2059. done
  2060. IFS=$as_save_IFS
  2061. } >&5
  2062. cat >&5 <<_ACEOF
  2063. ## ----------- ##
  2064. ## Core tests. ##
  2065. ## ----------- ##
  2066. _ACEOF
  2067. # Keep a trace of the command line.
  2068. # Strip out --no-create and --no-recursion so they do not pile up.
  2069. # Strip out --silent because we don't want to record it for future runs.
  2070. # Also quote any args containing shell meta-characters.
  2071. # Make two passes to allow for proper duplicate-argument suppression.
  2072. ac_configure_args=
  2073. ac_configure_args0=
  2074. ac_configure_args1=
  2075. ac_must_keep_next=false
  2076. for ac_pass in 1 2
  2077. do
  2078. for ac_arg
  2079. do
  2080. case $ac_arg in
  2081. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2082. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2083. | -silent | --silent | --silen | --sile | --sil)
  2084. continue ;;
  2085. *\'*)
  2086. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2087. esac
  2088. case $ac_pass in
  2089. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2090. 2)
  2091. as_fn_append ac_configure_args1 " '$ac_arg'"
  2092. if test $ac_must_keep_next = true; then
  2093. ac_must_keep_next=false # Got value, back to normal.
  2094. else
  2095. case $ac_arg in
  2096. *=* | --config-cache | -C | -disable-* | --disable-* \
  2097. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2098. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2099. | -with-* | --with-* | -without-* | --without-* | --x)
  2100. case "$ac_configure_args0 " in
  2101. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2102. esac
  2103. ;;
  2104. -* ) ac_must_keep_next=true ;;
  2105. esac
  2106. fi
  2107. as_fn_append ac_configure_args " '$ac_arg'"
  2108. ;;
  2109. esac
  2110. done
  2111. done
  2112. { ac_configure_args0=; unset ac_configure_args0;}
  2113. { ac_configure_args1=; unset ac_configure_args1;}
  2114. # When interrupted or exit'd, cleanup temporary files, and complete
  2115. # config.log. We remove comments because anyway the quotes in there
  2116. # would cause problems or look ugly.
  2117. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2118. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2119. trap 'exit_status=$?
  2120. # Save into config.log some information that might help in debugging.
  2121. {
  2122. echo
  2123. cat <<\_ASBOX
  2124. ## ---------------- ##
  2125. ## Cache variables. ##
  2126. ## ---------------- ##
  2127. _ASBOX
  2128. echo
  2129. # The following way of writing the cache mishandles newlines in values,
  2130. (
  2131. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2132. eval ac_val=\$$ac_var
  2133. case $ac_val in #(
  2134. *${as_nl}*)
  2135. case $ac_var in #(
  2136. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2137. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2138. esac
  2139. case $ac_var in #(
  2140. _ | IFS | as_nl) ;; #(
  2141. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2142. *) { eval $ac_var=; unset $ac_var;} ;;
  2143. esac ;;
  2144. esac
  2145. done
  2146. (set) 2>&1 |
  2147. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2148. *${as_nl}ac_space=\ *)
  2149. sed -n \
  2150. "s/'\''/'\''\\\\'\'''\''/g;
  2151. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2152. ;; #(
  2153. *)
  2154. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2155. ;;
  2156. esac |
  2157. sort
  2158. )
  2159. echo
  2160. cat <<\_ASBOX
  2161. ## ----------------- ##
  2162. ## Output variables. ##
  2163. ## ----------------- ##
  2164. _ASBOX
  2165. echo
  2166. for ac_var in $ac_subst_vars
  2167. do
  2168. eval ac_val=\$$ac_var
  2169. case $ac_val in
  2170. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2171. esac
  2172. $as_echo "$ac_var='\''$ac_val'\''"
  2173. done | sort
  2174. echo
  2175. if test -n "$ac_subst_files"; then
  2176. cat <<\_ASBOX
  2177. ## ------------------- ##
  2178. ## File substitutions. ##
  2179. ## ------------------- ##
  2180. _ASBOX
  2181. echo
  2182. for ac_var in $ac_subst_files
  2183. do
  2184. eval ac_val=\$$ac_var
  2185. case $ac_val in
  2186. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2187. esac
  2188. $as_echo "$ac_var='\''$ac_val'\''"
  2189. done | sort
  2190. echo
  2191. fi
  2192. if test -s confdefs.h; then
  2193. cat <<\_ASBOX
  2194. ## ----------- ##
  2195. ## confdefs.h. ##
  2196. ## ----------- ##
  2197. _ASBOX
  2198. echo
  2199. cat confdefs.h
  2200. echo
  2201. fi
  2202. test "$ac_signal" != 0 &&
  2203. $as_echo "$as_me: caught signal $ac_signal"
  2204. $as_echo "$as_me: exit $exit_status"
  2205. } >&5
  2206. rm -f core *.core core.conftest.* &&
  2207. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2208. exit $exit_status
  2209. ' 0
  2210. for ac_signal in 1 2 13 15; do
  2211. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2212. done
  2213. ac_signal=0
  2214. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2215. rm -f -r conftest* confdefs.h
  2216. $as_echo "/* confdefs.h */" > confdefs.h
  2217. # Predefined preprocessor variables.
  2218. cat >>confdefs.h <<_ACEOF
  2219. #define PACKAGE_NAME "$PACKAGE_NAME"
  2220. _ACEOF
  2221. cat >>confdefs.h <<_ACEOF
  2222. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2223. _ACEOF
  2224. cat >>confdefs.h <<_ACEOF
  2225. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2226. _ACEOF
  2227. cat >>confdefs.h <<_ACEOF
  2228. #define PACKAGE_STRING "$PACKAGE_STRING"
  2229. _ACEOF
  2230. cat >>confdefs.h <<_ACEOF
  2231. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2232. _ACEOF
  2233. cat >>confdefs.h <<_ACEOF
  2234. #define PACKAGE_URL "$PACKAGE_URL"
  2235. _ACEOF
  2236. # Let the site file select an alternate cache file if it wants to.
  2237. # Prefer an explicitly selected file to automatically selected ones.
  2238. ac_site_file1=NONE
  2239. ac_site_file2=NONE
  2240. if test -n "$CONFIG_SITE"; then
  2241. ac_site_file1=$CONFIG_SITE
  2242. elif test "x$prefix" != xNONE; then
  2243. ac_site_file1=$prefix/share/config.site
  2244. ac_site_file2=$prefix/etc/config.site
  2245. else
  2246. ac_site_file1=$ac_default_prefix/share/config.site
  2247. ac_site_file2=$ac_default_prefix/etc/config.site
  2248. fi
  2249. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2250. do
  2251. test "x$ac_site_file" = xNONE && continue
  2252. if test -r "$ac_site_file"; then
  2253. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2254. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2255. sed 's/^/| /' "$ac_site_file" >&5
  2256. . "$ac_site_file"
  2257. fi
  2258. done
  2259. if test -r "$cache_file"; then
  2260. # Some versions of bash will fail to source /dev/null (special
  2261. # files actually), so we avoid doing that.
  2262. if test -f "$cache_file"; then
  2263. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2264. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2265. case $cache_file in
  2266. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2267. *) . "./$cache_file";;
  2268. esac
  2269. fi
  2270. else
  2271. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2272. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2273. >$cache_file
  2274. fi
  2275. # Check that the precious variables saved in the cache have kept the same
  2276. # value.
  2277. ac_cache_corrupted=false
  2278. for ac_var in $ac_precious_vars; do
  2279. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2280. eval ac_new_set=\$ac_env_${ac_var}_set
  2281. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2282. eval ac_new_val=\$ac_env_${ac_var}_value
  2283. case $ac_old_set,$ac_new_set in
  2284. set,)
  2285. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2286. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2287. ac_cache_corrupted=: ;;
  2288. ,set)
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2290. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2291. ac_cache_corrupted=: ;;
  2292. ,);;
  2293. *)
  2294. if test "x$ac_old_val" != "x$ac_new_val"; then
  2295. # differences in whitespace do not lead to failure.
  2296. ac_old_val_w=`echo x $ac_old_val`
  2297. ac_new_val_w=`echo x $ac_new_val`
  2298. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2299. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2300. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2301. ac_cache_corrupted=:
  2302. else
  2303. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2304. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2305. eval $ac_var=\$ac_old_val
  2306. fi
  2307. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2308. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2309. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2310. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2311. fi;;
  2312. esac
  2313. # Pass precious variables to config.status.
  2314. if test "$ac_new_set" = set; then
  2315. case $ac_new_val in
  2316. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2317. *) ac_arg=$ac_var=$ac_new_val ;;
  2318. esac
  2319. case " $ac_configure_args " in
  2320. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2321. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2322. esac
  2323. fi
  2324. done
  2325. if $ac_cache_corrupted; then
  2326. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2327. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2328. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2329. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2330. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2331. fi
  2332. ## -------------------- ##
  2333. ## Main body of script. ##
  2334. ## -------------------- ##
  2335. ac_ext=c
  2336. ac_cpp='$CPP $CPPFLAGS'
  2337. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2338. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2339. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2340. # Follow NAME_VER in global.h
  2341. am__api_version='1.11'
  2342. ac_aux_dir=
  2343. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2344. for ac_t in install-sh install.sh shtool; do
  2345. if test -f "$ac_dir/$ac_t"; then
  2346. ac_aux_dir=$ac_dir
  2347. ac_install_sh="$ac_aux_dir/$ac_t -c"
  2348. break 2
  2349. fi
  2350. done
  2351. done
  2352. if test -z "$ac_aux_dir"; then
  2353. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2354. fi
  2355. # These three variables are undocumented and unsupported,
  2356. # and are intended to be withdrawn in a future Autoconf release.
  2357. # They can cause serious problems if a builder's source tree is in a directory
  2358. # whose full name contains unusual characters.
  2359. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2360. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2361. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2362. # Find a good install program. We prefer a C program (faster),
  2363. # so one script is as good as another. But avoid the broken or
  2364. # incompatible versions:
  2365. # SysV /etc/install, /usr/sbin/install
  2366. # SunOS /usr/etc/install
  2367. # IRIX /sbin/install
  2368. # AIX /bin/install
  2369. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2370. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2371. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2372. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2373. # OS/2's system install, which has a completely different semantic
  2374. # ./install, which can be erroneously created by make from ./install.sh.
  2375. # Reject install programs that cannot install multiple files.
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2377. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2378. if test -z "$INSTALL"; then
  2379. if test "${ac_cv_path_install+set}" = set; then :
  2380. $as_echo_n "(cached) " >&6
  2381. else
  2382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2383. for as_dir in $PATH
  2384. do
  2385. IFS=$as_save_IFS
  2386. test -z "$as_dir" && as_dir=.
  2387. # Account for people who put trailing slashes in PATH elements.
  2388. case $as_dir/ in #((
  2389. ./ | .// | /[cC]/* | \
  2390. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2391. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2392. /usr/ucb/* ) ;;
  2393. *)
  2394. # OSF1 and SCO ODT 3.0 have their own names for install.
  2395. # Don't use installbsd from OSF since it installs stuff as root
  2396. # by default.
  2397. for ac_prog in ginstall scoinst install; do
  2398. for ac_exec_ext in '' $ac_executable_extensions; do
  2399. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2400. if test $ac_prog = install &&
  2401. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2402. # AIX install. It has an incompatible calling convention.
  2403. :
  2404. elif test $ac_prog = install &&
  2405. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2406. # program-specific install script used by HP pwplus--don't use.
  2407. :
  2408. else
  2409. rm -rf conftest.one conftest.two conftest.dir
  2410. echo one > conftest.one
  2411. echo two > conftest.two
  2412. mkdir conftest.dir
  2413. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2414. test -s conftest.one && test -s conftest.two &&
  2415. test -s conftest.dir/conftest.one &&
  2416. test -s conftest.dir/conftest.two
  2417. then
  2418. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2419. break 3
  2420. fi
  2421. fi
  2422. fi
  2423. done
  2424. done
  2425. ;;
  2426. esac
  2427. done
  2428. IFS=$as_save_IFS
  2429. rm -rf conftest.one conftest.two conftest.dir
  2430. fi
  2431. if test "${ac_cv_path_install+set}" = set; then
  2432. INSTALL=$ac_cv_path_install
  2433. else
  2434. # As a last resort, use the slow shell script. Don't cache a
  2435. # value for INSTALL within a source directory, because that will
  2436. # break other packages using the cache if that directory is
  2437. # removed, or if the value is a relative name.
  2438. INSTALL=$ac_install_sh
  2439. fi
  2440. fi
  2441. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2442. $as_echo "$INSTALL" >&6; }
  2443. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2444. # It thinks the first close brace ends the variable substitution.
  2445. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2446. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2447. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2449. $as_echo_n "checking whether build environment is sane... " >&6; }
  2450. # Just in case
  2451. sleep 1
  2452. echo timestamp > conftest.file
  2453. # Reject unsafe characters in $srcdir or the absolute working directory
  2454. # name. Accept space and tab only in the latter.
  2455. am_lf='
  2456. '
  2457. case `pwd` in
  2458. *[\\\"\#\$\&\'\`$am_lf]*)
  2459. as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  2460. esac
  2461. case $srcdir in
  2462. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2463. as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2464. esac
  2465. # Do `set' in a subshell so we don't clobber the current shell's
  2466. # arguments. Must try -L first in case configure is actually a
  2467. # symlink; some systems play weird games with the mod time of symlinks
  2468. # (eg FreeBSD returns the mod time of the symlink's containing
  2469. # directory).
  2470. if (
  2471. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2472. if test "$*" = "X"; then
  2473. # -L didn't work.
  2474. set X `ls -t "$srcdir/configure" conftest.file`
  2475. fi
  2476. rm -f conftest.file
  2477. if test "$*" != "X $srcdir/configure conftest.file" \
  2478. && test "$*" != "X conftest.file $srcdir/configure"; then
  2479. # If neither matched, then we have a broken ls. This can happen
  2480. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2481. # broken ls alias from the environment. This has actually
  2482. # happened. Such a system could not be considered "sane".
  2483. as_fn_error "ls -t appears to fail. Make sure there is not a broken
  2484. alias in your environment" "$LINENO" 5
  2485. fi
  2486. test "$2" = conftest.file
  2487. )
  2488. then
  2489. # Ok.
  2490. :
  2491. else
  2492. as_fn_error "newly created file is older than distributed files!
  2493. Check your system clock" "$LINENO" 5
  2494. fi
  2495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2496. $as_echo "yes" >&6; }
  2497. test "$program_prefix" != NONE &&
  2498. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2499. # Use a double $ so make ignores it.
  2500. test "$program_suffix" != NONE &&
  2501. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2502. # Double any \ or $.
  2503. # By default was `s,x,x', remove it if useless.
  2504. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2505. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2506. # expand $ac_aux_dir to an absolute path
  2507. am_aux_dir=`cd $ac_aux_dir && pwd`
  2508. if test x"${MISSING+set}" != xset; then
  2509. case $am_aux_dir in
  2510. *\ * | *\ *)
  2511. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2512. *)
  2513. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2514. esac
  2515. fi
  2516. # Use eval to expand $SHELL
  2517. if eval "$MISSING --run true"; then
  2518. am_missing_run="$MISSING --run "
  2519. else
  2520. am_missing_run=
  2521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2522. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2523. fi
  2524. if test x"${install_sh}" != xset; then
  2525. case $am_aux_dir in
  2526. *\ * | *\ *)
  2527. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2528. *)
  2529. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2530. esac
  2531. fi
  2532. # Installed binaries are usually stripped using `strip' when the user
  2533. # run `make install-strip'. However `strip' might not be the right
  2534. # tool to use in cross-compilation environments, therefore Automake
  2535. # will honor the `STRIP' environment variable to overrule this program.
  2536. if test "$cross_compiling" != no; then
  2537. if test -n "$ac_tool_prefix"; then
  2538. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2539. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2541. $as_echo_n "checking for $ac_word... " >&6; }
  2542. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2543. $as_echo_n "(cached) " >&6
  2544. else
  2545. if test -n "$STRIP"; then
  2546. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2547. else
  2548. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2549. for as_dir in $PATH
  2550. do
  2551. IFS=$as_save_IFS
  2552. test -z "$as_dir" && as_dir=.
  2553. for ac_exec_ext in '' $ac_executable_extensions; do
  2554. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2555. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2556. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2557. break 2
  2558. fi
  2559. done
  2560. done
  2561. IFS=$as_save_IFS
  2562. fi
  2563. fi
  2564. STRIP=$ac_cv_prog_STRIP
  2565. if test -n "$STRIP"; then
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2567. $as_echo "$STRIP" >&6; }
  2568. else
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2570. $as_echo "no" >&6; }
  2571. fi
  2572. fi
  2573. if test -z "$ac_cv_prog_STRIP"; then
  2574. ac_ct_STRIP=$STRIP
  2575. # Extract the first word of "strip", so it can be a program name with args.
  2576. set dummy strip; ac_word=$2
  2577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2578. $as_echo_n "checking for $ac_word... " >&6; }
  2579. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2580. $as_echo_n "(cached) " >&6
  2581. else
  2582. if test -n "$ac_ct_STRIP"; then
  2583. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2584. else
  2585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2586. for as_dir in $PATH
  2587. do
  2588. IFS=$as_save_IFS
  2589. test -z "$as_dir" && as_dir=.
  2590. for ac_exec_ext in '' $ac_executable_extensions; do
  2591. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2592. ac_cv_prog_ac_ct_STRIP="strip"
  2593. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2594. break 2
  2595. fi
  2596. done
  2597. done
  2598. IFS=$as_save_IFS
  2599. fi
  2600. fi
  2601. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2602. if test -n "$ac_ct_STRIP"; then
  2603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2604. $as_echo "$ac_ct_STRIP" >&6; }
  2605. else
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2607. $as_echo "no" >&6; }
  2608. fi
  2609. if test "x$ac_ct_STRIP" = x; then
  2610. STRIP=":"
  2611. else
  2612. case $cross_compiling:$ac_tool_warned in
  2613. yes:)
  2614. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2615. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2616. ac_tool_warned=yes ;;
  2617. esac
  2618. STRIP=$ac_ct_STRIP
  2619. fi
  2620. else
  2621. STRIP="$ac_cv_prog_STRIP"
  2622. fi
  2623. fi
  2624. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2626. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2627. if test -z "$MKDIR_P"; then
  2628. if test "${ac_cv_path_mkdir+set}" = set; then :
  2629. $as_echo_n "(cached) " >&6
  2630. else
  2631. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2632. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2633. do
  2634. IFS=$as_save_IFS
  2635. test -z "$as_dir" && as_dir=.
  2636. for ac_prog in mkdir gmkdir; do
  2637. for ac_exec_ext in '' $ac_executable_extensions; do
  2638. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2639. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2640. 'mkdir (GNU coreutils) '* | \
  2641. 'mkdir (coreutils) '* | \
  2642. 'mkdir (fileutils) '4.1*)
  2643. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2644. break 3;;
  2645. esac
  2646. done
  2647. done
  2648. done
  2649. IFS=$as_save_IFS
  2650. fi
  2651. if test "${ac_cv_path_mkdir+set}" = set; then
  2652. MKDIR_P="$ac_cv_path_mkdir -p"
  2653. else
  2654. # As a last resort, use the slow shell script. Don't cache a
  2655. # value for MKDIR_P within a source directory, because that will
  2656. # break other packages using the cache if that directory is
  2657. # removed, or if the value is a relative name.
  2658. test -d ./--version && rmdir ./--version
  2659. MKDIR_P="$ac_install_sh -d"
  2660. fi
  2661. fi
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2663. $as_echo "$MKDIR_P" >&6; }
  2664. mkdir_p="$MKDIR_P"
  2665. case $mkdir_p in
  2666. [\\/$]* | ?:[\\/]*) ;;
  2667. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2668. esac
  2669. for ac_prog in gawk mawk nawk awk
  2670. do
  2671. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2672. set dummy $ac_prog; ac_word=$2
  2673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2674. $as_echo_n "checking for $ac_word... " >&6; }
  2675. if test "${ac_cv_prog_AWK+set}" = set; then :
  2676. $as_echo_n "(cached) " >&6
  2677. else
  2678. if test -n "$AWK"; then
  2679. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2680. else
  2681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2682. for as_dir in $PATH
  2683. do
  2684. IFS=$as_save_IFS
  2685. test -z "$as_dir" && as_dir=.
  2686. for ac_exec_ext in '' $ac_executable_extensions; do
  2687. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2688. ac_cv_prog_AWK="$ac_prog"
  2689. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2690. break 2
  2691. fi
  2692. done
  2693. done
  2694. IFS=$as_save_IFS
  2695. fi
  2696. fi
  2697. AWK=$ac_cv_prog_AWK
  2698. if test -n "$AWK"; then
  2699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2700. $as_echo "$AWK" >&6; }
  2701. else
  2702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2703. $as_echo "no" >&6; }
  2704. fi
  2705. test -n "$AWK" && break
  2706. done
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2708. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2709. set x ${MAKE-make}
  2710. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2711. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  2712. $as_echo_n "(cached) " >&6
  2713. else
  2714. cat >conftest.make <<\_ACEOF
  2715. SHELL = /bin/sh
  2716. all:
  2717. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2718. _ACEOF
  2719. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2720. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2721. *@@@%%%=?*=@@@%%%*)
  2722. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2723. *)
  2724. eval ac_cv_prog_make_${ac_make}_set=no;;
  2725. esac
  2726. rm -f conftest.make
  2727. fi
  2728. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2730. $as_echo "yes" >&6; }
  2731. SET_MAKE=
  2732. else
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2734. $as_echo "no" >&6; }
  2735. SET_MAKE="MAKE=${MAKE-make}"
  2736. fi
  2737. rm -rf .tst 2>/dev/null
  2738. mkdir .tst 2>/dev/null
  2739. if test -d .tst; then
  2740. am__leading_dot=.
  2741. else
  2742. am__leading_dot=_
  2743. fi
  2744. rmdir .tst 2>/dev/null
  2745. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2746. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2747. # is not polluted with repeated "-I."
  2748. am__isrc=' -I$(srcdir)'
  2749. # test to see if srcdir already configured
  2750. if test -f $srcdir/config.status; then
  2751. as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2752. fi
  2753. fi
  2754. # test whether we have cygpath
  2755. if test -z "$CYGPATH_W"; then
  2756. if (cygpath --version) >/dev/null 2>/dev/null; then
  2757. CYGPATH_W='cygpath -w'
  2758. else
  2759. CYGPATH_W=echo
  2760. fi
  2761. fi
  2762. # Define the identity of the package.
  2763. PACKAGE='vcmi'
  2764. VERSION='0.75'
  2765. cat >>confdefs.h <<_ACEOF
  2766. #define PACKAGE "$PACKAGE"
  2767. _ACEOF
  2768. cat >>confdefs.h <<_ACEOF
  2769. #define VERSION "$VERSION"
  2770. _ACEOF
  2771. # Some tools Automake needs.
  2772. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2773. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2774. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2775. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2776. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2777. # We need awk for the "check" target. The system "awk" is bad on
  2778. # some platforms.
  2779. # Always define AMTAR for backward compatibility.
  2780. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2781. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2782. # Checks for build toolchain
  2783. ac_ext=cpp
  2784. ac_cpp='$CXXCPP $CPPFLAGS'
  2785. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2786. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2787. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2788. ac_ext=cpp
  2789. ac_cpp='$CXXCPP $CPPFLAGS'
  2790. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2791. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2792. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2793. if test -z "$CXX"; then
  2794. if test -n "$CCC"; then
  2795. CXX=$CCC
  2796. else
  2797. if test -n "$ac_tool_prefix"; then
  2798. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2799. do
  2800. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2801. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2803. $as_echo_n "checking for $ac_word... " >&6; }
  2804. if test "${ac_cv_prog_CXX+set}" = set; then :
  2805. $as_echo_n "(cached) " >&6
  2806. else
  2807. if test -n "$CXX"; then
  2808. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2809. else
  2810. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2811. for as_dir in $PATH
  2812. do
  2813. IFS=$as_save_IFS
  2814. test -z "$as_dir" && as_dir=.
  2815. for ac_exec_ext in '' $ac_executable_extensions; do
  2816. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2817. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2818. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2819. break 2
  2820. fi
  2821. done
  2822. done
  2823. IFS=$as_save_IFS
  2824. fi
  2825. fi
  2826. CXX=$ac_cv_prog_CXX
  2827. if test -n "$CXX"; then
  2828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2829. $as_echo "$CXX" >&6; }
  2830. else
  2831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2832. $as_echo "no" >&6; }
  2833. fi
  2834. test -n "$CXX" && break
  2835. done
  2836. fi
  2837. if test -z "$CXX"; then
  2838. ac_ct_CXX=$CXX
  2839. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2840. do
  2841. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2842. set dummy $ac_prog; ac_word=$2
  2843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2844. $as_echo_n "checking for $ac_word... " >&6; }
  2845. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  2846. $as_echo_n "(cached) " >&6
  2847. else
  2848. if test -n "$ac_ct_CXX"; then
  2849. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2850. else
  2851. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2852. for as_dir in $PATH
  2853. do
  2854. IFS=$as_save_IFS
  2855. test -z "$as_dir" && as_dir=.
  2856. for ac_exec_ext in '' $ac_executable_extensions; do
  2857. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2858. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2859. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2860. break 2
  2861. fi
  2862. done
  2863. done
  2864. IFS=$as_save_IFS
  2865. fi
  2866. fi
  2867. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2868. if test -n "$ac_ct_CXX"; then
  2869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2870. $as_echo "$ac_ct_CXX" >&6; }
  2871. else
  2872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2873. $as_echo "no" >&6; }
  2874. fi
  2875. test -n "$ac_ct_CXX" && break
  2876. done
  2877. if test "x$ac_ct_CXX" = x; then
  2878. CXX="g++"
  2879. else
  2880. case $cross_compiling:$ac_tool_warned in
  2881. yes:)
  2882. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2883. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2884. ac_tool_warned=yes ;;
  2885. esac
  2886. CXX=$ac_ct_CXX
  2887. fi
  2888. fi
  2889. fi
  2890. fi
  2891. # Provide some information about the compiler.
  2892. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2893. set X $ac_compile
  2894. ac_compiler=$2
  2895. for ac_option in --version -v -V -qversion; do
  2896. { { ac_try="$ac_compiler $ac_option >&5"
  2897. case "(($ac_try" in
  2898. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2899. *) ac_try_echo=$ac_try;;
  2900. esac
  2901. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2902. $as_echo "$ac_try_echo"; } >&5
  2903. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2904. ac_status=$?
  2905. if test -s conftest.err; then
  2906. sed '10a\
  2907. ... rest of stderr output deleted ...
  2908. 10q' conftest.err >conftest.er1
  2909. cat conftest.er1 >&5
  2910. rm -f conftest.er1 conftest.err
  2911. fi
  2912. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2913. test $ac_status = 0; }
  2914. done
  2915. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2916. /* end confdefs.h. */
  2917. #include <stdio.h>
  2918. int
  2919. main ()
  2920. {
  2921. FILE *f = fopen ("conftest.out", "w");
  2922. return ferror (f) || fclose (f) != 0;
  2923. ;
  2924. return 0;
  2925. }
  2926. _ACEOF
  2927. ac_clean_files_save=$ac_clean_files
  2928. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  2929. # Try to create an executable without -o first, disregard a.out.
  2930. # It will help us diagnose broken compilers, and finding out an intuition
  2931. # of exeext.
  2932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2933. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2934. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2935. # The possible output files:
  2936. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2937. ac_rmfiles=
  2938. for ac_file in $ac_files
  2939. do
  2940. case $ac_file in
  2941. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2942. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2943. esac
  2944. done
  2945. rm -f $ac_rmfiles
  2946. if { { ac_try="$ac_link_default"
  2947. case "(($ac_try" in
  2948. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2949. *) ac_try_echo=$ac_try;;
  2950. esac
  2951. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2952. $as_echo "$ac_try_echo"; } >&5
  2953. (eval "$ac_link_default") 2>&5
  2954. ac_status=$?
  2955. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2956. test $ac_status = 0; }; then :
  2957. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2958. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2959. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2960. # so that the user can short-circuit this test for compilers unknown to
  2961. # Autoconf.
  2962. for ac_file in $ac_files ''
  2963. do
  2964. test -f "$ac_file" || continue
  2965. case $ac_file in
  2966. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2967. ;;
  2968. [ab].out )
  2969. # We found the default executable, but exeext='' is most
  2970. # certainly right.
  2971. break;;
  2972. *.* )
  2973. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2974. then :; else
  2975. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2976. fi
  2977. # We set ac_cv_exeext here because the later test for it is not
  2978. # safe: cross compilers may not add the suffix if given an `-o'
  2979. # argument, so we may need to know it at that point already.
  2980. # Even if this section looks crufty: it has the advantage of
  2981. # actually working.
  2982. break;;
  2983. * )
  2984. break;;
  2985. esac
  2986. done
  2987. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2988. else
  2989. ac_file=''
  2990. fi
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2992. $as_echo "$ac_file" >&6; }
  2993. if test -z "$ac_file"; then :
  2994. $as_echo "$as_me: failed program was:" >&5
  2995. sed 's/^/| /' conftest.$ac_ext >&5
  2996. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2997. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2998. { as_fn_set_status 77
  2999. as_fn_error "C++ compiler cannot create executables
  3000. See \`config.log' for more details." "$LINENO" 5; }; }
  3001. fi
  3002. ac_exeext=$ac_cv_exeext
  3003. # Check that the compiler produces executables we can run. If not, either
  3004. # the compiler is broken, or we cross compile.
  3005. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  3006. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  3007. # If not cross compiling, check that we can run a simple program.
  3008. if test "$cross_compiling" != yes; then
  3009. if { ac_try='./$ac_file'
  3010. { { case "(($ac_try" in
  3011. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3012. *) ac_try_echo=$ac_try;;
  3013. esac
  3014. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3015. $as_echo "$ac_try_echo"; } >&5
  3016. (eval "$ac_try") 2>&5
  3017. ac_status=$?
  3018. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3019. test $ac_status = 0; }; }; then
  3020. cross_compiling=no
  3021. else
  3022. if test "$cross_compiling" = maybe; then
  3023. cross_compiling=yes
  3024. else
  3025. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3026. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3027. as_fn_error "cannot run C++ compiled programs.
  3028. If you meant to cross compile, use \`--host'.
  3029. See \`config.log' for more details." "$LINENO" 5; }
  3030. fi
  3031. fi
  3032. fi
  3033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3034. $as_echo "yes" >&6; }
  3035. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  3036. ac_clean_files=$ac_clean_files_save
  3037. # Check that the compiler produces executables we can run. If not, either
  3038. # the compiler is broken, or we cross compile.
  3039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3040. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3042. $as_echo "$cross_compiling" >&6; }
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3044. $as_echo_n "checking for suffix of executables... " >&6; }
  3045. if { { ac_try="$ac_link"
  3046. case "(($ac_try" in
  3047. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3048. *) ac_try_echo=$ac_try;;
  3049. esac
  3050. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3051. $as_echo "$ac_try_echo"; } >&5
  3052. (eval "$ac_link") 2>&5
  3053. ac_status=$?
  3054. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3055. test $ac_status = 0; }; then :
  3056. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3057. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3058. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3059. # `rm'.
  3060. for ac_file in conftest.exe conftest conftest.*; do
  3061. test -f "$ac_file" || continue
  3062. case $ac_file in
  3063. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3064. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3065. break;;
  3066. * ) break;;
  3067. esac
  3068. done
  3069. else
  3070. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3071. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3072. as_fn_error "cannot compute suffix of executables: cannot compile and link
  3073. See \`config.log' for more details." "$LINENO" 5; }
  3074. fi
  3075. rm -f conftest$ac_cv_exeext
  3076. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3077. $as_echo "$ac_cv_exeext" >&6; }
  3078. rm -f conftest.$ac_ext
  3079. EXEEXT=$ac_cv_exeext
  3080. ac_exeext=$EXEEXT
  3081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3082. $as_echo_n "checking for suffix of object files... " >&6; }
  3083. if test "${ac_cv_objext+set}" = set; then :
  3084. $as_echo_n "(cached) " >&6
  3085. else
  3086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3087. /* end confdefs.h. */
  3088. int
  3089. main ()
  3090. {
  3091. ;
  3092. return 0;
  3093. }
  3094. _ACEOF
  3095. rm -f conftest.o conftest.obj
  3096. if { { ac_try="$ac_compile"
  3097. case "(($ac_try" in
  3098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3099. *) ac_try_echo=$ac_try;;
  3100. esac
  3101. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3102. $as_echo "$ac_try_echo"; } >&5
  3103. (eval "$ac_compile") 2>&5
  3104. ac_status=$?
  3105. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3106. test $ac_status = 0; }; then :
  3107. for ac_file in conftest.o conftest.obj conftest.*; do
  3108. test -f "$ac_file" || continue;
  3109. case $ac_file in
  3110. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3111. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3112. break;;
  3113. esac
  3114. done
  3115. else
  3116. $as_echo "$as_me: failed program was:" >&5
  3117. sed 's/^/| /' conftest.$ac_ext >&5
  3118. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3119. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3120. as_fn_error "cannot compute suffix of object files: cannot compile
  3121. See \`config.log' for more details." "$LINENO" 5; }
  3122. fi
  3123. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3124. fi
  3125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3126. $as_echo "$ac_cv_objext" >&6; }
  3127. OBJEXT=$ac_cv_objext
  3128. ac_objext=$OBJEXT
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3130. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3131. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3132. $as_echo_n "(cached) " >&6
  3133. else
  3134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3135. /* end confdefs.h. */
  3136. int
  3137. main ()
  3138. {
  3139. #ifndef __GNUC__
  3140. choke me
  3141. #endif
  3142. ;
  3143. return 0;
  3144. }
  3145. _ACEOF
  3146. if ac_fn_cxx_try_compile "$LINENO"; then :
  3147. ac_compiler_gnu=yes
  3148. else
  3149. ac_compiler_gnu=no
  3150. fi
  3151. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3152. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3153. fi
  3154. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3155. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3156. if test $ac_compiler_gnu = yes; then
  3157. GXX=yes
  3158. else
  3159. GXX=
  3160. fi
  3161. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3162. ac_save_CXXFLAGS=$CXXFLAGS
  3163. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3164. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3165. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3166. $as_echo_n "(cached) " >&6
  3167. else
  3168. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3169. ac_cxx_werror_flag=yes
  3170. ac_cv_prog_cxx_g=no
  3171. CXXFLAGS="-g"
  3172. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3173. /* end confdefs.h. */
  3174. int
  3175. main ()
  3176. {
  3177. ;
  3178. return 0;
  3179. }
  3180. _ACEOF
  3181. if ac_fn_cxx_try_compile "$LINENO"; then :
  3182. ac_cv_prog_cxx_g=yes
  3183. else
  3184. CXXFLAGS=""
  3185. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3186. /* end confdefs.h. */
  3187. int
  3188. main ()
  3189. {
  3190. ;
  3191. return 0;
  3192. }
  3193. _ACEOF
  3194. if ac_fn_cxx_try_compile "$LINENO"; then :
  3195. else
  3196. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3197. CXXFLAGS="-g"
  3198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3199. /* end confdefs.h. */
  3200. int
  3201. main ()
  3202. {
  3203. ;
  3204. return 0;
  3205. }
  3206. _ACEOF
  3207. if ac_fn_cxx_try_compile "$LINENO"; then :
  3208. ac_cv_prog_cxx_g=yes
  3209. fi
  3210. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3211. fi
  3212. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3213. fi
  3214. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3215. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3216. fi
  3217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3218. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3219. if test "$ac_test_CXXFLAGS" = set; then
  3220. CXXFLAGS=$ac_save_CXXFLAGS
  3221. elif test $ac_cv_prog_cxx_g = yes; then
  3222. if test "$GXX" = yes; then
  3223. CXXFLAGS="-g -O2"
  3224. else
  3225. CXXFLAGS="-g"
  3226. fi
  3227. else
  3228. if test "$GXX" = yes; then
  3229. CXXFLAGS="-O2"
  3230. else
  3231. CXXFLAGS=
  3232. fi
  3233. fi
  3234. ac_ext=cpp
  3235. ac_cpp='$CXXCPP $CPPFLAGS'
  3236. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3237. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3238. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3239. DEPDIR="${am__leading_dot}deps"
  3240. ac_config_commands="$ac_config_commands depfiles"
  3241. am_make=${MAKE-make}
  3242. cat > confinc << 'END'
  3243. am__doit:
  3244. @echo this is the am__doit target
  3245. .PHONY: am__doit
  3246. END
  3247. # If we don't find an include directive, just comment out the code.
  3248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3249. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3250. am__include="#"
  3251. am__quote=
  3252. _am_result=none
  3253. # First try GNU make style include.
  3254. echo "include confinc" > confmf
  3255. # Ignore all kinds of additional output from `make'.
  3256. case `$am_make -s -f confmf 2> /dev/null` in #(
  3257. *the\ am__doit\ target*)
  3258. am__include=include
  3259. am__quote=
  3260. _am_result=GNU
  3261. ;;
  3262. esac
  3263. # Now try BSD make style include.
  3264. if test "$am__include" = "#"; then
  3265. echo '.include "confinc"' > confmf
  3266. case `$am_make -s -f confmf 2> /dev/null` in #(
  3267. *the\ am__doit\ target*)
  3268. am__include=.include
  3269. am__quote="\""
  3270. _am_result=BSD
  3271. ;;
  3272. esac
  3273. fi
  3274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3275. $as_echo "$_am_result" >&6; }
  3276. rm -f confinc confmf
  3277. # Check whether --enable-dependency-tracking was given.
  3278. if test "${enable_dependency_tracking+set}" = set; then :
  3279. enableval=$enable_dependency_tracking;
  3280. fi
  3281. if test "x$enable_dependency_tracking" != xno; then
  3282. am_depcomp="$ac_aux_dir/depcomp"
  3283. AMDEPBACKSLASH='\'
  3284. fi
  3285. if test "x$enable_dependency_tracking" != xno; then
  3286. AMDEP_TRUE=
  3287. AMDEP_FALSE='#'
  3288. else
  3289. AMDEP_TRUE='#'
  3290. AMDEP_FALSE=
  3291. fi
  3292. depcc="$CXX" am_compiler_list=
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3294. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3295. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3296. $as_echo_n "(cached) " >&6
  3297. else
  3298. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3299. # We make a subdir and do the tests there. Otherwise we can end up
  3300. # making bogus files that we don't know about and never remove. For
  3301. # instance it was reported that on HP-UX the gcc test will end up
  3302. # making a dummy file named `D' -- because `-MD' means `put the output
  3303. # in D'.
  3304. mkdir conftest.dir
  3305. # Copy depcomp to subdir because otherwise we won't find it if we're
  3306. # using a relative directory.
  3307. cp "$am_depcomp" conftest.dir
  3308. cd conftest.dir
  3309. # We will build objects and dependencies in a subdirectory because
  3310. # it helps to detect inapplicable dependency modes. For instance
  3311. # both Tru64's cc and ICC support -MD to output dependencies as a
  3312. # side effect of compilation, but ICC will put the dependencies in
  3313. # the current directory while Tru64 will put them in the object
  3314. # directory.
  3315. mkdir sub
  3316. am_cv_CXX_dependencies_compiler_type=none
  3317. if test "$am_compiler_list" = ""; then
  3318. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3319. fi
  3320. am__universal=false
  3321. case " $depcc " in #(
  3322. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3323. esac
  3324. for depmode in $am_compiler_list; do
  3325. # Setup a source with many dependencies, because some compilers
  3326. # like to wrap large dependency lists on column 80 (with \), and
  3327. # we should not choose a depcomp mode which is confused by this.
  3328. #
  3329. # We need to recreate these files for each test, as the compiler may
  3330. # overwrite some of them when testing with obscure command lines.
  3331. # This happens at least with the AIX C compiler.
  3332. : > sub/conftest.c
  3333. for i in 1 2 3 4 5 6; do
  3334. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3335. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3336. # Solaris 8's {/usr,}/bin/sh.
  3337. touch sub/conftst$i.h
  3338. done
  3339. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3340. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3341. # mode. It turns out that the SunPro C++ compiler does not properly
  3342. # handle `-M -o', and we need to detect this. Also, some Intel
  3343. # versions had trouble with output in subdirs
  3344. am__obj=sub/conftest.${OBJEXT-o}
  3345. am__minus_obj="-o $am__obj"
  3346. case $depmode in
  3347. gcc)
  3348. # This depmode causes a compiler race in universal mode.
  3349. test "$am__universal" = false || continue
  3350. ;;
  3351. nosideeffect)
  3352. # after this tag, mechanisms are not by side-effect, so they'll
  3353. # only be used when explicitly requested
  3354. if test "x$enable_dependency_tracking" = xyes; then
  3355. continue
  3356. else
  3357. break
  3358. fi
  3359. ;;
  3360. msvisualcpp | msvcmsys)
  3361. # This compiler won't grok `-c -o', but also, the minuso test has
  3362. # not run yet. These depmodes are late enough in the game, and
  3363. # so weak that their functioning should not be impacted.
  3364. am__obj=conftest.${OBJEXT-o}
  3365. am__minus_obj=
  3366. ;;
  3367. none) break ;;
  3368. esac
  3369. if depmode=$depmode \
  3370. source=sub/conftest.c object=$am__obj \
  3371. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3372. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3373. >/dev/null 2>conftest.err &&
  3374. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3375. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3376. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3377. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3378. # icc doesn't choke on unknown options, it will just issue warnings
  3379. # or remarks (even with -Werror). So we grep stderr for any message
  3380. # that says an option was ignored or not supported.
  3381. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3382. # icc: Command line warning: ignoring option '-M'; no argument required
  3383. # The diagnosis changed in icc 8.0:
  3384. # icc: Command line remark: option '-MP' not supported
  3385. if (grep 'ignoring option' conftest.err ||
  3386. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3387. am_cv_CXX_dependencies_compiler_type=$depmode
  3388. break
  3389. fi
  3390. fi
  3391. done
  3392. cd ..
  3393. rm -rf conftest.dir
  3394. else
  3395. am_cv_CXX_dependencies_compiler_type=none
  3396. fi
  3397. fi
  3398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3399. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3400. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3401. if
  3402. test "x$enable_dependency_tracking" != xno \
  3403. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3404. am__fastdepCXX_TRUE=
  3405. am__fastdepCXX_FALSE='#'
  3406. else
  3407. am__fastdepCXX_TRUE='#'
  3408. am__fastdepCXX_FALSE=
  3409. fi
  3410. # Check whether --enable-shared was given.
  3411. if test "${enable_shared+set}" = set; then :
  3412. enableval=$enable_shared; p=${PACKAGE-default}
  3413. case $enableval in
  3414. yes) enable_shared=yes ;;
  3415. no) enable_shared=no ;;
  3416. *)
  3417. enable_shared=no
  3418. # Look at the argument we got. We use all the common list separators.
  3419. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3420. for pkg in $enableval; do
  3421. IFS="$lt_save_ifs"
  3422. if test "X$pkg" = "X$p"; then
  3423. enable_shared=yes
  3424. fi
  3425. done
  3426. IFS="$lt_save_ifs"
  3427. ;;
  3428. esac
  3429. else
  3430. enable_shared=yes
  3431. fi
  3432. # Check whether --enable-static was given.
  3433. if test "${enable_static+set}" = set; then :
  3434. enableval=$enable_static; p=${PACKAGE-default}
  3435. case $enableval in
  3436. yes) enable_static=yes ;;
  3437. no) enable_static=no ;;
  3438. *)
  3439. enable_static=no
  3440. # Look at the argument we got. We use all the common list separators.
  3441. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3442. for pkg in $enableval; do
  3443. IFS="$lt_save_ifs"
  3444. if test "X$pkg" = "X$p"; then
  3445. enable_static=yes
  3446. fi
  3447. done
  3448. IFS="$lt_save_ifs"
  3449. ;;
  3450. esac
  3451. else
  3452. enable_static=no
  3453. fi
  3454. case `pwd` in
  3455. *\ * | *\ *)
  3456. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3457. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3458. esac
  3459. macro_version='2.2.6'
  3460. macro_revision='1.3012'
  3461. ltmain="$ac_aux_dir/ltmain.sh"
  3462. # Make sure we can run config.sub.
  3463. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3464. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3466. $as_echo_n "checking build system type... " >&6; }
  3467. if test "${ac_cv_build+set}" = set; then :
  3468. $as_echo_n "(cached) " >&6
  3469. else
  3470. ac_build_alias=$build_alias
  3471. test "x$ac_build_alias" = x &&
  3472. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3473. test "x$ac_build_alias" = x &&
  3474. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  3475. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3476. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3477. fi
  3478. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3479. $as_echo "$ac_cv_build" >&6; }
  3480. case $ac_cv_build in
  3481. *-*-*) ;;
  3482. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  3483. esac
  3484. build=$ac_cv_build
  3485. ac_save_IFS=$IFS; IFS='-'
  3486. set x $ac_cv_build
  3487. shift
  3488. build_cpu=$1
  3489. build_vendor=$2
  3490. shift; shift
  3491. # Remember, the first character of IFS is used to create $*,
  3492. # except with old shells:
  3493. build_os=$*
  3494. IFS=$ac_save_IFS
  3495. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3497. $as_echo_n "checking host system type... " >&6; }
  3498. if test "${ac_cv_host+set}" = set; then :
  3499. $as_echo_n "(cached) " >&6
  3500. else
  3501. if test "x$host_alias" = x; then
  3502. ac_cv_host=$ac_cv_build
  3503. else
  3504. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3505. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3506. fi
  3507. fi
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3509. $as_echo "$ac_cv_host" >&6; }
  3510. case $ac_cv_host in
  3511. *-*-*) ;;
  3512. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  3513. esac
  3514. host=$ac_cv_host
  3515. ac_save_IFS=$IFS; IFS='-'
  3516. set x $ac_cv_host
  3517. shift
  3518. host_cpu=$1
  3519. host_vendor=$2
  3520. shift; shift
  3521. # Remember, the first character of IFS is used to create $*,
  3522. # except with old shells:
  3523. host_os=$*
  3524. IFS=$ac_save_IFS
  3525. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3526. ac_ext=c
  3527. ac_cpp='$CPP $CPPFLAGS'
  3528. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3529. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3530. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3531. if test -n "$ac_tool_prefix"; then
  3532. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3533. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3535. $as_echo_n "checking for $ac_word... " >&6; }
  3536. if test "${ac_cv_prog_CC+set}" = set; then :
  3537. $as_echo_n "(cached) " >&6
  3538. else
  3539. if test -n "$CC"; then
  3540. ac_cv_prog_CC="$CC" # Let the user override the test.
  3541. else
  3542. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3543. for as_dir in $PATH
  3544. do
  3545. IFS=$as_save_IFS
  3546. test -z "$as_dir" && as_dir=.
  3547. for ac_exec_ext in '' $ac_executable_extensions; do
  3548. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3549. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3550. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3551. break 2
  3552. fi
  3553. done
  3554. done
  3555. IFS=$as_save_IFS
  3556. fi
  3557. fi
  3558. CC=$ac_cv_prog_CC
  3559. if test -n "$CC"; then
  3560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3561. $as_echo "$CC" >&6; }
  3562. else
  3563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3564. $as_echo "no" >&6; }
  3565. fi
  3566. fi
  3567. if test -z "$ac_cv_prog_CC"; then
  3568. ac_ct_CC=$CC
  3569. # Extract the first word of "gcc", so it can be a program name with args.
  3570. set dummy gcc; ac_word=$2
  3571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3572. $as_echo_n "checking for $ac_word... " >&6; }
  3573. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3574. $as_echo_n "(cached) " >&6
  3575. else
  3576. if test -n "$ac_ct_CC"; then
  3577. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3578. else
  3579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3580. for as_dir in $PATH
  3581. do
  3582. IFS=$as_save_IFS
  3583. test -z "$as_dir" && as_dir=.
  3584. for ac_exec_ext in '' $ac_executable_extensions; do
  3585. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3586. ac_cv_prog_ac_ct_CC="gcc"
  3587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3588. break 2
  3589. fi
  3590. done
  3591. done
  3592. IFS=$as_save_IFS
  3593. fi
  3594. fi
  3595. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3596. if test -n "$ac_ct_CC"; then
  3597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3598. $as_echo "$ac_ct_CC" >&6; }
  3599. else
  3600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3601. $as_echo "no" >&6; }
  3602. fi
  3603. if test "x$ac_ct_CC" = x; then
  3604. CC=""
  3605. else
  3606. case $cross_compiling:$ac_tool_warned in
  3607. yes:)
  3608. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3609. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3610. ac_tool_warned=yes ;;
  3611. esac
  3612. CC=$ac_ct_CC
  3613. fi
  3614. else
  3615. CC="$ac_cv_prog_CC"
  3616. fi
  3617. if test -z "$CC"; then
  3618. if test -n "$ac_tool_prefix"; then
  3619. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3620. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3622. $as_echo_n "checking for $ac_word... " >&6; }
  3623. if test "${ac_cv_prog_CC+set}" = set; then :
  3624. $as_echo_n "(cached) " >&6
  3625. else
  3626. if test -n "$CC"; then
  3627. ac_cv_prog_CC="$CC" # Let the user override the test.
  3628. else
  3629. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3630. for as_dir in $PATH
  3631. do
  3632. IFS=$as_save_IFS
  3633. test -z "$as_dir" && as_dir=.
  3634. for ac_exec_ext in '' $ac_executable_extensions; do
  3635. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3636. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3637. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3638. break 2
  3639. fi
  3640. done
  3641. done
  3642. IFS=$as_save_IFS
  3643. fi
  3644. fi
  3645. CC=$ac_cv_prog_CC
  3646. if test -n "$CC"; then
  3647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3648. $as_echo "$CC" >&6; }
  3649. else
  3650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3651. $as_echo "no" >&6; }
  3652. fi
  3653. fi
  3654. fi
  3655. if test -z "$CC"; then
  3656. # Extract the first word of "cc", so it can be a program name with args.
  3657. set dummy cc; ac_word=$2
  3658. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3659. $as_echo_n "checking for $ac_word... " >&6; }
  3660. if test "${ac_cv_prog_CC+set}" = set; then :
  3661. $as_echo_n "(cached) " >&6
  3662. else
  3663. if test -n "$CC"; then
  3664. ac_cv_prog_CC="$CC" # Let the user override the test.
  3665. else
  3666. ac_prog_rejected=no
  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. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3675. ac_prog_rejected=yes
  3676. continue
  3677. fi
  3678. ac_cv_prog_CC="cc"
  3679. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3680. break 2
  3681. fi
  3682. done
  3683. done
  3684. IFS=$as_save_IFS
  3685. if test $ac_prog_rejected = yes; then
  3686. # We found a bogon in the path, so make sure we never use it.
  3687. set dummy $ac_cv_prog_CC
  3688. shift
  3689. if test $# != 0; then
  3690. # We chose a different compiler from the bogus one.
  3691. # However, it has the same basename, so the bogon will be chosen
  3692. # first if we set CC to just the basename; use the full file name.
  3693. shift
  3694. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3695. fi
  3696. fi
  3697. fi
  3698. fi
  3699. CC=$ac_cv_prog_CC
  3700. if test -n "$CC"; then
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3702. $as_echo "$CC" >&6; }
  3703. else
  3704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3705. $as_echo "no" >&6; }
  3706. fi
  3707. fi
  3708. if test -z "$CC"; then
  3709. if test -n "$ac_tool_prefix"; then
  3710. for ac_prog in cl.exe
  3711. do
  3712. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3713. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3714. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3715. $as_echo_n "checking for $ac_word... " >&6; }
  3716. if test "${ac_cv_prog_CC+set}" = set; then :
  3717. $as_echo_n "(cached) " >&6
  3718. else
  3719. if test -n "$CC"; then
  3720. ac_cv_prog_CC="$CC" # Let the user override the test.
  3721. else
  3722. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3723. for as_dir in $PATH
  3724. do
  3725. IFS=$as_save_IFS
  3726. test -z "$as_dir" && as_dir=.
  3727. for ac_exec_ext in '' $ac_executable_extensions; do
  3728. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3729. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3730. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3731. break 2
  3732. fi
  3733. done
  3734. done
  3735. IFS=$as_save_IFS
  3736. fi
  3737. fi
  3738. CC=$ac_cv_prog_CC
  3739. if test -n "$CC"; then
  3740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3741. $as_echo "$CC" >&6; }
  3742. else
  3743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3744. $as_echo "no" >&6; }
  3745. fi
  3746. test -n "$CC" && break
  3747. done
  3748. fi
  3749. if test -z "$CC"; then
  3750. ac_ct_CC=$CC
  3751. for ac_prog in cl.exe
  3752. do
  3753. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3754. set dummy $ac_prog; ac_word=$2
  3755. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3756. $as_echo_n "checking for $ac_word... " >&6; }
  3757. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3758. $as_echo_n "(cached) " >&6
  3759. else
  3760. if test -n "$ac_ct_CC"; then
  3761. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3762. else
  3763. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3764. for as_dir in $PATH
  3765. do
  3766. IFS=$as_save_IFS
  3767. test -z "$as_dir" && as_dir=.
  3768. for ac_exec_ext in '' $ac_executable_extensions; do
  3769. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3770. ac_cv_prog_ac_ct_CC="$ac_prog"
  3771. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3772. break 2
  3773. fi
  3774. done
  3775. done
  3776. IFS=$as_save_IFS
  3777. fi
  3778. fi
  3779. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3780. if test -n "$ac_ct_CC"; then
  3781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3782. $as_echo "$ac_ct_CC" >&6; }
  3783. else
  3784. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3785. $as_echo "no" >&6; }
  3786. fi
  3787. test -n "$ac_ct_CC" && break
  3788. done
  3789. if test "x$ac_ct_CC" = x; then
  3790. CC=""
  3791. else
  3792. case $cross_compiling:$ac_tool_warned in
  3793. yes:)
  3794. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3795. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3796. ac_tool_warned=yes ;;
  3797. esac
  3798. CC=$ac_ct_CC
  3799. fi
  3800. fi
  3801. fi
  3802. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3803. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3804. as_fn_error "no acceptable C compiler found in \$PATH
  3805. See \`config.log' for more details." "$LINENO" 5; }
  3806. # Provide some information about the compiler.
  3807. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3808. set X $ac_compile
  3809. ac_compiler=$2
  3810. for ac_option in --version -v -V -qversion; do
  3811. { { ac_try="$ac_compiler $ac_option >&5"
  3812. case "(($ac_try" in
  3813. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3814. *) ac_try_echo=$ac_try;;
  3815. esac
  3816. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3817. $as_echo "$ac_try_echo"; } >&5
  3818. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3819. ac_status=$?
  3820. if test -s conftest.err; then
  3821. sed '10a\
  3822. ... rest of stderr output deleted ...
  3823. 10q' conftest.err >conftest.er1
  3824. cat conftest.er1 >&5
  3825. rm -f conftest.er1 conftest.err
  3826. fi
  3827. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3828. test $ac_status = 0; }
  3829. done
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3831. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3832. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3833. $as_echo_n "(cached) " >&6
  3834. else
  3835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3836. /* end confdefs.h. */
  3837. int
  3838. main ()
  3839. {
  3840. #ifndef __GNUC__
  3841. choke me
  3842. #endif
  3843. ;
  3844. return 0;
  3845. }
  3846. _ACEOF
  3847. if ac_fn_c_try_compile "$LINENO"; then :
  3848. ac_compiler_gnu=yes
  3849. else
  3850. ac_compiler_gnu=no
  3851. fi
  3852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3853. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3854. fi
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3856. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3857. if test $ac_compiler_gnu = yes; then
  3858. GCC=yes
  3859. else
  3860. GCC=
  3861. fi
  3862. ac_test_CFLAGS=${CFLAGS+set}
  3863. ac_save_CFLAGS=$CFLAGS
  3864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3865. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3866. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3867. $as_echo_n "(cached) " >&6
  3868. else
  3869. ac_save_c_werror_flag=$ac_c_werror_flag
  3870. ac_c_werror_flag=yes
  3871. ac_cv_prog_cc_g=no
  3872. CFLAGS="-g"
  3873. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3874. /* end confdefs.h. */
  3875. int
  3876. main ()
  3877. {
  3878. ;
  3879. return 0;
  3880. }
  3881. _ACEOF
  3882. if ac_fn_c_try_compile "$LINENO"; then :
  3883. ac_cv_prog_cc_g=yes
  3884. else
  3885. CFLAGS=""
  3886. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3887. /* end confdefs.h. */
  3888. int
  3889. main ()
  3890. {
  3891. ;
  3892. return 0;
  3893. }
  3894. _ACEOF
  3895. if ac_fn_c_try_compile "$LINENO"; then :
  3896. else
  3897. ac_c_werror_flag=$ac_save_c_werror_flag
  3898. CFLAGS="-g"
  3899. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3900. /* end confdefs.h. */
  3901. int
  3902. main ()
  3903. {
  3904. ;
  3905. return 0;
  3906. }
  3907. _ACEOF
  3908. if ac_fn_c_try_compile "$LINENO"; then :
  3909. ac_cv_prog_cc_g=yes
  3910. fi
  3911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3912. fi
  3913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3914. fi
  3915. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3916. ac_c_werror_flag=$ac_save_c_werror_flag
  3917. fi
  3918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3919. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3920. if test "$ac_test_CFLAGS" = set; then
  3921. CFLAGS=$ac_save_CFLAGS
  3922. elif test $ac_cv_prog_cc_g = yes; then
  3923. if test "$GCC" = yes; then
  3924. CFLAGS="-g -O2"
  3925. else
  3926. CFLAGS="-g"
  3927. fi
  3928. else
  3929. if test "$GCC" = yes; then
  3930. CFLAGS="-O2"
  3931. else
  3932. CFLAGS=
  3933. fi
  3934. fi
  3935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3936. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3937. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3938. $as_echo_n "(cached) " >&6
  3939. else
  3940. ac_cv_prog_cc_c89=no
  3941. ac_save_CC=$CC
  3942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3943. /* end confdefs.h. */
  3944. #include <stdarg.h>
  3945. #include <stdio.h>
  3946. #include <sys/types.h>
  3947. #include <sys/stat.h>
  3948. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3949. struct buf { int x; };
  3950. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3951. static char *e (p, i)
  3952. char **p;
  3953. int i;
  3954. {
  3955. return p[i];
  3956. }
  3957. static char *f (char * (*g) (char **, int), char **p, ...)
  3958. {
  3959. char *s;
  3960. va_list v;
  3961. va_start (v,p);
  3962. s = g (p, va_arg (v,int));
  3963. va_end (v);
  3964. return s;
  3965. }
  3966. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3967. function prototypes and stuff, but not '\xHH' hex character constants.
  3968. These don't provoke an error unfortunately, instead are silently treated
  3969. as 'x'. The following induces an error, until -std is added to get
  3970. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3971. array size at least. It's necessary to write '\x00'==0 to get something
  3972. that's true only with -std. */
  3973. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3974. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3975. inside strings and character constants. */
  3976. #define FOO(x) 'x'
  3977. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3978. int test (int i, double x);
  3979. struct s1 {int (*f) (int a);};
  3980. struct s2 {int (*f) (double a);};
  3981. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3982. int argc;
  3983. char **argv;
  3984. int
  3985. main ()
  3986. {
  3987. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3988. ;
  3989. return 0;
  3990. }
  3991. _ACEOF
  3992. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3993. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3994. do
  3995. CC="$ac_save_CC $ac_arg"
  3996. if ac_fn_c_try_compile "$LINENO"; then :
  3997. ac_cv_prog_cc_c89=$ac_arg
  3998. fi
  3999. rm -f core conftest.err conftest.$ac_objext
  4000. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4001. done
  4002. rm -f conftest.$ac_ext
  4003. CC=$ac_save_CC
  4004. fi
  4005. # AC_CACHE_VAL
  4006. case "x$ac_cv_prog_cc_c89" in
  4007. x)
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4009. $as_echo "none needed" >&6; } ;;
  4010. xno)
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4012. $as_echo "unsupported" >&6; } ;;
  4013. *)
  4014. CC="$CC $ac_cv_prog_cc_c89"
  4015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4016. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4017. esac
  4018. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4019. fi
  4020. ac_ext=cpp
  4021. ac_cpp='$CXXCPP $CPPFLAGS'
  4022. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4023. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4024. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4025. depcc="$CC" am_compiler_list=
  4026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4027. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4028. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4029. $as_echo_n "(cached) " >&6
  4030. else
  4031. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4032. # We make a subdir and do the tests there. Otherwise we can end up
  4033. # making bogus files that we don't know about and never remove. For
  4034. # instance it was reported that on HP-UX the gcc test will end up
  4035. # making a dummy file named `D' -- because `-MD' means `put the output
  4036. # in D'.
  4037. mkdir conftest.dir
  4038. # Copy depcomp to subdir because otherwise we won't find it if we're
  4039. # using a relative directory.
  4040. cp "$am_depcomp" conftest.dir
  4041. cd conftest.dir
  4042. # We will build objects and dependencies in a subdirectory because
  4043. # it helps to detect inapplicable dependency modes. For instance
  4044. # both Tru64's cc and ICC support -MD to output dependencies as a
  4045. # side effect of compilation, but ICC will put the dependencies in
  4046. # the current directory while Tru64 will put them in the object
  4047. # directory.
  4048. mkdir sub
  4049. am_cv_CC_dependencies_compiler_type=none
  4050. if test "$am_compiler_list" = ""; then
  4051. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4052. fi
  4053. am__universal=false
  4054. case " $depcc " in #(
  4055. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4056. esac
  4057. for depmode in $am_compiler_list; do
  4058. # Setup a source with many dependencies, because some compilers
  4059. # like to wrap large dependency lists on column 80 (with \), and
  4060. # we should not choose a depcomp mode which is confused by this.
  4061. #
  4062. # We need to recreate these files for each test, as the compiler may
  4063. # overwrite some of them when testing with obscure command lines.
  4064. # This happens at least with the AIX C compiler.
  4065. : > sub/conftest.c
  4066. for i in 1 2 3 4 5 6; do
  4067. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4068. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4069. # Solaris 8's {/usr,}/bin/sh.
  4070. touch sub/conftst$i.h
  4071. done
  4072. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4073. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4074. # mode. It turns out that the SunPro C++ compiler does not properly
  4075. # handle `-M -o', and we need to detect this. Also, some Intel
  4076. # versions had trouble with output in subdirs
  4077. am__obj=sub/conftest.${OBJEXT-o}
  4078. am__minus_obj="-o $am__obj"
  4079. case $depmode in
  4080. gcc)
  4081. # This depmode causes a compiler race in universal mode.
  4082. test "$am__universal" = false || continue
  4083. ;;
  4084. nosideeffect)
  4085. # after this tag, mechanisms are not by side-effect, so they'll
  4086. # only be used when explicitly requested
  4087. if test "x$enable_dependency_tracking" = xyes; then
  4088. continue
  4089. else
  4090. break
  4091. fi
  4092. ;;
  4093. msvisualcpp | msvcmsys)
  4094. # This compiler won't grok `-c -o', but also, the minuso test has
  4095. # not run yet. These depmodes are late enough in the game, and
  4096. # so weak that their functioning should not be impacted.
  4097. am__obj=conftest.${OBJEXT-o}
  4098. am__minus_obj=
  4099. ;;
  4100. none) break ;;
  4101. esac
  4102. if depmode=$depmode \
  4103. source=sub/conftest.c object=$am__obj \
  4104. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4105. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4106. >/dev/null 2>conftest.err &&
  4107. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4108. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4109. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4110. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4111. # icc doesn't choke on unknown options, it will just issue warnings
  4112. # or remarks (even with -Werror). So we grep stderr for any message
  4113. # that says an option was ignored or not supported.
  4114. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4115. # icc: Command line warning: ignoring option '-M'; no argument required
  4116. # The diagnosis changed in icc 8.0:
  4117. # icc: Command line remark: option '-MP' not supported
  4118. if (grep 'ignoring option' conftest.err ||
  4119. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4120. am_cv_CC_dependencies_compiler_type=$depmode
  4121. break
  4122. fi
  4123. fi
  4124. done
  4125. cd ..
  4126. rm -rf conftest.dir
  4127. else
  4128. am_cv_CC_dependencies_compiler_type=none
  4129. fi
  4130. fi
  4131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4132. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4133. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4134. if
  4135. test "x$enable_dependency_tracking" != xno \
  4136. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4137. am__fastdepCC_TRUE=
  4138. am__fastdepCC_FALSE='#'
  4139. else
  4140. am__fastdepCC_TRUE='#'
  4141. am__fastdepCC_FALSE=
  4142. fi
  4143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4144. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4145. if test "${ac_cv_path_SED+set}" = set; then :
  4146. $as_echo_n "(cached) " >&6
  4147. else
  4148. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4149. for ac_i in 1 2 3 4 5 6 7; do
  4150. ac_script="$ac_script$as_nl$ac_script"
  4151. done
  4152. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4153. { ac_script=; unset ac_script;}
  4154. if test -z "$SED"; then
  4155. ac_path_SED_found=false
  4156. # Loop through the user's path and test for each of PROGNAME-LIST
  4157. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4158. for as_dir in $PATH
  4159. do
  4160. IFS=$as_save_IFS
  4161. test -z "$as_dir" && as_dir=.
  4162. for ac_prog in sed gsed; do
  4163. for ac_exec_ext in '' $ac_executable_extensions; do
  4164. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4165. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4166. # Check for GNU ac_path_SED and select it if it is found.
  4167. # Check for GNU $ac_path_SED
  4168. case `"$ac_path_SED" --version 2>&1` in
  4169. *GNU*)
  4170. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4171. *)
  4172. ac_count=0
  4173. $as_echo_n 0123456789 >"conftest.in"
  4174. while :
  4175. do
  4176. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4177. mv "conftest.tmp" "conftest.in"
  4178. cp "conftest.in" "conftest.nl"
  4179. $as_echo '' >> "conftest.nl"
  4180. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4181. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4182. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4183. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4184. # Best one so far, save it but keep looking for a better one
  4185. ac_cv_path_SED="$ac_path_SED"
  4186. ac_path_SED_max=$ac_count
  4187. fi
  4188. # 10*(2^10) chars as input seems more than enough
  4189. test $ac_count -gt 10 && break
  4190. done
  4191. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4192. esac
  4193. $ac_path_SED_found && break 3
  4194. done
  4195. done
  4196. done
  4197. IFS=$as_save_IFS
  4198. if test -z "$ac_cv_path_SED"; then
  4199. as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4200. fi
  4201. else
  4202. ac_cv_path_SED=$SED
  4203. fi
  4204. fi
  4205. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4206. $as_echo "$ac_cv_path_SED" >&6; }
  4207. SED="$ac_cv_path_SED"
  4208. rm -f conftest.sed
  4209. test -z "$SED" && SED=sed
  4210. Xsed="$SED -e 1s/^X//"
  4211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4212. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4213. if test "${ac_cv_path_GREP+set}" = set; then :
  4214. $as_echo_n "(cached) " >&6
  4215. else
  4216. if test -z "$GREP"; then
  4217. ac_path_GREP_found=false
  4218. # Loop through the user's path and test for each of PROGNAME-LIST
  4219. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4220. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4221. do
  4222. IFS=$as_save_IFS
  4223. test -z "$as_dir" && as_dir=.
  4224. for ac_prog in grep ggrep; do
  4225. for ac_exec_ext in '' $ac_executable_extensions; do
  4226. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4227. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4228. # Check for GNU ac_path_GREP and select it if it is found.
  4229. # Check for GNU $ac_path_GREP
  4230. case `"$ac_path_GREP" --version 2>&1` in
  4231. *GNU*)
  4232. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4233. *)
  4234. ac_count=0
  4235. $as_echo_n 0123456789 >"conftest.in"
  4236. while :
  4237. do
  4238. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4239. mv "conftest.tmp" "conftest.in"
  4240. cp "conftest.in" "conftest.nl"
  4241. $as_echo 'GREP' >> "conftest.nl"
  4242. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4243. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4244. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4245. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4246. # Best one so far, save it but keep looking for a better one
  4247. ac_cv_path_GREP="$ac_path_GREP"
  4248. ac_path_GREP_max=$ac_count
  4249. fi
  4250. # 10*(2^10) chars as input seems more than enough
  4251. test $ac_count -gt 10 && break
  4252. done
  4253. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4254. esac
  4255. $ac_path_GREP_found && break 3
  4256. done
  4257. done
  4258. done
  4259. IFS=$as_save_IFS
  4260. if test -z "$ac_cv_path_GREP"; then
  4261. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4262. fi
  4263. else
  4264. ac_cv_path_GREP=$GREP
  4265. fi
  4266. fi
  4267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4268. $as_echo "$ac_cv_path_GREP" >&6; }
  4269. GREP="$ac_cv_path_GREP"
  4270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4271. $as_echo_n "checking for egrep... " >&6; }
  4272. if test "${ac_cv_path_EGREP+set}" = set; then :
  4273. $as_echo_n "(cached) " >&6
  4274. else
  4275. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4276. then ac_cv_path_EGREP="$GREP -E"
  4277. else
  4278. if test -z "$EGREP"; then
  4279. ac_path_EGREP_found=false
  4280. # Loop through the user's path and test for each of PROGNAME-LIST
  4281. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4282. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4283. do
  4284. IFS=$as_save_IFS
  4285. test -z "$as_dir" && as_dir=.
  4286. for ac_prog in egrep; do
  4287. for ac_exec_ext in '' $ac_executable_extensions; do
  4288. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4289. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4290. # Check for GNU ac_path_EGREP and select it if it is found.
  4291. # Check for GNU $ac_path_EGREP
  4292. case `"$ac_path_EGREP" --version 2>&1` in
  4293. *GNU*)
  4294. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4295. *)
  4296. ac_count=0
  4297. $as_echo_n 0123456789 >"conftest.in"
  4298. while :
  4299. do
  4300. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4301. mv "conftest.tmp" "conftest.in"
  4302. cp "conftest.in" "conftest.nl"
  4303. $as_echo 'EGREP' >> "conftest.nl"
  4304. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4305. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4306. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4307. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4308. # Best one so far, save it but keep looking for a better one
  4309. ac_cv_path_EGREP="$ac_path_EGREP"
  4310. ac_path_EGREP_max=$ac_count
  4311. fi
  4312. # 10*(2^10) chars as input seems more than enough
  4313. test $ac_count -gt 10 && break
  4314. done
  4315. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4316. esac
  4317. $ac_path_EGREP_found && break 3
  4318. done
  4319. done
  4320. done
  4321. IFS=$as_save_IFS
  4322. if test -z "$ac_cv_path_EGREP"; then
  4323. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4324. fi
  4325. else
  4326. ac_cv_path_EGREP=$EGREP
  4327. fi
  4328. fi
  4329. fi
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4331. $as_echo "$ac_cv_path_EGREP" >&6; }
  4332. EGREP="$ac_cv_path_EGREP"
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4334. $as_echo_n "checking for fgrep... " >&6; }
  4335. if test "${ac_cv_path_FGREP+set}" = set; then :
  4336. $as_echo_n "(cached) " >&6
  4337. else
  4338. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4339. then ac_cv_path_FGREP="$GREP -F"
  4340. else
  4341. if test -z "$FGREP"; then
  4342. ac_path_FGREP_found=false
  4343. # Loop through the user's path and test for each of PROGNAME-LIST
  4344. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4345. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4346. do
  4347. IFS=$as_save_IFS
  4348. test -z "$as_dir" && as_dir=.
  4349. for ac_prog in fgrep; do
  4350. for ac_exec_ext in '' $ac_executable_extensions; do
  4351. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4352. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4353. # Check for GNU ac_path_FGREP and select it if it is found.
  4354. # Check for GNU $ac_path_FGREP
  4355. case `"$ac_path_FGREP" --version 2>&1` in
  4356. *GNU*)
  4357. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4358. *)
  4359. ac_count=0
  4360. $as_echo_n 0123456789 >"conftest.in"
  4361. while :
  4362. do
  4363. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4364. mv "conftest.tmp" "conftest.in"
  4365. cp "conftest.in" "conftest.nl"
  4366. $as_echo 'FGREP' >> "conftest.nl"
  4367. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4368. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4369. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4370. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4371. # Best one so far, save it but keep looking for a better one
  4372. ac_cv_path_FGREP="$ac_path_FGREP"
  4373. ac_path_FGREP_max=$ac_count
  4374. fi
  4375. # 10*(2^10) chars as input seems more than enough
  4376. test $ac_count -gt 10 && break
  4377. done
  4378. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4379. esac
  4380. $ac_path_FGREP_found && break 3
  4381. done
  4382. done
  4383. done
  4384. IFS=$as_save_IFS
  4385. if test -z "$ac_cv_path_FGREP"; then
  4386. as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4387. fi
  4388. else
  4389. ac_cv_path_FGREP=$FGREP
  4390. fi
  4391. fi
  4392. fi
  4393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4394. $as_echo "$ac_cv_path_FGREP" >&6; }
  4395. FGREP="$ac_cv_path_FGREP"
  4396. test -z "$GREP" && GREP=grep
  4397. # Check whether --with-gnu-ld was given.
  4398. if test "${with_gnu_ld+set}" = set; then :
  4399. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4400. else
  4401. with_gnu_ld=no
  4402. fi
  4403. ac_prog=ld
  4404. if test "$GCC" = yes; then
  4405. # Check if gcc -print-prog-name=ld gives a path.
  4406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4407. $as_echo_n "checking for ld used by $CC... " >&6; }
  4408. case $host in
  4409. *-*-mingw*)
  4410. # gcc leaves a trailing carriage return which upsets mingw
  4411. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4412. *)
  4413. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4414. esac
  4415. case $ac_prog in
  4416. # Accept absolute paths.
  4417. [\\/]* | ?:[\\/]*)
  4418. re_direlt='/[^/][^/]*/\.\./'
  4419. # Canonicalize the pathname of ld
  4420. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4421. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4422. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4423. done
  4424. test -z "$LD" && LD="$ac_prog"
  4425. ;;
  4426. "")
  4427. # If it fails, then pretend we aren't using GCC.
  4428. ac_prog=ld
  4429. ;;
  4430. *)
  4431. # If it is relative, then search for the first ld in PATH.
  4432. with_gnu_ld=unknown
  4433. ;;
  4434. esac
  4435. elif test "$with_gnu_ld" = yes; then
  4436. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4437. $as_echo_n "checking for GNU ld... " >&6; }
  4438. else
  4439. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4440. $as_echo_n "checking for non-GNU ld... " >&6; }
  4441. fi
  4442. if test "${lt_cv_path_LD+set}" = set; then :
  4443. $as_echo_n "(cached) " >&6
  4444. else
  4445. if test -z "$LD"; then
  4446. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4447. for ac_dir in $PATH; do
  4448. IFS="$lt_save_ifs"
  4449. test -z "$ac_dir" && ac_dir=.
  4450. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4451. lt_cv_path_LD="$ac_dir/$ac_prog"
  4452. # Check to see if the program is GNU ld. I'd rather use --version,
  4453. # but apparently some variants of GNU ld only accept -v.
  4454. # Break only if it was the GNU/non-GNU ld that we prefer.
  4455. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4456. *GNU* | *'with BFD'*)
  4457. test "$with_gnu_ld" != no && break
  4458. ;;
  4459. *)
  4460. test "$with_gnu_ld" != yes && break
  4461. ;;
  4462. esac
  4463. fi
  4464. done
  4465. IFS="$lt_save_ifs"
  4466. else
  4467. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4468. fi
  4469. fi
  4470. LD="$lt_cv_path_LD"
  4471. if test -n "$LD"; then
  4472. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4473. $as_echo "$LD" >&6; }
  4474. else
  4475. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4476. $as_echo "no" >&6; }
  4477. fi
  4478. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4480. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4481. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4482. $as_echo_n "(cached) " >&6
  4483. else
  4484. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4485. case `$LD -v 2>&1 </dev/null` in
  4486. *GNU* | *'with BFD'*)
  4487. lt_cv_prog_gnu_ld=yes
  4488. ;;
  4489. *)
  4490. lt_cv_prog_gnu_ld=no
  4491. ;;
  4492. esac
  4493. fi
  4494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4495. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4496. with_gnu_ld=$lt_cv_prog_gnu_ld
  4497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4498. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4499. if test "${lt_cv_path_NM+set}" = set; then :
  4500. $as_echo_n "(cached) " >&6
  4501. else
  4502. if test -n "$NM"; then
  4503. # Let the user override the test.
  4504. lt_cv_path_NM="$NM"
  4505. else
  4506. lt_nm_to_check="${ac_tool_prefix}nm"
  4507. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4508. lt_nm_to_check="$lt_nm_to_check nm"
  4509. fi
  4510. for lt_tmp_nm in $lt_nm_to_check; do
  4511. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4512. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4513. IFS="$lt_save_ifs"
  4514. test -z "$ac_dir" && ac_dir=.
  4515. tmp_nm="$ac_dir/$lt_tmp_nm"
  4516. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4517. # Check to see if the nm accepts a BSD-compat flag.
  4518. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4519. # nm: unknown option "B" ignored
  4520. # Tru64's nm complains that /dev/null is an invalid object file
  4521. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4522. */dev/null* | *'Invalid file or object type'*)
  4523. lt_cv_path_NM="$tmp_nm -B"
  4524. break
  4525. ;;
  4526. *)
  4527. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4528. */dev/null*)
  4529. lt_cv_path_NM="$tmp_nm -p"
  4530. break
  4531. ;;
  4532. *)
  4533. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4534. continue # so that we can try to find one that supports BSD flags
  4535. ;;
  4536. esac
  4537. ;;
  4538. esac
  4539. fi
  4540. done
  4541. IFS="$lt_save_ifs"
  4542. done
  4543. : ${lt_cv_path_NM=no}
  4544. fi
  4545. fi
  4546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4547. $as_echo "$lt_cv_path_NM" >&6; }
  4548. if test "$lt_cv_path_NM" != "no"; then
  4549. NM="$lt_cv_path_NM"
  4550. else
  4551. # Didn't find any BSD compatible name lister, look for dumpbin.
  4552. if test -n "$ac_tool_prefix"; then
  4553. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4554. do
  4555. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4556. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4558. $as_echo_n "checking for $ac_word... " >&6; }
  4559. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4560. $as_echo_n "(cached) " >&6
  4561. else
  4562. if test -n "$DUMPBIN"; then
  4563. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4564. else
  4565. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4566. for as_dir in $PATH
  4567. do
  4568. IFS=$as_save_IFS
  4569. test -z "$as_dir" && as_dir=.
  4570. for ac_exec_ext in '' $ac_executable_extensions; do
  4571. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4572. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4573. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4574. break 2
  4575. fi
  4576. done
  4577. done
  4578. IFS=$as_save_IFS
  4579. fi
  4580. fi
  4581. DUMPBIN=$ac_cv_prog_DUMPBIN
  4582. if test -n "$DUMPBIN"; then
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4584. $as_echo "$DUMPBIN" >&6; }
  4585. else
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4587. $as_echo "no" >&6; }
  4588. fi
  4589. test -n "$DUMPBIN" && break
  4590. done
  4591. fi
  4592. if test -z "$DUMPBIN"; then
  4593. ac_ct_DUMPBIN=$DUMPBIN
  4594. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4595. do
  4596. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4597. set dummy $ac_prog; ac_word=$2
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4599. $as_echo_n "checking for $ac_word... " >&6; }
  4600. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4601. $as_echo_n "(cached) " >&6
  4602. else
  4603. if test -n "$ac_ct_DUMPBIN"; then
  4604. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4605. else
  4606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4607. for as_dir in $PATH
  4608. do
  4609. IFS=$as_save_IFS
  4610. test -z "$as_dir" && as_dir=.
  4611. for ac_exec_ext in '' $ac_executable_extensions; do
  4612. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4613. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4615. break 2
  4616. fi
  4617. done
  4618. done
  4619. IFS=$as_save_IFS
  4620. fi
  4621. fi
  4622. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4623. if test -n "$ac_ct_DUMPBIN"; then
  4624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4625. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4626. else
  4627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4628. $as_echo "no" >&6; }
  4629. fi
  4630. test -n "$ac_ct_DUMPBIN" && break
  4631. done
  4632. if test "x$ac_ct_DUMPBIN" = x; then
  4633. DUMPBIN=":"
  4634. else
  4635. case $cross_compiling:$ac_tool_warned in
  4636. yes:)
  4637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4638. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4639. ac_tool_warned=yes ;;
  4640. esac
  4641. DUMPBIN=$ac_ct_DUMPBIN
  4642. fi
  4643. fi
  4644. if test "$DUMPBIN" != ":"; then
  4645. NM="$DUMPBIN"
  4646. fi
  4647. fi
  4648. test -z "$NM" && NM=nm
  4649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4650. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4651. if test "${lt_cv_nm_interface+set}" = set; then :
  4652. $as_echo_n "(cached) " >&6
  4653. else
  4654. lt_cv_nm_interface="BSD nm"
  4655. echo "int some_variable = 0;" > conftest.$ac_ext
  4656. (eval echo "\"\$as_me:5170: $ac_compile\"" >&5)
  4657. (eval "$ac_compile" 2>conftest.err)
  4658. cat conftest.err >&5
  4659. (eval echo "\"\$as_me:5173: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4660. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4661. cat conftest.err >&5
  4662. (eval echo "\"\$as_me:5176: output\"" >&5)
  4663. cat conftest.out >&5
  4664. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4665. lt_cv_nm_interface="MS dumpbin"
  4666. fi
  4667. rm -f conftest*
  4668. fi
  4669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4670. $as_echo "$lt_cv_nm_interface" >&6; }
  4671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4672. $as_echo_n "checking whether ln -s works... " >&6; }
  4673. LN_S=$as_ln_s
  4674. if test "$LN_S" = "ln -s"; then
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4676. $as_echo "yes" >&6; }
  4677. else
  4678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4679. $as_echo "no, using $LN_S" >&6; }
  4680. fi
  4681. # find the maximum length of command line arguments
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4683. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4684. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4685. $as_echo_n "(cached) " >&6
  4686. else
  4687. i=0
  4688. teststring="ABCD"
  4689. case $build_os in
  4690. msdosdjgpp*)
  4691. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4692. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4693. # during glob expansion). Even if it were fixed, the result of this
  4694. # check would be larger than it should be.
  4695. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4696. ;;
  4697. gnu*)
  4698. # Under GNU Hurd, this test is not required because there is
  4699. # no limit to the length of command line arguments.
  4700. # Libtool will interpret -1 as no limit whatsoever
  4701. lt_cv_sys_max_cmd_len=-1;
  4702. ;;
  4703. cygwin* | mingw* | cegcc*)
  4704. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4705. # about 5 minutes as the teststring grows exponentially.
  4706. # Worse, since 9x/ME are not pre-emptively multitasking,
  4707. # you end up with a "frozen" computer, even though with patience
  4708. # the test eventually succeeds (with a max line length of 256k).
  4709. # Instead, let's just punt: use the minimum linelength reported by
  4710. # all of the supported platforms: 8192 (on NT/2K/XP).
  4711. lt_cv_sys_max_cmd_len=8192;
  4712. ;;
  4713. amigaos*)
  4714. # On AmigaOS with pdksh, this test takes hours, literally.
  4715. # So we just punt and use a minimum line length of 8192.
  4716. lt_cv_sys_max_cmd_len=8192;
  4717. ;;
  4718. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4719. # This has been around since 386BSD, at least. Likely further.
  4720. if test -x /sbin/sysctl; then
  4721. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4722. elif test -x /usr/sbin/sysctl; then
  4723. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4724. else
  4725. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4726. fi
  4727. # And add a safety zone
  4728. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4729. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4730. ;;
  4731. interix*)
  4732. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4733. lt_cv_sys_max_cmd_len=196608
  4734. ;;
  4735. osf*)
  4736. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4737. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4738. # nice to cause kernel panics so lets avoid the loop below.
  4739. # First set a reasonable default.
  4740. lt_cv_sys_max_cmd_len=16384
  4741. #
  4742. if test -x /sbin/sysconfig; then
  4743. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4744. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4745. esac
  4746. fi
  4747. ;;
  4748. sco3.2v5*)
  4749. lt_cv_sys_max_cmd_len=102400
  4750. ;;
  4751. sysv5* | sco5v6* | sysv4.2uw2*)
  4752. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4753. if test -n "$kargmax"; then
  4754. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4755. else
  4756. lt_cv_sys_max_cmd_len=32768
  4757. fi
  4758. ;;
  4759. *)
  4760. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4761. if test -n "$lt_cv_sys_max_cmd_len"; then
  4762. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4763. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4764. else
  4765. # Make teststring a little bigger before we do anything with it.
  4766. # a 1K string should be a reasonable start.
  4767. for i in 1 2 3 4 5 6 7 8 ; do
  4768. teststring=$teststring$teststring
  4769. done
  4770. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4771. # If test is not a shell built-in, we'll probably end up computing a
  4772. # maximum length that is only half of the actual maximum length, but
  4773. # we can't tell.
  4774. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4775. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4776. test $i != 17 # 1/2 MB should be enough
  4777. do
  4778. i=`expr $i + 1`
  4779. teststring=$teststring$teststring
  4780. done
  4781. # Only check the string length outside the loop.
  4782. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4783. teststring=
  4784. # Add a significant safety factor because C++ compilers can tack on
  4785. # massive amounts of additional arguments before passing them to the
  4786. # linker. It appears as though 1/2 is a usable value.
  4787. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4788. fi
  4789. ;;
  4790. esac
  4791. fi
  4792. if test -n $lt_cv_sys_max_cmd_len ; then
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4794. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4795. else
  4796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4797. $as_echo "none" >&6; }
  4798. fi
  4799. max_cmd_len=$lt_cv_sys_max_cmd_len
  4800. : ${CP="cp -f"}
  4801. : ${MV="mv -f"}
  4802. : ${RM="rm -f"}
  4803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4804. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4805. # Try some XSI features
  4806. xsi_shell=no
  4807. ( _lt_dummy="a/b/c"
  4808. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4809. = c,a/b,, \
  4810. && eval 'test $(( 1 + 1 )) -eq 2 \
  4811. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4812. && xsi_shell=yes
  4813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4814. $as_echo "$xsi_shell" >&6; }
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4816. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4817. lt_shell_append=no
  4818. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4819. >/dev/null 2>&1 \
  4820. && lt_shell_append=yes
  4821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4822. $as_echo "$lt_shell_append" >&6; }
  4823. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4824. lt_unset=unset
  4825. else
  4826. lt_unset=false
  4827. fi
  4828. # test EBCDIC or ASCII
  4829. case `echo X|tr X '\101'` in
  4830. A) # ASCII based system
  4831. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4832. lt_SP2NL='tr \040 \012'
  4833. lt_NL2SP='tr \015\012 \040\040'
  4834. ;;
  4835. *) # EBCDIC based system
  4836. lt_SP2NL='tr \100 \n'
  4837. lt_NL2SP='tr \r\n \100\100'
  4838. ;;
  4839. esac
  4840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4841. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4842. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4843. $as_echo_n "(cached) " >&6
  4844. else
  4845. lt_cv_ld_reload_flag='-r'
  4846. fi
  4847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4848. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4849. reload_flag=$lt_cv_ld_reload_flag
  4850. case $reload_flag in
  4851. "" | " "*) ;;
  4852. *) reload_flag=" $reload_flag" ;;
  4853. esac
  4854. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4855. case $host_os in
  4856. darwin*)
  4857. if test "$GCC" = yes; then
  4858. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4859. else
  4860. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4861. fi
  4862. ;;
  4863. esac
  4864. if test -n "$ac_tool_prefix"; then
  4865. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4866. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4868. $as_echo_n "checking for $ac_word... " >&6; }
  4869. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4870. $as_echo_n "(cached) " >&6
  4871. else
  4872. if test -n "$OBJDUMP"; then
  4873. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4874. else
  4875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4876. for as_dir in $PATH
  4877. do
  4878. IFS=$as_save_IFS
  4879. test -z "$as_dir" && as_dir=.
  4880. for ac_exec_ext in '' $ac_executable_extensions; do
  4881. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4882. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4883. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4884. break 2
  4885. fi
  4886. done
  4887. done
  4888. IFS=$as_save_IFS
  4889. fi
  4890. fi
  4891. OBJDUMP=$ac_cv_prog_OBJDUMP
  4892. if test -n "$OBJDUMP"; then
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4894. $as_echo "$OBJDUMP" >&6; }
  4895. else
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4897. $as_echo "no" >&6; }
  4898. fi
  4899. fi
  4900. if test -z "$ac_cv_prog_OBJDUMP"; then
  4901. ac_ct_OBJDUMP=$OBJDUMP
  4902. # Extract the first word of "objdump", so it can be a program name with args.
  4903. set dummy objdump; ac_word=$2
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4905. $as_echo_n "checking for $ac_word... " >&6; }
  4906. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4907. $as_echo_n "(cached) " >&6
  4908. else
  4909. if test -n "$ac_ct_OBJDUMP"; then
  4910. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4911. else
  4912. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4913. for as_dir in $PATH
  4914. do
  4915. IFS=$as_save_IFS
  4916. test -z "$as_dir" && as_dir=.
  4917. for ac_exec_ext in '' $ac_executable_extensions; do
  4918. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4919. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4920. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4921. break 2
  4922. fi
  4923. done
  4924. done
  4925. IFS=$as_save_IFS
  4926. fi
  4927. fi
  4928. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4929. if test -n "$ac_ct_OBJDUMP"; then
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4931. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4932. else
  4933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4934. $as_echo "no" >&6; }
  4935. fi
  4936. if test "x$ac_ct_OBJDUMP" = x; then
  4937. OBJDUMP="false"
  4938. else
  4939. case $cross_compiling:$ac_tool_warned in
  4940. yes:)
  4941. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4942. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4943. ac_tool_warned=yes ;;
  4944. esac
  4945. OBJDUMP=$ac_ct_OBJDUMP
  4946. fi
  4947. else
  4948. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4949. fi
  4950. test -z "$OBJDUMP" && OBJDUMP=objdump
  4951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4952. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4953. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  4954. $as_echo_n "(cached) " >&6
  4955. else
  4956. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4957. lt_cv_file_magic_test_file=
  4958. lt_cv_deplibs_check_method='unknown'
  4959. # Need to set the preceding variable on all platforms that support
  4960. # interlibrary dependencies.
  4961. # 'none' -- dependencies not supported.
  4962. # `unknown' -- same as none, but documents that we really don't know.
  4963. # 'pass_all' -- all dependencies passed with no checks.
  4964. # 'test_compile' -- check by making test program.
  4965. # 'file_magic [[regex]]' -- check by looking for files in library path
  4966. # which responds to the $file_magic_cmd with a given extended regex.
  4967. # If you have `file' or equivalent on your system and you're not sure
  4968. # whether `pass_all' will *always* work, you probably want this one.
  4969. case $host_os in
  4970. aix[4-9]*)
  4971. lt_cv_deplibs_check_method=pass_all
  4972. ;;
  4973. beos*)
  4974. lt_cv_deplibs_check_method=pass_all
  4975. ;;
  4976. bsdi[45]*)
  4977. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4978. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4979. lt_cv_file_magic_test_file=/shlib/libc.so
  4980. ;;
  4981. cygwin*)
  4982. # func_win32_libid is a shell function defined in ltmain.sh
  4983. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4984. lt_cv_file_magic_cmd='func_win32_libid'
  4985. ;;
  4986. mingw* | pw32*)
  4987. # Base MSYS/MinGW do not provide the 'file' command needed by
  4988. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4989. # unless we find 'file', for example because we are cross-compiling.
  4990. if ( file / ) >/dev/null 2>&1; then
  4991. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4992. lt_cv_file_magic_cmd='func_win32_libid'
  4993. else
  4994. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4995. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4996. fi
  4997. ;;
  4998. cegcc)
  4999. # use the weaker test based on 'objdump'. See mingw*.
  5000. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5001. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5002. ;;
  5003. darwin* | rhapsody*)
  5004. lt_cv_deplibs_check_method=pass_all
  5005. ;;
  5006. freebsd* | dragonfly*)
  5007. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5008. case $host_cpu in
  5009. i*86 )
  5010. # Not sure whether the presence of OpenBSD here was a mistake.
  5011. # Let's accept both of them until this is cleared up.
  5012. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5013. lt_cv_file_magic_cmd=/usr/bin/file
  5014. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5015. ;;
  5016. esac
  5017. else
  5018. lt_cv_deplibs_check_method=pass_all
  5019. fi
  5020. ;;
  5021. gnu*)
  5022. lt_cv_deplibs_check_method=pass_all
  5023. ;;
  5024. hpux10.20* | hpux11*)
  5025. lt_cv_file_magic_cmd=/usr/bin/file
  5026. case $host_cpu in
  5027. ia64*)
  5028. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5029. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5030. ;;
  5031. hppa*64*)
  5032. 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]'
  5033. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5034. ;;
  5035. *)
  5036. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5037. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5038. ;;
  5039. esac
  5040. ;;
  5041. interix[3-9]*)
  5042. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5043. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5044. ;;
  5045. irix5* | irix6* | nonstopux*)
  5046. case $LD in
  5047. *-32|*"-32 ") libmagic=32-bit;;
  5048. *-n32|*"-n32 ") libmagic=N32;;
  5049. *-64|*"-64 ") libmagic=64-bit;;
  5050. *) libmagic=never-match;;
  5051. esac
  5052. lt_cv_deplibs_check_method=pass_all
  5053. ;;
  5054. # This must be Linux ELF.
  5055. linux* | k*bsd*-gnu)
  5056. lt_cv_deplibs_check_method=pass_all
  5057. ;;
  5058. netbsd* | netbsdelf*-gnu)
  5059. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5060. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5061. else
  5062. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5063. fi
  5064. ;;
  5065. newos6*)
  5066. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5067. lt_cv_file_magic_cmd=/usr/bin/file
  5068. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5069. ;;
  5070. *nto* | *qnx*)
  5071. lt_cv_deplibs_check_method=pass_all
  5072. ;;
  5073. openbsd*)
  5074. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5075. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5076. else
  5077. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5078. fi
  5079. ;;
  5080. osf3* | osf4* | osf5*)
  5081. lt_cv_deplibs_check_method=pass_all
  5082. ;;
  5083. rdos*)
  5084. lt_cv_deplibs_check_method=pass_all
  5085. ;;
  5086. solaris*)
  5087. lt_cv_deplibs_check_method=pass_all
  5088. ;;
  5089. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5090. lt_cv_deplibs_check_method=pass_all
  5091. ;;
  5092. sysv4 | sysv4.3*)
  5093. case $host_vendor in
  5094. motorola)
  5095. 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]'
  5096. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5097. ;;
  5098. ncr)
  5099. lt_cv_deplibs_check_method=pass_all
  5100. ;;
  5101. sequent)
  5102. lt_cv_file_magic_cmd='/bin/file'
  5103. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5104. ;;
  5105. sni)
  5106. lt_cv_file_magic_cmd='/bin/file'
  5107. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5108. lt_cv_file_magic_test_file=/lib/libc.so
  5109. ;;
  5110. siemens)
  5111. lt_cv_deplibs_check_method=pass_all
  5112. ;;
  5113. pc)
  5114. lt_cv_deplibs_check_method=pass_all
  5115. ;;
  5116. esac
  5117. ;;
  5118. tpf*)
  5119. lt_cv_deplibs_check_method=pass_all
  5120. ;;
  5121. esac
  5122. fi
  5123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5124. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5125. file_magic_cmd=$lt_cv_file_magic_cmd
  5126. deplibs_check_method=$lt_cv_deplibs_check_method
  5127. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5128. if test -n "$ac_tool_prefix"; then
  5129. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5130. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5132. $as_echo_n "checking for $ac_word... " >&6; }
  5133. if test "${ac_cv_prog_AR+set}" = set; then :
  5134. $as_echo_n "(cached) " >&6
  5135. else
  5136. if test -n "$AR"; then
  5137. ac_cv_prog_AR="$AR" # Let the user override the test.
  5138. else
  5139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5140. for as_dir in $PATH
  5141. do
  5142. IFS=$as_save_IFS
  5143. test -z "$as_dir" && as_dir=.
  5144. for ac_exec_ext in '' $ac_executable_extensions; do
  5145. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5146. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5147. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5148. break 2
  5149. fi
  5150. done
  5151. done
  5152. IFS=$as_save_IFS
  5153. fi
  5154. fi
  5155. AR=$ac_cv_prog_AR
  5156. if test -n "$AR"; then
  5157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5158. $as_echo "$AR" >&6; }
  5159. else
  5160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5161. $as_echo "no" >&6; }
  5162. fi
  5163. fi
  5164. if test -z "$ac_cv_prog_AR"; then
  5165. ac_ct_AR=$AR
  5166. # Extract the first word of "ar", so it can be a program name with args.
  5167. set dummy ar; ac_word=$2
  5168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5169. $as_echo_n "checking for $ac_word... " >&6; }
  5170. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5171. $as_echo_n "(cached) " >&6
  5172. else
  5173. if test -n "$ac_ct_AR"; then
  5174. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5175. else
  5176. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5177. for as_dir in $PATH
  5178. do
  5179. IFS=$as_save_IFS
  5180. test -z "$as_dir" && as_dir=.
  5181. for ac_exec_ext in '' $ac_executable_extensions; do
  5182. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5183. ac_cv_prog_ac_ct_AR="ar"
  5184. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5185. break 2
  5186. fi
  5187. done
  5188. done
  5189. IFS=$as_save_IFS
  5190. fi
  5191. fi
  5192. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5193. if test -n "$ac_ct_AR"; then
  5194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5195. $as_echo "$ac_ct_AR" >&6; }
  5196. else
  5197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5198. $as_echo "no" >&6; }
  5199. fi
  5200. if test "x$ac_ct_AR" = x; then
  5201. AR="false"
  5202. else
  5203. case $cross_compiling:$ac_tool_warned in
  5204. yes:)
  5205. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5206. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5207. ac_tool_warned=yes ;;
  5208. esac
  5209. AR=$ac_ct_AR
  5210. fi
  5211. else
  5212. AR="$ac_cv_prog_AR"
  5213. fi
  5214. test -z "$AR" && AR=ar
  5215. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5216. if test -n "$ac_tool_prefix"; then
  5217. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5218. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5219. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5220. $as_echo_n "checking for $ac_word... " >&6; }
  5221. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5222. $as_echo_n "(cached) " >&6
  5223. else
  5224. if test -n "$STRIP"; then
  5225. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5226. else
  5227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5228. for as_dir in $PATH
  5229. do
  5230. IFS=$as_save_IFS
  5231. test -z "$as_dir" && as_dir=.
  5232. for ac_exec_ext in '' $ac_executable_extensions; do
  5233. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5234. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5235. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5236. break 2
  5237. fi
  5238. done
  5239. done
  5240. IFS=$as_save_IFS
  5241. fi
  5242. fi
  5243. STRIP=$ac_cv_prog_STRIP
  5244. if test -n "$STRIP"; then
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5246. $as_echo "$STRIP" >&6; }
  5247. else
  5248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5249. $as_echo "no" >&6; }
  5250. fi
  5251. fi
  5252. if test -z "$ac_cv_prog_STRIP"; then
  5253. ac_ct_STRIP=$STRIP
  5254. # Extract the first word of "strip", so it can be a program name with args.
  5255. set dummy strip; ac_word=$2
  5256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5257. $as_echo_n "checking for $ac_word... " >&6; }
  5258. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5259. $as_echo_n "(cached) " >&6
  5260. else
  5261. if test -n "$ac_ct_STRIP"; then
  5262. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5263. else
  5264. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5265. for as_dir in $PATH
  5266. do
  5267. IFS=$as_save_IFS
  5268. test -z "$as_dir" && as_dir=.
  5269. for ac_exec_ext in '' $ac_executable_extensions; do
  5270. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5271. ac_cv_prog_ac_ct_STRIP="strip"
  5272. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5273. break 2
  5274. fi
  5275. done
  5276. done
  5277. IFS=$as_save_IFS
  5278. fi
  5279. fi
  5280. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5281. if test -n "$ac_ct_STRIP"; then
  5282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5283. $as_echo "$ac_ct_STRIP" >&6; }
  5284. else
  5285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5286. $as_echo "no" >&6; }
  5287. fi
  5288. if test "x$ac_ct_STRIP" = x; then
  5289. STRIP=":"
  5290. else
  5291. case $cross_compiling:$ac_tool_warned in
  5292. yes:)
  5293. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5294. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5295. ac_tool_warned=yes ;;
  5296. esac
  5297. STRIP=$ac_ct_STRIP
  5298. fi
  5299. else
  5300. STRIP="$ac_cv_prog_STRIP"
  5301. fi
  5302. test -z "$STRIP" && STRIP=:
  5303. if test -n "$ac_tool_prefix"; then
  5304. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5305. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5307. $as_echo_n "checking for $ac_word... " >&6; }
  5308. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5309. $as_echo_n "(cached) " >&6
  5310. else
  5311. if test -n "$RANLIB"; then
  5312. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5313. else
  5314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5315. for as_dir in $PATH
  5316. do
  5317. IFS=$as_save_IFS
  5318. test -z "$as_dir" && as_dir=.
  5319. for ac_exec_ext in '' $ac_executable_extensions; do
  5320. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5321. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5322. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5323. break 2
  5324. fi
  5325. done
  5326. done
  5327. IFS=$as_save_IFS
  5328. fi
  5329. fi
  5330. RANLIB=$ac_cv_prog_RANLIB
  5331. if test -n "$RANLIB"; then
  5332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5333. $as_echo "$RANLIB" >&6; }
  5334. else
  5335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5336. $as_echo "no" >&6; }
  5337. fi
  5338. fi
  5339. if test -z "$ac_cv_prog_RANLIB"; then
  5340. ac_ct_RANLIB=$RANLIB
  5341. # Extract the first word of "ranlib", so it can be a program name with args.
  5342. set dummy ranlib; ac_word=$2
  5343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5344. $as_echo_n "checking for $ac_word... " >&6; }
  5345. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5346. $as_echo_n "(cached) " >&6
  5347. else
  5348. if test -n "$ac_ct_RANLIB"; then
  5349. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5350. else
  5351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5352. for as_dir in $PATH
  5353. do
  5354. IFS=$as_save_IFS
  5355. test -z "$as_dir" && as_dir=.
  5356. for ac_exec_ext in '' $ac_executable_extensions; do
  5357. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5358. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5359. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5360. break 2
  5361. fi
  5362. done
  5363. done
  5364. IFS=$as_save_IFS
  5365. fi
  5366. fi
  5367. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5368. if test -n "$ac_ct_RANLIB"; then
  5369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5370. $as_echo "$ac_ct_RANLIB" >&6; }
  5371. else
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5373. $as_echo "no" >&6; }
  5374. fi
  5375. if test "x$ac_ct_RANLIB" = x; then
  5376. RANLIB=":"
  5377. else
  5378. case $cross_compiling:$ac_tool_warned in
  5379. yes:)
  5380. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5381. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5382. ac_tool_warned=yes ;;
  5383. esac
  5384. RANLIB=$ac_ct_RANLIB
  5385. fi
  5386. else
  5387. RANLIB="$ac_cv_prog_RANLIB"
  5388. fi
  5389. test -z "$RANLIB" && RANLIB=:
  5390. # Determine commands to create old-style static archives.
  5391. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5392. old_postinstall_cmds='chmod 644 $oldlib'
  5393. old_postuninstall_cmds=
  5394. if test -n "$RANLIB"; then
  5395. case $host_os in
  5396. openbsd*)
  5397. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5398. ;;
  5399. *)
  5400. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5401. ;;
  5402. esac
  5403. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5404. fi
  5405. # If no C compiler was specified, use CC.
  5406. LTCC=${LTCC-"$CC"}
  5407. # If no C compiler flags were specified, use CFLAGS.
  5408. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5409. # Allow CC to be a program name with arguments.
  5410. compiler=$CC
  5411. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5413. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5414. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5415. $as_echo_n "(cached) " >&6
  5416. else
  5417. # These are sane defaults that work on at least a few old systems.
  5418. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5419. # Character class describing NM global symbol codes.
  5420. symcode='[BCDEGRST]'
  5421. # Regexp to match symbols that can be accessed directly from C.
  5422. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5423. # Define system-specific variables.
  5424. case $host_os in
  5425. aix*)
  5426. symcode='[BCDT]'
  5427. ;;
  5428. cygwin* | mingw* | pw32* | cegcc*)
  5429. symcode='[ABCDGISTW]'
  5430. ;;
  5431. hpux*)
  5432. if test "$host_cpu" = ia64; then
  5433. symcode='[ABCDEGRST]'
  5434. fi
  5435. ;;
  5436. irix* | nonstopux*)
  5437. symcode='[BCDEGRST]'
  5438. ;;
  5439. osf*)
  5440. symcode='[BCDEGQRST]'
  5441. ;;
  5442. solaris*)
  5443. symcode='[BDRT]'
  5444. ;;
  5445. sco3.2v5*)
  5446. symcode='[DT]'
  5447. ;;
  5448. sysv4.2uw2*)
  5449. symcode='[DT]'
  5450. ;;
  5451. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5452. symcode='[ABDT]'
  5453. ;;
  5454. sysv4)
  5455. symcode='[DFNSTU]'
  5456. ;;
  5457. esac
  5458. # If we're using GNU nm, then use its standard symbol codes.
  5459. case `$NM -V 2>&1` in
  5460. *GNU* | *'with BFD'*)
  5461. symcode='[ABCDGIRSTW]' ;;
  5462. esac
  5463. # Transform an extracted symbol line into a proper C declaration.
  5464. # Some systems (esp. on ia64) link data and code symbols differently,
  5465. # so use this general approach.
  5466. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5467. # Transform an extracted symbol line into symbol name and symbol address
  5468. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5469. 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'"
  5470. # Handle CRLF in mingw tool chain
  5471. opt_cr=
  5472. case $build_os in
  5473. mingw*)
  5474. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5475. ;;
  5476. esac
  5477. # Try without a prefix underscore, then with it.
  5478. for ac_symprfx in "" "_"; do
  5479. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5480. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5481. # Write the raw and C identifiers.
  5482. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5483. # Fake it for dumpbin and say T for any non-static function
  5484. # and D for any global variable.
  5485. # Also find C++ and __fastcall symbols from MSVC++,
  5486. # which start with @ or ?.
  5487. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5488. " {last_section=section; section=\$ 3};"\
  5489. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5490. " \$ 0!~/External *\|/{next};"\
  5491. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5492. " {if(hide[section]) next};"\
  5493. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5494. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5495. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5496. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5497. " ' prfx=^$ac_symprfx"
  5498. else
  5499. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5500. fi
  5501. # Check to see that the pipe works correctly.
  5502. pipe_works=no
  5503. rm -f conftest*
  5504. cat > conftest.$ac_ext <<_LT_EOF
  5505. #ifdef __cplusplus
  5506. extern "C" {
  5507. #endif
  5508. char nm_test_var;
  5509. void nm_test_func(void);
  5510. void nm_test_func(void){}
  5511. #ifdef __cplusplus
  5512. }
  5513. #endif
  5514. int main(){nm_test_var='a';nm_test_func();return(0);}
  5515. _LT_EOF
  5516. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5517. (eval $ac_compile) 2>&5
  5518. ac_status=$?
  5519. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5520. test $ac_status = 0; }; then
  5521. # Now try to grab the symbols.
  5522. nlist=conftest.nm
  5523. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5524. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5525. ac_status=$?
  5526. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5527. test $ac_status = 0; } && test -s "$nlist"; then
  5528. # Try sorting and uniquifying the output.
  5529. if sort "$nlist" | uniq > "$nlist"T; then
  5530. mv -f "$nlist"T "$nlist"
  5531. else
  5532. rm -f "$nlist"T
  5533. fi
  5534. # Make sure that we snagged all the symbols we need.
  5535. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5536. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5537. cat <<_LT_EOF > conftest.$ac_ext
  5538. #ifdef __cplusplus
  5539. extern "C" {
  5540. #endif
  5541. _LT_EOF
  5542. # Now generate the symbol file.
  5543. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5544. cat <<_LT_EOF >> conftest.$ac_ext
  5545. /* The mapping between symbol names and symbols. */
  5546. const struct {
  5547. const char *name;
  5548. void *address;
  5549. }
  5550. lt__PROGRAM__LTX_preloaded_symbols[] =
  5551. {
  5552. { "@PROGRAM@", (void *) 0 },
  5553. _LT_EOF
  5554. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5555. cat <<\_LT_EOF >> conftest.$ac_ext
  5556. {0, (void *) 0}
  5557. };
  5558. /* This works around a problem in FreeBSD linker */
  5559. #ifdef FREEBSD_WORKAROUND
  5560. static const void *lt_preloaded_setup() {
  5561. return lt__PROGRAM__LTX_preloaded_symbols;
  5562. }
  5563. #endif
  5564. #ifdef __cplusplus
  5565. }
  5566. #endif
  5567. _LT_EOF
  5568. # Now try linking the two files.
  5569. mv conftest.$ac_objext conftstm.$ac_objext
  5570. lt_save_LIBS="$LIBS"
  5571. lt_save_CFLAGS="$CFLAGS"
  5572. LIBS="conftstm.$ac_objext"
  5573. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5574. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5575. (eval $ac_link) 2>&5
  5576. ac_status=$?
  5577. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5578. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5579. pipe_works=yes
  5580. fi
  5581. LIBS="$lt_save_LIBS"
  5582. CFLAGS="$lt_save_CFLAGS"
  5583. else
  5584. echo "cannot find nm_test_func in $nlist" >&5
  5585. fi
  5586. else
  5587. echo "cannot find nm_test_var in $nlist" >&5
  5588. fi
  5589. else
  5590. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5591. fi
  5592. else
  5593. echo "$progname: failed program was:" >&5
  5594. cat conftest.$ac_ext >&5
  5595. fi
  5596. rm -rf conftest* conftst*
  5597. # Do not use the global_symbol_pipe unless it works.
  5598. if test "$pipe_works" = yes; then
  5599. break
  5600. else
  5601. lt_cv_sys_global_symbol_pipe=
  5602. fi
  5603. done
  5604. fi
  5605. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5606. lt_cv_sys_global_symbol_to_cdecl=
  5607. fi
  5608. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5610. $as_echo "failed" >&6; }
  5611. else
  5612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5613. $as_echo "ok" >&6; }
  5614. fi
  5615. # Check whether --enable-libtool-lock was given.
  5616. if test "${enable_libtool_lock+set}" = set; then :
  5617. enableval=$enable_libtool_lock;
  5618. fi
  5619. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5620. # Some flags need to be propagated to the compiler or linker for good
  5621. # libtool support.
  5622. case $host in
  5623. ia64-*-hpux*)
  5624. # Find out which ABI we are using.
  5625. echo 'int i;' > conftest.$ac_ext
  5626. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5627. (eval $ac_compile) 2>&5
  5628. ac_status=$?
  5629. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5630. test $ac_status = 0; }; then
  5631. case `/usr/bin/file conftest.$ac_objext` in
  5632. *ELF-32*)
  5633. HPUX_IA64_MODE="32"
  5634. ;;
  5635. *ELF-64*)
  5636. HPUX_IA64_MODE="64"
  5637. ;;
  5638. esac
  5639. fi
  5640. rm -rf conftest*
  5641. ;;
  5642. *-*-irix6*)
  5643. # Find out which ABI we are using.
  5644. echo '#line 6382 "configure"' > conftest.$ac_ext
  5645. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5646. (eval $ac_compile) 2>&5
  5647. ac_status=$?
  5648. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5649. test $ac_status = 0; }; then
  5650. if test "$lt_cv_prog_gnu_ld" = yes; then
  5651. case `/usr/bin/file conftest.$ac_objext` in
  5652. *32-bit*)
  5653. LD="${LD-ld} -melf32bsmip"
  5654. ;;
  5655. *N32*)
  5656. LD="${LD-ld} -melf32bmipn32"
  5657. ;;
  5658. *64-bit*)
  5659. LD="${LD-ld} -melf64bmip"
  5660. ;;
  5661. esac
  5662. else
  5663. case `/usr/bin/file conftest.$ac_objext` in
  5664. *32-bit*)
  5665. LD="${LD-ld} -32"
  5666. ;;
  5667. *N32*)
  5668. LD="${LD-ld} -n32"
  5669. ;;
  5670. *64-bit*)
  5671. LD="${LD-ld} -64"
  5672. ;;
  5673. esac
  5674. fi
  5675. fi
  5676. rm -rf conftest*
  5677. ;;
  5678. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5679. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5680. # Find out which ABI we are using.
  5681. echo 'int i;' > conftest.$ac_ext
  5682. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5683. (eval $ac_compile) 2>&5
  5684. ac_status=$?
  5685. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5686. test $ac_status = 0; }; then
  5687. case `/usr/bin/file conftest.o` in
  5688. *32-bit*)
  5689. case $host in
  5690. x86_64-*kfreebsd*-gnu)
  5691. LD="${LD-ld} -m elf_i386_fbsd"
  5692. ;;
  5693. x86_64-*linux*)
  5694. LD="${LD-ld} -m elf_i386"
  5695. ;;
  5696. ppc64-*linux*|powerpc64-*linux*)
  5697. LD="${LD-ld} -m elf32ppclinux"
  5698. ;;
  5699. s390x-*linux*)
  5700. LD="${LD-ld} -m elf_s390"
  5701. ;;
  5702. sparc64-*linux*)
  5703. LD="${LD-ld} -m elf32_sparc"
  5704. ;;
  5705. esac
  5706. ;;
  5707. *64-bit*)
  5708. case $host in
  5709. x86_64-*kfreebsd*-gnu)
  5710. LD="${LD-ld} -m elf_x86_64_fbsd"
  5711. ;;
  5712. x86_64-*linux*)
  5713. LD="${LD-ld} -m elf_x86_64"
  5714. ;;
  5715. ppc*-*linux*|powerpc*-*linux*)
  5716. LD="${LD-ld} -m elf64ppc"
  5717. ;;
  5718. s390*-*linux*|s390*-*tpf*)
  5719. LD="${LD-ld} -m elf64_s390"
  5720. ;;
  5721. sparc*-*linux*)
  5722. LD="${LD-ld} -m elf64_sparc"
  5723. ;;
  5724. esac
  5725. ;;
  5726. esac
  5727. fi
  5728. rm -rf conftest*
  5729. ;;
  5730. *-*-sco3.2v5*)
  5731. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5732. SAVE_CFLAGS="$CFLAGS"
  5733. CFLAGS="$CFLAGS -belf"
  5734. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5735. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5736. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5737. $as_echo_n "(cached) " >&6
  5738. else
  5739. ac_ext=c
  5740. ac_cpp='$CPP $CPPFLAGS'
  5741. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5742. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5743. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5745. /* end confdefs.h. */
  5746. int
  5747. main ()
  5748. {
  5749. ;
  5750. return 0;
  5751. }
  5752. _ACEOF
  5753. if ac_fn_c_try_link "$LINENO"; then :
  5754. lt_cv_cc_needs_belf=yes
  5755. else
  5756. lt_cv_cc_needs_belf=no
  5757. fi
  5758. rm -f core conftest.err conftest.$ac_objext \
  5759. conftest$ac_exeext conftest.$ac_ext
  5760. ac_ext=c
  5761. ac_cpp='$CPP $CPPFLAGS'
  5762. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5763. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5764. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5765. fi
  5766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5767. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5768. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5769. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5770. CFLAGS="$SAVE_CFLAGS"
  5771. fi
  5772. ;;
  5773. sparc*-*solaris*)
  5774. # Find out which ABI we are using.
  5775. echo 'int i;' > conftest.$ac_ext
  5776. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5777. (eval $ac_compile) 2>&5
  5778. ac_status=$?
  5779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5780. test $ac_status = 0; }; then
  5781. case `/usr/bin/file conftest.o` in
  5782. *64-bit*)
  5783. case $lt_cv_prog_gnu_ld in
  5784. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5785. *)
  5786. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5787. LD="${LD-ld} -64"
  5788. fi
  5789. ;;
  5790. esac
  5791. ;;
  5792. esac
  5793. fi
  5794. rm -rf conftest*
  5795. ;;
  5796. esac
  5797. need_locks="$enable_libtool_lock"
  5798. case $host_os in
  5799. rhapsody* | darwin*)
  5800. if test -n "$ac_tool_prefix"; then
  5801. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5802. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5803. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5804. $as_echo_n "checking for $ac_word... " >&6; }
  5805. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5806. $as_echo_n "(cached) " >&6
  5807. else
  5808. if test -n "$DSYMUTIL"; then
  5809. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5810. else
  5811. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5812. for as_dir in $PATH
  5813. do
  5814. IFS=$as_save_IFS
  5815. test -z "$as_dir" && as_dir=.
  5816. for ac_exec_ext in '' $ac_executable_extensions; do
  5817. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5818. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5819. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5820. break 2
  5821. fi
  5822. done
  5823. done
  5824. IFS=$as_save_IFS
  5825. fi
  5826. fi
  5827. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5828. if test -n "$DSYMUTIL"; then
  5829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5830. $as_echo "$DSYMUTIL" >&6; }
  5831. else
  5832. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5833. $as_echo "no" >&6; }
  5834. fi
  5835. fi
  5836. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5837. ac_ct_DSYMUTIL=$DSYMUTIL
  5838. # Extract the first word of "dsymutil", so it can be a program name with args.
  5839. set dummy dsymutil; ac_word=$2
  5840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5841. $as_echo_n "checking for $ac_word... " >&6; }
  5842. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5843. $as_echo_n "(cached) " >&6
  5844. else
  5845. if test -n "$ac_ct_DSYMUTIL"; then
  5846. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5847. else
  5848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5849. for as_dir in $PATH
  5850. do
  5851. IFS=$as_save_IFS
  5852. test -z "$as_dir" && as_dir=.
  5853. for ac_exec_ext in '' $ac_executable_extensions; do
  5854. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5855. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5857. break 2
  5858. fi
  5859. done
  5860. done
  5861. IFS=$as_save_IFS
  5862. fi
  5863. fi
  5864. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5865. if test -n "$ac_ct_DSYMUTIL"; then
  5866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5867. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5868. else
  5869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5870. $as_echo "no" >&6; }
  5871. fi
  5872. if test "x$ac_ct_DSYMUTIL" = x; then
  5873. DSYMUTIL=":"
  5874. else
  5875. case $cross_compiling:$ac_tool_warned in
  5876. yes:)
  5877. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5878. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5879. ac_tool_warned=yes ;;
  5880. esac
  5881. DSYMUTIL=$ac_ct_DSYMUTIL
  5882. fi
  5883. else
  5884. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5885. fi
  5886. if test -n "$ac_tool_prefix"; then
  5887. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5888. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5889. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5890. $as_echo_n "checking for $ac_word... " >&6; }
  5891. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5892. $as_echo_n "(cached) " >&6
  5893. else
  5894. if test -n "$NMEDIT"; then
  5895. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5896. else
  5897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5898. for as_dir in $PATH
  5899. do
  5900. IFS=$as_save_IFS
  5901. test -z "$as_dir" && as_dir=.
  5902. for ac_exec_ext in '' $ac_executable_extensions; do
  5903. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5904. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5905. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5906. break 2
  5907. fi
  5908. done
  5909. done
  5910. IFS=$as_save_IFS
  5911. fi
  5912. fi
  5913. NMEDIT=$ac_cv_prog_NMEDIT
  5914. if test -n "$NMEDIT"; then
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5916. $as_echo "$NMEDIT" >&6; }
  5917. else
  5918. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5919. $as_echo "no" >&6; }
  5920. fi
  5921. fi
  5922. if test -z "$ac_cv_prog_NMEDIT"; then
  5923. ac_ct_NMEDIT=$NMEDIT
  5924. # Extract the first word of "nmedit", so it can be a program name with args.
  5925. set dummy nmedit; ac_word=$2
  5926. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5927. $as_echo_n "checking for $ac_word... " >&6; }
  5928. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5929. $as_echo_n "(cached) " >&6
  5930. else
  5931. if test -n "$ac_ct_NMEDIT"; then
  5932. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5933. else
  5934. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5935. for as_dir in $PATH
  5936. do
  5937. IFS=$as_save_IFS
  5938. test -z "$as_dir" && as_dir=.
  5939. for ac_exec_ext in '' $ac_executable_extensions; do
  5940. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5941. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5942. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5943. break 2
  5944. fi
  5945. done
  5946. done
  5947. IFS=$as_save_IFS
  5948. fi
  5949. fi
  5950. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5951. if test -n "$ac_ct_NMEDIT"; then
  5952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5953. $as_echo "$ac_ct_NMEDIT" >&6; }
  5954. else
  5955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5956. $as_echo "no" >&6; }
  5957. fi
  5958. if test "x$ac_ct_NMEDIT" = x; then
  5959. NMEDIT=":"
  5960. else
  5961. case $cross_compiling:$ac_tool_warned in
  5962. yes:)
  5963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5964. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5965. ac_tool_warned=yes ;;
  5966. esac
  5967. NMEDIT=$ac_ct_NMEDIT
  5968. fi
  5969. else
  5970. NMEDIT="$ac_cv_prog_NMEDIT"
  5971. fi
  5972. if test -n "$ac_tool_prefix"; then
  5973. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5974. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5976. $as_echo_n "checking for $ac_word... " >&6; }
  5977. if test "${ac_cv_prog_LIPO+set}" = set; then :
  5978. $as_echo_n "(cached) " >&6
  5979. else
  5980. if test -n "$LIPO"; then
  5981. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5982. else
  5983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5984. for as_dir in $PATH
  5985. do
  5986. IFS=$as_save_IFS
  5987. test -z "$as_dir" && as_dir=.
  5988. for ac_exec_ext in '' $ac_executable_extensions; do
  5989. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5990. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5991. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5992. break 2
  5993. fi
  5994. done
  5995. done
  5996. IFS=$as_save_IFS
  5997. fi
  5998. fi
  5999. LIPO=$ac_cv_prog_LIPO
  6000. if test -n "$LIPO"; then
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6002. $as_echo "$LIPO" >&6; }
  6003. else
  6004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6005. $as_echo "no" >&6; }
  6006. fi
  6007. fi
  6008. if test -z "$ac_cv_prog_LIPO"; then
  6009. ac_ct_LIPO=$LIPO
  6010. # Extract the first word of "lipo", so it can be a program name with args.
  6011. set dummy lipo; ac_word=$2
  6012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6013. $as_echo_n "checking for $ac_word... " >&6; }
  6014. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6015. $as_echo_n "(cached) " >&6
  6016. else
  6017. if test -n "$ac_ct_LIPO"; then
  6018. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6019. else
  6020. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6021. for as_dir in $PATH
  6022. do
  6023. IFS=$as_save_IFS
  6024. test -z "$as_dir" && as_dir=.
  6025. for ac_exec_ext in '' $ac_executable_extensions; do
  6026. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6027. ac_cv_prog_ac_ct_LIPO="lipo"
  6028. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6029. break 2
  6030. fi
  6031. done
  6032. done
  6033. IFS=$as_save_IFS
  6034. fi
  6035. fi
  6036. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6037. if test -n "$ac_ct_LIPO"; then
  6038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6039. $as_echo "$ac_ct_LIPO" >&6; }
  6040. else
  6041. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6042. $as_echo "no" >&6; }
  6043. fi
  6044. if test "x$ac_ct_LIPO" = x; then
  6045. LIPO=":"
  6046. else
  6047. case $cross_compiling:$ac_tool_warned in
  6048. yes:)
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6050. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6051. ac_tool_warned=yes ;;
  6052. esac
  6053. LIPO=$ac_ct_LIPO
  6054. fi
  6055. else
  6056. LIPO="$ac_cv_prog_LIPO"
  6057. fi
  6058. if test -n "$ac_tool_prefix"; then
  6059. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6060. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6062. $as_echo_n "checking for $ac_word... " >&6; }
  6063. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6064. $as_echo_n "(cached) " >&6
  6065. else
  6066. if test -n "$OTOOL"; then
  6067. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6068. else
  6069. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6070. for as_dir in $PATH
  6071. do
  6072. IFS=$as_save_IFS
  6073. test -z "$as_dir" && as_dir=.
  6074. for ac_exec_ext in '' $ac_executable_extensions; do
  6075. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6076. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6077. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6078. break 2
  6079. fi
  6080. done
  6081. done
  6082. IFS=$as_save_IFS
  6083. fi
  6084. fi
  6085. OTOOL=$ac_cv_prog_OTOOL
  6086. if test -n "$OTOOL"; then
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6088. $as_echo "$OTOOL" >&6; }
  6089. else
  6090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6091. $as_echo "no" >&6; }
  6092. fi
  6093. fi
  6094. if test -z "$ac_cv_prog_OTOOL"; then
  6095. ac_ct_OTOOL=$OTOOL
  6096. # Extract the first word of "otool", so it can be a program name with args.
  6097. set dummy otool; ac_word=$2
  6098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6099. $as_echo_n "checking for $ac_word... " >&6; }
  6100. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6101. $as_echo_n "(cached) " >&6
  6102. else
  6103. if test -n "$ac_ct_OTOOL"; then
  6104. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6105. else
  6106. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6107. for as_dir in $PATH
  6108. do
  6109. IFS=$as_save_IFS
  6110. test -z "$as_dir" && as_dir=.
  6111. for ac_exec_ext in '' $ac_executable_extensions; do
  6112. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6113. ac_cv_prog_ac_ct_OTOOL="otool"
  6114. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6115. break 2
  6116. fi
  6117. done
  6118. done
  6119. IFS=$as_save_IFS
  6120. fi
  6121. fi
  6122. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6123. if test -n "$ac_ct_OTOOL"; then
  6124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6125. $as_echo "$ac_ct_OTOOL" >&6; }
  6126. else
  6127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6128. $as_echo "no" >&6; }
  6129. fi
  6130. if test "x$ac_ct_OTOOL" = x; then
  6131. OTOOL=":"
  6132. else
  6133. case $cross_compiling:$ac_tool_warned in
  6134. yes:)
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6136. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6137. ac_tool_warned=yes ;;
  6138. esac
  6139. OTOOL=$ac_ct_OTOOL
  6140. fi
  6141. else
  6142. OTOOL="$ac_cv_prog_OTOOL"
  6143. fi
  6144. if test -n "$ac_tool_prefix"; then
  6145. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6146. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6147. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6148. $as_echo_n "checking for $ac_word... " >&6; }
  6149. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6150. $as_echo_n "(cached) " >&6
  6151. else
  6152. if test -n "$OTOOL64"; then
  6153. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6154. else
  6155. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6156. for as_dir in $PATH
  6157. do
  6158. IFS=$as_save_IFS
  6159. test -z "$as_dir" && as_dir=.
  6160. for ac_exec_ext in '' $ac_executable_extensions; do
  6161. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6162. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6163. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6164. break 2
  6165. fi
  6166. done
  6167. done
  6168. IFS=$as_save_IFS
  6169. fi
  6170. fi
  6171. OTOOL64=$ac_cv_prog_OTOOL64
  6172. if test -n "$OTOOL64"; then
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6174. $as_echo "$OTOOL64" >&6; }
  6175. else
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6177. $as_echo "no" >&6; }
  6178. fi
  6179. fi
  6180. if test -z "$ac_cv_prog_OTOOL64"; then
  6181. ac_ct_OTOOL64=$OTOOL64
  6182. # Extract the first word of "otool64", so it can be a program name with args.
  6183. set dummy otool64; ac_word=$2
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6185. $as_echo_n "checking for $ac_word... " >&6; }
  6186. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6187. $as_echo_n "(cached) " >&6
  6188. else
  6189. if test -n "$ac_ct_OTOOL64"; then
  6190. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6191. else
  6192. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6193. for as_dir in $PATH
  6194. do
  6195. IFS=$as_save_IFS
  6196. test -z "$as_dir" && as_dir=.
  6197. for ac_exec_ext in '' $ac_executable_extensions; do
  6198. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6199. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6200. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6201. break 2
  6202. fi
  6203. done
  6204. done
  6205. IFS=$as_save_IFS
  6206. fi
  6207. fi
  6208. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6209. if test -n "$ac_ct_OTOOL64"; then
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6211. $as_echo "$ac_ct_OTOOL64" >&6; }
  6212. else
  6213. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6214. $as_echo "no" >&6; }
  6215. fi
  6216. if test "x$ac_ct_OTOOL64" = x; then
  6217. OTOOL64=":"
  6218. else
  6219. case $cross_compiling:$ac_tool_warned in
  6220. yes:)
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6222. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6223. ac_tool_warned=yes ;;
  6224. esac
  6225. OTOOL64=$ac_ct_OTOOL64
  6226. fi
  6227. else
  6228. OTOOL64="$ac_cv_prog_OTOOL64"
  6229. fi
  6230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6231. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6232. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6233. $as_echo_n "(cached) " >&6
  6234. else
  6235. lt_cv_apple_cc_single_mod=no
  6236. if test -z "${LT_MULTI_MODULE}"; then
  6237. # By default we will add the -single_module flag. You can override
  6238. # by either setting the environment variable LT_MULTI_MODULE
  6239. # non-empty at configure time, or by adding -multi_module to the
  6240. # link flags.
  6241. rm -rf libconftest.dylib*
  6242. echo "int foo(void){return 1;}" > conftest.c
  6243. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6244. -dynamiclib -Wl,-single_module conftest.c" >&5
  6245. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6246. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6247. _lt_result=$?
  6248. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6249. lt_cv_apple_cc_single_mod=yes
  6250. else
  6251. cat conftest.err >&5
  6252. fi
  6253. rm -rf libconftest.dylib*
  6254. rm -f conftest.*
  6255. fi
  6256. fi
  6257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6258. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6260. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6261. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6262. $as_echo_n "(cached) " >&6
  6263. else
  6264. lt_cv_ld_exported_symbols_list=no
  6265. save_LDFLAGS=$LDFLAGS
  6266. echo "_main" > conftest.sym
  6267. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6268. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6269. /* end confdefs.h. */
  6270. int
  6271. main ()
  6272. {
  6273. ;
  6274. return 0;
  6275. }
  6276. _ACEOF
  6277. if ac_fn_c_try_link "$LINENO"; then :
  6278. lt_cv_ld_exported_symbols_list=yes
  6279. else
  6280. lt_cv_ld_exported_symbols_list=no
  6281. fi
  6282. rm -f core conftest.err conftest.$ac_objext \
  6283. conftest$ac_exeext conftest.$ac_ext
  6284. LDFLAGS="$save_LDFLAGS"
  6285. fi
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6287. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6288. case $host_os in
  6289. rhapsody* | darwin1.[012])
  6290. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6291. darwin1.*)
  6292. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6293. darwin*) # darwin 5.x on
  6294. # if running on 10.5 or later, the deployment target defaults
  6295. # to the OS version, if on x86, and 10.4, the deployment
  6296. # target defaults to 10.4. Don't you love it?
  6297. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6298. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6299. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6300. 10.[012]*)
  6301. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6302. 10.*)
  6303. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6304. esac
  6305. ;;
  6306. esac
  6307. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6308. _lt_dar_single_mod='$single_module'
  6309. fi
  6310. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6311. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6312. else
  6313. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6314. fi
  6315. if test "$DSYMUTIL" != ":"; then
  6316. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6317. else
  6318. _lt_dsymutil=
  6319. fi
  6320. ;;
  6321. esac
  6322. ac_ext=c
  6323. ac_cpp='$CPP $CPPFLAGS'
  6324. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6325. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6326. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6328. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6329. # On Suns, sometimes $CPP names a directory.
  6330. if test -n "$CPP" && test -d "$CPP"; then
  6331. CPP=
  6332. fi
  6333. if test -z "$CPP"; then
  6334. if test "${ac_cv_prog_CPP+set}" = set; then :
  6335. $as_echo_n "(cached) " >&6
  6336. else
  6337. # Double quotes because CPP needs to be expanded
  6338. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6339. do
  6340. ac_preproc_ok=false
  6341. for ac_c_preproc_warn_flag in '' yes
  6342. do
  6343. # Use a header file that comes with gcc, so configuring glibc
  6344. # with a fresh cross-compiler works.
  6345. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6346. # <limits.h> exists even on freestanding compilers.
  6347. # On the NeXT, cc -E runs the code through the compiler's parser,
  6348. # not just through cpp. "Syntax error" is here to catch this case.
  6349. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6350. /* end confdefs.h. */
  6351. #ifdef __STDC__
  6352. # include <limits.h>
  6353. #else
  6354. # include <assert.h>
  6355. #endif
  6356. Syntax error
  6357. _ACEOF
  6358. if ac_fn_c_try_cpp "$LINENO"; then :
  6359. else
  6360. # Broken: fails on valid input.
  6361. continue
  6362. fi
  6363. rm -f conftest.err conftest.$ac_ext
  6364. # OK, works on sane cases. Now check whether nonexistent headers
  6365. # can be detected and how.
  6366. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6367. /* end confdefs.h. */
  6368. #include <ac_nonexistent.h>
  6369. _ACEOF
  6370. if ac_fn_c_try_cpp "$LINENO"; then :
  6371. # Broken: success on invalid input.
  6372. continue
  6373. else
  6374. # Passes both tests.
  6375. ac_preproc_ok=:
  6376. break
  6377. fi
  6378. rm -f conftest.err conftest.$ac_ext
  6379. done
  6380. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6381. rm -f conftest.err conftest.$ac_ext
  6382. if $ac_preproc_ok; then :
  6383. break
  6384. fi
  6385. done
  6386. ac_cv_prog_CPP=$CPP
  6387. fi
  6388. CPP=$ac_cv_prog_CPP
  6389. else
  6390. ac_cv_prog_CPP=$CPP
  6391. fi
  6392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6393. $as_echo "$CPP" >&6; }
  6394. ac_preproc_ok=false
  6395. for ac_c_preproc_warn_flag in '' yes
  6396. do
  6397. # Use a header file that comes with gcc, so configuring glibc
  6398. # with a fresh cross-compiler works.
  6399. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6400. # <limits.h> exists even on freestanding compilers.
  6401. # On the NeXT, cc -E runs the code through the compiler's parser,
  6402. # not just through cpp. "Syntax error" is here to catch this case.
  6403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6404. /* end confdefs.h. */
  6405. #ifdef __STDC__
  6406. # include <limits.h>
  6407. #else
  6408. # include <assert.h>
  6409. #endif
  6410. Syntax error
  6411. _ACEOF
  6412. if ac_fn_c_try_cpp "$LINENO"; then :
  6413. else
  6414. # Broken: fails on valid input.
  6415. continue
  6416. fi
  6417. rm -f conftest.err conftest.$ac_ext
  6418. # OK, works on sane cases. Now check whether nonexistent headers
  6419. # can be detected and how.
  6420. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6421. /* end confdefs.h. */
  6422. #include <ac_nonexistent.h>
  6423. _ACEOF
  6424. if ac_fn_c_try_cpp "$LINENO"; then :
  6425. # Broken: success on invalid input.
  6426. continue
  6427. else
  6428. # Passes both tests.
  6429. ac_preproc_ok=:
  6430. break
  6431. fi
  6432. rm -f conftest.err conftest.$ac_ext
  6433. done
  6434. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6435. rm -f conftest.err conftest.$ac_ext
  6436. if $ac_preproc_ok; then :
  6437. else
  6438. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6439. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6440. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6441. See \`config.log' for more details." "$LINENO" 5; }
  6442. fi
  6443. ac_ext=c
  6444. ac_cpp='$CPP $CPPFLAGS'
  6445. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6446. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6447. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6449. $as_echo_n "checking for ANSI C header files... " >&6; }
  6450. if test "${ac_cv_header_stdc+set}" = set; then :
  6451. $as_echo_n "(cached) " >&6
  6452. else
  6453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6454. /* end confdefs.h. */
  6455. #include <stdlib.h>
  6456. #include <stdarg.h>
  6457. #include <string.h>
  6458. #include <float.h>
  6459. int
  6460. main ()
  6461. {
  6462. ;
  6463. return 0;
  6464. }
  6465. _ACEOF
  6466. if ac_fn_c_try_compile "$LINENO"; then :
  6467. ac_cv_header_stdc=yes
  6468. else
  6469. ac_cv_header_stdc=no
  6470. fi
  6471. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6472. if test $ac_cv_header_stdc = yes; then
  6473. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6474. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6475. /* end confdefs.h. */
  6476. #include <string.h>
  6477. _ACEOF
  6478. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6479. $EGREP "memchr" >/dev/null 2>&1; then :
  6480. else
  6481. ac_cv_header_stdc=no
  6482. fi
  6483. rm -f conftest*
  6484. fi
  6485. if test $ac_cv_header_stdc = yes; then
  6486. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6488. /* end confdefs.h. */
  6489. #include <stdlib.h>
  6490. _ACEOF
  6491. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6492. $EGREP "free" >/dev/null 2>&1; then :
  6493. else
  6494. ac_cv_header_stdc=no
  6495. fi
  6496. rm -f conftest*
  6497. fi
  6498. if test $ac_cv_header_stdc = yes; then
  6499. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6500. if test "$cross_compiling" = yes; then :
  6501. :
  6502. else
  6503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6504. /* end confdefs.h. */
  6505. #include <ctype.h>
  6506. #include <stdlib.h>
  6507. #if ((' ' & 0x0FF) == 0x020)
  6508. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6509. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6510. #else
  6511. # define ISLOWER(c) \
  6512. (('a' <= (c) && (c) <= 'i') \
  6513. || ('j' <= (c) && (c) <= 'r') \
  6514. || ('s' <= (c) && (c) <= 'z'))
  6515. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6516. #endif
  6517. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6518. int
  6519. main ()
  6520. {
  6521. int i;
  6522. for (i = 0; i < 256; i++)
  6523. if (XOR (islower (i), ISLOWER (i))
  6524. || toupper (i) != TOUPPER (i))
  6525. return 2;
  6526. return 0;
  6527. }
  6528. _ACEOF
  6529. if ac_fn_c_try_run "$LINENO"; then :
  6530. else
  6531. ac_cv_header_stdc=no
  6532. fi
  6533. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6534. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6535. fi
  6536. fi
  6537. fi
  6538. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6539. $as_echo "$ac_cv_header_stdc" >&6; }
  6540. if test $ac_cv_header_stdc = yes; then
  6541. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6542. fi
  6543. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6544. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6545. inttypes.h stdint.h unistd.h
  6546. do :
  6547. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6548. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6549. "
  6550. eval as_val=\$$as_ac_Header
  6551. if test "x$as_val" = x""yes; then :
  6552. cat >>confdefs.h <<_ACEOF
  6553. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6554. _ACEOF
  6555. fi
  6556. done
  6557. for ac_header in dlfcn.h
  6558. do :
  6559. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6560. "
  6561. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6562. cat >>confdefs.h <<_ACEOF
  6563. #define HAVE_DLFCN_H 1
  6564. _ACEOF
  6565. fi
  6566. done
  6567. ac_ext=cpp
  6568. ac_cpp='$CXXCPP $CPPFLAGS'
  6569. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6570. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6571. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6572. if test -z "$CXX"; then
  6573. if test -n "$CCC"; then
  6574. CXX=$CCC
  6575. else
  6576. if test -n "$ac_tool_prefix"; then
  6577. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6578. do
  6579. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6580. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6582. $as_echo_n "checking for $ac_word... " >&6; }
  6583. if test "${ac_cv_prog_CXX+set}" = set; then :
  6584. $as_echo_n "(cached) " >&6
  6585. else
  6586. if test -n "$CXX"; then
  6587. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6588. else
  6589. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6590. for as_dir in $PATH
  6591. do
  6592. IFS=$as_save_IFS
  6593. test -z "$as_dir" && as_dir=.
  6594. for ac_exec_ext in '' $ac_executable_extensions; do
  6595. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6596. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6597. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6598. break 2
  6599. fi
  6600. done
  6601. done
  6602. IFS=$as_save_IFS
  6603. fi
  6604. fi
  6605. CXX=$ac_cv_prog_CXX
  6606. if test -n "$CXX"; then
  6607. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  6608. $as_echo "$CXX" >&6; }
  6609. else
  6610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6611. $as_echo "no" >&6; }
  6612. fi
  6613. test -n "$CXX" && break
  6614. done
  6615. fi
  6616. if test -z "$CXX"; then
  6617. ac_ct_CXX=$CXX
  6618. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6619. do
  6620. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6621. set dummy $ac_prog; ac_word=$2
  6622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6623. $as_echo_n "checking for $ac_word... " >&6; }
  6624. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  6625. $as_echo_n "(cached) " >&6
  6626. else
  6627. if test -n "$ac_ct_CXX"; then
  6628. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6629. else
  6630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6631. for as_dir in $PATH
  6632. do
  6633. IFS=$as_save_IFS
  6634. test -z "$as_dir" && as_dir=.
  6635. for ac_exec_ext in '' $ac_executable_extensions; do
  6636. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6637. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6639. break 2
  6640. fi
  6641. done
  6642. done
  6643. IFS=$as_save_IFS
  6644. fi
  6645. fi
  6646. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6647. if test -n "$ac_ct_CXX"; then
  6648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  6649. $as_echo "$ac_ct_CXX" >&6; }
  6650. else
  6651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6652. $as_echo "no" >&6; }
  6653. fi
  6654. test -n "$ac_ct_CXX" && break
  6655. done
  6656. if test "x$ac_ct_CXX" = x; then
  6657. CXX="g++"
  6658. else
  6659. case $cross_compiling:$ac_tool_warned in
  6660. yes:)
  6661. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6662. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6663. ac_tool_warned=yes ;;
  6664. esac
  6665. CXX=$ac_ct_CXX
  6666. fi
  6667. fi
  6668. fi
  6669. fi
  6670. # Provide some information about the compiler.
  6671. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  6672. set X $ac_compile
  6673. ac_compiler=$2
  6674. for ac_option in --version -v -V -qversion; do
  6675. { { ac_try="$ac_compiler $ac_option >&5"
  6676. case "(($ac_try" in
  6677. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6678. *) ac_try_echo=$ac_try;;
  6679. esac
  6680. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6681. $as_echo "$ac_try_echo"; } >&5
  6682. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6683. ac_status=$?
  6684. if test -s conftest.err; then
  6685. sed '10a\
  6686. ... rest of stderr output deleted ...
  6687. 10q' conftest.err >conftest.er1
  6688. cat conftest.er1 >&5
  6689. rm -f conftest.er1 conftest.err
  6690. fi
  6691. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6692. test $ac_status = 0; }
  6693. done
  6694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  6695. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6696. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  6697. $as_echo_n "(cached) " >&6
  6698. else
  6699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6700. /* end confdefs.h. */
  6701. int
  6702. main ()
  6703. {
  6704. #ifndef __GNUC__
  6705. choke me
  6706. #endif
  6707. ;
  6708. return 0;
  6709. }
  6710. _ACEOF
  6711. if ac_fn_cxx_try_compile "$LINENO"; then :
  6712. ac_compiler_gnu=yes
  6713. else
  6714. ac_compiler_gnu=no
  6715. fi
  6716. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6717. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6718. fi
  6719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  6720. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6721. if test $ac_compiler_gnu = yes; then
  6722. GXX=yes
  6723. else
  6724. GXX=
  6725. fi
  6726. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6727. ac_save_CXXFLAGS=$CXXFLAGS
  6728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  6729. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6730. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  6731. $as_echo_n "(cached) " >&6
  6732. else
  6733. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6734. ac_cxx_werror_flag=yes
  6735. ac_cv_prog_cxx_g=no
  6736. CXXFLAGS="-g"
  6737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6738. /* end confdefs.h. */
  6739. int
  6740. main ()
  6741. {
  6742. ;
  6743. return 0;
  6744. }
  6745. _ACEOF
  6746. if ac_fn_cxx_try_compile "$LINENO"; then :
  6747. ac_cv_prog_cxx_g=yes
  6748. else
  6749. CXXFLAGS=""
  6750. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6751. /* end confdefs.h. */
  6752. int
  6753. main ()
  6754. {
  6755. ;
  6756. return 0;
  6757. }
  6758. _ACEOF
  6759. if ac_fn_cxx_try_compile "$LINENO"; then :
  6760. else
  6761. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6762. CXXFLAGS="-g"
  6763. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6764. /* end confdefs.h. */
  6765. int
  6766. main ()
  6767. {
  6768. ;
  6769. return 0;
  6770. }
  6771. _ACEOF
  6772. if ac_fn_cxx_try_compile "$LINENO"; then :
  6773. ac_cv_prog_cxx_g=yes
  6774. fi
  6775. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6776. fi
  6777. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6778. fi
  6779. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6780. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6781. fi
  6782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  6783. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6784. if test "$ac_test_CXXFLAGS" = set; then
  6785. CXXFLAGS=$ac_save_CXXFLAGS
  6786. elif test $ac_cv_prog_cxx_g = yes; then
  6787. if test "$GXX" = yes; then
  6788. CXXFLAGS="-g -O2"
  6789. else
  6790. CXXFLAGS="-g"
  6791. fi
  6792. else
  6793. if test "$GXX" = yes; then
  6794. CXXFLAGS="-O2"
  6795. else
  6796. CXXFLAGS=
  6797. fi
  6798. fi
  6799. ac_ext=cpp
  6800. ac_cpp='$CXXCPP $CPPFLAGS'
  6801. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6802. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6803. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6804. depcc="$CXX" am_compiler_list=
  6805. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6806. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6807. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  6808. $as_echo_n "(cached) " >&6
  6809. else
  6810. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6811. # We make a subdir and do the tests there. Otherwise we can end up
  6812. # making bogus files that we don't know about and never remove. For
  6813. # instance it was reported that on HP-UX the gcc test will end up
  6814. # making a dummy file named `D' -- because `-MD' means `put the output
  6815. # in D'.
  6816. mkdir conftest.dir
  6817. # Copy depcomp to subdir because otherwise we won't find it if we're
  6818. # using a relative directory.
  6819. cp "$am_depcomp" conftest.dir
  6820. cd conftest.dir
  6821. # We will build objects and dependencies in a subdirectory because
  6822. # it helps to detect inapplicable dependency modes. For instance
  6823. # both Tru64's cc and ICC support -MD to output dependencies as a
  6824. # side effect of compilation, but ICC will put the dependencies in
  6825. # the current directory while Tru64 will put them in the object
  6826. # directory.
  6827. mkdir sub
  6828. am_cv_CXX_dependencies_compiler_type=none
  6829. if test "$am_compiler_list" = ""; then
  6830. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6831. fi
  6832. am__universal=false
  6833. case " $depcc " in #(
  6834. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6835. esac
  6836. for depmode in $am_compiler_list; do
  6837. # Setup a source with many dependencies, because some compilers
  6838. # like to wrap large dependency lists on column 80 (with \), and
  6839. # we should not choose a depcomp mode which is confused by this.
  6840. #
  6841. # We need to recreate these files for each test, as the compiler may
  6842. # overwrite some of them when testing with obscure command lines.
  6843. # This happens at least with the AIX C compiler.
  6844. : > sub/conftest.c
  6845. for i in 1 2 3 4 5 6; do
  6846. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6847. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6848. # Solaris 8's {/usr,}/bin/sh.
  6849. touch sub/conftst$i.h
  6850. done
  6851. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6852. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6853. # mode. It turns out that the SunPro C++ compiler does not properly
  6854. # handle `-M -o', and we need to detect this. Also, some Intel
  6855. # versions had trouble with output in subdirs
  6856. am__obj=sub/conftest.${OBJEXT-o}
  6857. am__minus_obj="-o $am__obj"
  6858. case $depmode in
  6859. gcc)
  6860. # This depmode causes a compiler race in universal mode.
  6861. test "$am__universal" = false || continue
  6862. ;;
  6863. nosideeffect)
  6864. # after this tag, mechanisms are not by side-effect, so they'll
  6865. # only be used when explicitly requested
  6866. if test "x$enable_dependency_tracking" = xyes; then
  6867. continue
  6868. else
  6869. break
  6870. fi
  6871. ;;
  6872. msvisualcpp | msvcmsys)
  6873. # This compiler won't grok `-c -o', but also, the minuso test has
  6874. # not run yet. These depmodes are late enough in the game, and
  6875. # so weak that their functioning should not be impacted.
  6876. am__obj=conftest.${OBJEXT-o}
  6877. am__minus_obj=
  6878. ;;
  6879. none) break ;;
  6880. esac
  6881. if depmode=$depmode \
  6882. source=sub/conftest.c object=$am__obj \
  6883. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6884. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6885. >/dev/null 2>conftest.err &&
  6886. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6887. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6888. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6889. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6890. # icc doesn't choke on unknown options, it will just issue warnings
  6891. # or remarks (even with -Werror). So we grep stderr for any message
  6892. # that says an option was ignored or not supported.
  6893. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6894. # icc: Command line warning: ignoring option '-M'; no argument required
  6895. # The diagnosis changed in icc 8.0:
  6896. # icc: Command line remark: option '-MP' not supported
  6897. if (grep 'ignoring option' conftest.err ||
  6898. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6899. am_cv_CXX_dependencies_compiler_type=$depmode
  6900. break
  6901. fi
  6902. fi
  6903. done
  6904. cd ..
  6905. rm -rf conftest.dir
  6906. else
  6907. am_cv_CXX_dependencies_compiler_type=none
  6908. fi
  6909. fi
  6910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  6911. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  6912. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  6913. if
  6914. test "x$enable_dependency_tracking" != xno \
  6915. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  6916. am__fastdepCXX_TRUE=
  6917. am__fastdepCXX_FALSE='#'
  6918. else
  6919. am__fastdepCXX_TRUE='#'
  6920. am__fastdepCXX_FALSE=
  6921. fi
  6922. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6923. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6924. (test "X$CXX" != "Xg++"))) ; then
  6925. ac_ext=cpp
  6926. ac_cpp='$CXXCPP $CPPFLAGS'
  6927. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6928. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6929. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  6931. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  6932. if test -z "$CXXCPP"; then
  6933. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  6934. $as_echo_n "(cached) " >&6
  6935. else
  6936. # Double quotes because CXXCPP needs to be expanded
  6937. for CXXCPP in "$CXX -E" "/lib/cpp"
  6938. do
  6939. ac_preproc_ok=false
  6940. for ac_cxx_preproc_warn_flag in '' yes
  6941. do
  6942. # Use a header file that comes with gcc, so configuring glibc
  6943. # with a fresh cross-compiler works.
  6944. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6945. # <limits.h> exists even on freestanding compilers.
  6946. # On the NeXT, cc -E runs the code through the compiler's parser,
  6947. # not just through cpp. "Syntax error" is here to catch this case.
  6948. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6949. /* end confdefs.h. */
  6950. #ifdef __STDC__
  6951. # include <limits.h>
  6952. #else
  6953. # include <assert.h>
  6954. #endif
  6955. Syntax error
  6956. _ACEOF
  6957. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6958. else
  6959. # Broken: fails on valid input.
  6960. continue
  6961. fi
  6962. rm -f conftest.err conftest.$ac_ext
  6963. # OK, works on sane cases. Now check whether nonexistent headers
  6964. # can be detected and how.
  6965. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6966. /* end confdefs.h. */
  6967. #include <ac_nonexistent.h>
  6968. _ACEOF
  6969. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6970. # Broken: success on invalid input.
  6971. continue
  6972. else
  6973. # Passes both tests.
  6974. ac_preproc_ok=:
  6975. break
  6976. fi
  6977. rm -f conftest.err conftest.$ac_ext
  6978. done
  6979. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6980. rm -f conftest.err conftest.$ac_ext
  6981. if $ac_preproc_ok; then :
  6982. break
  6983. fi
  6984. done
  6985. ac_cv_prog_CXXCPP=$CXXCPP
  6986. fi
  6987. CXXCPP=$ac_cv_prog_CXXCPP
  6988. else
  6989. ac_cv_prog_CXXCPP=$CXXCPP
  6990. fi
  6991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  6992. $as_echo "$CXXCPP" >&6; }
  6993. ac_preproc_ok=false
  6994. for ac_cxx_preproc_warn_flag in '' yes
  6995. do
  6996. # Use a header file that comes with gcc, so configuring glibc
  6997. # with a fresh cross-compiler works.
  6998. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6999. # <limits.h> exists even on freestanding compilers.
  7000. # On the NeXT, cc -E runs the code through the compiler's parser,
  7001. # not just through cpp. "Syntax error" is here to catch this case.
  7002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7003. /* end confdefs.h. */
  7004. #ifdef __STDC__
  7005. # include <limits.h>
  7006. #else
  7007. # include <assert.h>
  7008. #endif
  7009. Syntax error
  7010. _ACEOF
  7011. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7012. else
  7013. # Broken: fails on valid input.
  7014. continue
  7015. fi
  7016. rm -f conftest.err conftest.$ac_ext
  7017. # OK, works on sane cases. Now check whether nonexistent headers
  7018. # can be detected and how.
  7019. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7020. /* end confdefs.h. */
  7021. #include <ac_nonexistent.h>
  7022. _ACEOF
  7023. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7024. # Broken: success on invalid input.
  7025. continue
  7026. else
  7027. # Passes both tests.
  7028. ac_preproc_ok=:
  7029. break
  7030. fi
  7031. rm -f conftest.err conftest.$ac_ext
  7032. done
  7033. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7034. rm -f conftest.err conftest.$ac_ext
  7035. if $ac_preproc_ok; then :
  7036. else
  7037. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7038. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7039. _lt_caught_CXX_error=yes; }
  7040. fi
  7041. ac_ext=cpp
  7042. ac_cpp='$CXXCPP $CPPFLAGS'
  7043. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7044. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7045. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7046. else
  7047. _lt_caught_CXX_error=yes
  7048. fi
  7049. # Set options
  7050. enable_dlopen=no
  7051. enable_win32_dll=no
  7052. # Check whether --with-pic was given.
  7053. if test "${with_pic+set}" = set; then :
  7054. withval=$with_pic; pic_mode="$withval"
  7055. else
  7056. pic_mode=default
  7057. fi
  7058. test -z "$pic_mode" && pic_mode=default
  7059. # Check whether --enable-fast-install was given.
  7060. if test "${enable_fast_install+set}" = set; then :
  7061. enableval=$enable_fast_install; p=${PACKAGE-default}
  7062. case $enableval in
  7063. yes) enable_fast_install=yes ;;
  7064. no) enable_fast_install=no ;;
  7065. *)
  7066. enable_fast_install=no
  7067. # Look at the argument we got. We use all the common list separators.
  7068. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7069. for pkg in $enableval; do
  7070. IFS="$lt_save_ifs"
  7071. if test "X$pkg" = "X$p"; then
  7072. enable_fast_install=yes
  7073. fi
  7074. done
  7075. IFS="$lt_save_ifs"
  7076. ;;
  7077. esac
  7078. else
  7079. enable_fast_install=yes
  7080. fi
  7081. # This can be used to rebuild libtool when needed
  7082. LIBTOOL_DEPS="$ltmain"
  7083. # Always use our own libtool.
  7084. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7085. test -z "$LN_S" && LN_S="ln -s"
  7086. if test -n "${ZSH_VERSION+set}" ; then
  7087. setopt NO_GLOB_SUBST
  7088. fi
  7089. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7090. $as_echo_n "checking for objdir... " >&6; }
  7091. if test "${lt_cv_objdir+set}" = set; then :
  7092. $as_echo_n "(cached) " >&6
  7093. else
  7094. rm -f .libs 2>/dev/null
  7095. mkdir .libs 2>/dev/null
  7096. if test -d .libs; then
  7097. lt_cv_objdir=.libs
  7098. else
  7099. # MS-DOS does not allow filenames that begin with a dot.
  7100. lt_cv_objdir=_libs
  7101. fi
  7102. rmdir .libs 2>/dev/null
  7103. fi
  7104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7105. $as_echo "$lt_cv_objdir" >&6; }
  7106. objdir=$lt_cv_objdir
  7107. cat >>confdefs.h <<_ACEOF
  7108. #define LT_OBJDIR "$lt_cv_objdir/"
  7109. _ACEOF
  7110. case $host_os in
  7111. aix3*)
  7112. # AIX sometimes has problems with the GCC collect2 program. For some
  7113. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7114. # vanish in a puff of smoke.
  7115. if test "X${COLLECT_NAMES+set}" != Xset; then
  7116. COLLECT_NAMES=
  7117. export COLLECT_NAMES
  7118. fi
  7119. ;;
  7120. esac
  7121. # Sed substitution that helps us do robust quoting. It backslashifies
  7122. # metacharacters that are still active within double-quoted strings.
  7123. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7124. # Same as above, but do not quote variable references.
  7125. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7126. # Sed substitution to delay expansion of an escaped shell variable in a
  7127. # double_quote_subst'ed string.
  7128. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7129. # Sed substitution to delay expansion of an escaped single quote.
  7130. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7131. # Sed substitution to avoid accidental globbing in evaled expressions
  7132. no_glob_subst='s/\*/\\\*/g'
  7133. # Global variables:
  7134. ofile=libtool
  7135. can_build_shared=yes
  7136. # All known linkers require a `.a' archive for static linking (except MSVC,
  7137. # which needs '.lib').
  7138. libext=a
  7139. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7140. old_CC="$CC"
  7141. old_CFLAGS="$CFLAGS"
  7142. # Set sane defaults for various variables
  7143. test -z "$CC" && CC=cc
  7144. test -z "$LTCC" && LTCC=$CC
  7145. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7146. test -z "$LD" && LD=ld
  7147. test -z "$ac_objext" && ac_objext=o
  7148. for cc_temp in $compiler""; do
  7149. case $cc_temp in
  7150. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7151. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7152. \-*) ;;
  7153. *) break;;
  7154. esac
  7155. done
  7156. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7157. # Only perform the check for file, if the check method requires it
  7158. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7159. case $deplibs_check_method in
  7160. file_magic*)
  7161. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7163. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7164. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7165. $as_echo_n "(cached) " >&6
  7166. else
  7167. case $MAGIC_CMD in
  7168. [\\/*] | ?:[\\/]*)
  7169. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7170. ;;
  7171. *)
  7172. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7173. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7174. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7175. for ac_dir in $ac_dummy; do
  7176. IFS="$lt_save_ifs"
  7177. test -z "$ac_dir" && ac_dir=.
  7178. if test -f $ac_dir/${ac_tool_prefix}file; then
  7179. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7180. if test -n "$file_magic_test_file"; then
  7181. case $deplibs_check_method in
  7182. "file_magic "*)
  7183. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7184. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7185. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7186. $EGREP "$file_magic_regex" > /dev/null; then
  7187. :
  7188. else
  7189. cat <<_LT_EOF 1>&2
  7190. *** Warning: the command libtool uses to detect shared libraries,
  7191. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7192. *** The result is that libtool may fail to recognize shared libraries
  7193. *** as such. This will affect the creation of libtool libraries that
  7194. *** depend on shared libraries, but programs linked with such libtool
  7195. *** libraries will work regardless of this problem. Nevertheless, you
  7196. *** may want to report the problem to your system manager and/or to
  7197. *** [email protected]
  7198. _LT_EOF
  7199. fi ;;
  7200. esac
  7201. fi
  7202. break
  7203. fi
  7204. done
  7205. IFS="$lt_save_ifs"
  7206. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7207. ;;
  7208. esac
  7209. fi
  7210. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7211. if test -n "$MAGIC_CMD"; then
  7212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7213. $as_echo "$MAGIC_CMD" >&6; }
  7214. else
  7215. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7216. $as_echo "no" >&6; }
  7217. fi
  7218. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7219. if test -n "$ac_tool_prefix"; then
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7221. $as_echo_n "checking for file... " >&6; }
  7222. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7223. $as_echo_n "(cached) " >&6
  7224. else
  7225. case $MAGIC_CMD in
  7226. [\\/*] | ?:[\\/]*)
  7227. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7228. ;;
  7229. *)
  7230. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7231. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7232. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7233. for ac_dir in $ac_dummy; do
  7234. IFS="$lt_save_ifs"
  7235. test -z "$ac_dir" && ac_dir=.
  7236. if test -f $ac_dir/file; then
  7237. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7238. if test -n "$file_magic_test_file"; then
  7239. case $deplibs_check_method in
  7240. "file_magic "*)
  7241. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7242. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7243. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7244. $EGREP "$file_magic_regex" > /dev/null; then
  7245. :
  7246. else
  7247. cat <<_LT_EOF 1>&2
  7248. *** Warning: the command libtool uses to detect shared libraries,
  7249. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7250. *** The result is that libtool may fail to recognize shared libraries
  7251. *** as such. This will affect the creation of libtool libraries that
  7252. *** depend on shared libraries, but programs linked with such libtool
  7253. *** libraries will work regardless of this problem. Nevertheless, you
  7254. *** may want to report the problem to your system manager and/or to
  7255. *** [email protected]
  7256. _LT_EOF
  7257. fi ;;
  7258. esac
  7259. fi
  7260. break
  7261. fi
  7262. done
  7263. IFS="$lt_save_ifs"
  7264. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7265. ;;
  7266. esac
  7267. fi
  7268. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7269. if test -n "$MAGIC_CMD"; then
  7270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7271. $as_echo "$MAGIC_CMD" >&6; }
  7272. else
  7273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7274. $as_echo "no" >&6; }
  7275. fi
  7276. else
  7277. MAGIC_CMD=:
  7278. fi
  7279. fi
  7280. fi
  7281. ;;
  7282. esac
  7283. # Use C for the default configuration in the libtool script
  7284. lt_save_CC="$CC"
  7285. ac_ext=c
  7286. ac_cpp='$CPP $CPPFLAGS'
  7287. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7288. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7289. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7290. # Source file extension for C test sources.
  7291. ac_ext=c
  7292. # Object file extension for compiled C test sources.
  7293. objext=o
  7294. objext=$objext
  7295. # Code to be used in simple compile tests
  7296. lt_simple_compile_test_code="int some_variable = 0;"
  7297. # Code to be used in simple link tests
  7298. lt_simple_link_test_code='int main(){return(0);}'
  7299. # If no C compiler was specified, use CC.
  7300. LTCC=${LTCC-"$CC"}
  7301. # If no C compiler flags were specified, use CFLAGS.
  7302. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7303. # Allow CC to be a program name with arguments.
  7304. compiler=$CC
  7305. # Save the default compiler, since it gets overwritten when the other
  7306. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7307. compiler_DEFAULT=$CC
  7308. # save warnings/boilerplate of simple test code
  7309. ac_outfile=conftest.$ac_objext
  7310. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7311. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7312. _lt_compiler_boilerplate=`cat conftest.err`
  7313. $RM conftest*
  7314. ac_outfile=conftest.$ac_objext
  7315. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7316. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7317. _lt_linker_boilerplate=`cat conftest.err`
  7318. $RM -r conftest*
  7319. ## CAVEAT EMPTOR:
  7320. ## There is no encapsulation within the following macros, do not change
  7321. ## the running order or otherwise move them around unless you know exactly
  7322. ## what you are doing...
  7323. if test -n "$compiler"; then
  7324. lt_prog_compiler_no_builtin_flag=
  7325. if test "$GCC" = yes; then
  7326. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7328. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7329. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7330. $as_echo_n "(cached) " >&6
  7331. else
  7332. lt_cv_prog_compiler_rtti_exceptions=no
  7333. ac_outfile=conftest.$ac_objext
  7334. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7335. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7336. # Insert the option either (1) after the last *FLAGS variable, or
  7337. # (2) before a word containing "conftest.", or (3) at the end.
  7338. # Note that $ac_compile itself does not contain backslashes and begins
  7339. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7340. # The option is referenced via a variable to avoid confusing sed.
  7341. lt_compile=`echo "$ac_compile" | $SED \
  7342. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7343. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7344. -e 's:$: $lt_compiler_flag:'`
  7345. (eval echo "\"\$as_me:8379: $lt_compile\"" >&5)
  7346. (eval "$lt_compile" 2>conftest.err)
  7347. ac_status=$?
  7348. cat conftest.err >&5
  7349. echo "$as_me:8383: \$? = $ac_status" >&5
  7350. if (exit $ac_status) && test -s "$ac_outfile"; then
  7351. # The compiler can only warn and ignore the option if not recognized
  7352. # So say no if there are warnings other than the usual output.
  7353. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7354. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7355. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7356. lt_cv_prog_compiler_rtti_exceptions=yes
  7357. fi
  7358. fi
  7359. $RM conftest*
  7360. fi
  7361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7362. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7363. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7364. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7365. else
  7366. :
  7367. fi
  7368. fi
  7369. lt_prog_compiler_wl=
  7370. lt_prog_compiler_pic=
  7371. lt_prog_compiler_static=
  7372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7373. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7374. if test "$GCC" = yes; then
  7375. lt_prog_compiler_wl='-Wl,'
  7376. lt_prog_compiler_static='-static'
  7377. case $host_os in
  7378. aix*)
  7379. # All AIX code is PIC.
  7380. if test "$host_cpu" = ia64; then
  7381. # AIX 5 now supports IA64 processor
  7382. lt_prog_compiler_static='-Bstatic'
  7383. fi
  7384. ;;
  7385. amigaos*)
  7386. case $host_cpu in
  7387. powerpc)
  7388. # see comment about AmigaOS4 .so support
  7389. lt_prog_compiler_pic='-fPIC'
  7390. ;;
  7391. m68k)
  7392. # FIXME: we need at least 68020 code to build shared libraries, but
  7393. # adding the `-m68020' flag to GCC prevents building anything better,
  7394. # like `-m68040'.
  7395. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7396. ;;
  7397. esac
  7398. ;;
  7399. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7400. # PIC is the default for these OSes.
  7401. ;;
  7402. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7403. # This hack is so that the source file can tell whether it is being
  7404. # built for inclusion in a dll (and should export symbols for example).
  7405. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7406. # (--disable-auto-import) libraries
  7407. lt_prog_compiler_pic='-DDLL_EXPORT'
  7408. ;;
  7409. darwin* | rhapsody*)
  7410. # PIC is the default on this platform
  7411. # Common symbols not allowed in MH_DYLIB files
  7412. lt_prog_compiler_pic='-fno-common'
  7413. ;;
  7414. hpux*)
  7415. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7416. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7417. # sets the default TLS model and affects inlining.
  7418. case $host_cpu in
  7419. hppa*64*)
  7420. # +Z the default
  7421. ;;
  7422. *)
  7423. lt_prog_compiler_pic='-fPIC'
  7424. ;;
  7425. esac
  7426. ;;
  7427. interix[3-9]*)
  7428. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7429. # Instead, we relocate shared libraries at runtime.
  7430. ;;
  7431. msdosdjgpp*)
  7432. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7433. # on systems that don't support them.
  7434. lt_prog_compiler_can_build_shared=no
  7435. enable_shared=no
  7436. ;;
  7437. *nto* | *qnx*)
  7438. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7439. # it will coredump.
  7440. lt_prog_compiler_pic='-fPIC -shared'
  7441. ;;
  7442. sysv4*MP*)
  7443. if test -d /usr/nec; then
  7444. lt_prog_compiler_pic=-Kconform_pic
  7445. fi
  7446. ;;
  7447. *)
  7448. lt_prog_compiler_pic='-fPIC'
  7449. ;;
  7450. esac
  7451. else
  7452. # PORTME Check for flag to pass linker flags through the system compiler.
  7453. case $host_os in
  7454. aix*)
  7455. lt_prog_compiler_wl='-Wl,'
  7456. if test "$host_cpu" = ia64; then
  7457. # AIX 5 now supports IA64 processor
  7458. lt_prog_compiler_static='-Bstatic'
  7459. else
  7460. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7461. fi
  7462. ;;
  7463. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7464. # This hack is so that the source file can tell whether it is being
  7465. # built for inclusion in a dll (and should export symbols for example).
  7466. lt_prog_compiler_pic='-DDLL_EXPORT'
  7467. ;;
  7468. hpux9* | hpux10* | hpux11*)
  7469. lt_prog_compiler_wl='-Wl,'
  7470. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7471. # not for PA HP-UX.
  7472. case $host_cpu in
  7473. hppa*64*|ia64*)
  7474. # +Z the default
  7475. ;;
  7476. *)
  7477. lt_prog_compiler_pic='+Z'
  7478. ;;
  7479. esac
  7480. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7481. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7482. ;;
  7483. irix5* | irix6* | nonstopux*)
  7484. lt_prog_compiler_wl='-Wl,'
  7485. # PIC (with -KPIC) is the default.
  7486. lt_prog_compiler_static='-non_shared'
  7487. ;;
  7488. linux* | k*bsd*-gnu)
  7489. case $cc_basename in
  7490. # old Intel for x86_64 which still supported -KPIC.
  7491. ecc*)
  7492. lt_prog_compiler_wl='-Wl,'
  7493. lt_prog_compiler_pic='-KPIC'
  7494. lt_prog_compiler_static='-static'
  7495. ;;
  7496. # icc used to be incompatible with GCC.
  7497. # ICC 10 doesn't accept -KPIC any more.
  7498. icc* | ifort*)
  7499. lt_prog_compiler_wl='-Wl,'
  7500. lt_prog_compiler_pic='-fPIC'
  7501. lt_prog_compiler_static='-static'
  7502. ;;
  7503. # Lahey Fortran 8.1.
  7504. lf95*)
  7505. lt_prog_compiler_wl='-Wl,'
  7506. lt_prog_compiler_pic='--shared'
  7507. lt_prog_compiler_static='--static'
  7508. ;;
  7509. pgcc* | pgf77* | pgf90* | pgf95*)
  7510. # Portland Group compilers (*not* the Pentium gcc compiler,
  7511. # which looks to be a dead project)
  7512. lt_prog_compiler_wl='-Wl,'
  7513. lt_prog_compiler_pic='-fpic'
  7514. lt_prog_compiler_static='-Bstatic'
  7515. ;;
  7516. ccc*)
  7517. lt_prog_compiler_wl='-Wl,'
  7518. # All Alpha code is PIC.
  7519. lt_prog_compiler_static='-non_shared'
  7520. ;;
  7521. xl*)
  7522. # IBM XL C 8.0/Fortran 10.1 on PPC
  7523. lt_prog_compiler_wl='-Wl,'
  7524. lt_prog_compiler_pic='-qpic'
  7525. lt_prog_compiler_static='-qstaticlink'
  7526. ;;
  7527. *)
  7528. case `$CC -V 2>&1 | sed 5q` in
  7529. *Sun\ C*)
  7530. # Sun C 5.9
  7531. lt_prog_compiler_pic='-KPIC'
  7532. lt_prog_compiler_static='-Bstatic'
  7533. lt_prog_compiler_wl='-Wl,'
  7534. ;;
  7535. *Sun\ F*)
  7536. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7537. lt_prog_compiler_pic='-KPIC'
  7538. lt_prog_compiler_static='-Bstatic'
  7539. lt_prog_compiler_wl=''
  7540. ;;
  7541. esac
  7542. ;;
  7543. esac
  7544. ;;
  7545. newsos6)
  7546. lt_prog_compiler_pic='-KPIC'
  7547. lt_prog_compiler_static='-Bstatic'
  7548. ;;
  7549. *nto* | *qnx*)
  7550. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7551. # it will coredump.
  7552. lt_prog_compiler_pic='-fPIC -shared'
  7553. ;;
  7554. osf3* | osf4* | osf5*)
  7555. lt_prog_compiler_wl='-Wl,'
  7556. # All OSF/1 code is PIC.
  7557. lt_prog_compiler_static='-non_shared'
  7558. ;;
  7559. rdos*)
  7560. lt_prog_compiler_static='-non_shared'
  7561. ;;
  7562. solaris*)
  7563. lt_prog_compiler_pic='-KPIC'
  7564. lt_prog_compiler_static='-Bstatic'
  7565. case $cc_basename in
  7566. f77* | f90* | f95*)
  7567. lt_prog_compiler_wl='-Qoption ld ';;
  7568. *)
  7569. lt_prog_compiler_wl='-Wl,';;
  7570. esac
  7571. ;;
  7572. sunos4*)
  7573. lt_prog_compiler_wl='-Qoption ld '
  7574. lt_prog_compiler_pic='-PIC'
  7575. lt_prog_compiler_static='-Bstatic'
  7576. ;;
  7577. sysv4 | sysv4.2uw2* | sysv4.3*)
  7578. lt_prog_compiler_wl='-Wl,'
  7579. lt_prog_compiler_pic='-KPIC'
  7580. lt_prog_compiler_static='-Bstatic'
  7581. ;;
  7582. sysv4*MP*)
  7583. if test -d /usr/nec ;then
  7584. lt_prog_compiler_pic='-Kconform_pic'
  7585. lt_prog_compiler_static='-Bstatic'
  7586. fi
  7587. ;;
  7588. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7589. lt_prog_compiler_wl='-Wl,'
  7590. lt_prog_compiler_pic='-KPIC'
  7591. lt_prog_compiler_static='-Bstatic'
  7592. ;;
  7593. unicos*)
  7594. lt_prog_compiler_wl='-Wl,'
  7595. lt_prog_compiler_can_build_shared=no
  7596. ;;
  7597. uts4*)
  7598. lt_prog_compiler_pic='-pic'
  7599. lt_prog_compiler_static='-Bstatic'
  7600. ;;
  7601. *)
  7602. lt_prog_compiler_can_build_shared=no
  7603. ;;
  7604. esac
  7605. fi
  7606. case $host_os in
  7607. # For platforms which do not support PIC, -DPIC is meaningless:
  7608. *djgpp*)
  7609. lt_prog_compiler_pic=
  7610. ;;
  7611. *)
  7612. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7613. ;;
  7614. esac
  7615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7616. $as_echo "$lt_prog_compiler_pic" >&6; }
  7617. #
  7618. # Check to make sure the PIC flag actually works.
  7619. #
  7620. if test -n "$lt_prog_compiler_pic"; then
  7621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7622. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7623. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7624. $as_echo_n "(cached) " >&6
  7625. else
  7626. lt_cv_prog_compiler_pic_works=no
  7627. ac_outfile=conftest.$ac_objext
  7628. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7629. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7630. # Insert the option either (1) after the last *FLAGS variable, or
  7631. # (2) before a word containing "conftest.", or (3) at the end.
  7632. # Note that $ac_compile itself does not contain backslashes and begins
  7633. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7634. # The option is referenced via a variable to avoid confusing sed.
  7635. lt_compile=`echo "$ac_compile" | $SED \
  7636. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7637. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7638. -e 's:$: $lt_compiler_flag:'`
  7639. (eval echo "\"\$as_me:8718: $lt_compile\"" >&5)
  7640. (eval "$lt_compile" 2>conftest.err)
  7641. ac_status=$?
  7642. cat conftest.err >&5
  7643. echo "$as_me:8722: \$? = $ac_status" >&5
  7644. if (exit $ac_status) && test -s "$ac_outfile"; then
  7645. # The compiler can only warn and ignore the option if not recognized
  7646. # So say no if there are warnings other than the usual output.
  7647. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7648. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7649. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7650. lt_cv_prog_compiler_pic_works=yes
  7651. fi
  7652. fi
  7653. $RM conftest*
  7654. fi
  7655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7656. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7657. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7658. case $lt_prog_compiler_pic in
  7659. "" | " "*) ;;
  7660. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7661. esac
  7662. else
  7663. lt_prog_compiler_pic=
  7664. lt_prog_compiler_can_build_shared=no
  7665. fi
  7666. fi
  7667. #
  7668. # Check to make sure the static flag actually works.
  7669. #
  7670. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7671. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7672. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7673. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7674. $as_echo_n "(cached) " >&6
  7675. else
  7676. lt_cv_prog_compiler_static_works=no
  7677. save_LDFLAGS="$LDFLAGS"
  7678. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7679. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7680. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7681. # The linker can only warn and ignore the option if not recognized
  7682. # So say no if there are warnings
  7683. if test -s conftest.err; then
  7684. # Append any errors to the config.log.
  7685. cat conftest.err 1>&5
  7686. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7687. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7688. if diff conftest.exp conftest.er2 >/dev/null; then
  7689. lt_cv_prog_compiler_static_works=yes
  7690. fi
  7691. else
  7692. lt_cv_prog_compiler_static_works=yes
  7693. fi
  7694. fi
  7695. $RM -r conftest*
  7696. LDFLAGS="$save_LDFLAGS"
  7697. fi
  7698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7699. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7700. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7701. :
  7702. else
  7703. lt_prog_compiler_static=
  7704. fi
  7705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7706. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7707. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7708. $as_echo_n "(cached) " >&6
  7709. else
  7710. lt_cv_prog_compiler_c_o=no
  7711. $RM -r conftest 2>/dev/null
  7712. mkdir conftest
  7713. cd conftest
  7714. mkdir out
  7715. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7716. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7717. # Insert the option either (1) after the last *FLAGS variable, or
  7718. # (2) before a word containing "conftest.", or (3) at the end.
  7719. # Note that $ac_compile itself does not contain backslashes and begins
  7720. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7721. lt_compile=`echo "$ac_compile" | $SED \
  7722. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7723. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7724. -e 's:$: $lt_compiler_flag:'`
  7725. (eval echo "\"\$as_me:8823: $lt_compile\"" >&5)
  7726. (eval "$lt_compile" 2>out/conftest.err)
  7727. ac_status=$?
  7728. cat out/conftest.err >&5
  7729. echo "$as_me:8827: \$? = $ac_status" >&5
  7730. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7731. then
  7732. # The compiler can only warn and ignore the option if not recognized
  7733. # So say no if there are warnings
  7734. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7735. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7736. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7737. lt_cv_prog_compiler_c_o=yes
  7738. fi
  7739. fi
  7740. chmod u+w . 2>&5
  7741. $RM conftest*
  7742. # SGI C++ compiler will create directory out/ii_files/ for
  7743. # template instantiation
  7744. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7745. $RM out/* && rmdir out
  7746. cd ..
  7747. $RM -r conftest
  7748. $RM conftest*
  7749. fi
  7750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7751. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7753. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7754. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7755. $as_echo_n "(cached) " >&6
  7756. else
  7757. lt_cv_prog_compiler_c_o=no
  7758. $RM -r conftest 2>/dev/null
  7759. mkdir conftest
  7760. cd conftest
  7761. mkdir out
  7762. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7763. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7764. # Insert the option either (1) after the last *FLAGS variable, or
  7765. # (2) before a word containing "conftest.", or (3) at the end.
  7766. # Note that $ac_compile itself does not contain backslashes and begins
  7767. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7768. lt_compile=`echo "$ac_compile" | $SED \
  7769. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7770. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7771. -e 's:$: $lt_compiler_flag:'`
  7772. (eval echo "\"\$as_me:8878: $lt_compile\"" >&5)
  7773. (eval "$lt_compile" 2>out/conftest.err)
  7774. ac_status=$?
  7775. cat out/conftest.err >&5
  7776. echo "$as_me:8882: \$? = $ac_status" >&5
  7777. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7778. then
  7779. # The compiler can only warn and ignore the option if not recognized
  7780. # So say no if there are warnings
  7781. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7782. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7783. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7784. lt_cv_prog_compiler_c_o=yes
  7785. fi
  7786. fi
  7787. chmod u+w . 2>&5
  7788. $RM conftest*
  7789. # SGI C++ compiler will create directory out/ii_files/ for
  7790. # template instantiation
  7791. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7792. $RM out/* && rmdir out
  7793. cd ..
  7794. $RM -r conftest
  7795. $RM conftest*
  7796. fi
  7797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7798. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7799. hard_links="nottested"
  7800. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7801. # do not overwrite the value of need_locks provided by the user
  7802. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7803. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7804. hard_links=yes
  7805. $RM conftest*
  7806. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7807. touch conftest.a
  7808. ln conftest.a conftest.b 2>&5 || hard_links=no
  7809. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7811. $as_echo "$hard_links" >&6; }
  7812. if test "$hard_links" = no; then
  7813. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7814. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7815. need_locks=warn
  7816. fi
  7817. else
  7818. need_locks=no
  7819. fi
  7820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7821. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7822. runpath_var=
  7823. allow_undefined_flag=
  7824. always_export_symbols=no
  7825. archive_cmds=
  7826. archive_expsym_cmds=
  7827. compiler_needs_object=no
  7828. enable_shared_with_static_runtimes=no
  7829. export_dynamic_flag_spec=
  7830. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7831. hardcode_automatic=no
  7832. hardcode_direct=no
  7833. hardcode_direct_absolute=no
  7834. hardcode_libdir_flag_spec=
  7835. hardcode_libdir_flag_spec_ld=
  7836. hardcode_libdir_separator=
  7837. hardcode_minus_L=no
  7838. hardcode_shlibpath_var=unsupported
  7839. inherit_rpath=no
  7840. link_all_deplibs=unknown
  7841. module_cmds=
  7842. module_expsym_cmds=
  7843. old_archive_from_new_cmds=
  7844. old_archive_from_expsyms_cmds=
  7845. thread_safe_flag_spec=
  7846. whole_archive_flag_spec=
  7847. # include_expsyms should be a list of space-separated symbols to be *always*
  7848. # included in the symbol list
  7849. include_expsyms=
  7850. # exclude_expsyms can be an extended regexp of symbols to exclude
  7851. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7852. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7853. # as well as any symbol that contains `d'.
  7854. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7855. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7856. # platforms (ab)use it in PIC code, but their linkers get confused if
  7857. # the symbol is explicitly referenced. Since portable code cannot
  7858. # rely on this symbol name, it's probably fine to never include it in
  7859. # preloaded symbol tables.
  7860. # Exclude shared library initialization/finalization symbols.
  7861. extract_expsyms_cmds=
  7862. case $host_os in
  7863. cygwin* | mingw* | pw32* | cegcc*)
  7864. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7865. # When not using gcc, we currently assume that we are using
  7866. # Microsoft Visual C++.
  7867. if test "$GCC" != yes; then
  7868. with_gnu_ld=no
  7869. fi
  7870. ;;
  7871. interix*)
  7872. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7873. with_gnu_ld=yes
  7874. ;;
  7875. openbsd*)
  7876. with_gnu_ld=no
  7877. ;;
  7878. esac
  7879. ld_shlibs=yes
  7880. if test "$with_gnu_ld" = yes; then
  7881. # If archive_cmds runs LD, not CC, wlarc should be empty
  7882. wlarc='${wl}'
  7883. # Set some defaults for GNU ld with shared library support. These
  7884. # are reset later if shared libraries are not supported. Putting them
  7885. # here allows them to be overridden if necessary.
  7886. runpath_var=LD_RUN_PATH
  7887. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7888. export_dynamic_flag_spec='${wl}--export-dynamic'
  7889. # ancient GNU ld didn't support --whole-archive et. al.
  7890. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7891. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7892. else
  7893. whole_archive_flag_spec=
  7894. fi
  7895. supports_anon_versioning=no
  7896. case `$LD -v 2>&1` in
  7897. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7898. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7899. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7900. *\ 2.11.*) ;; # other 2.11 versions
  7901. *) supports_anon_versioning=yes ;;
  7902. esac
  7903. # See if GNU ld supports shared libraries.
  7904. case $host_os in
  7905. aix[3-9]*)
  7906. # On AIX/PPC, the GNU linker is very broken
  7907. if test "$host_cpu" != ia64; then
  7908. ld_shlibs=no
  7909. cat <<_LT_EOF 1>&2
  7910. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7911. *** to be unable to reliably create shared libraries on AIX.
  7912. *** Therefore, libtool is disabling shared libraries support. If you
  7913. *** really care for shared libraries, you may want to modify your PATH
  7914. *** so that a non-GNU linker is found, and then restart.
  7915. _LT_EOF
  7916. fi
  7917. ;;
  7918. amigaos*)
  7919. case $host_cpu in
  7920. powerpc)
  7921. # see comment about AmigaOS4 .so support
  7922. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7923. archive_expsym_cmds=''
  7924. ;;
  7925. m68k)
  7926. 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)'
  7927. hardcode_libdir_flag_spec='-L$libdir'
  7928. hardcode_minus_L=yes
  7929. ;;
  7930. esac
  7931. ;;
  7932. beos*)
  7933. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7934. allow_undefined_flag=unsupported
  7935. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7936. # support --undefined. This deserves some investigation. FIXME
  7937. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7938. else
  7939. ld_shlibs=no
  7940. fi
  7941. ;;
  7942. cygwin* | mingw* | pw32* | cegcc*)
  7943. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7944. # as there is no search path for DLLs.
  7945. hardcode_libdir_flag_spec='-L$libdir'
  7946. allow_undefined_flag=unsupported
  7947. always_export_symbols=no
  7948. enable_shared_with_static_runtimes=yes
  7949. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7950. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7951. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7952. # If the export-symbols file already is a .def file (1st line
  7953. # is EXPORTS), use it as is; otherwise, prepend...
  7954. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7955. cp $export_symbols $output_objdir/$soname.def;
  7956. else
  7957. echo EXPORTS > $output_objdir/$soname.def;
  7958. cat $export_symbols >> $output_objdir/$soname.def;
  7959. fi~
  7960. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7961. else
  7962. ld_shlibs=no
  7963. fi
  7964. ;;
  7965. interix[3-9]*)
  7966. hardcode_direct=no
  7967. hardcode_shlibpath_var=no
  7968. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7969. export_dynamic_flag_spec='${wl}-E'
  7970. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7971. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7972. # default) and relocated if they conflict, which is a slow very memory
  7973. # consuming and fragmenting process. To avoid this, we pick a random,
  7974. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7975. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7976. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7977. 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'
  7978. ;;
  7979. gnu* | linux* | tpf* | k*bsd*-gnu)
  7980. tmp_diet=no
  7981. if test "$host_os" = linux-dietlibc; then
  7982. case $cc_basename in
  7983. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7984. esac
  7985. fi
  7986. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7987. && test "$tmp_diet" = no
  7988. then
  7989. tmp_addflag=
  7990. tmp_sharedflag='-shared'
  7991. case $cc_basename,$host_cpu in
  7992. pgcc*) # Portland Group C compiler
  7993. 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'
  7994. tmp_addflag=' $pic_flag'
  7995. ;;
  7996. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7997. 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'
  7998. tmp_addflag=' $pic_flag -Mnomain' ;;
  7999. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8000. tmp_addflag=' -i_dynamic' ;;
  8001. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8002. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8003. ifc* | ifort*) # Intel Fortran compiler
  8004. tmp_addflag=' -nofor_main' ;;
  8005. lf95*) # Lahey Fortran 8.1
  8006. whole_archive_flag_spec=
  8007. tmp_sharedflag='--shared' ;;
  8008. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8009. tmp_sharedflag='-qmkshrobj'
  8010. tmp_addflag= ;;
  8011. esac
  8012. case `$CC -V 2>&1 | sed 5q` in
  8013. *Sun\ C*) # Sun C 5.9
  8014. 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'
  8015. compiler_needs_object=yes
  8016. tmp_sharedflag='-G' ;;
  8017. *Sun\ F*) # Sun Fortran 8.3
  8018. tmp_sharedflag='-G' ;;
  8019. esac
  8020. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8021. if test "x$supports_anon_versioning" = xyes; then
  8022. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8023. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8024. echo "local: *; };" >> $output_objdir/$libname.ver~
  8025. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8026. fi
  8027. case $cc_basename in
  8028. xlf*)
  8029. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8030. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8031. hardcode_libdir_flag_spec=
  8032. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8033. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8034. if test "x$supports_anon_versioning" = xyes; then
  8035. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8036. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8037. echo "local: *; };" >> $output_objdir/$libname.ver~
  8038. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8039. fi
  8040. ;;
  8041. esac
  8042. else
  8043. ld_shlibs=no
  8044. fi
  8045. ;;
  8046. netbsd* | netbsdelf*-gnu)
  8047. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8048. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8049. wlarc=
  8050. else
  8051. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8052. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8053. fi
  8054. ;;
  8055. solaris*)
  8056. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8057. ld_shlibs=no
  8058. cat <<_LT_EOF 1>&2
  8059. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8060. *** create shared libraries on Solaris systems. Therefore, libtool
  8061. *** is disabling shared libraries support. We urge you to upgrade GNU
  8062. *** binutils to release 2.9.1 or newer. Another option is to modify
  8063. *** your PATH or compiler configuration so that the native linker is
  8064. *** used, and then restart.
  8065. _LT_EOF
  8066. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8067. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8068. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8069. else
  8070. ld_shlibs=no
  8071. fi
  8072. ;;
  8073. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8074. case `$LD -v 2>&1` in
  8075. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8076. ld_shlibs=no
  8077. cat <<_LT_EOF 1>&2
  8078. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8079. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8080. *** is disabling shared libraries support. We urge you to upgrade GNU
  8081. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8082. *** your PATH or compiler configuration so that the native linker is
  8083. *** used, and then restart.
  8084. _LT_EOF
  8085. ;;
  8086. *)
  8087. # For security reasons, it is highly recommended that you always
  8088. # use absolute paths for naming shared libraries, and exclude the
  8089. # DT_RUNPATH tag from executables and libraries. But doing so
  8090. # requires that you compile everything twice, which is a pain.
  8091. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8092. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8093. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8094. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8095. else
  8096. ld_shlibs=no
  8097. fi
  8098. ;;
  8099. esac
  8100. ;;
  8101. sunos4*)
  8102. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8103. wlarc=
  8104. hardcode_direct=yes
  8105. hardcode_shlibpath_var=no
  8106. ;;
  8107. *)
  8108. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8109. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8110. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8111. else
  8112. ld_shlibs=no
  8113. fi
  8114. ;;
  8115. esac
  8116. if test "$ld_shlibs" = no; then
  8117. runpath_var=
  8118. hardcode_libdir_flag_spec=
  8119. export_dynamic_flag_spec=
  8120. whole_archive_flag_spec=
  8121. fi
  8122. else
  8123. # PORTME fill in a description of your system's linker (not GNU ld)
  8124. case $host_os in
  8125. aix3*)
  8126. allow_undefined_flag=unsupported
  8127. always_export_symbols=yes
  8128. 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'
  8129. # Note: this linker hardcodes the directories in LIBPATH if there
  8130. # are no directories specified by -L.
  8131. hardcode_minus_L=yes
  8132. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8133. # Neither direct hardcoding nor static linking is supported with a
  8134. # broken collect2.
  8135. hardcode_direct=unsupported
  8136. fi
  8137. ;;
  8138. aix[4-9]*)
  8139. if test "$host_cpu" = ia64; then
  8140. # On IA64, the linker does run time linking by default, so we don't
  8141. # have to do anything special.
  8142. aix_use_runtimelinking=no
  8143. exp_sym_flag='-Bexport'
  8144. no_entry_flag=""
  8145. else
  8146. # If we're using GNU nm, then we don't want the "-C" option.
  8147. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8148. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8149. 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'
  8150. else
  8151. 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'
  8152. fi
  8153. aix_use_runtimelinking=no
  8154. # Test if we are trying to use run time linking or normal
  8155. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8156. # need to do runtime linking.
  8157. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8158. for ld_flag in $LDFLAGS; do
  8159. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8160. aix_use_runtimelinking=yes
  8161. break
  8162. fi
  8163. done
  8164. ;;
  8165. esac
  8166. exp_sym_flag='-bexport'
  8167. no_entry_flag='-bnoentry'
  8168. fi
  8169. # When large executables or shared objects are built, AIX ld can
  8170. # have problems creating the table of contents. If linking a library
  8171. # or program results in "error TOC overflow" add -mminimal-toc to
  8172. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8173. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8174. archive_cmds=''
  8175. hardcode_direct=yes
  8176. hardcode_direct_absolute=yes
  8177. hardcode_libdir_separator=':'
  8178. link_all_deplibs=yes
  8179. file_list_spec='${wl}-f,'
  8180. if test "$GCC" = yes; then
  8181. case $host_os in aix4.[012]|aix4.[012].*)
  8182. # We only want to do this on AIX 4.2 and lower, the check
  8183. # below for broken collect2 doesn't work under 4.3+
  8184. collect2name=`${CC} -print-prog-name=collect2`
  8185. if test -f "$collect2name" &&
  8186. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8187. then
  8188. # We have reworked collect2
  8189. :
  8190. else
  8191. # We have old collect2
  8192. hardcode_direct=unsupported
  8193. # It fails to find uninstalled libraries when the uninstalled
  8194. # path is not listed in the libpath. Setting hardcode_minus_L
  8195. # to unsupported forces relinking
  8196. hardcode_minus_L=yes
  8197. hardcode_libdir_flag_spec='-L$libdir'
  8198. hardcode_libdir_separator=
  8199. fi
  8200. ;;
  8201. esac
  8202. shared_flag='-shared'
  8203. if test "$aix_use_runtimelinking" = yes; then
  8204. shared_flag="$shared_flag "'${wl}-G'
  8205. fi
  8206. link_all_deplibs=no
  8207. else
  8208. # not using gcc
  8209. if test "$host_cpu" = ia64; then
  8210. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8211. # chokes on -Wl,-G. The following line is correct:
  8212. shared_flag='-G'
  8213. else
  8214. if test "$aix_use_runtimelinking" = yes; then
  8215. shared_flag='${wl}-G'
  8216. else
  8217. shared_flag='${wl}-bM:SRE'
  8218. fi
  8219. fi
  8220. fi
  8221. export_dynamic_flag_spec='${wl}-bexpall'
  8222. # It seems that -bexpall does not export symbols beginning with
  8223. # underscore (_), so it is better to generate a list of symbols to export.
  8224. always_export_symbols=yes
  8225. if test "$aix_use_runtimelinking" = yes; then
  8226. # Warning - without using the other runtime loading flags (-brtl),
  8227. # -berok will link without error, but may produce a broken library.
  8228. allow_undefined_flag='-berok'
  8229. # Determine the default libpath from the value encoded in an
  8230. # empty executable.
  8231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8232. /* end confdefs.h. */
  8233. int
  8234. main ()
  8235. {
  8236. ;
  8237. return 0;
  8238. }
  8239. _ACEOF
  8240. if ac_fn_c_try_link "$LINENO"; then :
  8241. lt_aix_libpath_sed='
  8242. /Import File Strings/,/^$/ {
  8243. /^0/ {
  8244. s/^0 *\(.*\)$/\1/
  8245. p
  8246. }
  8247. }'
  8248. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8249. # Check for a 64-bit object if we didn't find anything.
  8250. if test -z "$aix_libpath"; then
  8251. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8252. fi
  8253. fi
  8254. rm -f core conftest.err conftest.$ac_objext \
  8255. conftest$ac_exeext conftest.$ac_ext
  8256. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8257. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8258. 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"
  8259. else
  8260. if test "$host_cpu" = ia64; then
  8261. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8262. allow_undefined_flag="-z nodefs"
  8263. 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"
  8264. else
  8265. # Determine the default libpath from the value encoded in an
  8266. # empty executable.
  8267. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8268. /* end confdefs.h. */
  8269. int
  8270. main ()
  8271. {
  8272. ;
  8273. return 0;
  8274. }
  8275. _ACEOF
  8276. if ac_fn_c_try_link "$LINENO"; then :
  8277. lt_aix_libpath_sed='
  8278. /Import File Strings/,/^$/ {
  8279. /^0/ {
  8280. s/^0 *\(.*\)$/\1/
  8281. p
  8282. }
  8283. }'
  8284. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8285. # Check for a 64-bit object if we didn't find anything.
  8286. if test -z "$aix_libpath"; then
  8287. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8288. fi
  8289. fi
  8290. rm -f core conftest.err conftest.$ac_objext \
  8291. conftest$ac_exeext conftest.$ac_ext
  8292. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8293. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8294. # Warning - without using the other run time loading flags,
  8295. # -berok will link without error, but may produce a broken library.
  8296. no_undefined_flag=' ${wl}-bernotok'
  8297. allow_undefined_flag=' ${wl}-berok'
  8298. # Exported symbols can be pulled into shared objects from archives
  8299. whole_archive_flag_spec='$convenience'
  8300. archive_cmds_need_lc=yes
  8301. # This is similar to how AIX traditionally builds its shared libraries.
  8302. 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'
  8303. fi
  8304. fi
  8305. ;;
  8306. amigaos*)
  8307. case $host_cpu in
  8308. powerpc)
  8309. # see comment about AmigaOS4 .so support
  8310. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8311. archive_expsym_cmds=''
  8312. ;;
  8313. m68k)
  8314. 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)'
  8315. hardcode_libdir_flag_spec='-L$libdir'
  8316. hardcode_minus_L=yes
  8317. ;;
  8318. esac
  8319. ;;
  8320. bsdi[45]*)
  8321. export_dynamic_flag_spec=-rdynamic
  8322. ;;
  8323. cygwin* | mingw* | pw32* | cegcc*)
  8324. # When not using gcc, we currently assume that we are using
  8325. # Microsoft Visual C++.
  8326. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8327. # no search path for DLLs.
  8328. hardcode_libdir_flag_spec=' '
  8329. allow_undefined_flag=unsupported
  8330. # Tell ltmain to make .lib files, not .a files.
  8331. libext=lib
  8332. # Tell ltmain to make .dll files, not .so files.
  8333. shrext_cmds=".dll"
  8334. # FIXME: Setting linknames here is a bad hack.
  8335. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8336. # The linker will automatically build a .lib file if we build a DLL.
  8337. old_archive_from_new_cmds='true'
  8338. # FIXME: Should let the user specify the lib program.
  8339. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8340. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8341. enable_shared_with_static_runtimes=yes
  8342. ;;
  8343. darwin* | rhapsody*)
  8344. archive_cmds_need_lc=no
  8345. hardcode_direct=no
  8346. hardcode_automatic=yes
  8347. hardcode_shlibpath_var=unsupported
  8348. whole_archive_flag_spec=''
  8349. link_all_deplibs=yes
  8350. allow_undefined_flag="$_lt_dar_allow_undefined"
  8351. case $cc_basename in
  8352. ifort*) _lt_dar_can_shared=yes ;;
  8353. *) _lt_dar_can_shared=$GCC ;;
  8354. esac
  8355. if test "$_lt_dar_can_shared" = "yes"; then
  8356. output_verbose_link_cmd=echo
  8357. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8358. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8359. 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}"
  8360. 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}"
  8361. else
  8362. ld_shlibs=no
  8363. fi
  8364. ;;
  8365. dgux*)
  8366. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8367. hardcode_libdir_flag_spec='-L$libdir'
  8368. hardcode_shlibpath_var=no
  8369. ;;
  8370. freebsd1*)
  8371. ld_shlibs=no
  8372. ;;
  8373. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8374. # support. Future versions do this automatically, but an explicit c++rt0.o
  8375. # does not break anything, and helps significantly (at the cost of a little
  8376. # extra space).
  8377. freebsd2.2*)
  8378. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8379. hardcode_libdir_flag_spec='-R$libdir'
  8380. hardcode_direct=yes
  8381. hardcode_shlibpath_var=no
  8382. ;;
  8383. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8384. freebsd2*)
  8385. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8386. hardcode_direct=yes
  8387. hardcode_minus_L=yes
  8388. hardcode_shlibpath_var=no
  8389. ;;
  8390. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8391. freebsd* | dragonfly*)
  8392. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8393. hardcode_libdir_flag_spec='-R$libdir'
  8394. hardcode_direct=yes
  8395. hardcode_shlibpath_var=no
  8396. ;;
  8397. hpux9*)
  8398. if test "$GCC" = yes; then
  8399. 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'
  8400. else
  8401. 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'
  8402. fi
  8403. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8404. hardcode_libdir_separator=:
  8405. hardcode_direct=yes
  8406. # hardcode_minus_L: Not really in the search PATH,
  8407. # but as the default location of the library.
  8408. hardcode_minus_L=yes
  8409. export_dynamic_flag_spec='${wl}-E'
  8410. ;;
  8411. hpux10*)
  8412. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8413. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8414. else
  8415. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8416. fi
  8417. if test "$with_gnu_ld" = no; then
  8418. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8419. hardcode_libdir_flag_spec_ld='+b $libdir'
  8420. hardcode_libdir_separator=:
  8421. hardcode_direct=yes
  8422. hardcode_direct_absolute=yes
  8423. export_dynamic_flag_spec='${wl}-E'
  8424. # hardcode_minus_L: Not really in the search PATH,
  8425. # but as the default location of the library.
  8426. hardcode_minus_L=yes
  8427. fi
  8428. ;;
  8429. hpux11*)
  8430. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8431. case $host_cpu in
  8432. hppa*64*)
  8433. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8434. ;;
  8435. ia64*)
  8436. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8437. ;;
  8438. *)
  8439. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8440. ;;
  8441. esac
  8442. else
  8443. case $host_cpu in
  8444. hppa*64*)
  8445. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8446. ;;
  8447. ia64*)
  8448. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8449. ;;
  8450. *)
  8451. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8452. ;;
  8453. esac
  8454. fi
  8455. if test "$with_gnu_ld" = no; then
  8456. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8457. hardcode_libdir_separator=:
  8458. case $host_cpu in
  8459. hppa*64*|ia64*)
  8460. hardcode_direct=no
  8461. hardcode_shlibpath_var=no
  8462. ;;
  8463. *)
  8464. hardcode_direct=yes
  8465. hardcode_direct_absolute=yes
  8466. export_dynamic_flag_spec='${wl}-E'
  8467. # hardcode_minus_L: Not really in the search PATH,
  8468. # but as the default location of the library.
  8469. hardcode_minus_L=yes
  8470. ;;
  8471. esac
  8472. fi
  8473. ;;
  8474. irix5* | irix6* | nonstopux*)
  8475. if test "$GCC" = yes; then
  8476. 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'
  8477. # Try to use the -exported_symbol ld option, if it does not
  8478. # work, assume that -exports_file does not work either and
  8479. # implicitly export all symbols.
  8480. save_LDFLAGS="$LDFLAGS"
  8481. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8483. /* end confdefs.h. */
  8484. int foo(void) {}
  8485. _ACEOF
  8486. if ac_fn_c_try_link "$LINENO"; then :
  8487. 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'
  8488. fi
  8489. rm -f core conftest.err conftest.$ac_objext \
  8490. conftest$ac_exeext conftest.$ac_ext
  8491. LDFLAGS="$save_LDFLAGS"
  8492. else
  8493. 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'
  8494. 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'
  8495. fi
  8496. archive_cmds_need_lc='no'
  8497. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8498. hardcode_libdir_separator=:
  8499. inherit_rpath=yes
  8500. link_all_deplibs=yes
  8501. ;;
  8502. netbsd* | netbsdelf*-gnu)
  8503. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8504. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8505. else
  8506. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8507. fi
  8508. hardcode_libdir_flag_spec='-R$libdir'
  8509. hardcode_direct=yes
  8510. hardcode_shlibpath_var=no
  8511. ;;
  8512. newsos6)
  8513. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8514. hardcode_direct=yes
  8515. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8516. hardcode_libdir_separator=:
  8517. hardcode_shlibpath_var=no
  8518. ;;
  8519. *nto* | *qnx*)
  8520. ;;
  8521. openbsd*)
  8522. if test -f /usr/libexec/ld.so; then
  8523. hardcode_direct=yes
  8524. hardcode_shlibpath_var=no
  8525. hardcode_direct_absolute=yes
  8526. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8527. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8528. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8529. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8530. export_dynamic_flag_spec='${wl}-E'
  8531. else
  8532. case $host_os in
  8533. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8534. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8535. hardcode_libdir_flag_spec='-R$libdir'
  8536. ;;
  8537. *)
  8538. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8539. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8540. ;;
  8541. esac
  8542. fi
  8543. else
  8544. ld_shlibs=no
  8545. fi
  8546. ;;
  8547. os2*)
  8548. hardcode_libdir_flag_spec='-L$libdir'
  8549. hardcode_minus_L=yes
  8550. allow_undefined_flag=unsupported
  8551. 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'
  8552. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8553. ;;
  8554. osf3*)
  8555. if test "$GCC" = yes; then
  8556. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8557. 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'
  8558. else
  8559. allow_undefined_flag=' -expect_unresolved \*'
  8560. 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'
  8561. fi
  8562. archive_cmds_need_lc='no'
  8563. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8564. hardcode_libdir_separator=:
  8565. ;;
  8566. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8567. if test "$GCC" = yes; then
  8568. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8569. 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'
  8570. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8571. else
  8572. allow_undefined_flag=' -expect_unresolved \*'
  8573. 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'
  8574. 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~
  8575. $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'
  8576. # Both c and cxx compiler support -rpath directly
  8577. hardcode_libdir_flag_spec='-rpath $libdir'
  8578. fi
  8579. archive_cmds_need_lc='no'
  8580. hardcode_libdir_separator=:
  8581. ;;
  8582. solaris*)
  8583. no_undefined_flag=' -z defs'
  8584. if test "$GCC" = yes; then
  8585. wlarc='${wl}'
  8586. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8587. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8588. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8589. else
  8590. case `$CC -V 2>&1` in
  8591. *"Compilers 5.0"*)
  8592. wlarc=''
  8593. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8594. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8595. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8596. ;;
  8597. *)
  8598. wlarc='${wl}'
  8599. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8600. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8601. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8602. ;;
  8603. esac
  8604. fi
  8605. hardcode_libdir_flag_spec='-R$libdir'
  8606. hardcode_shlibpath_var=no
  8607. case $host_os in
  8608. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8609. *)
  8610. # The compiler driver will combine and reorder linker options,
  8611. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8612. # but is careful enough not to reorder.
  8613. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8614. if test "$GCC" = yes; then
  8615. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8616. else
  8617. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8618. fi
  8619. ;;
  8620. esac
  8621. link_all_deplibs=yes
  8622. ;;
  8623. sunos4*)
  8624. if test "x$host_vendor" = xsequent; then
  8625. # Use $CC to link under sequent, because it throws in some extra .o
  8626. # files that make .init and .fini sections work.
  8627. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8628. else
  8629. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8630. fi
  8631. hardcode_libdir_flag_spec='-L$libdir'
  8632. hardcode_direct=yes
  8633. hardcode_minus_L=yes
  8634. hardcode_shlibpath_var=no
  8635. ;;
  8636. sysv4)
  8637. case $host_vendor in
  8638. sni)
  8639. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8640. hardcode_direct=yes # is this really true???
  8641. ;;
  8642. siemens)
  8643. ## LD is ld it makes a PLAMLIB
  8644. ## CC just makes a GrossModule.
  8645. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8646. reload_cmds='$CC -r -o $output$reload_objs'
  8647. hardcode_direct=no
  8648. ;;
  8649. motorola)
  8650. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8651. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8652. ;;
  8653. esac
  8654. runpath_var='LD_RUN_PATH'
  8655. hardcode_shlibpath_var=no
  8656. ;;
  8657. sysv4.3*)
  8658. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8659. hardcode_shlibpath_var=no
  8660. export_dynamic_flag_spec='-Bexport'
  8661. ;;
  8662. sysv4*MP*)
  8663. if test -d /usr/nec; then
  8664. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8665. hardcode_shlibpath_var=no
  8666. runpath_var=LD_RUN_PATH
  8667. hardcode_runpath_var=yes
  8668. ld_shlibs=yes
  8669. fi
  8670. ;;
  8671. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8672. no_undefined_flag='${wl}-z,text'
  8673. archive_cmds_need_lc=no
  8674. hardcode_shlibpath_var=no
  8675. runpath_var='LD_RUN_PATH'
  8676. if test "$GCC" = yes; then
  8677. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8678. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8679. else
  8680. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8681. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8682. fi
  8683. ;;
  8684. sysv5* | sco3.2v5* | sco5v6*)
  8685. # Note: We can NOT use -z defs as we might desire, because we do not
  8686. # link with -lc, and that would cause any symbols used from libc to
  8687. # always be unresolved, which means just about no library would
  8688. # ever link correctly. If we're not using GNU ld we use -z text
  8689. # though, which does catch some bad symbols but isn't as heavy-handed
  8690. # as -z defs.
  8691. no_undefined_flag='${wl}-z,text'
  8692. allow_undefined_flag='${wl}-z,nodefs'
  8693. archive_cmds_need_lc=no
  8694. hardcode_shlibpath_var=no
  8695. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8696. hardcode_libdir_separator=':'
  8697. link_all_deplibs=yes
  8698. export_dynamic_flag_spec='${wl}-Bexport'
  8699. runpath_var='LD_RUN_PATH'
  8700. if test "$GCC" = yes; then
  8701. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8702. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8703. else
  8704. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8705. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8706. fi
  8707. ;;
  8708. uts4*)
  8709. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8710. hardcode_libdir_flag_spec='-L$libdir'
  8711. hardcode_shlibpath_var=no
  8712. ;;
  8713. *)
  8714. ld_shlibs=no
  8715. ;;
  8716. esac
  8717. if test x$host_vendor = xsni; then
  8718. case $host in
  8719. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8720. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8721. ;;
  8722. esac
  8723. fi
  8724. fi
  8725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8726. $as_echo "$ld_shlibs" >&6; }
  8727. test "$ld_shlibs" = no && can_build_shared=no
  8728. with_gnu_ld=$with_gnu_ld
  8729. #
  8730. # Do we need to explicitly link libc?
  8731. #
  8732. case "x$archive_cmds_need_lc" in
  8733. x|xyes)
  8734. # Assume -lc should be added
  8735. archive_cmds_need_lc=yes
  8736. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8737. case $archive_cmds in
  8738. *'~'*)
  8739. # FIXME: we may have to deal with multi-command sequences.
  8740. ;;
  8741. '$CC '*)
  8742. # Test whether the compiler implicitly links with -lc since on some
  8743. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8744. # to ld, don't add -lc before -lgcc.
  8745. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8746. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8747. $RM conftest*
  8748. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8749. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8750. (eval $ac_compile) 2>&5
  8751. ac_status=$?
  8752. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8753. test $ac_status = 0; } 2>conftest.err; then
  8754. soname=conftest
  8755. lib=conftest
  8756. libobjs=conftest.$ac_objext
  8757. deplibs=
  8758. wl=$lt_prog_compiler_wl
  8759. pic_flag=$lt_prog_compiler_pic
  8760. compiler_flags=-v
  8761. linker_flags=-v
  8762. verstring=
  8763. output_objdir=.
  8764. libname=conftest
  8765. lt_save_allow_undefined_flag=$allow_undefined_flag
  8766. allow_undefined_flag=
  8767. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8768. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8769. ac_status=$?
  8770. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8771. test $ac_status = 0; }
  8772. then
  8773. archive_cmds_need_lc=no
  8774. else
  8775. archive_cmds_need_lc=yes
  8776. fi
  8777. allow_undefined_flag=$lt_save_allow_undefined_flag
  8778. else
  8779. cat conftest.err 1>&5
  8780. fi
  8781. $RM conftest*
  8782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8783. $as_echo "$archive_cmds_need_lc" >&6; }
  8784. ;;
  8785. esac
  8786. fi
  8787. ;;
  8788. esac
  8789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8790. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8791. if test "$GCC" = yes; then
  8792. case $host_os in
  8793. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8794. *) lt_awk_arg="/^libraries:/" ;;
  8795. esac
  8796. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8797. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8798. # if the path contains ";" then we assume it to be the separator
  8799. # otherwise default to the standard path separator (i.e. ":") - it is
  8800. # assumed that no part of a normal pathname contains ";" but that should
  8801. # okay in the real world where ";" in dirpaths is itself problematic.
  8802. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8803. else
  8804. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8805. fi
  8806. # Ok, now we have the path, separated by spaces, we can step through it
  8807. # and add multilib dir if necessary.
  8808. lt_tmp_lt_search_path_spec=
  8809. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8810. for lt_sys_path in $lt_search_path_spec; do
  8811. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8812. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8813. else
  8814. test -d "$lt_sys_path" && \
  8815. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8816. fi
  8817. done
  8818. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8819. BEGIN {RS=" "; FS="/|\n";} {
  8820. lt_foo="";
  8821. lt_count=0;
  8822. for (lt_i = NF; lt_i > 0; lt_i--) {
  8823. if ($lt_i != "" && $lt_i != ".") {
  8824. if ($lt_i == "..") {
  8825. lt_count++;
  8826. } else {
  8827. if (lt_count == 0) {
  8828. lt_foo="/" $lt_i lt_foo;
  8829. } else {
  8830. lt_count--;
  8831. }
  8832. }
  8833. }
  8834. }
  8835. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8836. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8837. }'`
  8838. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8839. else
  8840. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8841. fi
  8842. library_names_spec=
  8843. libname_spec='lib$name'
  8844. soname_spec=
  8845. shrext_cmds=".so"
  8846. postinstall_cmds=
  8847. postuninstall_cmds=
  8848. finish_cmds=
  8849. finish_eval=
  8850. shlibpath_var=
  8851. shlibpath_overrides_runpath=unknown
  8852. version_type=none
  8853. dynamic_linker="$host_os ld.so"
  8854. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8855. need_lib_prefix=unknown
  8856. hardcode_into_libs=no
  8857. # when you set need_version to no, make sure it does not cause -set_version
  8858. # flags to be left without arguments
  8859. need_version=unknown
  8860. case $host_os in
  8861. aix3*)
  8862. version_type=linux
  8863. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8864. shlibpath_var=LIBPATH
  8865. # AIX 3 has no versioning support, so we append a major version to the name.
  8866. soname_spec='${libname}${release}${shared_ext}$major'
  8867. ;;
  8868. aix[4-9]*)
  8869. version_type=linux
  8870. need_lib_prefix=no
  8871. need_version=no
  8872. hardcode_into_libs=yes
  8873. if test "$host_cpu" = ia64; then
  8874. # AIX 5 supports IA64
  8875. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8876. shlibpath_var=LD_LIBRARY_PATH
  8877. else
  8878. # With GCC up to 2.95.x, collect2 would create an import file
  8879. # for dependence libraries. The import file would start with
  8880. # the line `#! .'. This would cause the generated library to
  8881. # depend on `.', always an invalid library. This was fixed in
  8882. # development snapshots of GCC prior to 3.0.
  8883. case $host_os in
  8884. aix4 | aix4.[01] | aix4.[01].*)
  8885. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8886. echo ' yes '
  8887. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8888. :
  8889. else
  8890. can_build_shared=no
  8891. fi
  8892. ;;
  8893. esac
  8894. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8895. # soname into executable. Probably we can add versioning support to
  8896. # collect2, so additional links can be useful in future.
  8897. if test "$aix_use_runtimelinking" = yes; then
  8898. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8899. # instead of lib<name>.a to let people know that these are not
  8900. # typical AIX shared libraries.
  8901. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8902. else
  8903. # We preserve .a as extension for shared libraries through AIX4.2
  8904. # and later when we are not doing run time linking.
  8905. library_names_spec='${libname}${release}.a $libname.a'
  8906. soname_spec='${libname}${release}${shared_ext}$major'
  8907. fi
  8908. shlibpath_var=LIBPATH
  8909. fi
  8910. ;;
  8911. amigaos*)
  8912. case $host_cpu in
  8913. powerpc)
  8914. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8915. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8916. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8917. ;;
  8918. m68k)
  8919. library_names_spec='$libname.ixlibrary $libname.a'
  8920. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8921. 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'
  8922. ;;
  8923. esac
  8924. ;;
  8925. beos*)
  8926. library_names_spec='${libname}${shared_ext}'
  8927. dynamic_linker="$host_os ld.so"
  8928. shlibpath_var=LIBRARY_PATH
  8929. ;;
  8930. bsdi[45]*)
  8931. version_type=linux
  8932. need_version=no
  8933. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8934. soname_spec='${libname}${release}${shared_ext}$major'
  8935. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8936. shlibpath_var=LD_LIBRARY_PATH
  8937. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8938. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8939. # the default ld.so.conf also contains /usr/contrib/lib and
  8940. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8941. # libtool to hard-code these into programs
  8942. ;;
  8943. cygwin* | mingw* | pw32* | cegcc*)
  8944. version_type=windows
  8945. shrext_cmds=".dll"
  8946. need_version=no
  8947. need_lib_prefix=no
  8948. case $GCC,$host_os in
  8949. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8950. library_names_spec='$libname.dll.a'
  8951. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8952. postinstall_cmds='base_file=`basename \${file}`~
  8953. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8954. dldir=$destdir/`dirname \$dlpath`~
  8955. test -d \$dldir || mkdir -p \$dldir~
  8956. $install_prog $dir/$dlname \$dldir/$dlname~
  8957. chmod a+x \$dldir/$dlname~
  8958. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8959. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8960. fi'
  8961. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8962. dlpath=$dir/\$dldll~
  8963. $RM \$dlpath'
  8964. shlibpath_overrides_runpath=yes
  8965. case $host_os in
  8966. cygwin*)
  8967. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8968. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8969. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  8970. ;;
  8971. mingw* | cegcc*)
  8972. # MinGW DLLs use traditional 'lib' prefix
  8973. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8974. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8975. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8976. # It is most probably a Windows format PATH printed by
  8977. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  8978. # path with ; separators, and with drive letters. We can handle the
  8979. # drive letters (cygwin fileutils understands them), so leave them,
  8980. # especially as we might pass files found there to a mingw objdump,
  8981. # which wouldn't understand a cygwinified path. Ahh.
  8982. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8983. else
  8984. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8985. fi
  8986. ;;
  8987. pw32*)
  8988. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8989. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8990. ;;
  8991. esac
  8992. ;;
  8993. *)
  8994. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8995. ;;
  8996. esac
  8997. dynamic_linker='Win32 ld.exe'
  8998. # FIXME: first we should search . and the directory the executable is in
  8999. shlibpath_var=PATH
  9000. ;;
  9001. darwin* | rhapsody*)
  9002. dynamic_linker="$host_os dyld"
  9003. version_type=darwin
  9004. need_lib_prefix=no
  9005. need_version=no
  9006. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9007. soname_spec='${libname}${release}${major}$shared_ext'
  9008. shlibpath_overrides_runpath=yes
  9009. shlibpath_var=DYLD_LIBRARY_PATH
  9010. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9011. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9012. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9013. ;;
  9014. dgux*)
  9015. version_type=linux
  9016. need_lib_prefix=no
  9017. need_version=no
  9018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9019. soname_spec='${libname}${release}${shared_ext}$major'
  9020. shlibpath_var=LD_LIBRARY_PATH
  9021. ;;
  9022. freebsd1*)
  9023. dynamic_linker=no
  9024. ;;
  9025. freebsd* | dragonfly*)
  9026. # DragonFly does not have aout. When/if they implement a new
  9027. # versioning mechanism, adjust this.
  9028. if test -x /usr/bin/objformat; then
  9029. objformat=`/usr/bin/objformat`
  9030. else
  9031. case $host_os in
  9032. freebsd[123]*) objformat=aout ;;
  9033. *) objformat=elf ;;
  9034. esac
  9035. fi
  9036. version_type=freebsd-$objformat
  9037. case $version_type in
  9038. freebsd-elf*)
  9039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9040. need_version=no
  9041. need_lib_prefix=no
  9042. ;;
  9043. freebsd-*)
  9044. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9045. need_version=yes
  9046. ;;
  9047. esac
  9048. shlibpath_var=LD_LIBRARY_PATH
  9049. case $host_os in
  9050. freebsd2*)
  9051. shlibpath_overrides_runpath=yes
  9052. ;;
  9053. freebsd3.[01]* | freebsdelf3.[01]*)
  9054. shlibpath_overrides_runpath=yes
  9055. hardcode_into_libs=yes
  9056. ;;
  9057. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9058. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9059. shlibpath_overrides_runpath=no
  9060. hardcode_into_libs=yes
  9061. ;;
  9062. *) # from 4.6 on, and DragonFly
  9063. shlibpath_overrides_runpath=yes
  9064. hardcode_into_libs=yes
  9065. ;;
  9066. esac
  9067. ;;
  9068. gnu*)
  9069. version_type=linux
  9070. need_lib_prefix=no
  9071. need_version=no
  9072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9073. soname_spec='${libname}${release}${shared_ext}$major'
  9074. shlibpath_var=LD_LIBRARY_PATH
  9075. hardcode_into_libs=yes
  9076. ;;
  9077. hpux9* | hpux10* | hpux11*)
  9078. # Give a soname corresponding to the major version so that dld.sl refuses to
  9079. # link against other versions.
  9080. version_type=sunos
  9081. need_lib_prefix=no
  9082. need_version=no
  9083. case $host_cpu in
  9084. ia64*)
  9085. shrext_cmds='.so'
  9086. hardcode_into_libs=yes
  9087. dynamic_linker="$host_os dld.so"
  9088. shlibpath_var=LD_LIBRARY_PATH
  9089. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9090. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9091. soname_spec='${libname}${release}${shared_ext}$major'
  9092. if test "X$HPUX_IA64_MODE" = X32; then
  9093. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9094. else
  9095. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9096. fi
  9097. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9098. ;;
  9099. hppa*64*)
  9100. shrext_cmds='.sl'
  9101. hardcode_into_libs=yes
  9102. dynamic_linker="$host_os dld.sl"
  9103. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9104. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9105. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9106. soname_spec='${libname}${release}${shared_ext}$major'
  9107. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9108. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9109. ;;
  9110. *)
  9111. shrext_cmds='.sl'
  9112. dynamic_linker="$host_os dld.sl"
  9113. shlibpath_var=SHLIB_PATH
  9114. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9115. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9116. soname_spec='${libname}${release}${shared_ext}$major'
  9117. ;;
  9118. esac
  9119. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9120. postinstall_cmds='chmod 555 $lib'
  9121. ;;
  9122. interix[3-9]*)
  9123. version_type=linux
  9124. need_lib_prefix=no
  9125. need_version=no
  9126. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9127. soname_spec='${libname}${release}${shared_ext}$major'
  9128. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9129. shlibpath_var=LD_LIBRARY_PATH
  9130. shlibpath_overrides_runpath=no
  9131. hardcode_into_libs=yes
  9132. ;;
  9133. irix5* | irix6* | nonstopux*)
  9134. case $host_os in
  9135. nonstopux*) version_type=nonstopux ;;
  9136. *)
  9137. if test "$lt_cv_prog_gnu_ld" = yes; then
  9138. version_type=linux
  9139. else
  9140. version_type=irix
  9141. fi ;;
  9142. esac
  9143. need_lib_prefix=no
  9144. need_version=no
  9145. soname_spec='${libname}${release}${shared_ext}$major'
  9146. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9147. case $host_os in
  9148. irix5* | nonstopux*)
  9149. libsuff= shlibsuff=
  9150. ;;
  9151. *)
  9152. case $LD in # libtool.m4 will add one of these switches to LD
  9153. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9154. libsuff= shlibsuff= libmagic=32-bit;;
  9155. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9156. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9157. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9158. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9159. *) libsuff= shlibsuff= libmagic=never-match;;
  9160. esac
  9161. ;;
  9162. esac
  9163. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9164. shlibpath_overrides_runpath=no
  9165. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9166. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9167. hardcode_into_libs=yes
  9168. ;;
  9169. # No shared lib support for Linux oldld, aout, or coff.
  9170. linux*oldld* | linux*aout* | linux*coff*)
  9171. dynamic_linker=no
  9172. ;;
  9173. # This must be Linux ELF.
  9174. linux* | k*bsd*-gnu)
  9175. version_type=linux
  9176. need_lib_prefix=no
  9177. need_version=no
  9178. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9179. soname_spec='${libname}${release}${shared_ext}$major'
  9180. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9181. shlibpath_var=LD_LIBRARY_PATH
  9182. shlibpath_overrides_runpath=no
  9183. # Some binutils ld are patched to set DT_RUNPATH
  9184. save_LDFLAGS=$LDFLAGS
  9185. save_libdir=$libdir
  9186. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9187. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9189. /* end confdefs.h. */
  9190. int
  9191. main ()
  9192. {
  9193. ;
  9194. return 0;
  9195. }
  9196. _ACEOF
  9197. if ac_fn_c_try_link "$LINENO"; then :
  9198. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9199. shlibpath_overrides_runpath=yes
  9200. fi
  9201. fi
  9202. rm -f core conftest.err conftest.$ac_objext \
  9203. conftest$ac_exeext conftest.$ac_ext
  9204. LDFLAGS=$save_LDFLAGS
  9205. libdir=$save_libdir
  9206. # This implies no fast_install, which is unacceptable.
  9207. # Some rework will be needed to allow for fast_install
  9208. # before this can be enabled.
  9209. hardcode_into_libs=yes
  9210. # Append ld.so.conf contents to the search path
  9211. if test -f /etc/ld.so.conf; then
  9212. 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' ' '`
  9213. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9214. fi
  9215. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9216. # powerpc, because MkLinux only supported shared libraries with the
  9217. # GNU dynamic linker. Since this was broken with cross compilers,
  9218. # most powerpc-linux boxes support dynamic linking these days and
  9219. # people can always --disable-shared, the test was removed, and we
  9220. # assume the GNU/Linux dynamic linker is in use.
  9221. dynamic_linker='GNU/Linux ld.so'
  9222. ;;
  9223. netbsdelf*-gnu)
  9224. version_type=linux
  9225. need_lib_prefix=no
  9226. need_version=no
  9227. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9228. soname_spec='${libname}${release}${shared_ext}$major'
  9229. shlibpath_var=LD_LIBRARY_PATH
  9230. shlibpath_overrides_runpath=no
  9231. hardcode_into_libs=yes
  9232. dynamic_linker='NetBSD ld.elf_so'
  9233. ;;
  9234. netbsd*)
  9235. version_type=sunos
  9236. need_lib_prefix=no
  9237. need_version=no
  9238. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9239. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9240. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9241. dynamic_linker='NetBSD (a.out) ld.so'
  9242. else
  9243. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9244. soname_spec='${libname}${release}${shared_ext}$major'
  9245. dynamic_linker='NetBSD ld.elf_so'
  9246. fi
  9247. shlibpath_var=LD_LIBRARY_PATH
  9248. shlibpath_overrides_runpath=yes
  9249. hardcode_into_libs=yes
  9250. ;;
  9251. newsos6)
  9252. version_type=linux
  9253. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9254. shlibpath_var=LD_LIBRARY_PATH
  9255. shlibpath_overrides_runpath=yes
  9256. ;;
  9257. *nto* | *qnx*)
  9258. version_type=qnx
  9259. need_lib_prefix=no
  9260. need_version=no
  9261. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9262. soname_spec='${libname}${release}${shared_ext}$major'
  9263. shlibpath_var=LD_LIBRARY_PATH
  9264. shlibpath_overrides_runpath=no
  9265. hardcode_into_libs=yes
  9266. dynamic_linker='ldqnx.so'
  9267. ;;
  9268. openbsd*)
  9269. version_type=sunos
  9270. sys_lib_dlsearch_path_spec="/usr/lib"
  9271. need_lib_prefix=no
  9272. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9273. case $host_os in
  9274. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9275. *) need_version=no ;;
  9276. esac
  9277. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9278. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9279. shlibpath_var=LD_LIBRARY_PATH
  9280. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9281. case $host_os in
  9282. openbsd2.[89] | openbsd2.[89].*)
  9283. shlibpath_overrides_runpath=no
  9284. ;;
  9285. *)
  9286. shlibpath_overrides_runpath=yes
  9287. ;;
  9288. esac
  9289. else
  9290. shlibpath_overrides_runpath=yes
  9291. fi
  9292. ;;
  9293. os2*)
  9294. libname_spec='$name'
  9295. shrext_cmds=".dll"
  9296. need_lib_prefix=no
  9297. library_names_spec='$libname${shared_ext} $libname.a'
  9298. dynamic_linker='OS/2 ld.exe'
  9299. shlibpath_var=LIBPATH
  9300. ;;
  9301. osf3* | osf4* | osf5*)
  9302. version_type=osf
  9303. need_lib_prefix=no
  9304. need_version=no
  9305. soname_spec='${libname}${release}${shared_ext}$major'
  9306. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9307. shlibpath_var=LD_LIBRARY_PATH
  9308. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9309. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9310. ;;
  9311. rdos*)
  9312. dynamic_linker=no
  9313. ;;
  9314. solaris*)
  9315. version_type=linux
  9316. need_lib_prefix=no
  9317. need_version=no
  9318. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9319. soname_spec='${libname}${release}${shared_ext}$major'
  9320. shlibpath_var=LD_LIBRARY_PATH
  9321. shlibpath_overrides_runpath=yes
  9322. hardcode_into_libs=yes
  9323. # ldd complains unless libraries are executable
  9324. postinstall_cmds='chmod +x $lib'
  9325. ;;
  9326. sunos4*)
  9327. version_type=sunos
  9328. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9329. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9330. shlibpath_var=LD_LIBRARY_PATH
  9331. shlibpath_overrides_runpath=yes
  9332. if test "$with_gnu_ld" = yes; then
  9333. need_lib_prefix=no
  9334. fi
  9335. need_version=yes
  9336. ;;
  9337. sysv4 | sysv4.3*)
  9338. version_type=linux
  9339. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9340. soname_spec='${libname}${release}${shared_ext}$major'
  9341. shlibpath_var=LD_LIBRARY_PATH
  9342. case $host_vendor in
  9343. sni)
  9344. shlibpath_overrides_runpath=no
  9345. need_lib_prefix=no
  9346. runpath_var=LD_RUN_PATH
  9347. ;;
  9348. siemens)
  9349. need_lib_prefix=no
  9350. ;;
  9351. motorola)
  9352. need_lib_prefix=no
  9353. need_version=no
  9354. shlibpath_overrides_runpath=no
  9355. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9356. ;;
  9357. esac
  9358. ;;
  9359. sysv4*MP*)
  9360. if test -d /usr/nec ;then
  9361. version_type=linux
  9362. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9363. soname_spec='$libname${shared_ext}.$major'
  9364. shlibpath_var=LD_LIBRARY_PATH
  9365. fi
  9366. ;;
  9367. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9368. version_type=freebsd-elf
  9369. need_lib_prefix=no
  9370. need_version=no
  9371. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9372. soname_spec='${libname}${release}${shared_ext}$major'
  9373. shlibpath_var=LD_LIBRARY_PATH
  9374. shlibpath_overrides_runpath=yes
  9375. hardcode_into_libs=yes
  9376. if test "$with_gnu_ld" = yes; then
  9377. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9378. else
  9379. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9380. case $host_os in
  9381. sco3.2v5*)
  9382. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9383. ;;
  9384. esac
  9385. fi
  9386. sys_lib_dlsearch_path_spec='/usr/lib'
  9387. ;;
  9388. tpf*)
  9389. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9390. version_type=linux
  9391. need_lib_prefix=no
  9392. need_version=no
  9393. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9394. shlibpath_var=LD_LIBRARY_PATH
  9395. shlibpath_overrides_runpath=no
  9396. hardcode_into_libs=yes
  9397. ;;
  9398. uts4*)
  9399. version_type=linux
  9400. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9401. soname_spec='${libname}${release}${shared_ext}$major'
  9402. shlibpath_var=LD_LIBRARY_PATH
  9403. ;;
  9404. *)
  9405. dynamic_linker=no
  9406. ;;
  9407. esac
  9408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9409. $as_echo "$dynamic_linker" >&6; }
  9410. test "$dynamic_linker" = no && can_build_shared=no
  9411. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9412. if test "$GCC" = yes; then
  9413. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9414. fi
  9415. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9416. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9417. fi
  9418. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9419. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9420. fi
  9421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9422. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9423. hardcode_action=
  9424. if test -n "$hardcode_libdir_flag_spec" ||
  9425. test -n "$runpath_var" ||
  9426. test "X$hardcode_automatic" = "Xyes" ; then
  9427. # We can hardcode non-existent directories.
  9428. if test "$hardcode_direct" != no &&
  9429. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9430. # have to relink, otherwise we might link with an installed library
  9431. # when we should be linking with a yet-to-be-installed one
  9432. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9433. test "$hardcode_minus_L" != no; then
  9434. # Linking always hardcodes the temporary library directory.
  9435. hardcode_action=relink
  9436. else
  9437. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9438. hardcode_action=immediate
  9439. fi
  9440. else
  9441. # We cannot hardcode anything, or else we can only hardcode existing
  9442. # directories.
  9443. hardcode_action=unsupported
  9444. fi
  9445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9446. $as_echo "$hardcode_action" >&6; }
  9447. if test "$hardcode_action" = relink ||
  9448. test "$inherit_rpath" = yes; then
  9449. # Fast installation is not supported
  9450. enable_fast_install=no
  9451. elif test "$shlibpath_overrides_runpath" = yes ||
  9452. test "$enable_shared" = no; then
  9453. # Fast installation is not necessary
  9454. enable_fast_install=needless
  9455. fi
  9456. if test "x$enable_dlopen" != xyes; then
  9457. enable_dlopen=unknown
  9458. enable_dlopen_self=unknown
  9459. enable_dlopen_self_static=unknown
  9460. else
  9461. lt_cv_dlopen=no
  9462. lt_cv_dlopen_libs=
  9463. case $host_os in
  9464. beos*)
  9465. lt_cv_dlopen="load_add_on"
  9466. lt_cv_dlopen_libs=
  9467. lt_cv_dlopen_self=yes
  9468. ;;
  9469. mingw* | pw32* | cegcc*)
  9470. lt_cv_dlopen="LoadLibrary"
  9471. lt_cv_dlopen_libs=
  9472. ;;
  9473. cygwin*)
  9474. lt_cv_dlopen="dlopen"
  9475. lt_cv_dlopen_libs=
  9476. ;;
  9477. darwin*)
  9478. # if libdl is installed we need to link against it
  9479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9480. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9481. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9482. $as_echo_n "(cached) " >&6
  9483. else
  9484. ac_check_lib_save_LIBS=$LIBS
  9485. LIBS="-ldl $LIBS"
  9486. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9487. /* end confdefs.h. */
  9488. /* Override any GCC internal prototype to avoid an error.
  9489. Use char because int might match the return type of a GCC
  9490. builtin and then its argument prototype would still apply. */
  9491. #ifdef __cplusplus
  9492. extern "C"
  9493. #endif
  9494. char dlopen ();
  9495. int
  9496. main ()
  9497. {
  9498. return dlopen ();
  9499. ;
  9500. return 0;
  9501. }
  9502. _ACEOF
  9503. if ac_fn_c_try_link "$LINENO"; then :
  9504. ac_cv_lib_dl_dlopen=yes
  9505. else
  9506. ac_cv_lib_dl_dlopen=no
  9507. fi
  9508. rm -f core conftest.err conftest.$ac_objext \
  9509. conftest$ac_exeext conftest.$ac_ext
  9510. LIBS=$ac_check_lib_save_LIBS
  9511. fi
  9512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9513. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9514. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9515. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9516. else
  9517. lt_cv_dlopen="dyld"
  9518. lt_cv_dlopen_libs=
  9519. lt_cv_dlopen_self=yes
  9520. fi
  9521. ;;
  9522. *)
  9523. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9524. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9525. lt_cv_dlopen="shl_load"
  9526. else
  9527. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9528. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9529. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9530. $as_echo_n "(cached) " >&6
  9531. else
  9532. ac_check_lib_save_LIBS=$LIBS
  9533. LIBS="-ldld $LIBS"
  9534. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9535. /* end confdefs.h. */
  9536. /* Override any GCC internal prototype to avoid an error.
  9537. Use char because int might match the return type of a GCC
  9538. builtin and then its argument prototype would still apply. */
  9539. #ifdef __cplusplus
  9540. extern "C"
  9541. #endif
  9542. char shl_load ();
  9543. int
  9544. main ()
  9545. {
  9546. return shl_load ();
  9547. ;
  9548. return 0;
  9549. }
  9550. _ACEOF
  9551. if ac_fn_c_try_link "$LINENO"; then :
  9552. ac_cv_lib_dld_shl_load=yes
  9553. else
  9554. ac_cv_lib_dld_shl_load=no
  9555. fi
  9556. rm -f core conftest.err conftest.$ac_objext \
  9557. conftest$ac_exeext conftest.$ac_ext
  9558. LIBS=$ac_check_lib_save_LIBS
  9559. fi
  9560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9561. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9562. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9563. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9564. else
  9565. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9566. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9567. lt_cv_dlopen="dlopen"
  9568. else
  9569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9570. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9571. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9572. $as_echo_n "(cached) " >&6
  9573. else
  9574. ac_check_lib_save_LIBS=$LIBS
  9575. LIBS="-ldl $LIBS"
  9576. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9577. /* end confdefs.h. */
  9578. /* Override any GCC internal prototype to avoid an error.
  9579. Use char because int might match the return type of a GCC
  9580. builtin and then its argument prototype would still apply. */
  9581. #ifdef __cplusplus
  9582. extern "C"
  9583. #endif
  9584. char dlopen ();
  9585. int
  9586. main ()
  9587. {
  9588. return dlopen ();
  9589. ;
  9590. return 0;
  9591. }
  9592. _ACEOF
  9593. if ac_fn_c_try_link "$LINENO"; then :
  9594. ac_cv_lib_dl_dlopen=yes
  9595. else
  9596. ac_cv_lib_dl_dlopen=no
  9597. fi
  9598. rm -f core conftest.err conftest.$ac_objext \
  9599. conftest$ac_exeext conftest.$ac_ext
  9600. LIBS=$ac_check_lib_save_LIBS
  9601. fi
  9602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9603. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9604. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9605. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9606. else
  9607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9608. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9609. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9610. $as_echo_n "(cached) " >&6
  9611. else
  9612. ac_check_lib_save_LIBS=$LIBS
  9613. LIBS="-lsvld $LIBS"
  9614. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9615. /* end confdefs.h. */
  9616. /* Override any GCC internal prototype to avoid an error.
  9617. Use char because int might match the return type of a GCC
  9618. builtin and then its argument prototype would still apply. */
  9619. #ifdef __cplusplus
  9620. extern "C"
  9621. #endif
  9622. char dlopen ();
  9623. int
  9624. main ()
  9625. {
  9626. return dlopen ();
  9627. ;
  9628. return 0;
  9629. }
  9630. _ACEOF
  9631. if ac_fn_c_try_link "$LINENO"; then :
  9632. ac_cv_lib_svld_dlopen=yes
  9633. else
  9634. ac_cv_lib_svld_dlopen=no
  9635. fi
  9636. rm -f core conftest.err conftest.$ac_objext \
  9637. conftest$ac_exeext conftest.$ac_ext
  9638. LIBS=$ac_check_lib_save_LIBS
  9639. fi
  9640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9641. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9642. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9643. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9644. else
  9645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9646. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9647. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9648. $as_echo_n "(cached) " >&6
  9649. else
  9650. ac_check_lib_save_LIBS=$LIBS
  9651. LIBS="-ldld $LIBS"
  9652. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9653. /* end confdefs.h. */
  9654. /* Override any GCC internal prototype to avoid an error.
  9655. Use char because int might match the return type of a GCC
  9656. builtin and then its argument prototype would still apply. */
  9657. #ifdef __cplusplus
  9658. extern "C"
  9659. #endif
  9660. char dld_link ();
  9661. int
  9662. main ()
  9663. {
  9664. return dld_link ();
  9665. ;
  9666. return 0;
  9667. }
  9668. _ACEOF
  9669. if ac_fn_c_try_link "$LINENO"; then :
  9670. ac_cv_lib_dld_dld_link=yes
  9671. else
  9672. ac_cv_lib_dld_dld_link=no
  9673. fi
  9674. rm -f core conftest.err conftest.$ac_objext \
  9675. conftest$ac_exeext conftest.$ac_ext
  9676. LIBS=$ac_check_lib_save_LIBS
  9677. fi
  9678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9679. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9680. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9681. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9682. fi
  9683. fi
  9684. fi
  9685. fi
  9686. fi
  9687. fi
  9688. ;;
  9689. esac
  9690. if test "x$lt_cv_dlopen" != xno; then
  9691. enable_dlopen=yes
  9692. else
  9693. enable_dlopen=no
  9694. fi
  9695. case $lt_cv_dlopen in
  9696. dlopen)
  9697. save_CPPFLAGS="$CPPFLAGS"
  9698. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9699. save_LDFLAGS="$LDFLAGS"
  9700. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9701. save_LIBS="$LIBS"
  9702. LIBS="$lt_cv_dlopen_libs $LIBS"
  9703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9704. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9705. if test "${lt_cv_dlopen_self+set}" = set; then :
  9706. $as_echo_n "(cached) " >&6
  9707. else
  9708. if test "$cross_compiling" = yes; then :
  9709. lt_cv_dlopen_self=cross
  9710. else
  9711. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9712. lt_status=$lt_dlunknown
  9713. cat > conftest.$ac_ext <<_LT_EOF
  9714. #line 11258 "configure"
  9715. #include "confdefs.h"
  9716. #if HAVE_DLFCN_H
  9717. #include <dlfcn.h>
  9718. #endif
  9719. #include <stdio.h>
  9720. #ifdef RTLD_GLOBAL
  9721. # define LT_DLGLOBAL RTLD_GLOBAL
  9722. #else
  9723. # ifdef DL_GLOBAL
  9724. # define LT_DLGLOBAL DL_GLOBAL
  9725. # else
  9726. # define LT_DLGLOBAL 0
  9727. # endif
  9728. #endif
  9729. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9730. find out it does not work in some platform. */
  9731. #ifndef LT_DLLAZY_OR_NOW
  9732. # ifdef RTLD_LAZY
  9733. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9734. # else
  9735. # ifdef DL_LAZY
  9736. # define LT_DLLAZY_OR_NOW DL_LAZY
  9737. # else
  9738. # ifdef RTLD_NOW
  9739. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9740. # else
  9741. # ifdef DL_NOW
  9742. # define LT_DLLAZY_OR_NOW DL_NOW
  9743. # else
  9744. # define LT_DLLAZY_OR_NOW 0
  9745. # endif
  9746. # endif
  9747. # endif
  9748. # endif
  9749. #endif
  9750. void fnord() { int i=42;}
  9751. int main ()
  9752. {
  9753. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9754. int status = $lt_dlunknown;
  9755. if (self)
  9756. {
  9757. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9758. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9759. /* dlclose (self); */
  9760. }
  9761. else
  9762. puts (dlerror ());
  9763. return status;
  9764. }
  9765. _LT_EOF
  9766. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9767. (eval $ac_link) 2>&5
  9768. ac_status=$?
  9769. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9770. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9771. (./conftest; exit; ) >&5 2>/dev/null
  9772. lt_status=$?
  9773. case x$lt_status in
  9774. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9775. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9776. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9777. esac
  9778. else :
  9779. # compilation failed
  9780. lt_cv_dlopen_self=no
  9781. fi
  9782. fi
  9783. rm -fr conftest*
  9784. fi
  9785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9786. $as_echo "$lt_cv_dlopen_self" >&6; }
  9787. if test "x$lt_cv_dlopen_self" = xyes; then
  9788. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9789. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9790. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9791. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9792. $as_echo_n "(cached) " >&6
  9793. else
  9794. if test "$cross_compiling" = yes; then :
  9795. lt_cv_dlopen_self_static=cross
  9796. else
  9797. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9798. lt_status=$lt_dlunknown
  9799. cat > conftest.$ac_ext <<_LT_EOF
  9800. #line 11354 "configure"
  9801. #include "confdefs.h"
  9802. #if HAVE_DLFCN_H
  9803. #include <dlfcn.h>
  9804. #endif
  9805. #include <stdio.h>
  9806. #ifdef RTLD_GLOBAL
  9807. # define LT_DLGLOBAL RTLD_GLOBAL
  9808. #else
  9809. # ifdef DL_GLOBAL
  9810. # define LT_DLGLOBAL DL_GLOBAL
  9811. # else
  9812. # define LT_DLGLOBAL 0
  9813. # endif
  9814. #endif
  9815. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9816. find out it does not work in some platform. */
  9817. #ifndef LT_DLLAZY_OR_NOW
  9818. # ifdef RTLD_LAZY
  9819. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9820. # else
  9821. # ifdef DL_LAZY
  9822. # define LT_DLLAZY_OR_NOW DL_LAZY
  9823. # else
  9824. # ifdef RTLD_NOW
  9825. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9826. # else
  9827. # ifdef DL_NOW
  9828. # define LT_DLLAZY_OR_NOW DL_NOW
  9829. # else
  9830. # define LT_DLLAZY_OR_NOW 0
  9831. # endif
  9832. # endif
  9833. # endif
  9834. # endif
  9835. #endif
  9836. void fnord() { int i=42;}
  9837. int main ()
  9838. {
  9839. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9840. int status = $lt_dlunknown;
  9841. if (self)
  9842. {
  9843. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9844. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9845. /* dlclose (self); */
  9846. }
  9847. else
  9848. puts (dlerror ());
  9849. return status;
  9850. }
  9851. _LT_EOF
  9852. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9853. (eval $ac_link) 2>&5
  9854. ac_status=$?
  9855. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9856. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9857. (./conftest; exit; ) >&5 2>/dev/null
  9858. lt_status=$?
  9859. case x$lt_status in
  9860. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9861. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9862. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9863. esac
  9864. else :
  9865. # compilation failed
  9866. lt_cv_dlopen_self_static=no
  9867. fi
  9868. fi
  9869. rm -fr conftest*
  9870. fi
  9871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9872. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9873. fi
  9874. CPPFLAGS="$save_CPPFLAGS"
  9875. LDFLAGS="$save_LDFLAGS"
  9876. LIBS="$save_LIBS"
  9877. ;;
  9878. esac
  9879. case $lt_cv_dlopen_self in
  9880. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9881. *) enable_dlopen_self=unknown ;;
  9882. esac
  9883. case $lt_cv_dlopen_self_static in
  9884. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9885. *) enable_dlopen_self_static=unknown ;;
  9886. esac
  9887. fi
  9888. striplib=
  9889. old_striplib=
  9890. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9891. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9892. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9893. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9894. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9896. $as_echo "yes" >&6; }
  9897. else
  9898. # FIXME - insert some real tests, host_os isn't really good enough
  9899. case $host_os in
  9900. darwin*)
  9901. if test -n "$STRIP" ; then
  9902. striplib="$STRIP -x"
  9903. old_striplib="$STRIP -S"
  9904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9905. $as_echo "yes" >&6; }
  9906. else
  9907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9908. $as_echo "no" >&6; }
  9909. fi
  9910. ;;
  9911. *)
  9912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9913. $as_echo "no" >&6; }
  9914. ;;
  9915. esac
  9916. fi
  9917. # Report which library types will actually be built
  9918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9919. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9921. $as_echo "$can_build_shared" >&6; }
  9922. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9923. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9924. test "$can_build_shared" = "no" && enable_shared=no
  9925. # On AIX, shared libraries and static libraries use the same namespace, and
  9926. # are all built from PIC.
  9927. case $host_os in
  9928. aix3*)
  9929. test "$enable_shared" = yes && enable_static=no
  9930. if test -n "$RANLIB"; then
  9931. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9932. postinstall_cmds='$RANLIB $lib'
  9933. fi
  9934. ;;
  9935. aix[4-9]*)
  9936. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9937. test "$enable_shared" = yes && enable_static=no
  9938. fi
  9939. ;;
  9940. esac
  9941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9942. $as_echo "$enable_shared" >&6; }
  9943. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9944. $as_echo_n "checking whether to build static libraries... " >&6; }
  9945. # Make sure either enable_shared or enable_static is yes.
  9946. test "$enable_shared" = yes || enable_static=yes
  9947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9948. $as_echo "$enable_static" >&6; }
  9949. fi
  9950. ac_ext=cpp
  9951. ac_cpp='$CXXCPP $CPPFLAGS'
  9952. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9953. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9954. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9955. CC="$lt_save_CC"
  9956. ac_ext=cpp
  9957. ac_cpp='$CXXCPP $CPPFLAGS'
  9958. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9959. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9960. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  9961. archive_cmds_need_lc_CXX=no
  9962. allow_undefined_flag_CXX=
  9963. always_export_symbols_CXX=no
  9964. archive_expsym_cmds_CXX=
  9965. compiler_needs_object_CXX=no
  9966. export_dynamic_flag_spec_CXX=
  9967. hardcode_direct_CXX=no
  9968. hardcode_direct_absolute_CXX=no
  9969. hardcode_libdir_flag_spec_CXX=
  9970. hardcode_libdir_flag_spec_ld_CXX=
  9971. hardcode_libdir_separator_CXX=
  9972. hardcode_minus_L_CXX=no
  9973. hardcode_shlibpath_var_CXX=unsupported
  9974. hardcode_automatic_CXX=no
  9975. inherit_rpath_CXX=no
  9976. module_cmds_CXX=
  9977. module_expsym_cmds_CXX=
  9978. link_all_deplibs_CXX=unknown
  9979. old_archive_cmds_CXX=$old_archive_cmds
  9980. no_undefined_flag_CXX=
  9981. whole_archive_flag_spec_CXX=
  9982. enable_shared_with_static_runtimes_CXX=no
  9983. # Source file extension for C++ test sources.
  9984. ac_ext=cpp
  9985. # Object file extension for compiled C++ test sources.
  9986. objext=o
  9987. objext_CXX=$objext
  9988. # No sense in running all these tests if we already determined that
  9989. # the CXX compiler isn't working. Some variables (like enable_shared)
  9990. # are currently assumed to apply to all compilers on this platform,
  9991. # and will be corrupted by setting them based on a non-working compiler.
  9992. if test "$_lt_caught_CXX_error" != yes; then
  9993. # Code to be used in simple compile tests
  9994. lt_simple_compile_test_code="int some_variable = 0;"
  9995. # Code to be used in simple link tests
  9996. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  9997. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9998. # If no C compiler was specified, use CC.
  9999. LTCC=${LTCC-"$CC"}
  10000. # If no C compiler flags were specified, use CFLAGS.
  10001. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10002. # Allow CC to be a program name with arguments.
  10003. compiler=$CC
  10004. # save warnings/boilerplate of simple test code
  10005. ac_outfile=conftest.$ac_objext
  10006. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10007. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10008. _lt_compiler_boilerplate=`cat conftest.err`
  10009. $RM conftest*
  10010. ac_outfile=conftest.$ac_objext
  10011. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10012. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10013. _lt_linker_boilerplate=`cat conftest.err`
  10014. $RM -r conftest*
  10015. # Allow CC to be a program name with arguments.
  10016. lt_save_CC=$CC
  10017. lt_save_LD=$LD
  10018. lt_save_GCC=$GCC
  10019. GCC=$GXX
  10020. lt_save_with_gnu_ld=$with_gnu_ld
  10021. lt_save_path_LD=$lt_cv_path_LD
  10022. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10023. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10024. else
  10025. $as_unset lt_cv_prog_gnu_ld
  10026. fi
  10027. if test -n "${lt_cv_path_LDCXX+set}"; then
  10028. lt_cv_path_LD=$lt_cv_path_LDCXX
  10029. else
  10030. $as_unset lt_cv_path_LD
  10031. fi
  10032. test -z "${LDCXX+set}" || LD=$LDCXX
  10033. CC=${CXX-"c++"}
  10034. compiler=$CC
  10035. compiler_CXX=$CC
  10036. for cc_temp in $compiler""; do
  10037. case $cc_temp in
  10038. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10039. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10040. \-*) ;;
  10041. *) break;;
  10042. esac
  10043. done
  10044. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10045. if test -n "$compiler"; then
  10046. # We don't want -fno-exception when compiling C++ code, so set the
  10047. # no_builtin_flag separately
  10048. if test "$GXX" = yes; then
  10049. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10050. else
  10051. lt_prog_compiler_no_builtin_flag_CXX=
  10052. fi
  10053. if test "$GXX" = yes; then
  10054. # Set up default GNU C++ configuration
  10055. # Check whether --with-gnu-ld was given.
  10056. if test "${with_gnu_ld+set}" = set; then :
  10057. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10058. else
  10059. with_gnu_ld=no
  10060. fi
  10061. ac_prog=ld
  10062. if test "$GCC" = yes; then
  10063. # Check if gcc -print-prog-name=ld gives a path.
  10064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10065. $as_echo_n "checking for ld used by $CC... " >&6; }
  10066. case $host in
  10067. *-*-mingw*)
  10068. # gcc leaves a trailing carriage return which upsets mingw
  10069. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10070. *)
  10071. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10072. esac
  10073. case $ac_prog in
  10074. # Accept absolute paths.
  10075. [\\/]* | ?:[\\/]*)
  10076. re_direlt='/[^/][^/]*/\.\./'
  10077. # Canonicalize the pathname of ld
  10078. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10079. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10080. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10081. done
  10082. test -z "$LD" && LD="$ac_prog"
  10083. ;;
  10084. "")
  10085. # If it fails, then pretend we aren't using GCC.
  10086. ac_prog=ld
  10087. ;;
  10088. *)
  10089. # If it is relative, then search for the first ld in PATH.
  10090. with_gnu_ld=unknown
  10091. ;;
  10092. esac
  10093. elif test "$with_gnu_ld" = yes; then
  10094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10095. $as_echo_n "checking for GNU ld... " >&6; }
  10096. else
  10097. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10098. $as_echo_n "checking for non-GNU ld... " >&6; }
  10099. fi
  10100. if test "${lt_cv_path_LD+set}" = set; then :
  10101. $as_echo_n "(cached) " >&6
  10102. else
  10103. if test -z "$LD"; then
  10104. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10105. for ac_dir in $PATH; do
  10106. IFS="$lt_save_ifs"
  10107. test -z "$ac_dir" && ac_dir=.
  10108. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10109. lt_cv_path_LD="$ac_dir/$ac_prog"
  10110. # Check to see if the program is GNU ld. I'd rather use --version,
  10111. # but apparently some variants of GNU ld only accept -v.
  10112. # Break only if it was the GNU/non-GNU ld that we prefer.
  10113. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10114. *GNU* | *'with BFD'*)
  10115. test "$with_gnu_ld" != no && break
  10116. ;;
  10117. *)
  10118. test "$with_gnu_ld" != yes && break
  10119. ;;
  10120. esac
  10121. fi
  10122. done
  10123. IFS="$lt_save_ifs"
  10124. else
  10125. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10126. fi
  10127. fi
  10128. LD="$lt_cv_path_LD"
  10129. if test -n "$LD"; then
  10130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10131. $as_echo "$LD" >&6; }
  10132. else
  10133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10134. $as_echo "no" >&6; }
  10135. fi
  10136. test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  10137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10138. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10139. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10140. $as_echo_n "(cached) " >&6
  10141. else
  10142. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10143. case `$LD -v 2>&1 </dev/null` in
  10144. *GNU* | *'with BFD'*)
  10145. lt_cv_prog_gnu_ld=yes
  10146. ;;
  10147. *)
  10148. lt_cv_prog_gnu_ld=no
  10149. ;;
  10150. esac
  10151. fi
  10152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10153. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10154. with_gnu_ld=$lt_cv_prog_gnu_ld
  10155. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10156. # archiving commands below assume that GNU ld is being used.
  10157. if test "$with_gnu_ld" = yes; then
  10158. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10159. 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'
  10160. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10161. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10162. # If archive_cmds runs LD, not CC, wlarc should be empty
  10163. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10164. # investigate it a little bit more. (MM)
  10165. wlarc='${wl}'
  10166. # ancient GNU ld didn't support --whole-archive et. al.
  10167. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10168. $GREP 'no-whole-archive' > /dev/null; then
  10169. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10170. else
  10171. whole_archive_flag_spec_CXX=
  10172. fi
  10173. else
  10174. with_gnu_ld=no
  10175. wlarc=
  10176. # A generic and very simple default shared library creation
  10177. # command for GNU C++ for the case where it uses the native
  10178. # linker, instead of GNU ld. If possible, this setting should
  10179. # overridden to take advantage of the native linker features on
  10180. # the platform it is being used on.
  10181. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10182. fi
  10183. # Commands to make compiler produce verbose output that lists
  10184. # what "hidden" libraries, object files and flags are used when
  10185. # linking a shared library.
  10186. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10187. else
  10188. GXX=no
  10189. with_gnu_ld=no
  10190. wlarc=
  10191. fi
  10192. # PORTME: fill in a description of your system's C++ link characteristics
  10193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10194. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10195. ld_shlibs_CXX=yes
  10196. case $host_os in
  10197. aix3*)
  10198. # FIXME: insert proper C++ library support
  10199. ld_shlibs_CXX=no
  10200. ;;
  10201. aix[4-9]*)
  10202. if test "$host_cpu" = ia64; then
  10203. # On IA64, the linker does run time linking by default, so we don't
  10204. # have to do anything special.
  10205. aix_use_runtimelinking=no
  10206. exp_sym_flag='-Bexport'
  10207. no_entry_flag=""
  10208. else
  10209. aix_use_runtimelinking=no
  10210. # Test if we are trying to use run time linking or normal
  10211. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10212. # need to do runtime linking.
  10213. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10214. for ld_flag in $LDFLAGS; do
  10215. case $ld_flag in
  10216. *-brtl*)
  10217. aix_use_runtimelinking=yes
  10218. break
  10219. ;;
  10220. esac
  10221. done
  10222. ;;
  10223. esac
  10224. exp_sym_flag='-bexport'
  10225. no_entry_flag='-bnoentry'
  10226. fi
  10227. # When large executables or shared objects are built, AIX ld can
  10228. # have problems creating the table of contents. If linking a library
  10229. # or program results in "error TOC overflow" add -mminimal-toc to
  10230. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10231. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10232. archive_cmds_CXX=''
  10233. hardcode_direct_CXX=yes
  10234. hardcode_direct_absolute_CXX=yes
  10235. hardcode_libdir_separator_CXX=':'
  10236. link_all_deplibs_CXX=yes
  10237. file_list_spec_CXX='${wl}-f,'
  10238. if test "$GXX" = yes; then
  10239. case $host_os in aix4.[012]|aix4.[012].*)
  10240. # We only want to do this on AIX 4.2 and lower, the check
  10241. # below for broken collect2 doesn't work under 4.3+
  10242. collect2name=`${CC} -print-prog-name=collect2`
  10243. if test -f "$collect2name" &&
  10244. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10245. then
  10246. # We have reworked collect2
  10247. :
  10248. else
  10249. # We have old collect2
  10250. hardcode_direct_CXX=unsupported
  10251. # It fails to find uninstalled libraries when the uninstalled
  10252. # path is not listed in the libpath. Setting hardcode_minus_L
  10253. # to unsupported forces relinking
  10254. hardcode_minus_L_CXX=yes
  10255. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10256. hardcode_libdir_separator_CXX=
  10257. fi
  10258. esac
  10259. shared_flag='-shared'
  10260. if test "$aix_use_runtimelinking" = yes; then
  10261. shared_flag="$shared_flag "'${wl}-G'
  10262. fi
  10263. else
  10264. # not using gcc
  10265. if test "$host_cpu" = ia64; then
  10266. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10267. # chokes on -Wl,-G. The following line is correct:
  10268. shared_flag='-G'
  10269. else
  10270. if test "$aix_use_runtimelinking" = yes; then
  10271. shared_flag='${wl}-G'
  10272. else
  10273. shared_flag='${wl}-bM:SRE'
  10274. fi
  10275. fi
  10276. fi
  10277. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10278. # It seems that -bexpall does not export symbols beginning with
  10279. # underscore (_), so it is better to generate a list of symbols to
  10280. # export.
  10281. always_export_symbols_CXX=yes
  10282. if test "$aix_use_runtimelinking" = yes; then
  10283. # Warning - without using the other runtime loading flags (-brtl),
  10284. # -berok will link without error, but may produce a broken library.
  10285. allow_undefined_flag_CXX='-berok'
  10286. # Determine the default libpath from the value encoded in an empty
  10287. # executable.
  10288. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10289. /* end confdefs.h. */
  10290. int
  10291. main ()
  10292. {
  10293. ;
  10294. return 0;
  10295. }
  10296. _ACEOF
  10297. if ac_fn_cxx_try_link "$LINENO"; then :
  10298. lt_aix_libpath_sed='
  10299. /Import File Strings/,/^$/ {
  10300. /^0/ {
  10301. s/^0 *\(.*\)$/\1/
  10302. p
  10303. }
  10304. }'
  10305. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10306. # Check for a 64-bit object if we didn't find anything.
  10307. if test -z "$aix_libpath"; then
  10308. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10309. fi
  10310. fi
  10311. rm -f core conftest.err conftest.$ac_objext \
  10312. conftest$ac_exeext conftest.$ac_ext
  10313. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10314. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10315. 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"
  10316. else
  10317. if test "$host_cpu" = ia64; then
  10318. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10319. allow_undefined_flag_CXX="-z nodefs"
  10320. 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"
  10321. else
  10322. # Determine the default libpath from the value encoded in an
  10323. # empty executable.
  10324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10325. /* end confdefs.h. */
  10326. int
  10327. main ()
  10328. {
  10329. ;
  10330. return 0;
  10331. }
  10332. _ACEOF
  10333. if ac_fn_cxx_try_link "$LINENO"; then :
  10334. lt_aix_libpath_sed='
  10335. /Import File Strings/,/^$/ {
  10336. /^0/ {
  10337. s/^0 *\(.*\)$/\1/
  10338. p
  10339. }
  10340. }'
  10341. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10342. # Check for a 64-bit object if we didn't find anything.
  10343. if test -z "$aix_libpath"; then
  10344. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10345. fi
  10346. fi
  10347. rm -f core conftest.err conftest.$ac_objext \
  10348. conftest$ac_exeext conftest.$ac_ext
  10349. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10350. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10351. # Warning - without using the other run time loading flags,
  10352. # -berok will link without error, but may produce a broken library.
  10353. no_undefined_flag_CXX=' ${wl}-bernotok'
  10354. allow_undefined_flag_CXX=' ${wl}-berok'
  10355. # Exported symbols can be pulled into shared objects from archives
  10356. whole_archive_flag_spec_CXX='$convenience'
  10357. archive_cmds_need_lc_CXX=yes
  10358. # This is similar to how AIX traditionally builds its shared
  10359. # libraries.
  10360. 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'
  10361. fi
  10362. fi
  10363. ;;
  10364. beos*)
  10365. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10366. allow_undefined_flag_CXX=unsupported
  10367. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10368. # support --undefined. This deserves some investigation. FIXME
  10369. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10370. else
  10371. ld_shlibs_CXX=no
  10372. fi
  10373. ;;
  10374. chorus*)
  10375. case $cc_basename in
  10376. *)
  10377. # FIXME: insert proper C++ library support
  10378. ld_shlibs_CXX=no
  10379. ;;
  10380. esac
  10381. ;;
  10382. cygwin* | mingw* | pw32* | cegcc*)
  10383. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10384. # as there is no search path for DLLs.
  10385. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10386. allow_undefined_flag_CXX=unsupported
  10387. always_export_symbols_CXX=no
  10388. enable_shared_with_static_runtimes_CXX=yes
  10389. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10390. 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'
  10391. # If the export-symbols file already is a .def file (1st line
  10392. # is EXPORTS), use it as is; otherwise, prepend...
  10393. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10394. cp $export_symbols $output_objdir/$soname.def;
  10395. else
  10396. echo EXPORTS > $output_objdir/$soname.def;
  10397. cat $export_symbols >> $output_objdir/$soname.def;
  10398. fi~
  10399. $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'
  10400. else
  10401. ld_shlibs_CXX=no
  10402. fi
  10403. ;;
  10404. darwin* | rhapsody*)
  10405. archive_cmds_need_lc_CXX=no
  10406. hardcode_direct_CXX=no
  10407. hardcode_automatic_CXX=yes
  10408. hardcode_shlibpath_var_CXX=unsupported
  10409. whole_archive_flag_spec_CXX=''
  10410. link_all_deplibs_CXX=yes
  10411. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10412. case $cc_basename in
  10413. ifort*) _lt_dar_can_shared=yes ;;
  10414. *) _lt_dar_can_shared=$GCC ;;
  10415. esac
  10416. if test "$_lt_dar_can_shared" = "yes"; then
  10417. output_verbose_link_cmd=echo
  10418. 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}"
  10419. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10420. 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}"
  10421. 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}"
  10422. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10423. 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}"
  10424. 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}"
  10425. fi
  10426. else
  10427. ld_shlibs_CXX=no
  10428. fi
  10429. ;;
  10430. dgux*)
  10431. case $cc_basename in
  10432. ec++*)
  10433. # FIXME: insert proper C++ library support
  10434. ld_shlibs_CXX=no
  10435. ;;
  10436. ghcx*)
  10437. # Green Hills C++ Compiler
  10438. # FIXME: insert proper C++ library support
  10439. ld_shlibs_CXX=no
  10440. ;;
  10441. *)
  10442. # FIXME: insert proper C++ library support
  10443. ld_shlibs_CXX=no
  10444. ;;
  10445. esac
  10446. ;;
  10447. freebsd[12]*)
  10448. # C++ shared libraries reported to be fairly broken before
  10449. # switch to ELF
  10450. ld_shlibs_CXX=no
  10451. ;;
  10452. freebsd-elf*)
  10453. archive_cmds_need_lc_CXX=no
  10454. ;;
  10455. freebsd* | dragonfly*)
  10456. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10457. # conventions
  10458. ld_shlibs_CXX=yes
  10459. ;;
  10460. gnu*)
  10461. ;;
  10462. hpux9*)
  10463. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10464. hardcode_libdir_separator_CXX=:
  10465. export_dynamic_flag_spec_CXX='${wl}-E'
  10466. hardcode_direct_CXX=yes
  10467. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10468. # but as the default
  10469. # location of the library.
  10470. case $cc_basename in
  10471. CC*)
  10472. # FIXME: insert proper C++ library support
  10473. ld_shlibs_CXX=no
  10474. ;;
  10475. aCC*)
  10476. 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'
  10477. # Commands to make compiler produce verbose output that lists
  10478. # what "hidden" libraries, object files and flags are used when
  10479. # linking a shared library.
  10480. #
  10481. # There doesn't appear to be a way to prevent this compiler from
  10482. # explicitly linking system object files so we need to strip them
  10483. # from the output so that they don't get included in the library
  10484. # dependencies.
  10485. 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'
  10486. ;;
  10487. *)
  10488. if test "$GXX" = yes; then
  10489. 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'
  10490. else
  10491. # FIXME: insert proper C++ library support
  10492. ld_shlibs_CXX=no
  10493. fi
  10494. ;;
  10495. esac
  10496. ;;
  10497. hpux10*|hpux11*)
  10498. if test $with_gnu_ld = no; then
  10499. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10500. hardcode_libdir_separator_CXX=:
  10501. case $host_cpu in
  10502. hppa*64*|ia64*)
  10503. ;;
  10504. *)
  10505. export_dynamic_flag_spec_CXX='${wl}-E'
  10506. ;;
  10507. esac
  10508. fi
  10509. case $host_cpu in
  10510. hppa*64*|ia64*)
  10511. hardcode_direct_CXX=no
  10512. hardcode_shlibpath_var_CXX=no
  10513. ;;
  10514. *)
  10515. hardcode_direct_CXX=yes
  10516. hardcode_direct_absolute_CXX=yes
  10517. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10518. # but as the default
  10519. # location of the library.
  10520. ;;
  10521. esac
  10522. case $cc_basename in
  10523. CC*)
  10524. # FIXME: insert proper C++ library support
  10525. ld_shlibs_CXX=no
  10526. ;;
  10527. aCC*)
  10528. case $host_cpu in
  10529. hppa*64*)
  10530. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10531. ;;
  10532. ia64*)
  10533. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10534. ;;
  10535. *)
  10536. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10537. ;;
  10538. esac
  10539. # Commands to make compiler produce verbose output that lists
  10540. # what "hidden" libraries, object files and flags are used when
  10541. # linking a shared library.
  10542. #
  10543. # There doesn't appear to be a way to prevent this compiler from
  10544. # explicitly linking system object files so we need to strip them
  10545. # from the output so that they don't get included in the library
  10546. # dependencies.
  10547. 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'
  10548. ;;
  10549. *)
  10550. if test "$GXX" = yes; then
  10551. if test $with_gnu_ld = no; then
  10552. case $host_cpu in
  10553. hppa*64*)
  10554. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10555. ;;
  10556. ia64*)
  10557. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10558. ;;
  10559. *)
  10560. 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'
  10561. ;;
  10562. esac
  10563. fi
  10564. else
  10565. # FIXME: insert proper C++ library support
  10566. ld_shlibs_CXX=no
  10567. fi
  10568. ;;
  10569. esac
  10570. ;;
  10571. interix[3-9]*)
  10572. hardcode_direct_CXX=no
  10573. hardcode_shlibpath_var_CXX=no
  10574. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10575. export_dynamic_flag_spec_CXX='${wl}-E'
  10576. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10577. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10578. # default) and relocated if they conflict, which is a slow very memory
  10579. # consuming and fragmenting process. To avoid this, we pick a random,
  10580. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10581. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10582. 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'
  10583. 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'
  10584. ;;
  10585. irix5* | irix6*)
  10586. case $cc_basename in
  10587. CC*)
  10588. # SGI C++
  10589. 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'
  10590. # Archives containing C++ object files must be created using
  10591. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10592. # necessary to make sure instantiated templates are included
  10593. # in the archive.
  10594. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10595. ;;
  10596. *)
  10597. if test "$GXX" = yes; then
  10598. if test "$with_gnu_ld" = no; then
  10599. 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'
  10600. else
  10601. 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'
  10602. fi
  10603. fi
  10604. link_all_deplibs_CXX=yes
  10605. ;;
  10606. esac
  10607. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10608. hardcode_libdir_separator_CXX=:
  10609. inherit_rpath_CXX=yes
  10610. ;;
  10611. linux* | k*bsd*-gnu)
  10612. case $cc_basename in
  10613. KCC*)
  10614. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10615. # KCC will only create a shared library if the output file
  10616. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10617. # to its proper name (with version) after linking.
  10618. 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'
  10619. 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'
  10620. # Commands to make compiler produce verbose output that lists
  10621. # what "hidden" libraries, object files and flags are used when
  10622. # linking a shared library.
  10623. #
  10624. # There doesn't appear to be a way to prevent this compiler from
  10625. # explicitly linking system object files so we need to strip them
  10626. # from the output so that they don't get included in the library
  10627. # dependencies.
  10628. 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'
  10629. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10630. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10631. # Archives containing C++ object files must be created using
  10632. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10633. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10634. ;;
  10635. icpc* | ecpc* )
  10636. # Intel C++
  10637. with_gnu_ld=yes
  10638. # version 8.0 and above of icpc choke on multiply defined symbols
  10639. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10640. # earlier do not add the objects themselves.
  10641. case `$CC -V 2>&1` in
  10642. *"Version 7."*)
  10643. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10644. 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'
  10645. ;;
  10646. *) # Version 8.0 or newer
  10647. tmp_idyn=
  10648. case $host_cpu in
  10649. ia64*) tmp_idyn=' -i_dynamic';;
  10650. esac
  10651. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10652. 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'
  10653. ;;
  10654. esac
  10655. archive_cmds_need_lc_CXX=no
  10656. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10657. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10658. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10659. ;;
  10660. pgCC* | pgcpp*)
  10661. # Portland Group C++ compiler
  10662. case `$CC -V` in
  10663. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  10664. prelink_cmds_CXX='tpldir=Template.dir~
  10665. rm -rf $tpldir~
  10666. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10667. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10668. old_archive_cmds_CXX='tpldir=Template.dir~
  10669. rm -rf $tpldir~
  10670. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10671. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10672. $RANLIB $oldlib'
  10673. archive_cmds_CXX='tpldir=Template.dir~
  10674. rm -rf $tpldir~
  10675. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10676. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10677. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10678. rm -rf $tpldir~
  10679. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10680. $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'
  10681. ;;
  10682. *) # Version 6 will use weak symbols
  10683. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10684. 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'
  10685. ;;
  10686. esac
  10687. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10688. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10689. 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'
  10690. ;;
  10691. cxx*)
  10692. # Compaq C++
  10693. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10694. 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'
  10695. runpath_var=LD_RUN_PATH
  10696. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10697. hardcode_libdir_separator_CXX=:
  10698. # Commands to make compiler produce verbose output that lists
  10699. # what "hidden" libraries, object files and flags are used when
  10700. # linking a shared library.
  10701. #
  10702. # There doesn't appear to be a way to prevent this compiler from
  10703. # explicitly linking system object files so we need to strip them
  10704. # from the output so that they don't get included in the library
  10705. # dependencies.
  10706. 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'
  10707. ;;
  10708. xl*)
  10709. # IBM XL 8.0 on PPC, with GNU ld
  10710. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10711. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10712. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10713. if test "x$supports_anon_versioning" = xyes; then
  10714. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10715. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10716. echo "local: *; };" >> $output_objdir/$libname.ver~
  10717. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10718. fi
  10719. ;;
  10720. *)
  10721. case `$CC -V 2>&1 | sed 5q` in
  10722. *Sun\ C*)
  10723. # Sun C++ 5.9
  10724. no_undefined_flag_CXX=' -zdefs'
  10725. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10726. 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'
  10727. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10728. 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'
  10729. compiler_needs_object_CXX=yes
  10730. # Not sure whether something based on
  10731. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10732. # would be better.
  10733. output_verbose_link_cmd='echo'
  10734. # Archives containing C++ object files must be created using
  10735. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10736. # necessary to make sure instantiated templates are included
  10737. # in the archive.
  10738. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10739. ;;
  10740. esac
  10741. ;;
  10742. esac
  10743. ;;
  10744. lynxos*)
  10745. # FIXME: insert proper C++ library support
  10746. ld_shlibs_CXX=no
  10747. ;;
  10748. m88k*)
  10749. # FIXME: insert proper C++ library support
  10750. ld_shlibs_CXX=no
  10751. ;;
  10752. mvs*)
  10753. case $cc_basename in
  10754. cxx*)
  10755. # FIXME: insert proper C++ library support
  10756. ld_shlibs_CXX=no
  10757. ;;
  10758. *)
  10759. # FIXME: insert proper C++ library support
  10760. ld_shlibs_CXX=no
  10761. ;;
  10762. esac
  10763. ;;
  10764. netbsd*)
  10765. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10766. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10767. wlarc=
  10768. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10769. hardcode_direct_CXX=yes
  10770. hardcode_shlibpath_var_CXX=no
  10771. fi
  10772. # Workaround some broken pre-1.5 toolchains
  10773. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10774. ;;
  10775. *nto* | *qnx*)
  10776. ld_shlibs_CXX=yes
  10777. ;;
  10778. openbsd2*)
  10779. # C++ shared libraries are fairly broken
  10780. ld_shlibs_CXX=no
  10781. ;;
  10782. openbsd*)
  10783. if test -f /usr/libexec/ld.so; then
  10784. hardcode_direct_CXX=yes
  10785. hardcode_shlibpath_var_CXX=no
  10786. hardcode_direct_absolute_CXX=yes
  10787. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10788. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10789. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10790. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10791. export_dynamic_flag_spec_CXX='${wl}-E'
  10792. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10793. fi
  10794. output_verbose_link_cmd=echo
  10795. else
  10796. ld_shlibs_CXX=no
  10797. fi
  10798. ;;
  10799. osf3* | osf4* | osf5*)
  10800. case $cc_basename in
  10801. KCC*)
  10802. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10803. # KCC will only create a shared library if the output file
  10804. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10805. # to its proper name (with version) after linking.
  10806. 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'
  10807. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10808. hardcode_libdir_separator_CXX=:
  10809. # Archives containing C++ object files must be created using
  10810. # the KAI C++ compiler.
  10811. case $host in
  10812. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10813. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10814. esac
  10815. ;;
  10816. RCC*)
  10817. # Rational C++ 2.4.1
  10818. # FIXME: insert proper C++ library support
  10819. ld_shlibs_CXX=no
  10820. ;;
  10821. cxx*)
  10822. case $host in
  10823. osf3*)
  10824. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10825. 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'
  10826. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10827. ;;
  10828. *)
  10829. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10830. 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'
  10831. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10832. echo "-hidden">> $lib.exp~
  10833. $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~
  10834. $RM $lib.exp'
  10835. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10836. ;;
  10837. esac
  10838. hardcode_libdir_separator_CXX=:
  10839. # Commands to make compiler produce verbose output that lists
  10840. # what "hidden" libraries, object files and flags are used when
  10841. # linking a shared library.
  10842. #
  10843. # There doesn't appear to be a way to prevent this compiler from
  10844. # explicitly linking system object files so we need to strip them
  10845. # from the output so that they don't get included in the library
  10846. # dependencies.
  10847. 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'
  10848. ;;
  10849. *)
  10850. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10851. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10852. case $host in
  10853. osf3*)
  10854. 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'
  10855. ;;
  10856. *)
  10857. 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'
  10858. ;;
  10859. esac
  10860. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10861. hardcode_libdir_separator_CXX=:
  10862. # Commands to make compiler produce verbose output that lists
  10863. # what "hidden" libraries, object files and flags are used when
  10864. # linking a shared library.
  10865. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10866. else
  10867. # FIXME: insert proper C++ library support
  10868. ld_shlibs_CXX=no
  10869. fi
  10870. ;;
  10871. esac
  10872. ;;
  10873. psos*)
  10874. # FIXME: insert proper C++ library support
  10875. ld_shlibs_CXX=no
  10876. ;;
  10877. sunos4*)
  10878. case $cc_basename in
  10879. CC*)
  10880. # Sun C++ 4.x
  10881. # FIXME: insert proper C++ library support
  10882. ld_shlibs_CXX=no
  10883. ;;
  10884. lcc*)
  10885. # Lucid
  10886. # FIXME: insert proper C++ library support
  10887. ld_shlibs_CXX=no
  10888. ;;
  10889. *)
  10890. # FIXME: insert proper C++ library support
  10891. ld_shlibs_CXX=no
  10892. ;;
  10893. esac
  10894. ;;
  10895. solaris*)
  10896. case $cc_basename in
  10897. CC*)
  10898. # Sun C++ 4.2, 5.x and Centerline C++
  10899. archive_cmds_need_lc_CXX=yes
  10900. no_undefined_flag_CXX=' -zdefs'
  10901. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10902. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10903. $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'
  10904. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10905. hardcode_shlibpath_var_CXX=no
  10906. case $host_os in
  10907. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10908. *)
  10909. # The compiler driver will combine and reorder linker options,
  10910. # but understands `-z linker_flag'.
  10911. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10912. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10913. ;;
  10914. esac
  10915. link_all_deplibs_CXX=yes
  10916. output_verbose_link_cmd='echo'
  10917. # Archives containing C++ object files must be created using
  10918. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10919. # necessary to make sure instantiated templates are included
  10920. # in the archive.
  10921. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10922. ;;
  10923. gcx*)
  10924. # Green Hills C++ Compiler
  10925. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10926. # The C++ compiler must be used to create the archive.
  10927. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10928. ;;
  10929. *)
  10930. # GNU C++ compiler with Solaris linker
  10931. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10932. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10933. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10934. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10935. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10936. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10937. # Commands to make compiler produce verbose output that lists
  10938. # what "hidden" libraries, object files and flags are used when
  10939. # linking a shared library.
  10940. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10941. else
  10942. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10943. # platform.
  10944. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10945. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10946. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10947. # Commands to make compiler produce verbose output that lists
  10948. # what "hidden" libraries, object files and flags are used when
  10949. # linking a shared library.
  10950. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10951. fi
  10952. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10953. case $host_os in
  10954. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10955. *)
  10956. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10957. ;;
  10958. esac
  10959. fi
  10960. ;;
  10961. esac
  10962. ;;
  10963. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  10964. no_undefined_flag_CXX='${wl}-z,text'
  10965. archive_cmds_need_lc_CXX=no
  10966. hardcode_shlibpath_var_CXX=no
  10967. runpath_var='LD_RUN_PATH'
  10968. case $cc_basename in
  10969. CC*)
  10970. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10971. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10972. ;;
  10973. *)
  10974. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10975. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10976. ;;
  10977. esac
  10978. ;;
  10979. sysv5* | sco3.2v5* | sco5v6*)
  10980. # Note: We can NOT use -z defs as we might desire, because we do not
  10981. # link with -lc, and that would cause any symbols used from libc to
  10982. # always be unresolved, which means just about no library would
  10983. # ever link correctly. If we're not using GNU ld we use -z text
  10984. # though, which does catch some bad symbols but isn't as heavy-handed
  10985. # as -z defs.
  10986. no_undefined_flag_CXX='${wl}-z,text'
  10987. allow_undefined_flag_CXX='${wl}-z,nodefs'
  10988. archive_cmds_need_lc_CXX=no
  10989. hardcode_shlibpath_var_CXX=no
  10990. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  10991. hardcode_libdir_separator_CXX=':'
  10992. link_all_deplibs_CXX=yes
  10993. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  10994. runpath_var='LD_RUN_PATH'
  10995. case $cc_basename in
  10996. CC*)
  10997. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10998. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10999. ;;
  11000. *)
  11001. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11002. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11003. ;;
  11004. esac
  11005. ;;
  11006. tandem*)
  11007. case $cc_basename in
  11008. NCC*)
  11009. # NonStop-UX NCC 3.20
  11010. # FIXME: insert proper C++ library support
  11011. ld_shlibs_CXX=no
  11012. ;;
  11013. *)
  11014. # FIXME: insert proper C++ library support
  11015. ld_shlibs_CXX=no
  11016. ;;
  11017. esac
  11018. ;;
  11019. vxworks*)
  11020. # FIXME: insert proper C++ library support
  11021. ld_shlibs_CXX=no
  11022. ;;
  11023. *)
  11024. # FIXME: insert proper C++ library support
  11025. ld_shlibs_CXX=no
  11026. ;;
  11027. esac
  11028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11029. $as_echo "$ld_shlibs_CXX" >&6; }
  11030. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11031. GCC_CXX="$GXX"
  11032. LD_CXX="$LD"
  11033. ## CAVEAT EMPTOR:
  11034. ## There is no encapsulation within the following macros, do not change
  11035. ## the running order or otherwise move them around unless you know exactly
  11036. ## what you are doing...
  11037. # Dependencies to place before and after the object being linked:
  11038. predep_objects_CXX=
  11039. postdep_objects_CXX=
  11040. predeps_CXX=
  11041. postdeps_CXX=
  11042. compiler_lib_search_path_CXX=
  11043. cat > conftest.$ac_ext <<_LT_EOF
  11044. class Foo
  11045. {
  11046. public:
  11047. Foo (void) { a = 0; }
  11048. private:
  11049. int a;
  11050. };
  11051. _LT_EOF
  11052. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11053. (eval $ac_compile) 2>&5
  11054. ac_status=$?
  11055. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11056. test $ac_status = 0; }; then
  11057. # Parse the compiler output and extract the necessary
  11058. # objects, libraries and library flags.
  11059. # Sentinel used to keep track of whether or not we are before
  11060. # the conftest object file.
  11061. pre_test_object_deps_done=no
  11062. for p in `eval "$output_verbose_link_cmd"`; do
  11063. case $p in
  11064. -L* | -R* | -l*)
  11065. # Some compilers place space between "-{L,R}" and the path.
  11066. # Remove the space.
  11067. if test $p = "-L" ||
  11068. test $p = "-R"; then
  11069. prev=$p
  11070. continue
  11071. else
  11072. prev=
  11073. fi
  11074. if test "$pre_test_object_deps_done" = no; then
  11075. case $p in
  11076. -L* | -R*)
  11077. # Internal compiler library paths should come after those
  11078. # provided the user. The postdeps already come after the
  11079. # user supplied libs so there is no need to process them.
  11080. if test -z "$compiler_lib_search_path_CXX"; then
  11081. compiler_lib_search_path_CXX="${prev}${p}"
  11082. else
  11083. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11084. fi
  11085. ;;
  11086. # The "-l" case would never come before the object being
  11087. # linked, so don't bother handling this case.
  11088. esac
  11089. else
  11090. if test -z "$postdeps_CXX"; then
  11091. postdeps_CXX="${prev}${p}"
  11092. else
  11093. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11094. fi
  11095. fi
  11096. ;;
  11097. *.$objext)
  11098. # This assumes that the test object file only shows up
  11099. # once in the compiler output.
  11100. if test "$p" = "conftest.$objext"; then
  11101. pre_test_object_deps_done=yes
  11102. continue
  11103. fi
  11104. if test "$pre_test_object_deps_done" = no; then
  11105. if test -z "$predep_objects_CXX"; then
  11106. predep_objects_CXX="$p"
  11107. else
  11108. predep_objects_CXX="$predep_objects_CXX $p"
  11109. fi
  11110. else
  11111. if test -z "$postdep_objects_CXX"; then
  11112. postdep_objects_CXX="$p"
  11113. else
  11114. postdep_objects_CXX="$postdep_objects_CXX $p"
  11115. fi
  11116. fi
  11117. ;;
  11118. *) ;; # Ignore the rest.
  11119. esac
  11120. done
  11121. # Clean up.
  11122. rm -f a.out a.exe
  11123. else
  11124. echo "libtool.m4: error: problem compiling CXX test program"
  11125. fi
  11126. $RM -f confest.$objext
  11127. # PORTME: override above test on systems where it is broken
  11128. case $host_os in
  11129. interix[3-9]*)
  11130. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11131. # hack all around it, let's just trust "g++" to DTRT.
  11132. predep_objects_CXX=
  11133. postdep_objects_CXX=
  11134. postdeps_CXX=
  11135. ;;
  11136. linux*)
  11137. case `$CC -V 2>&1 | sed 5q` in
  11138. *Sun\ C*)
  11139. # Sun C++ 5.9
  11140. # The more standards-conforming stlport4 library is
  11141. # incompatible with the Cstd library. Avoid specifying
  11142. # it if it's in CXXFLAGS. Ignore libCrun as
  11143. # -library=stlport4 depends on it.
  11144. case " $CXX $CXXFLAGS " in
  11145. *" -library=stlport4 "*)
  11146. solaris_use_stlport4=yes
  11147. ;;
  11148. esac
  11149. if test "$solaris_use_stlport4" != yes; then
  11150. postdeps_CXX='-library=Cstd -library=Crun'
  11151. fi
  11152. ;;
  11153. esac
  11154. ;;
  11155. solaris*)
  11156. case $cc_basename in
  11157. CC*)
  11158. # The more standards-conforming stlport4 library is
  11159. # incompatible with the Cstd library. Avoid specifying
  11160. # it if it's in CXXFLAGS. Ignore libCrun as
  11161. # -library=stlport4 depends on it.
  11162. case " $CXX $CXXFLAGS " in
  11163. *" -library=stlport4 "*)
  11164. solaris_use_stlport4=yes
  11165. ;;
  11166. esac
  11167. # Adding this requires a known-good setup of shared libraries for
  11168. # Sun compiler versions before 5.6, else PIC objects from an old
  11169. # archive will be linked into the output, leading to subtle bugs.
  11170. if test "$solaris_use_stlport4" != yes; then
  11171. postdeps_CXX='-library=Cstd -library=Crun'
  11172. fi
  11173. ;;
  11174. esac
  11175. ;;
  11176. esac
  11177. case " $postdeps_CXX " in
  11178. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11179. esac
  11180. compiler_lib_search_dirs_CXX=
  11181. if test -n "${compiler_lib_search_path_CXX}"; then
  11182. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11183. fi
  11184. lt_prog_compiler_wl_CXX=
  11185. lt_prog_compiler_pic_CXX=
  11186. lt_prog_compiler_static_CXX=
  11187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11188. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11189. # C++ specific cases for pic, static, wl, etc.
  11190. if test "$GXX" = yes; then
  11191. lt_prog_compiler_wl_CXX='-Wl,'
  11192. lt_prog_compiler_static_CXX='-static'
  11193. case $host_os in
  11194. aix*)
  11195. # All AIX code is PIC.
  11196. if test "$host_cpu" = ia64; then
  11197. # AIX 5 now supports IA64 processor
  11198. lt_prog_compiler_static_CXX='-Bstatic'
  11199. fi
  11200. ;;
  11201. amigaos*)
  11202. case $host_cpu in
  11203. powerpc)
  11204. # see comment about AmigaOS4 .so support
  11205. lt_prog_compiler_pic_CXX='-fPIC'
  11206. ;;
  11207. m68k)
  11208. # FIXME: we need at least 68020 code to build shared libraries, but
  11209. # adding the `-m68020' flag to GCC prevents building anything better,
  11210. # like `-m68040'.
  11211. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11212. ;;
  11213. esac
  11214. ;;
  11215. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11216. # PIC is the default for these OSes.
  11217. ;;
  11218. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11219. # This hack is so that the source file can tell whether it is being
  11220. # built for inclusion in a dll (and should export symbols for example).
  11221. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11222. # (--disable-auto-import) libraries
  11223. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11224. ;;
  11225. darwin* | rhapsody*)
  11226. # PIC is the default on this platform
  11227. # Common symbols not allowed in MH_DYLIB files
  11228. lt_prog_compiler_pic_CXX='-fno-common'
  11229. ;;
  11230. *djgpp*)
  11231. # DJGPP does not support shared libraries at all
  11232. lt_prog_compiler_pic_CXX=
  11233. ;;
  11234. interix[3-9]*)
  11235. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11236. # Instead, we relocate shared libraries at runtime.
  11237. ;;
  11238. sysv4*MP*)
  11239. if test -d /usr/nec; then
  11240. lt_prog_compiler_pic_CXX=-Kconform_pic
  11241. fi
  11242. ;;
  11243. hpux*)
  11244. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11245. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11246. # sets the default TLS model and affects inlining.
  11247. case $host_cpu in
  11248. hppa*64*)
  11249. ;;
  11250. *)
  11251. lt_prog_compiler_pic_CXX='-fPIC'
  11252. ;;
  11253. esac
  11254. ;;
  11255. *qnx* | *nto*)
  11256. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11257. # it will coredump.
  11258. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11259. ;;
  11260. *)
  11261. lt_prog_compiler_pic_CXX='-fPIC'
  11262. ;;
  11263. esac
  11264. else
  11265. case $host_os in
  11266. aix[4-9]*)
  11267. # All AIX code is PIC.
  11268. if test "$host_cpu" = ia64; then
  11269. # AIX 5 now supports IA64 processor
  11270. lt_prog_compiler_static_CXX='-Bstatic'
  11271. else
  11272. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11273. fi
  11274. ;;
  11275. chorus*)
  11276. case $cc_basename in
  11277. cxch68*)
  11278. # Green Hills C++ Compiler
  11279. # _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"
  11280. ;;
  11281. esac
  11282. ;;
  11283. dgux*)
  11284. case $cc_basename in
  11285. ec++*)
  11286. lt_prog_compiler_pic_CXX='-KPIC'
  11287. ;;
  11288. ghcx*)
  11289. # Green Hills C++ Compiler
  11290. lt_prog_compiler_pic_CXX='-pic'
  11291. ;;
  11292. *)
  11293. ;;
  11294. esac
  11295. ;;
  11296. freebsd* | dragonfly*)
  11297. # FreeBSD uses GNU C++
  11298. ;;
  11299. hpux9* | hpux10* | hpux11*)
  11300. case $cc_basename in
  11301. CC*)
  11302. lt_prog_compiler_wl_CXX='-Wl,'
  11303. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11304. if test "$host_cpu" != ia64; then
  11305. lt_prog_compiler_pic_CXX='+Z'
  11306. fi
  11307. ;;
  11308. aCC*)
  11309. lt_prog_compiler_wl_CXX='-Wl,'
  11310. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11311. case $host_cpu in
  11312. hppa*64*|ia64*)
  11313. # +Z the default
  11314. ;;
  11315. *)
  11316. lt_prog_compiler_pic_CXX='+Z'
  11317. ;;
  11318. esac
  11319. ;;
  11320. *)
  11321. ;;
  11322. esac
  11323. ;;
  11324. interix*)
  11325. # This is c89, which is MS Visual C++ (no shared libs)
  11326. # Anyone wants to do a port?
  11327. ;;
  11328. irix5* | irix6* | nonstopux*)
  11329. case $cc_basename in
  11330. CC*)
  11331. lt_prog_compiler_wl_CXX='-Wl,'
  11332. lt_prog_compiler_static_CXX='-non_shared'
  11333. # CC pic flag -KPIC is the default.
  11334. ;;
  11335. *)
  11336. ;;
  11337. esac
  11338. ;;
  11339. linux* | k*bsd*-gnu)
  11340. case $cc_basename in
  11341. KCC*)
  11342. # KAI C++ Compiler
  11343. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11344. lt_prog_compiler_pic_CXX='-fPIC'
  11345. ;;
  11346. ecpc* )
  11347. # old Intel C++ for x86_64 which still supported -KPIC.
  11348. lt_prog_compiler_wl_CXX='-Wl,'
  11349. lt_prog_compiler_pic_CXX='-KPIC'
  11350. lt_prog_compiler_static_CXX='-static'
  11351. ;;
  11352. icpc* )
  11353. # Intel C++, used to be incompatible with GCC.
  11354. # ICC 10 doesn't accept -KPIC any more.
  11355. lt_prog_compiler_wl_CXX='-Wl,'
  11356. lt_prog_compiler_pic_CXX='-fPIC'
  11357. lt_prog_compiler_static_CXX='-static'
  11358. ;;
  11359. pgCC* | pgcpp*)
  11360. # Portland Group C++ compiler
  11361. lt_prog_compiler_wl_CXX='-Wl,'
  11362. lt_prog_compiler_pic_CXX='-fpic'
  11363. lt_prog_compiler_static_CXX='-Bstatic'
  11364. ;;
  11365. cxx*)
  11366. # Compaq C++
  11367. # Make sure the PIC flag is empty. It appears that all Alpha
  11368. # Linux and Compaq Tru64 Unix objects are PIC.
  11369. lt_prog_compiler_pic_CXX=
  11370. lt_prog_compiler_static_CXX='-non_shared'
  11371. ;;
  11372. xlc* | xlC*)
  11373. # IBM XL 8.0 on PPC
  11374. lt_prog_compiler_wl_CXX='-Wl,'
  11375. lt_prog_compiler_pic_CXX='-qpic'
  11376. lt_prog_compiler_static_CXX='-qstaticlink'
  11377. ;;
  11378. *)
  11379. case `$CC -V 2>&1 | sed 5q` in
  11380. *Sun\ C*)
  11381. # Sun C++ 5.9
  11382. lt_prog_compiler_pic_CXX='-KPIC'
  11383. lt_prog_compiler_static_CXX='-Bstatic'
  11384. lt_prog_compiler_wl_CXX='-Qoption ld '
  11385. ;;
  11386. esac
  11387. ;;
  11388. esac
  11389. ;;
  11390. lynxos*)
  11391. ;;
  11392. m88k*)
  11393. ;;
  11394. mvs*)
  11395. case $cc_basename in
  11396. cxx*)
  11397. lt_prog_compiler_pic_CXX='-W c,exportall'
  11398. ;;
  11399. *)
  11400. ;;
  11401. esac
  11402. ;;
  11403. netbsd* | netbsdelf*-gnu)
  11404. ;;
  11405. *qnx* | *nto*)
  11406. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11407. # it will coredump.
  11408. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11409. ;;
  11410. osf3* | osf4* | osf5*)
  11411. case $cc_basename in
  11412. KCC*)
  11413. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11414. ;;
  11415. RCC*)
  11416. # Rational C++ 2.4.1
  11417. lt_prog_compiler_pic_CXX='-pic'
  11418. ;;
  11419. cxx*)
  11420. # Digital/Compaq C++
  11421. lt_prog_compiler_wl_CXX='-Wl,'
  11422. # Make sure the PIC flag is empty. It appears that all Alpha
  11423. # Linux and Compaq Tru64 Unix objects are PIC.
  11424. lt_prog_compiler_pic_CXX=
  11425. lt_prog_compiler_static_CXX='-non_shared'
  11426. ;;
  11427. *)
  11428. ;;
  11429. esac
  11430. ;;
  11431. psos*)
  11432. ;;
  11433. solaris*)
  11434. case $cc_basename in
  11435. CC*)
  11436. # Sun C++ 4.2, 5.x and Centerline C++
  11437. lt_prog_compiler_pic_CXX='-KPIC'
  11438. lt_prog_compiler_static_CXX='-Bstatic'
  11439. lt_prog_compiler_wl_CXX='-Qoption ld '
  11440. ;;
  11441. gcx*)
  11442. # Green Hills C++ Compiler
  11443. lt_prog_compiler_pic_CXX='-PIC'
  11444. ;;
  11445. *)
  11446. ;;
  11447. esac
  11448. ;;
  11449. sunos4*)
  11450. case $cc_basename in
  11451. CC*)
  11452. # Sun C++ 4.x
  11453. lt_prog_compiler_pic_CXX='-pic'
  11454. lt_prog_compiler_static_CXX='-Bstatic'
  11455. ;;
  11456. lcc*)
  11457. # Lucid
  11458. lt_prog_compiler_pic_CXX='-pic'
  11459. ;;
  11460. *)
  11461. ;;
  11462. esac
  11463. ;;
  11464. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11465. case $cc_basename in
  11466. CC*)
  11467. lt_prog_compiler_wl_CXX='-Wl,'
  11468. lt_prog_compiler_pic_CXX='-KPIC'
  11469. lt_prog_compiler_static_CXX='-Bstatic'
  11470. ;;
  11471. esac
  11472. ;;
  11473. tandem*)
  11474. case $cc_basename in
  11475. NCC*)
  11476. # NonStop-UX NCC 3.20
  11477. lt_prog_compiler_pic_CXX='-KPIC'
  11478. ;;
  11479. *)
  11480. ;;
  11481. esac
  11482. ;;
  11483. vxworks*)
  11484. ;;
  11485. *)
  11486. lt_prog_compiler_can_build_shared_CXX=no
  11487. ;;
  11488. esac
  11489. fi
  11490. case $host_os in
  11491. # For platforms which do not support PIC, -DPIC is meaningless:
  11492. *djgpp*)
  11493. lt_prog_compiler_pic_CXX=
  11494. ;;
  11495. *)
  11496. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11497. ;;
  11498. esac
  11499. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11500. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11501. #
  11502. # Check to make sure the PIC flag actually works.
  11503. #
  11504. if test -n "$lt_prog_compiler_pic_CXX"; then
  11505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11506. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11507. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11508. $as_echo_n "(cached) " >&6
  11509. else
  11510. lt_cv_prog_compiler_pic_works_CXX=no
  11511. ac_outfile=conftest.$ac_objext
  11512. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11513. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11514. # Insert the option either (1) after the last *FLAGS variable, or
  11515. # (2) before a word containing "conftest.", or (3) at the end.
  11516. # Note that $ac_compile itself does not contain backslashes and begins
  11517. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11518. # The option is referenced via a variable to avoid confusing sed.
  11519. lt_compile=`echo "$ac_compile" | $SED \
  11520. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11521. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11522. -e 's:$: $lt_compiler_flag:'`
  11523. (eval echo "\"\$as_me:13310: $lt_compile\"" >&5)
  11524. (eval "$lt_compile" 2>conftest.err)
  11525. ac_status=$?
  11526. cat conftest.err >&5
  11527. echo "$as_me:13314: \$? = $ac_status" >&5
  11528. if (exit $ac_status) && test -s "$ac_outfile"; then
  11529. # The compiler can only warn and ignore the option if not recognized
  11530. # So say no if there are warnings other than the usual output.
  11531. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11532. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11533. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11534. lt_cv_prog_compiler_pic_works_CXX=yes
  11535. fi
  11536. fi
  11537. $RM conftest*
  11538. fi
  11539. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11540. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11541. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11542. case $lt_prog_compiler_pic_CXX in
  11543. "" | " "*) ;;
  11544. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11545. esac
  11546. else
  11547. lt_prog_compiler_pic_CXX=
  11548. lt_prog_compiler_can_build_shared_CXX=no
  11549. fi
  11550. fi
  11551. #
  11552. # Check to make sure the static flag actually works.
  11553. #
  11554. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11556. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11557. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11558. $as_echo_n "(cached) " >&6
  11559. else
  11560. lt_cv_prog_compiler_static_works_CXX=no
  11561. save_LDFLAGS="$LDFLAGS"
  11562. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11563. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11564. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11565. # The linker can only warn and ignore the option if not recognized
  11566. # So say no if there are warnings
  11567. if test -s conftest.err; then
  11568. # Append any errors to the config.log.
  11569. cat conftest.err 1>&5
  11570. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11571. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11572. if diff conftest.exp conftest.er2 >/dev/null; then
  11573. lt_cv_prog_compiler_static_works_CXX=yes
  11574. fi
  11575. else
  11576. lt_cv_prog_compiler_static_works_CXX=yes
  11577. fi
  11578. fi
  11579. $RM -r conftest*
  11580. LDFLAGS="$save_LDFLAGS"
  11581. fi
  11582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11583. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11584. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11585. :
  11586. else
  11587. lt_prog_compiler_static_CXX=
  11588. fi
  11589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11590. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11591. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11592. $as_echo_n "(cached) " >&6
  11593. else
  11594. lt_cv_prog_compiler_c_o_CXX=no
  11595. $RM -r conftest 2>/dev/null
  11596. mkdir conftest
  11597. cd conftest
  11598. mkdir out
  11599. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11600. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11601. # Insert the option either (1) after the last *FLAGS variable, or
  11602. # (2) before a word containing "conftest.", or (3) at the end.
  11603. # Note that $ac_compile itself does not contain backslashes and begins
  11604. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11605. lt_compile=`echo "$ac_compile" | $SED \
  11606. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11607. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11608. -e 's:$: $lt_compiler_flag:'`
  11609. (eval echo "\"\$as_me:13409: $lt_compile\"" >&5)
  11610. (eval "$lt_compile" 2>out/conftest.err)
  11611. ac_status=$?
  11612. cat out/conftest.err >&5
  11613. echo "$as_me:13413: \$? = $ac_status" >&5
  11614. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11615. then
  11616. # The compiler can only warn and ignore the option if not recognized
  11617. # So say no if there are warnings
  11618. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11619. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11620. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11621. lt_cv_prog_compiler_c_o_CXX=yes
  11622. fi
  11623. fi
  11624. chmod u+w . 2>&5
  11625. $RM conftest*
  11626. # SGI C++ compiler will create directory out/ii_files/ for
  11627. # template instantiation
  11628. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11629. $RM out/* && rmdir out
  11630. cd ..
  11631. $RM -r conftest
  11632. $RM conftest*
  11633. fi
  11634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11635. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11637. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11638. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11639. $as_echo_n "(cached) " >&6
  11640. else
  11641. lt_cv_prog_compiler_c_o_CXX=no
  11642. $RM -r conftest 2>/dev/null
  11643. mkdir conftest
  11644. cd conftest
  11645. mkdir out
  11646. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11647. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11648. # Insert the option either (1) after the last *FLAGS variable, or
  11649. # (2) before a word containing "conftest.", or (3) at the end.
  11650. # Note that $ac_compile itself does not contain backslashes and begins
  11651. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11652. lt_compile=`echo "$ac_compile" | $SED \
  11653. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11654. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11655. -e 's:$: $lt_compiler_flag:'`
  11656. (eval echo "\"\$as_me:13461: $lt_compile\"" >&5)
  11657. (eval "$lt_compile" 2>out/conftest.err)
  11658. ac_status=$?
  11659. cat out/conftest.err >&5
  11660. echo "$as_me:13465: \$? = $ac_status" >&5
  11661. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11662. then
  11663. # The compiler can only warn and ignore the option if not recognized
  11664. # So say no if there are warnings
  11665. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11666. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11667. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11668. lt_cv_prog_compiler_c_o_CXX=yes
  11669. fi
  11670. fi
  11671. chmod u+w . 2>&5
  11672. $RM conftest*
  11673. # SGI C++ compiler will create directory out/ii_files/ for
  11674. # template instantiation
  11675. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11676. $RM out/* && rmdir out
  11677. cd ..
  11678. $RM -r conftest
  11679. $RM conftest*
  11680. fi
  11681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11682. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11683. hard_links="nottested"
  11684. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11685. # do not overwrite the value of need_locks provided by the user
  11686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11687. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11688. hard_links=yes
  11689. $RM conftest*
  11690. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11691. touch conftest.a
  11692. ln conftest.a conftest.b 2>&5 || hard_links=no
  11693. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11695. $as_echo "$hard_links" >&6; }
  11696. if test "$hard_links" = no; then
  11697. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11698. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11699. need_locks=warn
  11700. fi
  11701. else
  11702. need_locks=no
  11703. fi
  11704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11705. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11706. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11707. case $host_os in
  11708. aix[4-9]*)
  11709. # If we're using GNU nm, then we don't want the "-C" option.
  11710. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11711. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11712. 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'
  11713. else
  11714. 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'
  11715. fi
  11716. ;;
  11717. pw32*)
  11718. export_symbols_cmds_CXX="$ltdll_cmds"
  11719. ;;
  11720. cygwin* | mingw* | cegcc*)
  11721. 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'
  11722. ;;
  11723. linux* | k*bsd*-gnu)
  11724. link_all_deplibs_CXX=no
  11725. ;;
  11726. *)
  11727. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11728. ;;
  11729. esac
  11730. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11732. $as_echo "$ld_shlibs_CXX" >&6; }
  11733. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11734. with_gnu_ld_CXX=$with_gnu_ld
  11735. #
  11736. # Do we need to explicitly link libc?
  11737. #
  11738. case "x$archive_cmds_need_lc_CXX" in
  11739. x|xyes)
  11740. # Assume -lc should be added
  11741. archive_cmds_need_lc_CXX=yes
  11742. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11743. case $archive_cmds_CXX in
  11744. *'~'*)
  11745. # FIXME: we may have to deal with multi-command sequences.
  11746. ;;
  11747. '$CC '*)
  11748. # Test whether the compiler implicitly links with -lc since on some
  11749. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11750. # to ld, don't add -lc before -lgcc.
  11751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11752. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11753. $RM conftest*
  11754. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11755. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11756. (eval $ac_compile) 2>&5
  11757. ac_status=$?
  11758. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11759. test $ac_status = 0; } 2>conftest.err; then
  11760. soname=conftest
  11761. lib=conftest
  11762. libobjs=conftest.$ac_objext
  11763. deplibs=
  11764. wl=$lt_prog_compiler_wl_CXX
  11765. pic_flag=$lt_prog_compiler_pic_CXX
  11766. compiler_flags=-v
  11767. linker_flags=-v
  11768. verstring=
  11769. output_objdir=.
  11770. libname=conftest
  11771. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11772. allow_undefined_flag_CXX=
  11773. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11774. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11775. ac_status=$?
  11776. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11777. test $ac_status = 0; }
  11778. then
  11779. archive_cmds_need_lc_CXX=no
  11780. else
  11781. archive_cmds_need_lc_CXX=yes
  11782. fi
  11783. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11784. else
  11785. cat conftest.err 1>&5
  11786. fi
  11787. $RM conftest*
  11788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  11789. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  11790. ;;
  11791. esac
  11792. fi
  11793. ;;
  11794. esac
  11795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11796. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11797. library_names_spec=
  11798. libname_spec='lib$name'
  11799. soname_spec=
  11800. shrext_cmds=".so"
  11801. postinstall_cmds=
  11802. postuninstall_cmds=
  11803. finish_cmds=
  11804. finish_eval=
  11805. shlibpath_var=
  11806. shlibpath_overrides_runpath=unknown
  11807. version_type=none
  11808. dynamic_linker="$host_os ld.so"
  11809. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11810. need_lib_prefix=unknown
  11811. hardcode_into_libs=no
  11812. # when you set need_version to no, make sure it does not cause -set_version
  11813. # flags to be left without arguments
  11814. need_version=unknown
  11815. case $host_os in
  11816. aix3*)
  11817. version_type=linux
  11818. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11819. shlibpath_var=LIBPATH
  11820. # AIX 3 has no versioning support, so we append a major version to the name.
  11821. soname_spec='${libname}${release}${shared_ext}$major'
  11822. ;;
  11823. aix[4-9]*)
  11824. version_type=linux
  11825. need_lib_prefix=no
  11826. need_version=no
  11827. hardcode_into_libs=yes
  11828. if test "$host_cpu" = ia64; then
  11829. # AIX 5 supports IA64
  11830. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11831. shlibpath_var=LD_LIBRARY_PATH
  11832. else
  11833. # With GCC up to 2.95.x, collect2 would create an import file
  11834. # for dependence libraries. The import file would start with
  11835. # the line `#! .'. This would cause the generated library to
  11836. # depend on `.', always an invalid library. This was fixed in
  11837. # development snapshots of GCC prior to 3.0.
  11838. case $host_os in
  11839. aix4 | aix4.[01] | aix4.[01].*)
  11840. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11841. echo ' yes '
  11842. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11843. :
  11844. else
  11845. can_build_shared=no
  11846. fi
  11847. ;;
  11848. esac
  11849. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11850. # soname into executable. Probably we can add versioning support to
  11851. # collect2, so additional links can be useful in future.
  11852. if test "$aix_use_runtimelinking" = yes; then
  11853. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11854. # instead of lib<name>.a to let people know that these are not
  11855. # typical AIX shared libraries.
  11856. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11857. else
  11858. # We preserve .a as extension for shared libraries through AIX4.2
  11859. # and later when we are not doing run time linking.
  11860. library_names_spec='${libname}${release}.a $libname.a'
  11861. soname_spec='${libname}${release}${shared_ext}$major'
  11862. fi
  11863. shlibpath_var=LIBPATH
  11864. fi
  11865. ;;
  11866. amigaos*)
  11867. case $host_cpu in
  11868. powerpc)
  11869. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11870. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11871. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11872. ;;
  11873. m68k)
  11874. library_names_spec='$libname.ixlibrary $libname.a'
  11875. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11876. 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'
  11877. ;;
  11878. esac
  11879. ;;
  11880. beos*)
  11881. library_names_spec='${libname}${shared_ext}'
  11882. dynamic_linker="$host_os ld.so"
  11883. shlibpath_var=LIBRARY_PATH
  11884. ;;
  11885. bsdi[45]*)
  11886. version_type=linux
  11887. need_version=no
  11888. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11889. soname_spec='${libname}${release}${shared_ext}$major'
  11890. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11891. shlibpath_var=LD_LIBRARY_PATH
  11892. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11893. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11894. # the default ld.so.conf also contains /usr/contrib/lib and
  11895. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11896. # libtool to hard-code these into programs
  11897. ;;
  11898. cygwin* | mingw* | pw32* | cegcc*)
  11899. version_type=windows
  11900. shrext_cmds=".dll"
  11901. need_version=no
  11902. need_lib_prefix=no
  11903. case $GCC,$host_os in
  11904. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11905. library_names_spec='$libname.dll.a'
  11906. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11907. postinstall_cmds='base_file=`basename \${file}`~
  11908. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11909. dldir=$destdir/`dirname \$dlpath`~
  11910. test -d \$dldir || mkdir -p \$dldir~
  11911. $install_prog $dir/$dlname \$dldir/$dlname~
  11912. chmod a+x \$dldir/$dlname~
  11913. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11914. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11915. fi'
  11916. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11917. dlpath=$dir/\$dldll~
  11918. $RM \$dlpath'
  11919. shlibpath_overrides_runpath=yes
  11920. case $host_os in
  11921. cygwin*)
  11922. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11923. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11924. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11925. ;;
  11926. mingw* | cegcc*)
  11927. # MinGW DLLs use traditional 'lib' prefix
  11928. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11929. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11930. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11931. # It is most probably a Windows format PATH printed by
  11932. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11933. # path with ; separators, and with drive letters. We can handle the
  11934. # drive letters (cygwin fileutils understands them), so leave them,
  11935. # especially as we might pass files found there to a mingw objdump,
  11936. # which wouldn't understand a cygwinified path. Ahh.
  11937. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11938. else
  11939. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11940. fi
  11941. ;;
  11942. pw32*)
  11943. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11944. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11945. ;;
  11946. esac
  11947. ;;
  11948. *)
  11949. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11950. ;;
  11951. esac
  11952. dynamic_linker='Win32 ld.exe'
  11953. # FIXME: first we should search . and the directory the executable is in
  11954. shlibpath_var=PATH
  11955. ;;
  11956. darwin* | rhapsody*)
  11957. dynamic_linker="$host_os dyld"
  11958. version_type=darwin
  11959. need_lib_prefix=no
  11960. need_version=no
  11961. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  11962. soname_spec='${libname}${release}${major}$shared_ext'
  11963. shlibpath_overrides_runpath=yes
  11964. shlibpath_var=DYLD_LIBRARY_PATH
  11965. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  11966. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  11967. ;;
  11968. dgux*)
  11969. version_type=linux
  11970. need_lib_prefix=no
  11971. need_version=no
  11972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  11973. soname_spec='${libname}${release}${shared_ext}$major'
  11974. shlibpath_var=LD_LIBRARY_PATH
  11975. ;;
  11976. freebsd1*)
  11977. dynamic_linker=no
  11978. ;;
  11979. freebsd* | dragonfly*)
  11980. # DragonFly does not have aout. When/if they implement a new
  11981. # versioning mechanism, adjust this.
  11982. if test -x /usr/bin/objformat; then
  11983. objformat=`/usr/bin/objformat`
  11984. else
  11985. case $host_os in
  11986. freebsd[123]*) objformat=aout ;;
  11987. *) objformat=elf ;;
  11988. esac
  11989. fi
  11990. version_type=freebsd-$objformat
  11991. case $version_type in
  11992. freebsd-elf*)
  11993. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  11994. need_version=no
  11995. need_lib_prefix=no
  11996. ;;
  11997. freebsd-*)
  11998. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  11999. need_version=yes
  12000. ;;
  12001. esac
  12002. shlibpath_var=LD_LIBRARY_PATH
  12003. case $host_os in
  12004. freebsd2*)
  12005. shlibpath_overrides_runpath=yes
  12006. ;;
  12007. freebsd3.[01]* | freebsdelf3.[01]*)
  12008. shlibpath_overrides_runpath=yes
  12009. hardcode_into_libs=yes
  12010. ;;
  12011. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12012. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12013. shlibpath_overrides_runpath=no
  12014. hardcode_into_libs=yes
  12015. ;;
  12016. *) # from 4.6 on, and DragonFly
  12017. shlibpath_overrides_runpath=yes
  12018. hardcode_into_libs=yes
  12019. ;;
  12020. esac
  12021. ;;
  12022. gnu*)
  12023. version_type=linux
  12024. need_lib_prefix=no
  12025. need_version=no
  12026. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12027. soname_spec='${libname}${release}${shared_ext}$major'
  12028. shlibpath_var=LD_LIBRARY_PATH
  12029. hardcode_into_libs=yes
  12030. ;;
  12031. hpux9* | hpux10* | hpux11*)
  12032. # Give a soname corresponding to the major version so that dld.sl refuses to
  12033. # link against other versions.
  12034. version_type=sunos
  12035. need_lib_prefix=no
  12036. need_version=no
  12037. case $host_cpu in
  12038. ia64*)
  12039. shrext_cmds='.so'
  12040. hardcode_into_libs=yes
  12041. dynamic_linker="$host_os dld.so"
  12042. shlibpath_var=LD_LIBRARY_PATH
  12043. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12044. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12045. soname_spec='${libname}${release}${shared_ext}$major'
  12046. if test "X$HPUX_IA64_MODE" = X32; then
  12047. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12048. else
  12049. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12050. fi
  12051. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12052. ;;
  12053. hppa*64*)
  12054. shrext_cmds='.sl'
  12055. hardcode_into_libs=yes
  12056. dynamic_linker="$host_os dld.sl"
  12057. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12058. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12059. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12060. soname_spec='${libname}${release}${shared_ext}$major'
  12061. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12062. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12063. ;;
  12064. *)
  12065. shrext_cmds='.sl'
  12066. dynamic_linker="$host_os dld.sl"
  12067. shlibpath_var=SHLIB_PATH
  12068. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12069. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12070. soname_spec='${libname}${release}${shared_ext}$major'
  12071. ;;
  12072. esac
  12073. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12074. postinstall_cmds='chmod 555 $lib'
  12075. ;;
  12076. interix[3-9]*)
  12077. version_type=linux
  12078. need_lib_prefix=no
  12079. need_version=no
  12080. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12081. soname_spec='${libname}${release}${shared_ext}$major'
  12082. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12083. shlibpath_var=LD_LIBRARY_PATH
  12084. shlibpath_overrides_runpath=no
  12085. hardcode_into_libs=yes
  12086. ;;
  12087. irix5* | irix6* | nonstopux*)
  12088. case $host_os in
  12089. nonstopux*) version_type=nonstopux ;;
  12090. *)
  12091. if test "$lt_cv_prog_gnu_ld" = yes; then
  12092. version_type=linux
  12093. else
  12094. version_type=irix
  12095. fi ;;
  12096. esac
  12097. need_lib_prefix=no
  12098. need_version=no
  12099. soname_spec='${libname}${release}${shared_ext}$major'
  12100. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12101. case $host_os in
  12102. irix5* | nonstopux*)
  12103. libsuff= shlibsuff=
  12104. ;;
  12105. *)
  12106. case $LD in # libtool.m4 will add one of these switches to LD
  12107. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12108. libsuff= shlibsuff= libmagic=32-bit;;
  12109. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12110. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12111. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12112. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12113. *) libsuff= shlibsuff= libmagic=never-match;;
  12114. esac
  12115. ;;
  12116. esac
  12117. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12118. shlibpath_overrides_runpath=no
  12119. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12120. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12121. hardcode_into_libs=yes
  12122. ;;
  12123. # No shared lib support for Linux oldld, aout, or coff.
  12124. linux*oldld* | linux*aout* | linux*coff*)
  12125. dynamic_linker=no
  12126. ;;
  12127. # This must be Linux ELF.
  12128. linux* | k*bsd*-gnu)
  12129. version_type=linux
  12130. need_lib_prefix=no
  12131. need_version=no
  12132. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12133. soname_spec='${libname}${release}${shared_ext}$major'
  12134. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12135. shlibpath_var=LD_LIBRARY_PATH
  12136. shlibpath_overrides_runpath=no
  12137. # Some binutils ld are patched to set DT_RUNPATH
  12138. save_LDFLAGS=$LDFLAGS
  12139. save_libdir=$libdir
  12140. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12141. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12142. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12143. /* end confdefs.h. */
  12144. int
  12145. main ()
  12146. {
  12147. ;
  12148. return 0;
  12149. }
  12150. _ACEOF
  12151. if ac_fn_cxx_try_link "$LINENO"; then :
  12152. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12153. shlibpath_overrides_runpath=yes
  12154. fi
  12155. fi
  12156. rm -f core conftest.err conftest.$ac_objext \
  12157. conftest$ac_exeext conftest.$ac_ext
  12158. LDFLAGS=$save_LDFLAGS
  12159. libdir=$save_libdir
  12160. # This implies no fast_install, which is unacceptable.
  12161. # Some rework will be needed to allow for fast_install
  12162. # before this can be enabled.
  12163. hardcode_into_libs=yes
  12164. # Append ld.so.conf contents to the search path
  12165. if test -f /etc/ld.so.conf; then
  12166. 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' ' '`
  12167. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12168. fi
  12169. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12170. # powerpc, because MkLinux only supported shared libraries with the
  12171. # GNU dynamic linker. Since this was broken with cross compilers,
  12172. # most powerpc-linux boxes support dynamic linking these days and
  12173. # people can always --disable-shared, the test was removed, and we
  12174. # assume the GNU/Linux dynamic linker is in use.
  12175. dynamic_linker='GNU/Linux ld.so'
  12176. ;;
  12177. netbsdelf*-gnu)
  12178. version_type=linux
  12179. need_lib_prefix=no
  12180. need_version=no
  12181. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12182. soname_spec='${libname}${release}${shared_ext}$major'
  12183. shlibpath_var=LD_LIBRARY_PATH
  12184. shlibpath_overrides_runpath=no
  12185. hardcode_into_libs=yes
  12186. dynamic_linker='NetBSD ld.elf_so'
  12187. ;;
  12188. netbsd*)
  12189. version_type=sunos
  12190. need_lib_prefix=no
  12191. need_version=no
  12192. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12193. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12194. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12195. dynamic_linker='NetBSD (a.out) ld.so'
  12196. else
  12197. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12198. soname_spec='${libname}${release}${shared_ext}$major'
  12199. dynamic_linker='NetBSD ld.elf_so'
  12200. fi
  12201. shlibpath_var=LD_LIBRARY_PATH
  12202. shlibpath_overrides_runpath=yes
  12203. hardcode_into_libs=yes
  12204. ;;
  12205. newsos6)
  12206. version_type=linux
  12207. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12208. shlibpath_var=LD_LIBRARY_PATH
  12209. shlibpath_overrides_runpath=yes
  12210. ;;
  12211. *nto* | *qnx*)
  12212. version_type=qnx
  12213. need_lib_prefix=no
  12214. need_version=no
  12215. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12216. soname_spec='${libname}${release}${shared_ext}$major'
  12217. shlibpath_var=LD_LIBRARY_PATH
  12218. shlibpath_overrides_runpath=no
  12219. hardcode_into_libs=yes
  12220. dynamic_linker='ldqnx.so'
  12221. ;;
  12222. openbsd*)
  12223. version_type=sunos
  12224. sys_lib_dlsearch_path_spec="/usr/lib"
  12225. need_lib_prefix=no
  12226. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12227. case $host_os in
  12228. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12229. *) need_version=no ;;
  12230. esac
  12231. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12232. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12233. shlibpath_var=LD_LIBRARY_PATH
  12234. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12235. case $host_os in
  12236. openbsd2.[89] | openbsd2.[89].*)
  12237. shlibpath_overrides_runpath=no
  12238. ;;
  12239. *)
  12240. shlibpath_overrides_runpath=yes
  12241. ;;
  12242. esac
  12243. else
  12244. shlibpath_overrides_runpath=yes
  12245. fi
  12246. ;;
  12247. os2*)
  12248. libname_spec='$name'
  12249. shrext_cmds=".dll"
  12250. need_lib_prefix=no
  12251. library_names_spec='$libname${shared_ext} $libname.a'
  12252. dynamic_linker='OS/2 ld.exe'
  12253. shlibpath_var=LIBPATH
  12254. ;;
  12255. osf3* | osf4* | osf5*)
  12256. version_type=osf
  12257. need_lib_prefix=no
  12258. need_version=no
  12259. soname_spec='${libname}${release}${shared_ext}$major'
  12260. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12261. shlibpath_var=LD_LIBRARY_PATH
  12262. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12263. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12264. ;;
  12265. rdos*)
  12266. dynamic_linker=no
  12267. ;;
  12268. solaris*)
  12269. version_type=linux
  12270. need_lib_prefix=no
  12271. need_version=no
  12272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12273. soname_spec='${libname}${release}${shared_ext}$major'
  12274. shlibpath_var=LD_LIBRARY_PATH
  12275. shlibpath_overrides_runpath=yes
  12276. hardcode_into_libs=yes
  12277. # ldd complains unless libraries are executable
  12278. postinstall_cmds='chmod +x $lib'
  12279. ;;
  12280. sunos4*)
  12281. version_type=sunos
  12282. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12283. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12284. shlibpath_var=LD_LIBRARY_PATH
  12285. shlibpath_overrides_runpath=yes
  12286. if test "$with_gnu_ld" = yes; then
  12287. need_lib_prefix=no
  12288. fi
  12289. need_version=yes
  12290. ;;
  12291. sysv4 | sysv4.3*)
  12292. version_type=linux
  12293. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12294. soname_spec='${libname}${release}${shared_ext}$major'
  12295. shlibpath_var=LD_LIBRARY_PATH
  12296. case $host_vendor in
  12297. sni)
  12298. shlibpath_overrides_runpath=no
  12299. need_lib_prefix=no
  12300. runpath_var=LD_RUN_PATH
  12301. ;;
  12302. siemens)
  12303. need_lib_prefix=no
  12304. ;;
  12305. motorola)
  12306. need_lib_prefix=no
  12307. need_version=no
  12308. shlibpath_overrides_runpath=no
  12309. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12310. ;;
  12311. esac
  12312. ;;
  12313. sysv4*MP*)
  12314. if test -d /usr/nec ;then
  12315. version_type=linux
  12316. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12317. soname_spec='$libname${shared_ext}.$major'
  12318. shlibpath_var=LD_LIBRARY_PATH
  12319. fi
  12320. ;;
  12321. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12322. version_type=freebsd-elf
  12323. need_lib_prefix=no
  12324. need_version=no
  12325. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12326. soname_spec='${libname}${release}${shared_ext}$major'
  12327. shlibpath_var=LD_LIBRARY_PATH
  12328. shlibpath_overrides_runpath=yes
  12329. hardcode_into_libs=yes
  12330. if test "$with_gnu_ld" = yes; then
  12331. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12332. else
  12333. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12334. case $host_os in
  12335. sco3.2v5*)
  12336. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12337. ;;
  12338. esac
  12339. fi
  12340. sys_lib_dlsearch_path_spec='/usr/lib'
  12341. ;;
  12342. tpf*)
  12343. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12344. version_type=linux
  12345. need_lib_prefix=no
  12346. need_version=no
  12347. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12348. shlibpath_var=LD_LIBRARY_PATH
  12349. shlibpath_overrides_runpath=no
  12350. hardcode_into_libs=yes
  12351. ;;
  12352. uts4*)
  12353. version_type=linux
  12354. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12355. soname_spec='${libname}${release}${shared_ext}$major'
  12356. shlibpath_var=LD_LIBRARY_PATH
  12357. ;;
  12358. *)
  12359. dynamic_linker=no
  12360. ;;
  12361. esac
  12362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12363. $as_echo "$dynamic_linker" >&6; }
  12364. test "$dynamic_linker" = no && can_build_shared=no
  12365. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12366. if test "$GCC" = yes; then
  12367. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12368. fi
  12369. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12370. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12371. fi
  12372. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12373. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12374. fi
  12375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12376. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12377. hardcode_action_CXX=
  12378. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12379. test -n "$runpath_var_CXX" ||
  12380. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12381. # We can hardcode non-existent directories.
  12382. if test "$hardcode_direct_CXX" != no &&
  12383. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12384. # have to relink, otherwise we might link with an installed library
  12385. # when we should be linking with a yet-to-be-installed one
  12386. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12387. test "$hardcode_minus_L_CXX" != no; then
  12388. # Linking always hardcodes the temporary library directory.
  12389. hardcode_action_CXX=relink
  12390. else
  12391. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12392. hardcode_action_CXX=immediate
  12393. fi
  12394. else
  12395. # We cannot hardcode anything, or else we can only hardcode existing
  12396. # directories.
  12397. hardcode_action_CXX=unsupported
  12398. fi
  12399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12400. $as_echo "$hardcode_action_CXX" >&6; }
  12401. if test "$hardcode_action_CXX" = relink ||
  12402. test "$inherit_rpath_CXX" = yes; then
  12403. # Fast installation is not supported
  12404. enable_fast_install=no
  12405. elif test "$shlibpath_overrides_runpath" = yes ||
  12406. test "$enable_shared" = no; then
  12407. # Fast installation is not necessary
  12408. enable_fast_install=needless
  12409. fi
  12410. fi # test -n "$compiler"
  12411. CC=$lt_save_CC
  12412. LDCXX=$LD
  12413. LD=$lt_save_LD
  12414. GCC=$lt_save_GCC
  12415. with_gnu_ld=$lt_save_with_gnu_ld
  12416. lt_cv_path_LDCXX=$lt_cv_path_LD
  12417. lt_cv_path_LD=$lt_save_path_LD
  12418. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12419. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12420. fi # test "$_lt_caught_CXX_error" != yes
  12421. ac_ext=cpp
  12422. ac_cpp='$CXXCPP $CPPFLAGS'
  12423. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12424. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12425. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12426. ac_config_commands="$ac_config_commands libtool"
  12427. # Only expand once:
  12428. # Check whether --enable-debug was given.
  12429. if test "${enable_debug+set}" = set; then :
  12430. enableval=$enable_debug; if test x$enableval = xyes ; then
  12431. enable_debug="yes"
  12432. else
  12433. enable_debug="no"
  12434. fi
  12435. else
  12436. enable_debug="yes"
  12437. fi
  12438. if test "x$GXX" = "xyes" -a "x$enable_debug" = "xyes" ; then
  12439. CXXFLAGS="-O0 -ggdb -Wall -Wcast-align -Wpointer-arith"
  12440. fi
  12441. CXXFLAGS="$CXXFLAGS -DDATA_DIR=\\\"\$(pkgdatadir)\\\" -DBIN_DIR=\\\"\$(bindir)\\\" -DLIB_DIR=\\\"\$(pkglibdir)\\\""
  12442. # Check for Boost libraries
  12443. # Check whether --with-boost was given.
  12444. if test "${with_boost+set}" = set; then :
  12445. withval=$with_boost;
  12446. if test "$withval" = "no"; then
  12447. want_boost="no"
  12448. elif test "$withval" = "yes"; then
  12449. want_boost="yes"
  12450. ac_boost_path=""
  12451. else
  12452. want_boost="yes"
  12453. ac_boost_path="$withval"
  12454. fi
  12455. else
  12456. want_boost="yes"
  12457. fi
  12458. # Check whether --with-boost-libdir was given.
  12459. if test "${with_boost_libdir+set}" = set; then :
  12460. withval=$with_boost_libdir;
  12461. if test -d $withval
  12462. then
  12463. ac_boost_lib_path="$withval"
  12464. else
  12465. as_fn_error "--with-boost-libdir expected directory name" "$LINENO" 5
  12466. fi
  12467. else
  12468. ac_boost_lib_path=""
  12469. fi
  12470. if test "x$want_boost" = "xyes"; then
  12471. boost_lib_version_req=1.36
  12472. boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
  12473. boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
  12474. boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
  12475. boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  12476. if test "x$boost_lib_version_req_sub_minor" = "x" ; then
  12477. boost_lib_version_req_sub_minor="0"
  12478. fi
  12479. WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
  12480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
  12481. $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
  12482. succeeded=no
  12483. if test "$ac_boost_path" != ""; then
  12484. BOOST_LDFLAGS="-L$ac_boost_path/lib"
  12485. BOOST_CPPFLAGS="-I$ac_boost_path/include"
  12486. else
  12487. for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
  12488. if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
  12489. BOOST_LDFLAGS="-L$ac_boost_path_tmp/lib"
  12490. BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
  12491. break;
  12492. fi
  12493. done
  12494. fi
  12495. if test "$ac_boost_lib_path" != ""; then
  12496. BOOST_LDFLAGS="-L$ac_boost_lib_path"
  12497. fi
  12498. CPPFLAGS_SAVED="$CPPFLAGS"
  12499. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12500. export CPPFLAGS
  12501. LDFLAGS_SAVED="$LDFLAGS"
  12502. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12503. export LDFLAGS
  12504. ac_ext=cpp
  12505. ac_cpp='$CXXCPP $CPPFLAGS'
  12506. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12507. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12508. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12510. /* end confdefs.h. */
  12511. #include <boost/version.hpp>
  12512. int
  12513. main ()
  12514. {
  12515. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  12516. // Everything is okay
  12517. #else
  12518. # error Boost version is too old
  12519. #endif
  12520. ;
  12521. return 0;
  12522. }
  12523. _ACEOF
  12524. if ac_fn_cxx_try_compile "$LINENO"; then :
  12525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12526. $as_echo "yes" >&6; }
  12527. succeeded=yes
  12528. found_system=yes
  12529. fi
  12530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12531. ac_ext=cpp
  12532. ac_cpp='$CXXCPP $CPPFLAGS'
  12533. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12534. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12535. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12536. if test "x$succeeded" != "xyes"; then
  12537. _version=0
  12538. if test "$ac_boost_path" != ""; then
  12539. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  12540. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  12541. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  12542. V_CHECK=`expr $_version_tmp \> $_version`
  12543. if test "$V_CHECK" = "1" ; then
  12544. _version=$_version_tmp
  12545. fi
  12546. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  12547. BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
  12548. done
  12549. fi
  12550. else
  12551. for ac_boost_path in /usr /usr/local /opt /opt/local ; do
  12552. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  12553. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  12554. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  12555. V_CHECK=`expr $_version_tmp \> $_version`
  12556. if test "$V_CHECK" = "1" ; then
  12557. _version=$_version_tmp
  12558. best_path=$ac_boost_path
  12559. fi
  12560. done
  12561. fi
  12562. done
  12563. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  12564. BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
  12565. if test "$ac_boost_lib_path" = ""
  12566. then
  12567. BOOST_LDFLAGS="-L$best_path/lib"
  12568. fi
  12569. if test "x$BOOST_ROOT" != "x"; then
  12570. if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/lib" && test -r "$BOOST_ROOT/stage/lib"; then
  12571. version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
  12572. stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
  12573. stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
  12574. V_CHECK=`expr $stage_version_shorten \>\= $_version`
  12575. if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
  12576. { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
  12577. $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
  12578. BOOST_CPPFLAGS="-I$BOOST_ROOT"
  12579. BOOST_LDFLAGS="-L$BOOST_ROOT/stage/lib"
  12580. fi
  12581. fi
  12582. fi
  12583. fi
  12584. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12585. export CPPFLAGS
  12586. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12587. export LDFLAGS
  12588. ac_ext=cpp
  12589. ac_cpp='$CXXCPP $CPPFLAGS'
  12590. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12591. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12592. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12594. /* end confdefs.h. */
  12595. #include <boost/version.hpp>
  12596. int
  12597. main ()
  12598. {
  12599. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  12600. // Everything is okay
  12601. #else
  12602. # error Boost version is too old
  12603. #endif
  12604. ;
  12605. return 0;
  12606. }
  12607. _ACEOF
  12608. if ac_fn_cxx_try_compile "$LINENO"; then :
  12609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12610. $as_echo "yes" >&6; }
  12611. succeeded=yes
  12612. found_system=yes
  12613. fi
  12614. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12615. ac_ext=cpp
  12616. ac_cpp='$CXXCPP $CPPFLAGS'
  12617. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12618. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12619. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12620. fi
  12621. if test "$succeeded" != "yes" ; then
  12622. if test "$_version" = "0" ; then
  12623. 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
  12624. else
  12625. { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
  12626. $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
  12627. fi
  12628. else
  12629. $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
  12630. fi
  12631. CPPFLAGS="$CPPFLAGS_SAVED"
  12632. LDFLAGS="$LDFLAGS_SAVED"
  12633. fi
  12634. # Check whether --with-boost-system was given.
  12635. if test "${with_boost_system+set}" = set; then :
  12636. withval=$with_boost_system;
  12637. if test "$withval" = "no"; then
  12638. want_boost="no"
  12639. elif test "$withval" = "yes"; then
  12640. want_boost="yes"
  12641. ax_boost_user_system_lib=""
  12642. else
  12643. want_boost="yes"
  12644. ax_boost_user_system_lib="$withval"
  12645. fi
  12646. else
  12647. want_boost="yes"
  12648. fi
  12649. if test "x$want_boost" = "xyes"; then
  12650. CPPFLAGS_SAVED="$CPPFLAGS"
  12651. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12652. export CPPFLAGS
  12653. LDFLAGS_SAVED="$LDFLAGS"
  12654. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12655. export LDFLAGS
  12656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
  12657. $as_echo_n "checking whether the Boost::System library is available... " >&6; }
  12658. if test "${ax_cv_boost_system+set}" = set; then :
  12659. $as_echo_n "(cached) " >&6
  12660. else
  12661. ac_ext=cpp
  12662. ac_cpp='$CXXCPP $CPPFLAGS'
  12663. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12664. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12665. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12666. CXXFLAGS_SAVE=$CXXFLAGS
  12667. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12668. /* end confdefs.h. */
  12669. #include <boost/system/error_code.hpp>
  12670. int
  12671. main ()
  12672. {
  12673. boost::system::system_category
  12674. ;
  12675. return 0;
  12676. }
  12677. _ACEOF
  12678. if ac_fn_cxx_try_compile "$LINENO"; then :
  12679. ax_cv_boost_system=yes
  12680. else
  12681. ax_cv_boost_system=no
  12682. fi
  12683. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12684. CXXFLAGS=$CXXFLAGS_SAVE
  12685. ac_ext=cpp
  12686. ac_cpp='$CXXCPP $CPPFLAGS'
  12687. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12688. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12689. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12690. fi
  12691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
  12692. $as_echo "$ax_cv_boost_system" >&6; }
  12693. if test "x$ax_cv_boost_system" = "xyes"; then
  12694. $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
  12695. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  12696. LDFLAGS_SAVE=$LDFLAGS
  12697. if test "x$ax_boost_user_system_lib" = "x"; then
  12698. 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
  12699. ax_lib=${libextension}
  12700. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12702. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12703. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  12704. $as_echo_n "(cached) " >&6
  12705. else
  12706. ac_check_lib_save_LIBS=$LIBS
  12707. LIBS="-l$ax_lib $LIBS"
  12708. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12709. /* end confdefs.h. */
  12710. /* Override any GCC internal prototype to avoid an error.
  12711. Use char because int might match the return type of a GCC
  12712. builtin and then its argument prototype would still apply. */
  12713. #ifdef __cplusplus
  12714. extern "C"
  12715. #endif
  12716. char exit ();
  12717. int
  12718. main ()
  12719. {
  12720. return exit ();
  12721. ;
  12722. return 0;
  12723. }
  12724. _ACEOF
  12725. if ac_fn_cxx_try_link "$LINENO"; then :
  12726. eval "$as_ac_Lib=yes"
  12727. else
  12728. eval "$as_ac_Lib=no"
  12729. fi
  12730. rm -f core conftest.err conftest.$ac_objext \
  12731. conftest$ac_exeext conftest.$ac_ext
  12732. LIBS=$ac_check_lib_save_LIBS
  12733. fi
  12734. eval ac_res=\$$as_ac_Lib
  12735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12736. $as_echo "$ac_res" >&6; }
  12737. eval as_val=\$$as_ac_Lib
  12738. if test "x$as_val" = x""yes; then :
  12739. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12740. else
  12741. link_system="no"
  12742. fi
  12743. done
  12744. if test "x$link_system" != "xyes"; then
  12745. 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
  12746. ax_lib=${libextension}
  12747. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12749. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12750. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  12751. $as_echo_n "(cached) " >&6
  12752. else
  12753. ac_check_lib_save_LIBS=$LIBS
  12754. LIBS="-l$ax_lib $LIBS"
  12755. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12756. /* end confdefs.h. */
  12757. /* Override any GCC internal prototype to avoid an error.
  12758. Use char because int might match the return type of a GCC
  12759. builtin and then its argument prototype would still apply. */
  12760. #ifdef __cplusplus
  12761. extern "C"
  12762. #endif
  12763. char exit ();
  12764. int
  12765. main ()
  12766. {
  12767. return exit ();
  12768. ;
  12769. return 0;
  12770. }
  12771. _ACEOF
  12772. if ac_fn_cxx_try_link "$LINENO"; then :
  12773. eval "$as_ac_Lib=yes"
  12774. else
  12775. eval "$as_ac_Lib=no"
  12776. fi
  12777. rm -f core conftest.err conftest.$ac_objext \
  12778. conftest$ac_exeext conftest.$ac_ext
  12779. LIBS=$ac_check_lib_save_LIBS
  12780. fi
  12781. eval ac_res=\$$as_ac_Lib
  12782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12783. $as_echo "$ac_res" >&6; }
  12784. eval as_val=\$$as_ac_Lib
  12785. if test "x$as_val" = x""yes; then :
  12786. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12787. else
  12788. link_system="no"
  12789. fi
  12790. done
  12791. fi
  12792. else
  12793. for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
  12794. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12796. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12797. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  12798. $as_echo_n "(cached) " >&6
  12799. else
  12800. ac_check_lib_save_LIBS=$LIBS
  12801. LIBS="-l$ax_lib $LIBS"
  12802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12803. /* end confdefs.h. */
  12804. /* Override any GCC internal prototype to avoid an error.
  12805. Use char because int might match the return type of a GCC
  12806. builtin and then its argument prototype would still apply. */
  12807. #ifdef __cplusplus
  12808. extern "C"
  12809. #endif
  12810. char exit ();
  12811. int
  12812. main ()
  12813. {
  12814. return exit ();
  12815. ;
  12816. return 0;
  12817. }
  12818. _ACEOF
  12819. if ac_fn_cxx_try_link "$LINENO"; then :
  12820. eval "$as_ac_Lib=yes"
  12821. else
  12822. eval "$as_ac_Lib=no"
  12823. fi
  12824. rm -f core conftest.err conftest.$ac_objext \
  12825. conftest$ac_exeext conftest.$ac_ext
  12826. LIBS=$ac_check_lib_save_LIBS
  12827. fi
  12828. eval ac_res=\$$as_ac_Lib
  12829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12830. $as_echo "$ac_res" >&6; }
  12831. eval as_val=\$$as_ac_Lib
  12832. if test "x$as_val" = x""yes; then :
  12833. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12834. else
  12835. link_system="no"
  12836. fi
  12837. done
  12838. fi
  12839. if test "x$link_system" = "xno"; then
  12840. as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
  12841. fi
  12842. fi
  12843. CPPFLAGS="$CPPFLAGS_SAVED"
  12844. LDFLAGS="$LDFLAGS_SAVED"
  12845. fi
  12846. # Check whether --with-boost-filesystem was given.
  12847. if test "${with_boost_filesystem+set}" = set; then :
  12848. withval=$with_boost_filesystem;
  12849. if test "$withval" = "no"; then
  12850. want_boost="no"
  12851. elif test "$withval" = "yes"; then
  12852. want_boost="yes"
  12853. ax_boost_user_filesystem_lib=""
  12854. else
  12855. want_boost="yes"
  12856. ax_boost_user_filesystem_lib="$withval"
  12857. fi
  12858. else
  12859. want_boost="yes"
  12860. fi
  12861. if test "x$want_boost" = "xyes"; then
  12862. CPPFLAGS_SAVED="$CPPFLAGS"
  12863. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12864. export CPPFLAGS
  12865. LDFLAGS_SAVED="$LDFLAGS"
  12866. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12867. export LDFLAGS
  12868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5
  12869. $as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
  12870. if test "${ax_cv_boost_filesystem+set}" = set; then :
  12871. $as_echo_n "(cached) " >&6
  12872. else
  12873. ac_ext=cpp
  12874. ac_cpp='$CXXCPP $CPPFLAGS'
  12875. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12876. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12877. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12879. /* end confdefs.h. */
  12880. #include <boost/filesystem/path.hpp>
  12881. int
  12882. main ()
  12883. {
  12884. using namespace boost::filesystem;
  12885. path my_path( "foo/bar/data.txt" );
  12886. return 0;
  12887. ;
  12888. return 0;
  12889. }
  12890. _ACEOF
  12891. if ac_fn_cxx_try_compile "$LINENO"; then :
  12892. ax_cv_boost_filesystem=yes
  12893. else
  12894. ax_cv_boost_filesystem=no
  12895. fi
  12896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12897. ac_ext=cpp
  12898. ac_cpp='$CXXCPP $CPPFLAGS'
  12899. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12900. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12901. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12902. fi
  12903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_filesystem" >&5
  12904. $as_echo "$ax_cv_boost_filesystem" >&6; }
  12905. if test "x$ax_cv_boost_filesystem" = "xyes"; then
  12906. $as_echo "#define HAVE_BOOST_FILESYSTEM /**/" >>confdefs.h
  12907. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  12908. if test "x$ax_boost_user_filesystem_lib" = "x"; then
  12909. 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
  12910. ax_lib=${libextension}
  12911. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12913. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12914. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  12915. $as_echo_n "(cached) " >&6
  12916. else
  12917. ac_check_lib_save_LIBS=$LIBS
  12918. LIBS="-l$ax_lib $LIBS"
  12919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12920. /* end confdefs.h. */
  12921. /* Override any GCC internal prototype to avoid an error.
  12922. Use char because int might match the return type of a GCC
  12923. builtin and then its argument prototype would still apply. */
  12924. #ifdef __cplusplus
  12925. extern "C"
  12926. #endif
  12927. char exit ();
  12928. int
  12929. main ()
  12930. {
  12931. return exit ();
  12932. ;
  12933. return 0;
  12934. }
  12935. _ACEOF
  12936. if ac_fn_cxx_try_link "$LINENO"; then :
  12937. eval "$as_ac_Lib=yes"
  12938. else
  12939. eval "$as_ac_Lib=no"
  12940. fi
  12941. rm -f core conftest.err conftest.$ac_objext \
  12942. conftest$ac_exeext conftest.$ac_ext
  12943. LIBS=$ac_check_lib_save_LIBS
  12944. fi
  12945. eval ac_res=\$$as_ac_Lib
  12946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12947. $as_echo "$ac_res" >&6; }
  12948. eval as_val=\$$as_ac_Lib
  12949. if test "x$as_val" = x""yes; then :
  12950. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  12951. else
  12952. link_filesystem="no"
  12953. fi
  12954. done
  12955. if test "x$link_program_options" != "xyes"; then
  12956. 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
  12957. ax_lib=${libextension}
  12958. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12960. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12961. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  12962. $as_echo_n "(cached) " >&6
  12963. else
  12964. ac_check_lib_save_LIBS=$LIBS
  12965. LIBS="-l$ax_lib $LIBS"
  12966. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12967. /* end confdefs.h. */
  12968. /* Override any GCC internal prototype to avoid an error.
  12969. Use char because int might match the return type of a GCC
  12970. builtin and then its argument prototype would still apply. */
  12971. #ifdef __cplusplus
  12972. extern "C"
  12973. #endif
  12974. char exit ();
  12975. int
  12976. main ()
  12977. {
  12978. return exit ();
  12979. ;
  12980. return 0;
  12981. }
  12982. _ACEOF
  12983. if ac_fn_cxx_try_link "$LINENO"; then :
  12984. eval "$as_ac_Lib=yes"
  12985. else
  12986. eval "$as_ac_Lib=no"
  12987. fi
  12988. rm -f core conftest.err conftest.$ac_objext \
  12989. conftest$ac_exeext conftest.$ac_ext
  12990. LIBS=$ac_check_lib_save_LIBS
  12991. fi
  12992. eval ac_res=\$$as_ac_Lib
  12993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12994. $as_echo "$ac_res" >&6; }
  12995. eval as_val=\$$as_ac_Lib
  12996. if test "x$as_val" = x""yes; then :
  12997. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  12998. else
  12999. link_filesystem="no"
  13000. fi
  13001. done
  13002. fi
  13003. else
  13004. for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
  13005. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13006. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13007. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13008. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13009. $as_echo_n "(cached) " >&6
  13010. else
  13011. ac_check_lib_save_LIBS=$LIBS
  13012. LIBS="-l$ax_lib $LIBS"
  13013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13014. /* end confdefs.h. */
  13015. /* Override any GCC internal prototype to avoid an error.
  13016. Use char because int might match the return type of a GCC
  13017. builtin and then its argument prototype would still apply. */
  13018. #ifdef __cplusplus
  13019. extern "C"
  13020. #endif
  13021. char exit ();
  13022. int
  13023. main ()
  13024. {
  13025. return exit ();
  13026. ;
  13027. return 0;
  13028. }
  13029. _ACEOF
  13030. if ac_fn_cxx_try_link "$LINENO"; then :
  13031. eval "$as_ac_Lib=yes"
  13032. else
  13033. eval "$as_ac_Lib=no"
  13034. fi
  13035. rm -f core conftest.err conftest.$ac_objext \
  13036. conftest$ac_exeext conftest.$ac_ext
  13037. LIBS=$ac_check_lib_save_LIBS
  13038. fi
  13039. eval ac_res=\$$as_ac_Lib
  13040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13041. $as_echo "$ac_res" >&6; }
  13042. eval as_val=\$$as_ac_Lib
  13043. if test "x$as_val" = 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. if test "x$link_filesystem" != "xyes"; then
  13051. as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
  13052. fi
  13053. fi
  13054. CPPFLAGS="$CPPFLAGS_SAVED"
  13055. LDFLAGS="$LDFLAGS_SAVED"
  13056. fi
  13057. # Check whether --with-boost-thread was given.
  13058. if test "${with_boost_thread+set}" = set; then :
  13059. withval=$with_boost_thread;
  13060. if test "$withval" = "no"; then
  13061. want_boost="no"
  13062. elif test "$withval" = "yes"; then
  13063. want_boost="yes"
  13064. ax_boost_user_thread_lib=""
  13065. else
  13066. want_boost="yes"
  13067. ax_boost_user_thread_lib="$withval"
  13068. fi
  13069. else
  13070. want_boost="yes"
  13071. fi
  13072. if test "x$want_boost" = "xyes"; then
  13073. CPPFLAGS_SAVED="$CPPFLAGS"
  13074. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13075. export CPPFLAGS
  13076. LDFLAGS_SAVED="$LDFLAGS"
  13077. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13078. export LDFLAGS
  13079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5
  13080. $as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
  13081. if test "${ax_cv_boost_thread+set}" = set; then :
  13082. $as_echo_n "(cached) " >&6
  13083. else
  13084. ac_ext=cpp
  13085. ac_cpp='$CXXCPP $CPPFLAGS'
  13086. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13087. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13088. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13089. CXXFLAGS_SAVE=$CXXFLAGS
  13090. if test "x$build_os" = "xsolaris" ; then
  13091. CXXFLAGS="-pthreads $CXXFLAGS"
  13092. elif test "x$build_os" = "xming32" ; then
  13093. CXXFLAGS="-mthreads $CXXFLAGS"
  13094. else
  13095. CXXFLAGS="-pthread $CXXFLAGS"
  13096. fi
  13097. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13098. /* end confdefs.h. */
  13099. #include <boost/thread/thread.hpp>
  13100. int
  13101. main ()
  13102. {
  13103. boost::thread_group thrds;
  13104. return 0;
  13105. ;
  13106. return 0;
  13107. }
  13108. _ACEOF
  13109. if ac_fn_cxx_try_compile "$LINENO"; then :
  13110. ax_cv_boost_thread=yes
  13111. else
  13112. ax_cv_boost_thread=no
  13113. fi
  13114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13115. CXXFLAGS=$CXXFLAGS_SAVE
  13116. ac_ext=cpp
  13117. ac_cpp='$CXXCPP $CPPFLAGS'
  13118. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13119. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13120. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13121. fi
  13122. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
  13123. $as_echo "$ax_cv_boost_thread" >&6; }
  13124. if test "x$ax_cv_boost_thread" = "xyes"; then
  13125. if test "x$build_os" = "xsolaris" ; then
  13126. BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
  13127. elif test "x$build_os" = "xming32" ; then
  13128. BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
  13129. else
  13130. BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
  13131. fi
  13132. $as_echo "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
  13133. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13134. LDFLAGS_SAVE=$LDFLAGS
  13135. case "x$build_os" in
  13136. *bsd* )
  13137. LDFLAGS="-pthread $LDFLAGS"
  13138. break;
  13139. ;;
  13140. esac
  13141. if test "x$ax_boost_user_thread_lib" = "x"; then
  13142. 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
  13143. ax_lib=${libextension}
  13144. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13145. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13146. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13147. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13148. $as_echo_n "(cached) " >&6
  13149. else
  13150. ac_check_lib_save_LIBS=$LIBS
  13151. LIBS="-l$ax_lib $LIBS"
  13152. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13153. /* end confdefs.h. */
  13154. /* Override any GCC internal prototype to avoid an error.
  13155. Use char because int might match the return type of a GCC
  13156. builtin and then its argument prototype would still apply. */
  13157. #ifdef __cplusplus
  13158. extern "C"
  13159. #endif
  13160. char exit ();
  13161. int
  13162. main ()
  13163. {
  13164. return exit ();
  13165. ;
  13166. return 0;
  13167. }
  13168. _ACEOF
  13169. if ac_fn_cxx_try_link "$LINENO"; then :
  13170. eval "$as_ac_Lib=yes"
  13171. else
  13172. eval "$as_ac_Lib=no"
  13173. fi
  13174. rm -f core conftest.err conftest.$ac_objext \
  13175. conftest$ac_exeext conftest.$ac_ext
  13176. LIBS=$ac_check_lib_save_LIBS
  13177. fi
  13178. eval ac_res=\$$as_ac_Lib
  13179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13180. $as_echo "$ac_res" >&6; }
  13181. eval as_val=\$$as_ac_Lib
  13182. if test "x$as_val" = x""yes; then :
  13183. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13184. else
  13185. link_thread="no"
  13186. fi
  13187. done
  13188. if test "x$link_thread" != "xyes"; then
  13189. 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
  13190. ax_lib=${libextension}
  13191. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13192. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13193. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13194. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13195. $as_echo_n "(cached) " >&6
  13196. else
  13197. ac_check_lib_save_LIBS=$LIBS
  13198. LIBS="-l$ax_lib $LIBS"
  13199. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13200. /* end confdefs.h. */
  13201. /* Override any GCC internal prototype to avoid an error.
  13202. Use char because int might match the return type of a GCC
  13203. builtin and then its argument prototype would still apply. */
  13204. #ifdef __cplusplus
  13205. extern "C"
  13206. #endif
  13207. char exit ();
  13208. int
  13209. main ()
  13210. {
  13211. return exit ();
  13212. ;
  13213. return 0;
  13214. }
  13215. _ACEOF
  13216. if ac_fn_cxx_try_link "$LINENO"; then :
  13217. eval "$as_ac_Lib=yes"
  13218. else
  13219. eval "$as_ac_Lib=no"
  13220. fi
  13221. rm -f core conftest.err conftest.$ac_objext \
  13222. conftest$ac_exeext conftest.$ac_ext
  13223. LIBS=$ac_check_lib_save_LIBS
  13224. fi
  13225. eval ac_res=\$$as_ac_Lib
  13226. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13227. $as_echo "$ac_res" >&6; }
  13228. eval as_val=\$$as_ac_Lib
  13229. if test "x$as_val" = x""yes; then :
  13230. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13231. else
  13232. link_thread="no"
  13233. fi
  13234. done
  13235. fi
  13236. else
  13237. for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
  13238. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13240. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13241. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13242. $as_echo_n "(cached) " >&6
  13243. else
  13244. ac_check_lib_save_LIBS=$LIBS
  13245. LIBS="-l$ax_lib $LIBS"
  13246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13247. /* end confdefs.h. */
  13248. /* Override any GCC internal prototype to avoid an error.
  13249. Use char because int might match the return type of a GCC
  13250. builtin and then its argument prototype would still apply. */
  13251. #ifdef __cplusplus
  13252. extern "C"
  13253. #endif
  13254. char exit ();
  13255. int
  13256. main ()
  13257. {
  13258. return exit ();
  13259. ;
  13260. return 0;
  13261. }
  13262. _ACEOF
  13263. if ac_fn_cxx_try_link "$LINENO"; then :
  13264. eval "$as_ac_Lib=yes"
  13265. else
  13266. eval "$as_ac_Lib=no"
  13267. fi
  13268. rm -f core conftest.err conftest.$ac_objext \
  13269. conftest$ac_exeext conftest.$ac_ext
  13270. LIBS=$ac_check_lib_save_LIBS
  13271. fi
  13272. eval ac_res=\$$as_ac_Lib
  13273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13274. $as_echo "$ac_res" >&6; }
  13275. eval as_val=\$$as_ac_Lib
  13276. if test "x$as_val" = x""yes; then :
  13277. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13278. else
  13279. link_thread="no"
  13280. fi
  13281. done
  13282. fi
  13283. if test "x$link_thread" = "xno"; then
  13284. as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
  13285. else
  13286. case "x$build_os" in
  13287. *bsd* )
  13288. BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
  13289. break;
  13290. ;;
  13291. esac
  13292. fi
  13293. fi
  13294. CPPFLAGS="$CPPFLAGS_SAVED"
  13295. LDFLAGS="$LDFLAGS_SAVED"
  13296. fi
  13297. # Check whether --with-boost-iostreams was given.
  13298. if test "${with_boost_iostreams+set}" = set; then :
  13299. withval=$with_boost_iostreams;
  13300. if test "$withval" = "no"; then
  13301. want_boost="no"
  13302. elif test "$withval" = "yes"; then
  13303. want_boost="yes"
  13304. ax_boost_user_iostreams_lib=""
  13305. else
  13306. want_boost="yes"
  13307. ax_boost_user_iostreams_lib="$withval"
  13308. fi
  13309. else
  13310. want_boost="yes"
  13311. fi
  13312. if test "x$want_boost" = "xyes"; then
  13313. CPPFLAGS_SAVED="$CPPFLAGS"
  13314. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13315. export CPPFLAGS
  13316. LDFLAGS_SAVED="$LDFLAGS"
  13317. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13318. export LDFLAGS
  13319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::IOStreams library is available" >&5
  13320. $as_echo_n "checking whether the Boost::IOStreams library is available... " >&6; }
  13321. if test "${ax_cv_boost_iostreams+set}" = set; then :
  13322. $as_echo_n "(cached) " >&6
  13323. else
  13324. ac_ext=cpp
  13325. ac_cpp='$CXXCPP $CPPFLAGS'
  13326. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13327. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13328. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13329. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13330. /* end confdefs.h. */
  13331. #include <boost/iostreams/filtering_stream.hpp>
  13332. #include <boost/range/iterator_range.hpp>
  13333. int
  13334. main ()
  13335. {
  13336. std::string input = "Hello World!";
  13337. namespace io = boost::iostreams;
  13338. io::filtering_istream in(boost::make_iterator_range(input));
  13339. return 0;
  13340. ;
  13341. return 0;
  13342. }
  13343. _ACEOF
  13344. if ac_fn_cxx_try_compile "$LINENO"; then :
  13345. ax_cv_boost_iostreams=yes
  13346. else
  13347. ax_cv_boost_iostreams=no
  13348. fi
  13349. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13350. ac_ext=cpp
  13351. ac_cpp='$CXXCPP $CPPFLAGS'
  13352. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13353. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13354. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13355. fi
  13356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_iostreams" >&5
  13357. $as_echo "$ax_cv_boost_iostreams" >&6; }
  13358. if test "x$ax_cv_boost_iostreams" = "xyes"; then
  13359. $as_echo "#define HAVE_BOOST_IOSTREAMS /**/" >>confdefs.h
  13360. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13361. if test "x$ax_boost_user_iostreams_lib" = "x"; then
  13362. 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
  13363. ax_lib=${libextension}
  13364. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13366. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13367. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13368. $as_echo_n "(cached) " >&6
  13369. else
  13370. ac_check_lib_save_LIBS=$LIBS
  13371. LIBS="-l$ax_lib $LIBS"
  13372. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13373. /* end confdefs.h. */
  13374. /* Override any GCC internal prototype to avoid an error.
  13375. Use char because int might match the return type of a GCC
  13376. builtin and then its argument prototype would still apply. */
  13377. #ifdef __cplusplus
  13378. extern "C"
  13379. #endif
  13380. char exit ();
  13381. int
  13382. main ()
  13383. {
  13384. return exit ();
  13385. ;
  13386. return 0;
  13387. }
  13388. _ACEOF
  13389. if ac_fn_cxx_try_link "$LINENO"; then :
  13390. eval "$as_ac_Lib=yes"
  13391. else
  13392. eval "$as_ac_Lib=no"
  13393. fi
  13394. rm -f core conftest.err conftest.$ac_objext \
  13395. conftest$ac_exeext conftest.$ac_ext
  13396. LIBS=$ac_check_lib_save_LIBS
  13397. fi
  13398. eval ac_res=\$$as_ac_Lib
  13399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13400. $as_echo "$ac_res" >&6; }
  13401. eval as_val=\$$as_ac_Lib
  13402. if test "x$as_val" = x""yes; then :
  13403. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13404. else
  13405. link_iostreams="no"
  13406. fi
  13407. done
  13408. if test "x$link_iostreams" != "xyes"; then
  13409. 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
  13410. ax_lib=${libextension}
  13411. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13412. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13413. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13414. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13415. $as_echo_n "(cached) " >&6
  13416. else
  13417. ac_check_lib_save_LIBS=$LIBS
  13418. LIBS="-l$ax_lib $LIBS"
  13419. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13420. /* end confdefs.h. */
  13421. /* Override any GCC internal prototype to avoid an error.
  13422. Use char because int might match the return type of a GCC
  13423. builtin and then its argument prototype would still apply. */
  13424. #ifdef __cplusplus
  13425. extern "C"
  13426. #endif
  13427. char exit ();
  13428. int
  13429. main ()
  13430. {
  13431. return exit ();
  13432. ;
  13433. return 0;
  13434. }
  13435. _ACEOF
  13436. if ac_fn_cxx_try_link "$LINENO"; then :
  13437. eval "$as_ac_Lib=yes"
  13438. else
  13439. eval "$as_ac_Lib=no"
  13440. fi
  13441. rm -f core conftest.err conftest.$ac_objext \
  13442. conftest$ac_exeext conftest.$ac_ext
  13443. LIBS=$ac_check_lib_save_LIBS
  13444. fi
  13445. eval ac_res=\$$as_ac_Lib
  13446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13447. $as_echo "$ac_res" >&6; }
  13448. eval as_val=\$$as_ac_Lib
  13449. if test "x$as_val" = x""yes; then :
  13450. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13451. else
  13452. link_iostreams="no"
  13453. fi
  13454. done
  13455. fi
  13456. else
  13457. for ax_lib in $ax_boost_user_iostreams_lib boost_iostreams-$ax_boost_user_iostreams_lib; do
  13458. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  13459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
  13460. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  13461. if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
  13462. $as_echo_n "(cached) " >&6
  13463. else
  13464. ac_check_lib_save_LIBS=$LIBS
  13465. LIBS="-l$ax_lib $LIBS"
  13466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13467. /* end confdefs.h. */
  13468. int
  13469. main ()
  13470. {
  13471. return main ();
  13472. ;
  13473. return 0;
  13474. }
  13475. _ACEOF
  13476. if ac_fn_cxx_try_link "$LINENO"; then :
  13477. eval "$as_ac_Lib=yes"
  13478. else
  13479. eval "$as_ac_Lib=no"
  13480. fi
  13481. rm -f core conftest.err conftest.$ac_objext \
  13482. conftest$ac_exeext conftest.$ac_ext
  13483. LIBS=$ac_check_lib_save_LIBS
  13484. fi
  13485. eval ac_res=\$$as_ac_Lib
  13486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13487. $as_echo "$ac_res" >&6; }
  13488. eval as_val=\$$as_ac_Lib
  13489. if test "x$as_val" = x""yes; then :
  13490. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13491. else
  13492. link_iostreams="no"
  13493. fi
  13494. done
  13495. fi
  13496. if test "x$link_iostreams" != "xyes"; then
  13497. as_fn_error "Could not link against $ax_lib !" "$LINENO" 5
  13498. fi
  13499. fi
  13500. CPPFLAGS="$CPPFLAGS_SAVED"
  13501. LDFLAGS="$LDFLAGS_SAVED"
  13502. fi
  13503. # Check for SDL libraries
  13504. saved_LIBS=$LIBS
  13505. # Extract the first word of "sdl-config", so it can be a program name with args.
  13506. set dummy sdl-config; ac_word=$2
  13507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13508. $as_echo_n "checking for $ac_word... " >&6; }
  13509. if test "${ac_cv_prog_HAVE_SDL_CONFIG+set}" = set; then :
  13510. $as_echo_n "(cached) " >&6
  13511. else
  13512. if test -n "$HAVE_SDL_CONFIG"; then
  13513. ac_cv_prog_HAVE_SDL_CONFIG="$HAVE_SDL_CONFIG" # Let the user override the test.
  13514. else
  13515. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13516. for as_dir in $PATH
  13517. do
  13518. IFS=$as_save_IFS
  13519. test -z "$as_dir" && as_dir=.
  13520. for ac_exec_ext in '' $ac_executable_extensions; do
  13521. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13522. ac_cv_prog_HAVE_SDL_CONFIG="yes"
  13523. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13524. break 2
  13525. fi
  13526. done
  13527. done
  13528. IFS=$as_save_IFS
  13529. test -z "$ac_cv_prog_HAVE_SDL_CONFIG" && ac_cv_prog_HAVE_SDL_CONFIG="no"
  13530. fi
  13531. fi
  13532. HAVE_SDL_CONFIG=$ac_cv_prog_HAVE_SDL_CONFIG
  13533. if test -n "$HAVE_SDL_CONFIG"; then
  13534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SDL_CONFIG" >&5
  13535. $as_echo "$HAVE_SDL_CONFIG" >&6; }
  13536. else
  13537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13538. $as_echo "no" >&6; }
  13539. fi
  13540. if test "$HAVE_SDL_CONFIG" = no; then
  13541. as_fn_error "sdl-config doesn't exist. Try to check the PATH enviroment." "$LINENO" 5
  13542. fi
  13543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
  13544. $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
  13545. if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then :
  13546. $as_echo_n "(cached) " >&6
  13547. else
  13548. ac_check_lib_save_LIBS=$LIBS
  13549. LIBS="-lSDL $LIBS"
  13550. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13551. /* end confdefs.h. */
  13552. /* Override any GCC internal prototype to avoid an error.
  13553. Use char because int might match the return type of a GCC
  13554. builtin and then its argument prototype would still apply. */
  13555. #ifdef __cplusplus
  13556. extern "C"
  13557. #endif
  13558. char SDL_Init ();
  13559. int
  13560. main ()
  13561. {
  13562. return SDL_Init ();
  13563. ;
  13564. return 0;
  13565. }
  13566. _ACEOF
  13567. if ac_fn_cxx_try_link "$LINENO"; then :
  13568. ac_cv_lib_SDL_SDL_Init=yes
  13569. else
  13570. ac_cv_lib_SDL_SDL_Init=no
  13571. fi
  13572. rm -f core conftest.err conftest.$ac_objext \
  13573. conftest$ac_exeext conftest.$ac_ext
  13574. LIBS=$ac_check_lib_save_LIBS
  13575. fi
  13576. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
  13577. $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
  13578. if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then :
  13579. cat >>confdefs.h <<_ACEOF
  13580. #define HAVE_LIBSDL 1
  13581. _ACEOF
  13582. LIBS="-lSDL $LIBS"
  13583. else
  13584. as_fn_error "SDL library not found. Please install it." "$LINENO" 5
  13585. fi
  13586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_mixer" >&5
  13587. $as_echo_n "checking for main in -lSDL_mixer... " >&6; }
  13588. if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then :
  13589. $as_echo_n "(cached) " >&6
  13590. else
  13591. ac_check_lib_save_LIBS=$LIBS
  13592. LIBS="-lSDL_mixer $LIBS"
  13593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13594. /* end confdefs.h. */
  13595. int
  13596. main ()
  13597. {
  13598. return main ();
  13599. ;
  13600. return 0;
  13601. }
  13602. _ACEOF
  13603. if ac_fn_cxx_try_link "$LINENO"; then :
  13604. ac_cv_lib_SDL_mixer_main=yes
  13605. else
  13606. ac_cv_lib_SDL_mixer_main=no
  13607. fi
  13608. rm -f core conftest.err conftest.$ac_objext \
  13609. conftest$ac_exeext conftest.$ac_ext
  13610. LIBS=$ac_check_lib_save_LIBS
  13611. fi
  13612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_main" >&5
  13613. $as_echo "$ac_cv_lib_SDL_mixer_main" >&6; }
  13614. if test "x$ac_cv_lib_SDL_mixer_main" = x""yes; then :
  13615. cat >>confdefs.h <<_ACEOF
  13616. #define HAVE_LIBSDL_MIXER 1
  13617. _ACEOF
  13618. LIBS="-lSDL_mixer $LIBS"
  13619. else
  13620. as_fn_error "SDL_mixer library not found. Please install it." "$LINENO" 5
  13621. fi
  13622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
  13623. $as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
  13624. if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then :
  13625. $as_echo_n "(cached) " >&6
  13626. else
  13627. ac_check_lib_save_LIBS=$LIBS
  13628. LIBS="-lSDL_image $LIBS"
  13629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13630. /* end confdefs.h. */
  13631. /* Override any GCC internal prototype to avoid an error.
  13632. Use char because int might match the return type of a GCC
  13633. builtin and then its argument prototype would still apply. */
  13634. #ifdef __cplusplus
  13635. extern "C"
  13636. #endif
  13637. char IMG_Load ();
  13638. int
  13639. main ()
  13640. {
  13641. return IMG_Load ();
  13642. ;
  13643. return 0;
  13644. }
  13645. _ACEOF
  13646. if ac_fn_cxx_try_link "$LINENO"; then :
  13647. ac_cv_lib_SDL_image_IMG_Load=yes
  13648. else
  13649. ac_cv_lib_SDL_image_IMG_Load=no
  13650. fi
  13651. rm -f core conftest.err conftest.$ac_objext \
  13652. conftest$ac_exeext conftest.$ac_ext
  13653. LIBS=$ac_check_lib_save_LIBS
  13654. fi
  13655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
  13656. $as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
  13657. if test "x$ac_cv_lib_SDL_image_IMG_Load" = x""yes; then :
  13658. cat >>confdefs.h <<_ACEOF
  13659. #define HAVE_LIBSDL_IMAGE 1
  13660. _ACEOF
  13661. LIBS="-lSDL_image $LIBS"
  13662. else
  13663. as_fn_error "SDL_image library not found. Please install it." "$LINENO" 5
  13664. fi
  13665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_ttf" >&5
  13666. $as_echo_n "checking for main in -lSDL_ttf... " >&6; }
  13667. if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then :
  13668. $as_echo_n "(cached) " >&6
  13669. else
  13670. ac_check_lib_save_LIBS=$LIBS
  13671. LIBS="-lSDL_ttf $LIBS"
  13672. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13673. /* end confdefs.h. */
  13674. int
  13675. main ()
  13676. {
  13677. return main ();
  13678. ;
  13679. return 0;
  13680. }
  13681. _ACEOF
  13682. if ac_fn_cxx_try_link "$LINENO"; then :
  13683. ac_cv_lib_SDL_ttf_main=yes
  13684. else
  13685. ac_cv_lib_SDL_ttf_main=no
  13686. fi
  13687. rm -f core conftest.err conftest.$ac_objext \
  13688. conftest$ac_exeext conftest.$ac_ext
  13689. LIBS=$ac_check_lib_save_LIBS
  13690. fi
  13691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_ttf_main" >&5
  13692. $as_echo "$ac_cv_lib_SDL_ttf_main" >&6; }
  13693. if test "x$ac_cv_lib_SDL_ttf_main" = x""yes; then :
  13694. cat >>confdefs.h <<_ACEOF
  13695. #define HAVE_LIBSDL_TTF 1
  13696. _ACEOF
  13697. LIBS="-lSDL_ttf $LIBS"
  13698. else
  13699. as_fn_error "SDL_ttf library not found. Please install it." "$LINENO" 5
  13700. fi
  13701. SDL_CXXFLAGS=`sdl-config --cflags`
  13702. SDL_LIBS="`sdl-config --libs` $LIBS"
  13703. LIBS=$saved_LIBS
  13704. # Check for ffmpeg libraries
  13705. saved_LIBS=$LIBS
  13706. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lavformat" >&5
  13707. $as_echo_n "checking for main in -lavformat... " >&6; }
  13708. if test "${ac_cv_lib_avformat_main+set}" = set; then :
  13709. $as_echo_n "(cached) " >&6
  13710. else
  13711. ac_check_lib_save_LIBS=$LIBS
  13712. LIBS="-lavformat $LIBS"
  13713. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13714. /* end confdefs.h. */
  13715. int
  13716. main ()
  13717. {
  13718. return main ();
  13719. ;
  13720. return 0;
  13721. }
  13722. _ACEOF
  13723. if ac_fn_cxx_try_link "$LINENO"; then :
  13724. ac_cv_lib_avformat_main=yes
  13725. else
  13726. ac_cv_lib_avformat_main=no
  13727. fi
  13728. rm -f core conftest.err conftest.$ac_objext \
  13729. conftest$ac_exeext conftest.$ac_ext
  13730. LIBS=$ac_check_lib_save_LIBS
  13731. fi
  13732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_main" >&5
  13733. $as_echo "$ac_cv_lib_avformat_main" >&6; }
  13734. if test "x$ac_cv_lib_avformat_main" = x""yes; then :
  13735. cat >>confdefs.h <<_ACEOF
  13736. #define HAVE_LIBAVFORMAT 1
  13737. _ACEOF
  13738. LIBS="-lavformat $LIBS"
  13739. else
  13740. as_fn_error "FFMpeg avformat library not found. Please install it." "$LINENO" 5
  13741. fi
  13742. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lswscale" >&5
  13743. $as_echo_n "checking for main in -lswscale... " >&6; }
  13744. if test "${ac_cv_lib_swscale_main+set}" = set; then :
  13745. $as_echo_n "(cached) " >&6
  13746. else
  13747. ac_check_lib_save_LIBS=$LIBS
  13748. LIBS="-lswscale $LIBS"
  13749. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13750. /* end confdefs.h. */
  13751. int
  13752. main ()
  13753. {
  13754. return main ();
  13755. ;
  13756. return 0;
  13757. }
  13758. _ACEOF
  13759. if ac_fn_cxx_try_link "$LINENO"; then :
  13760. ac_cv_lib_swscale_main=yes
  13761. else
  13762. ac_cv_lib_swscale_main=no
  13763. fi
  13764. rm -f core conftest.err conftest.$ac_objext \
  13765. conftest$ac_exeext conftest.$ac_ext
  13766. LIBS=$ac_check_lib_save_LIBS
  13767. fi
  13768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_main" >&5
  13769. $as_echo "$ac_cv_lib_swscale_main" >&6; }
  13770. if test "x$ac_cv_lib_swscale_main" = x""yes; then :
  13771. cat >>confdefs.h <<_ACEOF
  13772. #define HAVE_LIBSWSCALE 1
  13773. _ACEOF
  13774. LIBS="-lswscale $LIBS"
  13775. else
  13776. as_fn_error "FFMpeg swscale library not found. Please install it." "$LINENO" 5
  13777. fi
  13778. FFMPEG_CXXFLAGS=`pkg-config --cflags libavformat libswscale`
  13779. FFMPEG_LIBS=`pkg-config --libs libavformat libswscale`
  13780. LIBS=$saved_LIBS
  13781. # Checks for header files.
  13782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  13783. $as_echo_n "checking for ANSI C header files... " >&6; }
  13784. if test "${ac_cv_header_stdc+set}" = set; then :
  13785. $as_echo_n "(cached) " >&6
  13786. else
  13787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13788. /* end confdefs.h. */
  13789. #include <stdlib.h>
  13790. #include <stdarg.h>
  13791. #include <string.h>
  13792. #include <float.h>
  13793. int
  13794. main ()
  13795. {
  13796. ;
  13797. return 0;
  13798. }
  13799. _ACEOF
  13800. if ac_fn_cxx_try_compile "$LINENO"; then :
  13801. ac_cv_header_stdc=yes
  13802. else
  13803. ac_cv_header_stdc=no
  13804. fi
  13805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13806. if test $ac_cv_header_stdc = yes; then
  13807. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13809. /* end confdefs.h. */
  13810. #include <string.h>
  13811. _ACEOF
  13812. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13813. $EGREP "memchr" >/dev/null 2>&1; then :
  13814. else
  13815. ac_cv_header_stdc=no
  13816. fi
  13817. rm -f conftest*
  13818. fi
  13819. if test $ac_cv_header_stdc = yes; then
  13820. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13821. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13822. /* end confdefs.h. */
  13823. #include <stdlib.h>
  13824. _ACEOF
  13825. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13826. $EGREP "free" >/dev/null 2>&1; then :
  13827. else
  13828. ac_cv_header_stdc=no
  13829. fi
  13830. rm -f conftest*
  13831. fi
  13832. if test $ac_cv_header_stdc = yes; then
  13833. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13834. if test "$cross_compiling" = yes; then :
  13835. :
  13836. else
  13837. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13838. /* end confdefs.h. */
  13839. #include <ctype.h>
  13840. #include <stdlib.h>
  13841. #if ((' ' & 0x0FF) == 0x020)
  13842. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13843. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13844. #else
  13845. # define ISLOWER(c) \
  13846. (('a' <= (c) && (c) <= 'i') \
  13847. || ('j' <= (c) && (c) <= 'r') \
  13848. || ('s' <= (c) && (c) <= 'z'))
  13849. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13850. #endif
  13851. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13852. int
  13853. main ()
  13854. {
  13855. int i;
  13856. for (i = 0; i < 256; i++)
  13857. if (XOR (islower (i), ISLOWER (i))
  13858. || toupper (i) != TOUPPER (i))
  13859. return 2;
  13860. return 0;
  13861. }
  13862. _ACEOF
  13863. if ac_fn_cxx_try_run "$LINENO"; then :
  13864. else
  13865. ac_cv_header_stdc=no
  13866. fi
  13867. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13868. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13869. fi
  13870. fi
  13871. fi
  13872. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  13873. $as_echo "$ac_cv_header_stdc" >&6; }
  13874. if test $ac_cv_header_stdc = yes; then
  13875. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  13876. fi
  13877. for ac_header in fcntl.h stdlib.h string.h
  13878. do :
  13879. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13880. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13881. eval as_val=\$$as_ac_Header
  13882. if test "x$as_val" = x""yes; then :
  13883. cat >>confdefs.h <<_ACEOF
  13884. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13885. _ACEOF
  13886. fi
  13887. done
  13888. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13889. 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
  13890. do :
  13891. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13892. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  13893. eval as_val=\$$as_ac_Header
  13894. if test "x$as_val" = x""yes; then :
  13895. cat >>confdefs.h <<_ACEOF
  13896. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13897. _ACEOF
  13898. else
  13899. as_fn_error "Required boost headers not found. Please install it." "$LINENO" 5
  13900. fi
  13901. done
  13902. # Checks for library functions.
  13903. for ac_func in atexit memset pow select sqrt
  13904. do :
  13905. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  13906. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  13907. eval as_val=\$$as_ac_var
  13908. if test "x$as_val" = x""yes; then :
  13909. cat >>confdefs.h <<_ACEOF
  13910. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  13911. _ACEOF
  13912. fi
  13913. done
  13914. ac_config_files="$ac_config_files Makefile lib/Makefile client/Makefile server/Makefile AI/Makefile AI/GeniusAI/Makefile AI/EmptyAI/Makefile"
  13915. cat >confcache <<\_ACEOF
  13916. # This file is a shell script that caches the results of configure
  13917. # tests run on this system so they can be shared between configure
  13918. # scripts and configure runs, see configure's option --config-cache.
  13919. # It is not useful on other systems. If it contains results you don't
  13920. # want to keep, you may remove or edit it.
  13921. #
  13922. # config.status only pays attention to the cache file if you give it
  13923. # the --recheck option to rerun configure.
  13924. #
  13925. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  13926. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  13927. # following values.
  13928. _ACEOF
  13929. # The following way of writing the cache mishandles newlines in values,
  13930. # but we know of no workaround that is simple, portable, and efficient.
  13931. # So, we kill variables containing newlines.
  13932. # Ultrix sh set writes to stderr and can't be redirected directly,
  13933. # and sets the high bit in the cache file unless we assign to the vars.
  13934. (
  13935. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  13936. eval ac_val=\$$ac_var
  13937. case $ac_val in #(
  13938. *${as_nl}*)
  13939. case $ac_var in #(
  13940. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  13941. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  13942. esac
  13943. case $ac_var in #(
  13944. _ | IFS | as_nl) ;; #(
  13945. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  13946. *) { eval $ac_var=; unset $ac_var;} ;;
  13947. esac ;;
  13948. esac
  13949. done
  13950. (set) 2>&1 |
  13951. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  13952. *${as_nl}ac_space=\ *)
  13953. # `set' does not quote correctly, so add quotes: double-quote
  13954. # substitution turns \\\\ into \\, and sed turns \\ into \.
  13955. sed -n \
  13956. "s/'/'\\\\''/g;
  13957. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  13958. ;; #(
  13959. *)
  13960. # `set' quotes correctly as required by POSIX, so do not add quotes.
  13961. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  13962. ;;
  13963. esac |
  13964. sort
  13965. ) |
  13966. sed '
  13967. /^ac_cv_env_/b end
  13968. t clear
  13969. :clear
  13970. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  13971. t end
  13972. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  13973. :end' >>confcache
  13974. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  13975. if test -w "$cache_file"; then
  13976. test "x$cache_file" != "x/dev/null" &&
  13977. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  13978. $as_echo "$as_me: updating cache $cache_file" >&6;}
  13979. cat confcache >$cache_file
  13980. else
  13981. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  13982. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  13983. fi
  13984. fi
  13985. rm -f confcache
  13986. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  13987. # Let make expand exec_prefix.
  13988. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  13989. # Transform confdefs.h into DEFS.
  13990. # Protect against shell expansion while executing Makefile rules.
  13991. # Protect against Makefile macro expansion.
  13992. #
  13993. # If the first sed substitution is executed (which looks for macros that
  13994. # take arguments), then branch to the quote section. Otherwise,
  13995. # look for a macro that doesn't take arguments.
  13996. ac_script='
  13997. :mline
  13998. /\\$/{
  13999. N
  14000. s,\\\n,,
  14001. b mline
  14002. }
  14003. t clear
  14004. :clear
  14005. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  14006. t quote
  14007. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  14008. t quote
  14009. b any
  14010. :quote
  14011. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  14012. s/\[/\\&/g
  14013. s/\]/\\&/g
  14014. s/\$/$$/g
  14015. H
  14016. :any
  14017. ${
  14018. g
  14019. s/^\n//
  14020. s/\n/ /g
  14021. p
  14022. }
  14023. '
  14024. DEFS=`sed -n "$ac_script" confdefs.h`
  14025. ac_libobjs=
  14026. ac_ltlibobjs=
  14027. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14028. # 1. Remove the extension, and $U if already installed.
  14029. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14030. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14031. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14032. # will be set to the directory where LIBOBJS objects are built.
  14033. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14034. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14035. done
  14036. LIBOBJS=$ac_libobjs
  14037. LTLIBOBJS=$ac_ltlibobjs
  14038. if test -n "$EXEEXT"; then
  14039. am__EXEEXT_TRUE=
  14040. am__EXEEXT_FALSE='#'
  14041. else
  14042. am__EXEEXT_TRUE='#'
  14043. am__EXEEXT_FALSE=
  14044. fi
  14045. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14046. as_fn_error "conditional \"AMDEP\" was never defined.
  14047. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14048. fi
  14049. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14050. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  14051. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14052. fi
  14053. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14054. as_fn_error "conditional \"am__fastdepCC\" was never defined.
  14055. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14056. fi
  14057. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14058. as_fn_error "conditional \"am__fastdepCXX\" was never defined.
  14059. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14060. fi
  14061. : ${CONFIG_STATUS=./config.status}
  14062. ac_write_fail=0
  14063. ac_clean_files_save=$ac_clean_files
  14064. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14065. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14066. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14067. as_write_fail=0
  14068. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14069. #! $SHELL
  14070. # Generated by $as_me.
  14071. # Run this file to recreate the current configuration.
  14072. # Compiler output produced by configure, useful for debugging
  14073. # configure, is in config.log if it exists.
  14074. debug=false
  14075. ac_cs_recheck=false
  14076. ac_cs_silent=false
  14077. SHELL=\${CONFIG_SHELL-$SHELL}
  14078. export SHELL
  14079. _ASEOF
  14080. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14081. ## -------------------- ##
  14082. ## M4sh Initialization. ##
  14083. ## -------------------- ##
  14084. # Be more Bourne compatible
  14085. DUALCASE=1; export DUALCASE # for MKS sh
  14086. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14087. emulate sh
  14088. NULLCMD=:
  14089. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14090. # is contrary to our usage. Disable this feature.
  14091. alias -g '${1+"$@"}'='"$@"'
  14092. setopt NO_GLOB_SUBST
  14093. else
  14094. case `(set -o) 2>/dev/null` in #(
  14095. *posix*) :
  14096. set -o posix ;; #(
  14097. *) :
  14098. ;;
  14099. esac
  14100. fi
  14101. as_nl='
  14102. '
  14103. export as_nl
  14104. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14105. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14106. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14107. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14108. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14109. # but without wasting forks for bash or zsh.
  14110. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14111. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14112. as_echo='print -r --'
  14113. as_echo_n='print -rn --'
  14114. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14115. as_echo='printf %s\n'
  14116. as_echo_n='printf %s'
  14117. else
  14118. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14119. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14120. as_echo_n='/usr/ucb/echo -n'
  14121. else
  14122. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14123. as_echo_n_body='eval
  14124. arg=$1;
  14125. case $arg in #(
  14126. *"$as_nl"*)
  14127. expr "X$arg" : "X\\(.*\\)$as_nl";
  14128. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14129. esac;
  14130. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14131. '
  14132. export as_echo_n_body
  14133. as_echo_n='sh -c $as_echo_n_body as_echo'
  14134. fi
  14135. export as_echo_body
  14136. as_echo='sh -c $as_echo_body as_echo'
  14137. fi
  14138. # The user is always right.
  14139. if test "${PATH_SEPARATOR+set}" != set; then
  14140. PATH_SEPARATOR=:
  14141. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14142. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14143. PATH_SEPARATOR=';'
  14144. }
  14145. fi
  14146. # IFS
  14147. # We need space, tab and new line, in precisely that order. Quoting is
  14148. # there to prevent editors from complaining about space-tab.
  14149. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14150. # splitting by setting IFS to empty value.)
  14151. IFS=" "" $as_nl"
  14152. # Find who we are. Look in the path if we contain no directory separator.
  14153. case $0 in #((
  14154. *[\\/]* ) as_myself=$0 ;;
  14155. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14156. for as_dir in $PATH
  14157. do
  14158. IFS=$as_save_IFS
  14159. test -z "$as_dir" && as_dir=.
  14160. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14161. done
  14162. IFS=$as_save_IFS
  14163. ;;
  14164. esac
  14165. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14166. # in which case we are not to be found in the path.
  14167. if test "x$as_myself" = x; then
  14168. as_myself=$0
  14169. fi
  14170. if test ! -f "$as_myself"; then
  14171. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14172. exit 1
  14173. fi
  14174. # Unset variables that we do not need and which cause bugs (e.g. in
  14175. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14176. # suppresses any "Segmentation fault" message there. '((' could
  14177. # trigger a bug in pdksh 5.2.14.
  14178. for as_var in BASH_ENV ENV MAIL MAILPATH
  14179. do eval test x\${$as_var+set} = xset \
  14180. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14181. done
  14182. PS1='$ '
  14183. PS2='> '
  14184. PS4='+ '
  14185. # NLS nuisances.
  14186. LC_ALL=C
  14187. export LC_ALL
  14188. LANGUAGE=C
  14189. export LANGUAGE
  14190. # CDPATH.
  14191. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14192. # as_fn_error ERROR [LINENO LOG_FD]
  14193. # ---------------------------------
  14194. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14195. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14196. # script with status $?, using 1 if that was 0.
  14197. as_fn_error ()
  14198. {
  14199. as_status=$?; test $as_status -eq 0 && as_status=1
  14200. if test "$3"; then
  14201. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14202. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  14203. fi
  14204. $as_echo "$as_me: error: $1" >&2
  14205. as_fn_exit $as_status
  14206. } # as_fn_error
  14207. # as_fn_set_status STATUS
  14208. # -----------------------
  14209. # Set $? to STATUS, without forking.
  14210. as_fn_set_status ()
  14211. {
  14212. return $1
  14213. } # as_fn_set_status
  14214. # as_fn_exit STATUS
  14215. # -----------------
  14216. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14217. as_fn_exit ()
  14218. {
  14219. set +e
  14220. as_fn_set_status $1
  14221. exit $1
  14222. } # as_fn_exit
  14223. # as_fn_unset VAR
  14224. # ---------------
  14225. # Portably unset VAR.
  14226. as_fn_unset ()
  14227. {
  14228. { eval $1=; unset $1;}
  14229. }
  14230. as_unset=as_fn_unset
  14231. # as_fn_append VAR VALUE
  14232. # ----------------------
  14233. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14234. # advantage of any shell optimizations that allow amortized linear growth over
  14235. # repeated appends, instead of the typical quadratic growth present in naive
  14236. # implementations.
  14237. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14238. eval 'as_fn_append ()
  14239. {
  14240. eval $1+=\$2
  14241. }'
  14242. else
  14243. as_fn_append ()
  14244. {
  14245. eval $1=\$$1\$2
  14246. }
  14247. fi # as_fn_append
  14248. # as_fn_arith ARG...
  14249. # ------------------
  14250. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14251. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14252. # must be portable across $(()) and expr.
  14253. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14254. eval 'as_fn_arith ()
  14255. {
  14256. as_val=$(( $* ))
  14257. }'
  14258. else
  14259. as_fn_arith ()
  14260. {
  14261. as_val=`expr "$@" || test $? -eq 1`
  14262. }
  14263. fi # as_fn_arith
  14264. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14265. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14266. as_expr=expr
  14267. else
  14268. as_expr=false
  14269. fi
  14270. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14271. as_basename=basename
  14272. else
  14273. as_basename=false
  14274. fi
  14275. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14276. as_dirname=dirname
  14277. else
  14278. as_dirname=false
  14279. fi
  14280. as_me=`$as_basename -- "$0" ||
  14281. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14282. X"$0" : 'X\(//\)$' \| \
  14283. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14284. $as_echo X/"$0" |
  14285. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14286. s//\1/
  14287. q
  14288. }
  14289. /^X\/\(\/\/\)$/{
  14290. s//\1/
  14291. q
  14292. }
  14293. /^X\/\(\/\).*/{
  14294. s//\1/
  14295. q
  14296. }
  14297. s/.*/./; q'`
  14298. # Avoid depending upon Character Ranges.
  14299. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14300. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14301. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14302. as_cr_digits='0123456789'
  14303. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14304. ECHO_C= ECHO_N= ECHO_T=
  14305. case `echo -n x` in #(((((
  14306. -n*)
  14307. case `echo 'xy\c'` in
  14308. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14309. xy) ECHO_C='\c';;
  14310. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14311. ECHO_T=' ';;
  14312. esac;;
  14313. *)
  14314. ECHO_N='-n';;
  14315. esac
  14316. rm -f conf$$ conf$$.exe conf$$.file
  14317. if test -d conf$$.dir; then
  14318. rm -f conf$$.dir/conf$$.file
  14319. else
  14320. rm -f conf$$.dir
  14321. mkdir conf$$.dir 2>/dev/null
  14322. fi
  14323. if (echo >conf$$.file) 2>/dev/null; then
  14324. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14325. as_ln_s='ln -s'
  14326. # ... but there are two gotchas:
  14327. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14328. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14329. # In both cases, we have to default to `cp -p'.
  14330. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14331. as_ln_s='cp -p'
  14332. elif ln conf$$.file conf$$ 2>/dev/null; then
  14333. as_ln_s=ln
  14334. else
  14335. as_ln_s='cp -p'
  14336. fi
  14337. else
  14338. as_ln_s='cp -p'
  14339. fi
  14340. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14341. rmdir conf$$.dir 2>/dev/null
  14342. # as_fn_mkdir_p
  14343. # -------------
  14344. # Create "$as_dir" as a directory, including parents if necessary.
  14345. as_fn_mkdir_p ()
  14346. {
  14347. case $as_dir in #(
  14348. -*) as_dir=./$as_dir;;
  14349. esac
  14350. test -d "$as_dir" || eval $as_mkdir_p || {
  14351. as_dirs=
  14352. while :; do
  14353. case $as_dir in #(
  14354. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14355. *) as_qdir=$as_dir;;
  14356. esac
  14357. as_dirs="'$as_qdir' $as_dirs"
  14358. as_dir=`$as_dirname -- "$as_dir" ||
  14359. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14360. X"$as_dir" : 'X\(//\)[^/]' \| \
  14361. X"$as_dir" : 'X\(//\)$' \| \
  14362. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14363. $as_echo X"$as_dir" |
  14364. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14365. s//\1/
  14366. q
  14367. }
  14368. /^X\(\/\/\)[^/].*/{
  14369. s//\1/
  14370. q
  14371. }
  14372. /^X\(\/\/\)$/{
  14373. s//\1/
  14374. q
  14375. }
  14376. /^X\(\/\).*/{
  14377. s//\1/
  14378. q
  14379. }
  14380. s/.*/./; q'`
  14381. test -d "$as_dir" && break
  14382. done
  14383. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14384. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  14385. } # as_fn_mkdir_p
  14386. if mkdir -p . 2>/dev/null; then
  14387. as_mkdir_p='mkdir -p "$as_dir"'
  14388. else
  14389. test -d ./-p && rmdir ./-p
  14390. as_mkdir_p=false
  14391. fi
  14392. if test -x / >/dev/null 2>&1; then
  14393. as_test_x='test -x'
  14394. else
  14395. if ls -dL / >/dev/null 2>&1; then
  14396. as_ls_L_option=L
  14397. else
  14398. as_ls_L_option=
  14399. fi
  14400. as_test_x='
  14401. eval sh -c '\''
  14402. if test -d "$1"; then
  14403. test -d "$1/.";
  14404. else
  14405. case $1 in #(
  14406. -*)set "./$1";;
  14407. esac;
  14408. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14409. ???[sx]*):;;*)false;;esac;fi
  14410. '\'' sh
  14411. '
  14412. fi
  14413. as_executable_p=$as_test_x
  14414. # Sed expression to map a string onto a valid CPP name.
  14415. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14416. # Sed expression to map a string onto a valid variable name.
  14417. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14418. exec 6>&1
  14419. ## ----------------------------------- ##
  14420. ## Main body of $CONFIG_STATUS script. ##
  14421. ## ----------------------------------- ##
  14422. _ASEOF
  14423. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14424. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14425. # Save the log message, to keep $0 and so on meaningful, and to
  14426. # report actual input values of CONFIG_FILES etc. instead of their
  14427. # values after options handling.
  14428. ac_log="
  14429. This file was extended by vcmi $as_me 0.75, which was
  14430. generated by GNU Autoconf 2.64. Invocation command line was
  14431. CONFIG_FILES = $CONFIG_FILES
  14432. CONFIG_HEADERS = $CONFIG_HEADERS
  14433. CONFIG_LINKS = $CONFIG_LINKS
  14434. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14435. $ $0 $@
  14436. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14437. "
  14438. _ACEOF
  14439. case $ac_config_files in *"
  14440. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14441. esac
  14442. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14443. # Files that config.status was made for.
  14444. config_files="$ac_config_files"
  14445. config_commands="$ac_config_commands"
  14446. _ACEOF
  14447. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14448. ac_cs_usage="\
  14449. \`$as_me' instantiates files and other configuration actions
  14450. from templates according to the current configuration. Unless the files
  14451. and actions are specified as TAGs, all are instantiated by default.
  14452. Usage: $0 [OPTION]... [TAG]...
  14453. -h, --help print this help, then exit
  14454. -V, --version print version number and configuration settings, then exit
  14455. -q, --quiet, --silent
  14456. do not print progress messages
  14457. -d, --debug don't remove temporary files
  14458. --recheck update $as_me by reconfiguring in the same conditions
  14459. --file=FILE[:TEMPLATE]
  14460. instantiate the configuration file FILE
  14461. Configuration files:
  14462. $config_files
  14463. Configuration commands:
  14464. $config_commands
  14465. Report bugs to the package provider."
  14466. _ACEOF
  14467. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14468. ac_cs_version="\\
  14469. vcmi config.status 0.75
  14470. configured by $0, generated by GNU Autoconf 2.64,
  14471. with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  14472. Copyright (C) 2009 Free Software Foundation, Inc.
  14473. This config.status script is free software; the Free Software Foundation
  14474. gives unlimited permission to copy, distribute and modify it."
  14475. ac_pwd='$ac_pwd'
  14476. srcdir='$srcdir'
  14477. INSTALL='$INSTALL'
  14478. MKDIR_P='$MKDIR_P'
  14479. AWK='$AWK'
  14480. test -n "\$AWK" || AWK=awk
  14481. _ACEOF
  14482. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14483. # The default lists apply if the user does not specify any file.
  14484. ac_need_defaults=:
  14485. while test $# != 0
  14486. do
  14487. case $1 in
  14488. --*=*)
  14489. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14490. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14491. ac_shift=:
  14492. ;;
  14493. *)
  14494. ac_option=$1
  14495. ac_optarg=$2
  14496. ac_shift=shift
  14497. ;;
  14498. esac
  14499. case $ac_option in
  14500. # Handling of the options.
  14501. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14502. ac_cs_recheck=: ;;
  14503. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14504. $as_echo "$ac_cs_version"; exit ;;
  14505. --debug | --debu | --deb | --de | --d | -d )
  14506. debug=: ;;
  14507. --file | --fil | --fi | --f )
  14508. $ac_shift
  14509. case $ac_optarg in
  14510. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14511. esac
  14512. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14513. ac_need_defaults=false;;
  14514. --he | --h | --help | --hel | -h )
  14515. $as_echo "$ac_cs_usage"; exit ;;
  14516. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14517. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14518. ac_cs_silent=: ;;
  14519. # This is an error.
  14520. -*) as_fn_error "unrecognized option: \`$1'
  14521. Try \`$0 --help' for more information." ;;
  14522. *) as_fn_append ac_config_targets " $1"
  14523. ac_need_defaults=false ;;
  14524. esac
  14525. shift
  14526. done
  14527. ac_configure_extra_args=
  14528. if $ac_cs_silent; then
  14529. exec 6>/dev/null
  14530. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14531. fi
  14532. _ACEOF
  14533. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14534. if \$ac_cs_recheck; then
  14535. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14536. shift
  14537. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14538. CONFIG_SHELL='$SHELL'
  14539. export CONFIG_SHELL
  14540. exec "\$@"
  14541. fi
  14542. _ACEOF
  14543. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14544. exec 5>>config.log
  14545. {
  14546. echo
  14547. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14548. ## Running $as_me. ##
  14549. _ASBOX
  14550. $as_echo "$ac_log"
  14551. } >&5
  14552. _ACEOF
  14553. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14554. #
  14555. # INIT-COMMANDS
  14556. #
  14557. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14558. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14559. # if CDPATH is set.
  14560. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14561. sed_quote_subst='$sed_quote_subst'
  14562. double_quote_subst='$double_quote_subst'
  14563. delay_variable_subst='$delay_variable_subst'
  14564. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  14565. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  14566. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  14567. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  14568. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  14569. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  14570. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  14571. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  14572. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  14573. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  14574. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  14575. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  14576. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  14577. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  14578. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  14579. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  14580. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  14581. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  14582. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  14583. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  14584. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  14585. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  14586. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  14587. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  14588. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  14589. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  14590. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14591. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14592. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  14593. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  14594. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  14595. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  14596. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  14597. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  14598. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  14599. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14600. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14601. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14602. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  14603. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  14604. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  14605. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  14606. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  14607. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  14608. 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"`'
  14609. 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"`'
  14610. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  14611. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  14612. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  14613. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  14614. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14615. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  14616. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  14617. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  14618. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  14619. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  14620. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  14621. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  14622. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  14623. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  14624. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  14625. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  14626. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14627. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14628. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  14629. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  14630. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14631. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14632. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  14633. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14634. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14635. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14636. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14637. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14638. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14639. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  14640. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14641. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14642. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14643. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  14644. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  14645. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  14646. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  14647. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  14648. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14649. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  14650. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  14651. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  14652. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  14653. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  14654. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14655. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  14656. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  14657. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14658. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14659. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  14660. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  14661. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  14662. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  14663. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14664. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  14665. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  14666. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14667. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14668. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14669. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14670. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14671. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14672. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  14673. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  14674. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14675. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  14676. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  14677. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  14678. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  14679. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  14680. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  14681. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  14682. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  14683. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  14684. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  14685. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  14686. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  14687. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  14688. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14689. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14690. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14691. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14692. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14693. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14694. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14695. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14696. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14697. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14698. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14699. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14700. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14701. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14702. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14703. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14704. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14705. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14706. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14707. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14708. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14709. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14710. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14711. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14712. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14713. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14714. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14715. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14716. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14717. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14718. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14719. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14720. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14721. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14722. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14723. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14724. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14725. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14726. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14727. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14728. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14729. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14730. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14731. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14732. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14733. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14734. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  14735. LTCC='$LTCC'
  14736. LTCFLAGS='$LTCFLAGS'
  14737. compiler='$compiler_DEFAULT'
  14738. # Quote evaled strings.
  14739. for var in SED \
  14740. GREP \
  14741. EGREP \
  14742. FGREP \
  14743. LD \
  14744. NM \
  14745. LN_S \
  14746. lt_SP2NL \
  14747. lt_NL2SP \
  14748. reload_flag \
  14749. OBJDUMP \
  14750. deplibs_check_method \
  14751. file_magic_cmd \
  14752. AR \
  14753. AR_FLAGS \
  14754. STRIP \
  14755. RANLIB \
  14756. CC \
  14757. CFLAGS \
  14758. compiler \
  14759. lt_cv_sys_global_symbol_pipe \
  14760. lt_cv_sys_global_symbol_to_cdecl \
  14761. lt_cv_sys_global_symbol_to_c_name_address \
  14762. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  14763. SHELL \
  14764. ECHO \
  14765. lt_prog_compiler_no_builtin_flag \
  14766. lt_prog_compiler_wl \
  14767. lt_prog_compiler_pic \
  14768. lt_prog_compiler_static \
  14769. lt_cv_prog_compiler_c_o \
  14770. need_locks \
  14771. DSYMUTIL \
  14772. NMEDIT \
  14773. LIPO \
  14774. OTOOL \
  14775. OTOOL64 \
  14776. shrext_cmds \
  14777. export_dynamic_flag_spec \
  14778. whole_archive_flag_spec \
  14779. compiler_needs_object \
  14780. with_gnu_ld \
  14781. allow_undefined_flag \
  14782. no_undefined_flag \
  14783. hardcode_libdir_flag_spec \
  14784. hardcode_libdir_flag_spec_ld \
  14785. hardcode_libdir_separator \
  14786. fix_srcfile_path \
  14787. exclude_expsyms \
  14788. include_expsyms \
  14789. file_list_spec \
  14790. variables_saved_for_relink \
  14791. libname_spec \
  14792. library_names_spec \
  14793. soname_spec \
  14794. finish_eval \
  14795. old_striplib \
  14796. striplib \
  14797. compiler_lib_search_dirs \
  14798. predep_objects \
  14799. postdep_objects \
  14800. predeps \
  14801. postdeps \
  14802. compiler_lib_search_path \
  14803. LD_CXX \
  14804. compiler_CXX \
  14805. lt_prog_compiler_no_builtin_flag_CXX \
  14806. lt_prog_compiler_wl_CXX \
  14807. lt_prog_compiler_pic_CXX \
  14808. lt_prog_compiler_static_CXX \
  14809. lt_cv_prog_compiler_c_o_CXX \
  14810. export_dynamic_flag_spec_CXX \
  14811. whole_archive_flag_spec_CXX \
  14812. compiler_needs_object_CXX \
  14813. with_gnu_ld_CXX \
  14814. allow_undefined_flag_CXX \
  14815. no_undefined_flag_CXX \
  14816. hardcode_libdir_flag_spec_CXX \
  14817. hardcode_libdir_flag_spec_ld_CXX \
  14818. hardcode_libdir_separator_CXX \
  14819. fix_srcfile_path_CXX \
  14820. exclude_expsyms_CXX \
  14821. include_expsyms_CXX \
  14822. file_list_spec_CXX \
  14823. compiler_lib_search_dirs_CXX \
  14824. predep_objects_CXX \
  14825. postdep_objects_CXX \
  14826. predeps_CXX \
  14827. postdeps_CXX \
  14828. compiler_lib_search_path_CXX; do
  14829. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14830. *[\\\\\\\`\\"\\\$]*)
  14831. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  14832. ;;
  14833. *)
  14834. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14835. ;;
  14836. esac
  14837. done
  14838. # Double-quote double-evaled strings.
  14839. for var in reload_cmds \
  14840. old_postinstall_cmds \
  14841. old_postuninstall_cmds \
  14842. old_archive_cmds \
  14843. extract_expsyms_cmds \
  14844. old_archive_from_new_cmds \
  14845. old_archive_from_expsyms_cmds \
  14846. archive_cmds \
  14847. archive_expsym_cmds \
  14848. module_cmds \
  14849. module_expsym_cmds \
  14850. export_symbols_cmds \
  14851. prelink_cmds \
  14852. postinstall_cmds \
  14853. postuninstall_cmds \
  14854. finish_cmds \
  14855. sys_lib_search_path_spec \
  14856. sys_lib_dlsearch_path_spec \
  14857. old_archive_cmds_CXX \
  14858. old_archive_from_new_cmds_CXX \
  14859. old_archive_from_expsyms_cmds_CXX \
  14860. archive_cmds_CXX \
  14861. archive_expsym_cmds_CXX \
  14862. module_cmds_CXX \
  14863. module_expsym_cmds_CXX \
  14864. export_symbols_cmds_CXX \
  14865. prelink_cmds_CXX; do
  14866. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  14867. *[\\\\\\\`\\"\\\$]*)
  14868. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  14869. ;;
  14870. *)
  14871. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  14872. ;;
  14873. esac
  14874. done
  14875. # Fix-up fallback echo if it was mangled by the above quoting rules.
  14876. case \$lt_ECHO in
  14877. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  14878. ;;
  14879. esac
  14880. ac_aux_dir='$ac_aux_dir'
  14881. xsi_shell='$xsi_shell'
  14882. lt_shell_append='$lt_shell_append'
  14883. # See if we are running on zsh, and set the options which allow our
  14884. # commands through without removal of \ escapes INIT.
  14885. if test -n "\${ZSH_VERSION+set}" ; then
  14886. setopt NO_GLOB_SUBST
  14887. fi
  14888. PACKAGE='$PACKAGE'
  14889. VERSION='$VERSION'
  14890. TIMESTAMP='$TIMESTAMP'
  14891. RM='$RM'
  14892. ofile='$ofile'
  14893. _ACEOF
  14894. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14895. # Handling of arguments.
  14896. for ac_config_target in $ac_config_targets
  14897. do
  14898. case $ac_config_target in
  14899. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  14900. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  14901. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  14902. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  14903. "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
  14904. "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
  14905. "AI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/Makefile" ;;
  14906. "AI/GeniusAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/GeniusAI/Makefile" ;;
  14907. "AI/EmptyAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/EmptyAI/Makefile" ;;
  14908. *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  14909. esac
  14910. done
  14911. # If the user did not use the arguments to specify the items to instantiate,
  14912. # then the envvar interface is used. Set only those that are not.
  14913. # We use the long form for the default assignment because of an extremely
  14914. # bizarre bug on SunOS 4.1.3.
  14915. if $ac_need_defaults; then
  14916. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  14917. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  14918. fi
  14919. # Have a temporary directory for convenience. Make it in the build tree
  14920. # simply because there is no reason against having it here, and in addition,
  14921. # creating and moving files from /tmp can sometimes cause problems.
  14922. # Hook for its removal unless debugging.
  14923. # Note that there is a small window in which the directory will not be cleaned:
  14924. # after its creation but before its name has been assigned to `$tmp'.
  14925. $debug ||
  14926. {
  14927. tmp=
  14928. trap 'exit_status=$?
  14929. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  14930. ' 0
  14931. trap 'as_fn_exit 1' 1 2 13 15
  14932. }
  14933. # Create a (secure) tmp directory for tmp files.
  14934. {
  14935. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  14936. test -n "$tmp" && test -d "$tmp"
  14937. } ||
  14938. {
  14939. tmp=./conf$$-$RANDOM
  14940. (umask 077 && mkdir "$tmp")
  14941. } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  14942. # Set up the scripts for CONFIG_FILES section.
  14943. # No need to generate them if there are no CONFIG_FILES.
  14944. # This happens for instance with `./config.status config.h'.
  14945. if test -n "$CONFIG_FILES"; then
  14946. ac_cr=`echo X | tr X '\015'`
  14947. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  14948. # But we know of no other shell where ac_cr would be empty at this
  14949. # point, so we can use a bashism as a fallback.
  14950. if test "x$ac_cr" = x; then
  14951. eval ac_cr=\$\'\\r\'
  14952. fi
  14953. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  14954. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  14955. ac_cs_awk_cr='\r'
  14956. else
  14957. ac_cs_awk_cr=$ac_cr
  14958. fi
  14959. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  14960. _ACEOF
  14961. {
  14962. echo "cat >conf$$subs.awk <<_ACEOF" &&
  14963. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  14964. echo "_ACEOF"
  14965. } >conf$$subs.sh ||
  14966. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14967. ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  14968. ac_delim='%!_!# '
  14969. for ac_last_try in false false false false false :; do
  14970. . ./conf$$subs.sh ||
  14971. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14972. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  14973. if test $ac_delim_n = $ac_delim_num; then
  14974. break
  14975. elif $ac_last_try; then
  14976. as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  14977. else
  14978. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  14979. fi
  14980. done
  14981. rm -f conf$$subs.sh
  14982. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14983. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  14984. _ACEOF
  14985. sed -n '
  14986. h
  14987. s/^/S["/; s/!.*/"]=/
  14988. p
  14989. g
  14990. s/^[^!]*!//
  14991. :repl
  14992. t repl
  14993. s/'"$ac_delim"'$//
  14994. t delim
  14995. :nl
  14996. h
  14997. s/\(.\{148\}\).*/\1/
  14998. t more1
  14999. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15000. p
  15001. n
  15002. b repl
  15003. :more1
  15004. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15005. p
  15006. g
  15007. s/.\{148\}//
  15008. t nl
  15009. :delim
  15010. h
  15011. s/\(.\{148\}\).*/\1/
  15012. t more2
  15013. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15014. p
  15015. b
  15016. :more2
  15017. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15018. p
  15019. g
  15020. s/.\{148\}//
  15021. t delim
  15022. ' <conf$$subs.awk | sed '
  15023. /^[^""]/{
  15024. N
  15025. s/\n//
  15026. }
  15027. ' >>$CONFIG_STATUS || ac_write_fail=1
  15028. rm -f conf$$subs.awk
  15029. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15030. _ACAWK
  15031. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  15032. for (key in S) S_is_set[key] = 1
  15033. FS = ""
  15034. }
  15035. {
  15036. line = $ 0
  15037. nfields = split(line, field, "@")
  15038. substed = 0
  15039. len = length(field[1])
  15040. for (i = 2; i < nfields; i++) {
  15041. key = field[i]
  15042. keylen = length(key)
  15043. if (S_is_set[key]) {
  15044. value = S[key]
  15045. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15046. len += length(value) + length(field[++i])
  15047. substed = 1
  15048. } else
  15049. len += 1 + keylen
  15050. }
  15051. print line
  15052. }
  15053. _ACAWK
  15054. _ACEOF
  15055. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15056. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15057. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15058. else
  15059. cat
  15060. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  15061. || as_fn_error "could not setup config files machinery" "$LINENO" 5
  15062. _ACEOF
  15063. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  15064. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  15065. # trailing colons and then remove the whole line if VPATH becomes empty
  15066. # (actually we leave an empty line to preserve line numbers).
  15067. if test "x$srcdir" = x.; then
  15068. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  15069. s/:*\$(srcdir):*/:/
  15070. s/:*\${srcdir}:*/:/
  15071. s/:*@srcdir@:*/:/
  15072. s/^\([^=]*=[ ]*\):*/\1/
  15073. s/:*$//
  15074. s/^[^=]*=[ ]*$//
  15075. }'
  15076. fi
  15077. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15078. fi # test -n "$CONFIG_FILES"
  15079. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  15080. shift
  15081. for ac_tag
  15082. do
  15083. case $ac_tag in
  15084. :[FHLC]) ac_mode=$ac_tag; continue;;
  15085. esac
  15086. case $ac_mode$ac_tag in
  15087. :[FHL]*:*);;
  15088. :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15089. :[FH]-) ac_tag=-:-;;
  15090. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15091. esac
  15092. ac_save_IFS=$IFS
  15093. IFS=:
  15094. set x $ac_tag
  15095. IFS=$ac_save_IFS
  15096. shift
  15097. ac_file=$1
  15098. shift
  15099. case $ac_mode in
  15100. :L) ac_source=$1;;
  15101. :[FH])
  15102. ac_file_inputs=
  15103. for ac_f
  15104. do
  15105. case $ac_f in
  15106. -) ac_f="$tmp/stdin";;
  15107. *) # Look for the file first in the build tree, then in the source tree
  15108. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15109. # because $ac_f cannot contain `:'.
  15110. test -f "$ac_f" ||
  15111. case $ac_f in
  15112. [\\/$]*) false;;
  15113. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15114. esac ||
  15115. as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15116. esac
  15117. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15118. as_fn_append ac_file_inputs " '$ac_f'"
  15119. done
  15120. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15121. # use $as_me), people would be surprised to read:
  15122. # /* config.h. Generated by config.status. */
  15123. configure_input='Generated from '`
  15124. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15125. `' by configure.'
  15126. if test x"$ac_file" != x-; then
  15127. configure_input="$ac_file. $configure_input"
  15128. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15129. $as_echo "$as_me: creating $ac_file" >&6;}
  15130. fi
  15131. # Neutralize special characters interpreted by sed in replacement strings.
  15132. case $configure_input in #(
  15133. *\&* | *\|* | *\\* )
  15134. ac_sed_conf_input=`$as_echo "$configure_input" |
  15135. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15136. *) ac_sed_conf_input=$configure_input;;
  15137. esac
  15138. case $ac_tag in
  15139. *:-:* | *:-) cat >"$tmp/stdin" \
  15140. || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  15141. esac
  15142. ;;
  15143. esac
  15144. ac_dir=`$as_dirname -- "$ac_file" ||
  15145. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15146. X"$ac_file" : 'X\(//\)[^/]' \| \
  15147. X"$ac_file" : 'X\(//\)$' \| \
  15148. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15149. $as_echo X"$ac_file" |
  15150. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15151. s//\1/
  15152. q
  15153. }
  15154. /^X\(\/\/\)[^/].*/{
  15155. s//\1/
  15156. q
  15157. }
  15158. /^X\(\/\/\)$/{
  15159. s//\1/
  15160. q
  15161. }
  15162. /^X\(\/\).*/{
  15163. s//\1/
  15164. q
  15165. }
  15166. s/.*/./; q'`
  15167. as_dir="$ac_dir"; as_fn_mkdir_p
  15168. ac_builddir=.
  15169. case "$ac_dir" in
  15170. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15171. *)
  15172. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15173. # A ".." for each directory in $ac_dir_suffix.
  15174. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15175. case $ac_top_builddir_sub in
  15176. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15177. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15178. esac ;;
  15179. esac
  15180. ac_abs_top_builddir=$ac_pwd
  15181. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15182. # for backward compatibility:
  15183. ac_top_builddir=$ac_top_build_prefix
  15184. case $srcdir in
  15185. .) # We are building in place.
  15186. ac_srcdir=.
  15187. ac_top_srcdir=$ac_top_builddir_sub
  15188. ac_abs_top_srcdir=$ac_pwd ;;
  15189. [\\/]* | ?:[\\/]* ) # Absolute name.
  15190. ac_srcdir=$srcdir$ac_dir_suffix;
  15191. ac_top_srcdir=$srcdir
  15192. ac_abs_top_srcdir=$srcdir ;;
  15193. *) # Relative name.
  15194. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15195. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15196. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15197. esac
  15198. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15199. case $ac_mode in
  15200. :F)
  15201. #
  15202. # CONFIG_FILE
  15203. #
  15204. case $INSTALL in
  15205. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15206. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15207. esac
  15208. ac_MKDIR_P=$MKDIR_P
  15209. case $MKDIR_P in
  15210. [\\/$]* | ?:[\\/]* ) ;;
  15211. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15212. esac
  15213. _ACEOF
  15214. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15215. # If the template does not know about datarootdir, expand it.
  15216. # FIXME: This hack should be removed a few years after 2.60.
  15217. ac_datarootdir_hack=; ac_datarootdir_seen=
  15218. ac_sed_dataroot='
  15219. /datarootdir/ {
  15220. p
  15221. q
  15222. }
  15223. /@datadir@/p
  15224. /@docdir@/p
  15225. /@infodir@/p
  15226. /@localedir@/p
  15227. /@mandir@/p'
  15228. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15229. *datarootdir*) ac_datarootdir_seen=yes;;
  15230. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15231. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15232. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15233. _ACEOF
  15234. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15235. ac_datarootdir_hack='
  15236. s&@datadir@&$datadir&g
  15237. s&@docdir@&$docdir&g
  15238. s&@infodir@&$infodir&g
  15239. s&@localedir@&$localedir&g
  15240. s&@mandir@&$mandir&g
  15241. s&\\\${datarootdir}&$datarootdir&g' ;;
  15242. esac
  15243. _ACEOF
  15244. # Neutralize VPATH when `$srcdir' = `.'.
  15245. # Shell code in configure.ac might set extrasub.
  15246. # FIXME: do we really want to maintain this feature?
  15247. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15248. ac_sed_extra="$ac_vpsub
  15249. $extrasub
  15250. _ACEOF
  15251. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15252. :t
  15253. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15254. s|@configure_input@|$ac_sed_conf_input|;t t
  15255. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15256. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15257. s&@srcdir@&$ac_srcdir&;t t
  15258. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15259. s&@top_srcdir@&$ac_top_srcdir&;t t
  15260. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15261. s&@builddir@&$ac_builddir&;t t
  15262. s&@abs_builddir@&$ac_abs_builddir&;t t
  15263. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15264. s&@INSTALL@&$ac_INSTALL&;t t
  15265. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15266. $ac_datarootdir_hack
  15267. "
  15268. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  15269. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15270. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15271. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  15272. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  15273. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15274. which seems to be undefined. Please make sure it is defined." >&5
  15275. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15276. which seems to be undefined. Please make sure it is defined." >&2;}
  15277. rm -f "$tmp/stdin"
  15278. case $ac_file in
  15279. -) cat "$tmp/out" && rm -f "$tmp/out";;
  15280. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  15281. esac \
  15282. || as_fn_error "could not create $ac_file" "$LINENO" 5
  15283. ;;
  15284. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15285. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15286. ;;
  15287. esac
  15288. case $ac_file$ac_mode in
  15289. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15290. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15291. # are listed without --file. Let's play safe and only enable the eval
  15292. # if we detect the quoting.
  15293. case $CONFIG_FILES in
  15294. *\'*) eval set x "$CONFIG_FILES" ;;
  15295. *) set x $CONFIG_FILES ;;
  15296. esac
  15297. shift
  15298. for mf
  15299. do
  15300. # Strip MF so we end up with the name of the file.
  15301. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15302. # Check whether this is an Automake generated Makefile or not.
  15303. # We used to match only the files named `Makefile.in', but
  15304. # some people rename them; so instead we look at the file content.
  15305. # Grep'ing the first line is not enough: some people post-process
  15306. # each Makefile.in and add a new line on top of each file to say so.
  15307. # Grep'ing the whole file is not good either: AIX grep has a line
  15308. # limit of 2048, but all sed's we know have understand at least 4000.
  15309. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15310. dirpart=`$as_dirname -- "$mf" ||
  15311. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15312. X"$mf" : 'X\(//\)[^/]' \| \
  15313. X"$mf" : 'X\(//\)$' \| \
  15314. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15315. $as_echo X"$mf" |
  15316. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15317. s//\1/
  15318. q
  15319. }
  15320. /^X\(\/\/\)[^/].*/{
  15321. s//\1/
  15322. q
  15323. }
  15324. /^X\(\/\/\)$/{
  15325. s//\1/
  15326. q
  15327. }
  15328. /^X\(\/\).*/{
  15329. s//\1/
  15330. q
  15331. }
  15332. s/.*/./; q'`
  15333. else
  15334. continue
  15335. fi
  15336. # Extract the definition of DEPDIR, am__include, and am__quote
  15337. # from the Makefile without running `make'.
  15338. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15339. test -z "$DEPDIR" && continue
  15340. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15341. test -z "am__include" && continue
  15342. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15343. # When using ansi2knr, U may be empty or an underscore; expand it
  15344. U=`sed -n 's/^U = //p' < "$mf"`
  15345. # Find all dependency output files, they are included files with
  15346. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15347. # simplest approach to changing $(DEPDIR) to its actual value in the
  15348. # expansion.
  15349. for file in `sed -n "
  15350. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15351. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15352. # Make sure the directory exists.
  15353. test -f "$dirpart/$file" && continue
  15354. fdir=`$as_dirname -- "$file" ||
  15355. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15356. X"$file" : 'X\(//\)[^/]' \| \
  15357. X"$file" : 'X\(//\)$' \| \
  15358. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15359. $as_echo X"$file" |
  15360. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15361. s//\1/
  15362. q
  15363. }
  15364. /^X\(\/\/\)[^/].*/{
  15365. s//\1/
  15366. q
  15367. }
  15368. /^X\(\/\/\)$/{
  15369. s//\1/
  15370. q
  15371. }
  15372. /^X\(\/\).*/{
  15373. s//\1/
  15374. q
  15375. }
  15376. s/.*/./; q'`
  15377. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15378. # echo "creating $dirpart/$file"
  15379. echo '# dummy' > "$dirpart/$file"
  15380. done
  15381. done
  15382. }
  15383. ;;
  15384. "libtool":C)
  15385. # See if we are running on zsh, and set the options which allow our
  15386. # commands through without removal of \ escapes.
  15387. if test -n "${ZSH_VERSION+set}" ; then
  15388. setopt NO_GLOB_SUBST
  15389. fi
  15390. cfgfile="${ofile}T"
  15391. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15392. $RM "$cfgfile"
  15393. cat <<_LT_EOF >> "$cfgfile"
  15394. #! $SHELL
  15395. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15396. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15397. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15398. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15399. #
  15400. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15401. # 2006, 2007, 2008 Free Software Foundation, Inc.
  15402. # Written by Gordon Matzigkeit, 1996
  15403. #
  15404. # This file is part of GNU Libtool.
  15405. #
  15406. # GNU Libtool is free software; you can redistribute it and/or
  15407. # modify it under the terms of the GNU General Public License as
  15408. # published by the Free Software Foundation; either version 2 of
  15409. # the License, or (at your option) any later version.
  15410. #
  15411. # As a special exception to the GNU General Public License,
  15412. # if you distribute this file as part of a program or library that
  15413. # is built using GNU Libtool, you may include this file under the
  15414. # same distribution terms that you use for the rest of that program.
  15415. #
  15416. # GNU Libtool is distributed in the hope that it will be useful,
  15417. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15418. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15419. # GNU General Public License for more details.
  15420. #
  15421. # You should have received a copy of the GNU General Public License
  15422. # along with GNU Libtool; see the file COPYING. If not, a copy
  15423. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15424. # obtained by writing to the Free Software Foundation, Inc.,
  15425. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15426. # The names of the tagged configurations supported by this script.
  15427. available_tags="CXX "
  15428. # ### BEGIN LIBTOOL CONFIG
  15429. # Whether or not to build shared libraries.
  15430. build_libtool_libs=$enable_shared
  15431. # Whether or not to build static libraries.
  15432. build_old_libs=$enable_static
  15433. # Which release of libtool.m4 was used?
  15434. macro_version=$macro_version
  15435. macro_revision=$macro_revision
  15436. # What type of objects to build.
  15437. pic_mode=$pic_mode
  15438. # Whether or not to optimize for fast installation.
  15439. fast_install=$enable_fast_install
  15440. # The host system.
  15441. host_alias=$host_alias
  15442. host=$host
  15443. host_os=$host_os
  15444. # The build system.
  15445. build_alias=$build_alias
  15446. build=$build
  15447. build_os=$build_os
  15448. # A sed program that does not truncate output.
  15449. SED=$lt_SED
  15450. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15451. Xsed="\$SED -e 1s/^X//"
  15452. # A grep program that handles long lines.
  15453. GREP=$lt_GREP
  15454. # An ERE matcher.
  15455. EGREP=$lt_EGREP
  15456. # A literal string matcher.
  15457. FGREP=$lt_FGREP
  15458. # A BSD- or MS-compatible name lister.
  15459. NM=$lt_NM
  15460. # Whether we need soft or hard links.
  15461. LN_S=$lt_LN_S
  15462. # What is the maximum length of a command?
  15463. max_cmd_len=$max_cmd_len
  15464. # Object file suffix (normally "o").
  15465. objext=$ac_objext
  15466. # Executable file suffix (normally "").
  15467. exeext=$exeext
  15468. # whether the shell understands "unset".
  15469. lt_unset=$lt_unset
  15470. # turn spaces into newlines.
  15471. SP2NL=$lt_lt_SP2NL
  15472. # turn newlines into spaces.
  15473. NL2SP=$lt_lt_NL2SP
  15474. # How to create reloadable object files.
  15475. reload_flag=$lt_reload_flag
  15476. reload_cmds=$lt_reload_cmds
  15477. # An object symbol dumper.
  15478. OBJDUMP=$lt_OBJDUMP
  15479. # Method to check whether dependent libraries are shared objects.
  15480. deplibs_check_method=$lt_deplibs_check_method
  15481. # Command to use when deplibs_check_method == "file_magic".
  15482. file_magic_cmd=$lt_file_magic_cmd
  15483. # The archiver.
  15484. AR=$lt_AR
  15485. AR_FLAGS=$lt_AR_FLAGS
  15486. # A symbol stripping program.
  15487. STRIP=$lt_STRIP
  15488. # Commands used to install an old-style archive.
  15489. RANLIB=$lt_RANLIB
  15490. old_postinstall_cmds=$lt_old_postinstall_cmds
  15491. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15492. # A C compiler.
  15493. LTCC=$lt_CC
  15494. # LTCC compiler flags.
  15495. LTCFLAGS=$lt_CFLAGS
  15496. # Take the output of nm and produce a listing of raw symbols and C names.
  15497. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15498. # Transform the output of nm in a proper C declaration.
  15499. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15500. # Transform the output of nm in a C name address pair.
  15501. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15502. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15503. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15504. # The name of the directory that contains temporary libtool files.
  15505. objdir=$objdir
  15506. # Shell to use when invoking shell scripts.
  15507. SHELL=$lt_SHELL
  15508. # An echo program that does not interpret backslashes.
  15509. ECHO=$lt_ECHO
  15510. # Used to examine libraries when file_magic_cmd begins with "file".
  15511. MAGIC_CMD=$MAGIC_CMD
  15512. # Must we lock files when doing compilation?
  15513. need_locks=$lt_need_locks
  15514. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15515. DSYMUTIL=$lt_DSYMUTIL
  15516. # Tool to change global to local symbols on Mac OS X.
  15517. NMEDIT=$lt_NMEDIT
  15518. # Tool to manipulate fat objects and archives on Mac OS X.
  15519. LIPO=$lt_LIPO
  15520. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15521. OTOOL=$lt_OTOOL
  15522. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15523. OTOOL64=$lt_OTOOL64
  15524. # Old archive suffix (normally "a").
  15525. libext=$libext
  15526. # Shared library suffix (normally ".so").
  15527. shrext_cmds=$lt_shrext_cmds
  15528. # The commands to extract the exported symbol list from a shared archive.
  15529. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15530. # Variables whose values should be saved in libtool wrapper scripts and
  15531. # restored at link time.
  15532. variables_saved_for_relink=$lt_variables_saved_for_relink
  15533. # Do we need the "lib" prefix for modules?
  15534. need_lib_prefix=$need_lib_prefix
  15535. # Do we need a version for libraries?
  15536. need_version=$need_version
  15537. # Library versioning type.
  15538. version_type=$version_type
  15539. # Shared library runtime path variable.
  15540. runpath_var=$runpath_var
  15541. # Shared library path variable.
  15542. shlibpath_var=$shlibpath_var
  15543. # Is shlibpath searched before the hard-coded library search path?
  15544. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15545. # Format of library name prefix.
  15546. libname_spec=$lt_libname_spec
  15547. # List of archive names. First name is the real one, the rest are links.
  15548. # The last name is the one that the linker finds with -lNAME
  15549. library_names_spec=$lt_library_names_spec
  15550. # The coded name of the library, if different from the real name.
  15551. soname_spec=$lt_soname_spec
  15552. # Command to use after installation of a shared archive.
  15553. postinstall_cmds=$lt_postinstall_cmds
  15554. # Command to use after uninstallation of a shared archive.
  15555. postuninstall_cmds=$lt_postuninstall_cmds
  15556. # Commands used to finish a libtool library installation in a directory.
  15557. finish_cmds=$lt_finish_cmds
  15558. # As "finish_cmds", except a single script fragment to be evaled but
  15559. # not shown.
  15560. finish_eval=$lt_finish_eval
  15561. # Whether we should hardcode library paths into libraries.
  15562. hardcode_into_libs=$hardcode_into_libs
  15563. # Compile-time system search path for libraries.
  15564. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15565. # Run-time system search path for libraries.
  15566. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15567. # Whether dlopen is supported.
  15568. dlopen_support=$enable_dlopen
  15569. # Whether dlopen of programs is supported.
  15570. dlopen_self=$enable_dlopen_self
  15571. # Whether dlopen of statically linked programs is supported.
  15572. dlopen_self_static=$enable_dlopen_self_static
  15573. # Commands to strip libraries.
  15574. old_striplib=$lt_old_striplib
  15575. striplib=$lt_striplib
  15576. # The linker used to build libraries.
  15577. LD=$lt_LD
  15578. # Commands used to build an old-style archive.
  15579. old_archive_cmds=$lt_old_archive_cmds
  15580. # A language specific compiler.
  15581. CC=$lt_compiler
  15582. # Is the compiler the GNU compiler?
  15583. with_gcc=$GCC
  15584. # Compiler flag to turn off builtin functions.
  15585. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15586. # How to pass a linker flag through the compiler.
  15587. wl=$lt_lt_prog_compiler_wl
  15588. # Additional compiler flags for building library objects.
  15589. pic_flag=$lt_lt_prog_compiler_pic
  15590. # Compiler flag to prevent dynamic linking.
  15591. link_static_flag=$lt_lt_prog_compiler_static
  15592. # Does compiler simultaneously support -c and -o options?
  15593. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15594. # Whether or not to add -lc for building shared libraries.
  15595. build_libtool_need_lc=$archive_cmds_need_lc
  15596. # Whether or not to disallow shared libs when runtime libs are static.
  15597. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15598. # Compiler flag to allow reflexive dlopens.
  15599. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  15600. # Compiler flag to generate shared objects directly from archives.
  15601. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  15602. # Whether the compiler copes with passing no objects directly.
  15603. compiler_needs_object=$lt_compiler_needs_object
  15604. # Create an old-style archive from a shared archive.
  15605. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  15606. # Create a temporary old-style archive to link instead of a shared archive.
  15607. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  15608. # Commands used to build a shared archive.
  15609. archive_cmds=$lt_archive_cmds
  15610. archive_expsym_cmds=$lt_archive_expsym_cmds
  15611. # Commands used to build a loadable module if different from building
  15612. # a shared archive.
  15613. module_cmds=$lt_module_cmds
  15614. module_expsym_cmds=$lt_module_expsym_cmds
  15615. # Whether we are building with GNU ld or not.
  15616. with_gnu_ld=$lt_with_gnu_ld
  15617. # Flag that allows shared libraries with undefined symbols to be built.
  15618. allow_undefined_flag=$lt_allow_undefined_flag
  15619. # Flag that enforces no undefined symbols.
  15620. no_undefined_flag=$lt_no_undefined_flag
  15621. # Flag to hardcode \$libdir into a binary during linking.
  15622. # This must work even if \$libdir does not exist
  15623. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  15624. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15625. # during linking. This must work even if \$libdir does not exist.
  15626. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  15627. # Whether we need a single "-rpath" flag with a separated argument.
  15628. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  15629. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15630. # DIR into the resulting binary.
  15631. hardcode_direct=$hardcode_direct
  15632. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15633. # DIR into the resulting binary and the resulting library dependency is
  15634. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15635. # library is relocated.
  15636. hardcode_direct_absolute=$hardcode_direct_absolute
  15637. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15638. # into the resulting binary.
  15639. hardcode_minus_L=$hardcode_minus_L
  15640. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15641. # into the resulting binary.
  15642. hardcode_shlibpath_var=$hardcode_shlibpath_var
  15643. # Set to "yes" if building a shared library automatically hardcodes DIR
  15644. # into the library and all subsequent libraries and executables linked
  15645. # against it.
  15646. hardcode_automatic=$hardcode_automatic
  15647. # Set to yes if linker adds runtime paths of dependent libraries
  15648. # to runtime path list.
  15649. inherit_rpath=$inherit_rpath
  15650. # Whether libtool must link a program against all its dependency libraries.
  15651. link_all_deplibs=$link_all_deplibs
  15652. # Fix the shell variable \$srcfile for the compiler.
  15653. fix_srcfile_path=$lt_fix_srcfile_path
  15654. # Set to "yes" if exported symbols are required.
  15655. always_export_symbols=$always_export_symbols
  15656. # The commands to list exported symbols.
  15657. export_symbols_cmds=$lt_export_symbols_cmds
  15658. # Symbols that should not be listed in the preloaded symbols.
  15659. exclude_expsyms=$lt_exclude_expsyms
  15660. # Symbols that must always be exported.
  15661. include_expsyms=$lt_include_expsyms
  15662. # Commands necessary for linking programs (against libraries) with templates.
  15663. prelink_cmds=$lt_prelink_cmds
  15664. # Specify filename containing input files.
  15665. file_list_spec=$lt_file_list_spec
  15666. # How to hardcode a shared library path into an executable.
  15667. hardcode_action=$hardcode_action
  15668. # The directories searched by this compiler when creating a shared library.
  15669. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  15670. # Dependencies to place before and after the objects being linked to
  15671. # create a shared library.
  15672. predep_objects=$lt_predep_objects
  15673. postdep_objects=$lt_postdep_objects
  15674. predeps=$lt_predeps
  15675. postdeps=$lt_postdeps
  15676. # The library search path used internally by the compiler when linking
  15677. # a shared library.
  15678. compiler_lib_search_path=$lt_compiler_lib_search_path
  15679. # ### END LIBTOOL CONFIG
  15680. _LT_EOF
  15681. case $host_os in
  15682. aix3*)
  15683. cat <<\_LT_EOF >> "$cfgfile"
  15684. # AIX sometimes has problems with the GCC collect2 program. For some
  15685. # reason, if we set the COLLECT_NAMES environment variable, the problems
  15686. # vanish in a puff of smoke.
  15687. if test "X${COLLECT_NAMES+set}" != Xset; then
  15688. COLLECT_NAMES=
  15689. export COLLECT_NAMES
  15690. fi
  15691. _LT_EOF
  15692. ;;
  15693. esac
  15694. ltmain="$ac_aux_dir/ltmain.sh"
  15695. # We use sed instead of cat because bash on DJGPP gets confused if
  15696. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  15697. # text mode, it properly converts lines to CR/LF. This bash problem
  15698. # is reportedly fixed, but why not run on old versions too?
  15699. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  15700. || (rm -f "$cfgfile"; exit 1)
  15701. case $xsi_shell in
  15702. yes)
  15703. cat << \_LT_EOF >> "$cfgfile"
  15704. # func_dirname file append nondir_replacement
  15705. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15706. # otherwise set result to NONDIR_REPLACEMENT.
  15707. func_dirname ()
  15708. {
  15709. case ${1} in
  15710. */*) func_dirname_result="${1%/*}${2}" ;;
  15711. * ) func_dirname_result="${3}" ;;
  15712. esac
  15713. }
  15714. # func_basename file
  15715. func_basename ()
  15716. {
  15717. func_basename_result="${1##*/}"
  15718. }
  15719. # func_dirname_and_basename file append nondir_replacement
  15720. # perform func_basename and func_dirname in a single function
  15721. # call:
  15722. # dirname: Compute the dirname of FILE. If nonempty,
  15723. # add APPEND to the result, otherwise set result
  15724. # to NONDIR_REPLACEMENT.
  15725. # value returned in "$func_dirname_result"
  15726. # basename: Compute filename of FILE.
  15727. # value retuned in "$func_basename_result"
  15728. # Implementation must be kept synchronized with func_dirname
  15729. # and func_basename. For efficiency, we do not delegate to
  15730. # those functions but instead duplicate the functionality here.
  15731. func_dirname_and_basename ()
  15732. {
  15733. case ${1} in
  15734. */*) func_dirname_result="${1%/*}${2}" ;;
  15735. * ) func_dirname_result="${3}" ;;
  15736. esac
  15737. func_basename_result="${1##*/}"
  15738. }
  15739. # func_stripname prefix suffix name
  15740. # strip PREFIX and SUFFIX off of NAME.
  15741. # PREFIX and SUFFIX must not contain globbing or regex special
  15742. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15743. # dot (in which case that matches only a dot).
  15744. func_stripname ()
  15745. {
  15746. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  15747. # positional parameters, so assign one to ordinary parameter first.
  15748. func_stripname_result=${3}
  15749. func_stripname_result=${func_stripname_result#"${1}"}
  15750. func_stripname_result=${func_stripname_result%"${2}"}
  15751. }
  15752. # func_opt_split
  15753. func_opt_split ()
  15754. {
  15755. func_opt_split_opt=${1%%=*}
  15756. func_opt_split_arg=${1#*=}
  15757. }
  15758. # func_lo2o object
  15759. func_lo2o ()
  15760. {
  15761. case ${1} in
  15762. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  15763. *) func_lo2o_result=${1} ;;
  15764. esac
  15765. }
  15766. # func_xform libobj-or-source
  15767. func_xform ()
  15768. {
  15769. func_xform_result=${1%.*}.lo
  15770. }
  15771. # func_arith arithmetic-term...
  15772. func_arith ()
  15773. {
  15774. func_arith_result=$(( $* ))
  15775. }
  15776. # func_len string
  15777. # STRING may not start with a hyphen.
  15778. func_len ()
  15779. {
  15780. func_len_result=${#1}
  15781. }
  15782. _LT_EOF
  15783. ;;
  15784. *) # Bourne compatible functions.
  15785. cat << \_LT_EOF >> "$cfgfile"
  15786. # func_dirname file append nondir_replacement
  15787. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  15788. # otherwise set result to NONDIR_REPLACEMENT.
  15789. func_dirname ()
  15790. {
  15791. # Extract subdirectory from the argument.
  15792. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  15793. if test "X$func_dirname_result" = "X${1}"; then
  15794. func_dirname_result="${3}"
  15795. else
  15796. func_dirname_result="$func_dirname_result${2}"
  15797. fi
  15798. }
  15799. # func_basename file
  15800. func_basename ()
  15801. {
  15802. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  15803. }
  15804. # func_stripname prefix suffix name
  15805. # strip PREFIX and SUFFIX off of NAME.
  15806. # PREFIX and SUFFIX must not contain globbing or regex special
  15807. # characters, hashes, percent signs, but SUFFIX may contain a leading
  15808. # dot (in which case that matches only a dot).
  15809. # func_strip_suffix prefix name
  15810. func_stripname ()
  15811. {
  15812. case ${2} in
  15813. .*) func_stripname_result=`$ECHO "X${3}" \
  15814. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  15815. *) func_stripname_result=`$ECHO "X${3}" \
  15816. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  15817. esac
  15818. }
  15819. # sed scripts:
  15820. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  15821. my_sed_long_arg='1s/^-[^=]*=//'
  15822. # func_opt_split
  15823. func_opt_split ()
  15824. {
  15825. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  15826. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  15827. }
  15828. # func_lo2o object
  15829. func_lo2o ()
  15830. {
  15831. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  15832. }
  15833. # func_xform libobj-or-source
  15834. func_xform ()
  15835. {
  15836. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  15837. }
  15838. # func_arith arithmetic-term...
  15839. func_arith ()
  15840. {
  15841. func_arith_result=`expr "$@"`
  15842. }
  15843. # func_len string
  15844. # STRING may not start with a hyphen.
  15845. func_len ()
  15846. {
  15847. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  15848. }
  15849. _LT_EOF
  15850. esac
  15851. case $lt_shell_append in
  15852. yes)
  15853. cat << \_LT_EOF >> "$cfgfile"
  15854. # func_append var value
  15855. # Append VALUE to the end of shell variable VAR.
  15856. func_append ()
  15857. {
  15858. eval "$1+=\$2"
  15859. }
  15860. _LT_EOF
  15861. ;;
  15862. *)
  15863. cat << \_LT_EOF >> "$cfgfile"
  15864. # func_append var value
  15865. # Append VALUE to the end of shell variable VAR.
  15866. func_append ()
  15867. {
  15868. eval "$1=\$$1\$2"
  15869. }
  15870. _LT_EOF
  15871. ;;
  15872. esac
  15873. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  15874. || (rm -f "$cfgfile"; exit 1)
  15875. mv -f "$cfgfile" "$ofile" ||
  15876. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  15877. chmod +x "$ofile"
  15878. cat <<_LT_EOF >> "$ofile"
  15879. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  15880. # The linker used to build libraries.
  15881. LD=$lt_LD_CXX
  15882. # Commands used to build an old-style archive.
  15883. old_archive_cmds=$lt_old_archive_cmds_CXX
  15884. # A language specific compiler.
  15885. CC=$lt_compiler_CXX
  15886. # Is the compiler the GNU compiler?
  15887. with_gcc=$GCC_CXX
  15888. # Compiler flag to turn off builtin functions.
  15889. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  15890. # How to pass a linker flag through the compiler.
  15891. wl=$lt_lt_prog_compiler_wl_CXX
  15892. # Additional compiler flags for building library objects.
  15893. pic_flag=$lt_lt_prog_compiler_pic_CXX
  15894. # Compiler flag to prevent dynamic linking.
  15895. link_static_flag=$lt_lt_prog_compiler_static_CXX
  15896. # Does compiler simultaneously support -c and -o options?
  15897. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  15898. # Whether or not to add -lc for building shared libraries.
  15899. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  15900. # Whether or not to disallow shared libs when runtime libs are static.
  15901. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  15902. # Compiler flag to allow reflexive dlopens.
  15903. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  15904. # Compiler flag to generate shared objects directly from archives.
  15905. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  15906. # Whether the compiler copes with passing no objects directly.
  15907. compiler_needs_object=$lt_compiler_needs_object_CXX
  15908. # Create an old-style archive from a shared archive.
  15909. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  15910. # Create a temporary old-style archive to link instead of a shared archive.
  15911. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  15912. # Commands used to build a shared archive.
  15913. archive_cmds=$lt_archive_cmds_CXX
  15914. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  15915. # Commands used to build a loadable module if different from building
  15916. # a shared archive.
  15917. module_cmds=$lt_module_cmds_CXX
  15918. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  15919. # Whether we are building with GNU ld or not.
  15920. with_gnu_ld=$lt_with_gnu_ld_CXX
  15921. # Flag that allows shared libraries with undefined symbols to be built.
  15922. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  15923. # Flag that enforces no undefined symbols.
  15924. no_undefined_flag=$lt_no_undefined_flag_CXX
  15925. # Flag to hardcode \$libdir into a binary during linking.
  15926. # This must work even if \$libdir does not exist
  15927. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  15928. # If ld is used when linking, flag to hardcode \$libdir into a binary
  15929. # during linking. This must work even if \$libdir does not exist.
  15930. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  15931. # Whether we need a single "-rpath" flag with a separated argument.
  15932. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  15933. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15934. # DIR into the resulting binary.
  15935. hardcode_direct=$hardcode_direct_CXX
  15936. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  15937. # DIR into the resulting binary and the resulting library dependency is
  15938. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  15939. # library is relocated.
  15940. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  15941. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  15942. # into the resulting binary.
  15943. hardcode_minus_L=$hardcode_minus_L_CXX
  15944. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  15945. # into the resulting binary.
  15946. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  15947. # Set to "yes" if building a shared library automatically hardcodes DIR
  15948. # into the library and all subsequent libraries and executables linked
  15949. # against it.
  15950. hardcode_automatic=$hardcode_automatic_CXX
  15951. # Set to yes if linker adds runtime paths of dependent libraries
  15952. # to runtime path list.
  15953. inherit_rpath=$inherit_rpath_CXX
  15954. # Whether libtool must link a program against all its dependency libraries.
  15955. link_all_deplibs=$link_all_deplibs_CXX
  15956. # Fix the shell variable \$srcfile for the compiler.
  15957. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  15958. # Set to "yes" if exported symbols are required.
  15959. always_export_symbols=$always_export_symbols_CXX
  15960. # The commands to list exported symbols.
  15961. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  15962. # Symbols that should not be listed in the preloaded symbols.
  15963. exclude_expsyms=$lt_exclude_expsyms_CXX
  15964. # Symbols that must always be exported.
  15965. include_expsyms=$lt_include_expsyms_CXX
  15966. # Commands necessary for linking programs (against libraries) with templates.
  15967. prelink_cmds=$lt_prelink_cmds_CXX
  15968. # Specify filename containing input files.
  15969. file_list_spec=$lt_file_list_spec_CXX
  15970. # How to hardcode a shared library path into an executable.
  15971. hardcode_action=$hardcode_action_CXX
  15972. # The directories searched by this compiler when creating a shared library.
  15973. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  15974. # Dependencies to place before and after the objects being linked to
  15975. # create a shared library.
  15976. predep_objects=$lt_predep_objects_CXX
  15977. postdep_objects=$lt_postdep_objects_CXX
  15978. predeps=$lt_predeps_CXX
  15979. postdeps=$lt_postdeps_CXX
  15980. # The library search path used internally by the compiler when linking
  15981. # a shared library.
  15982. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  15983. # ### END LIBTOOL TAG CONFIG: CXX
  15984. _LT_EOF
  15985. ;;
  15986. esac
  15987. done # for ac_tag
  15988. as_fn_exit 0
  15989. _ACEOF
  15990. ac_clean_files=$ac_clean_files_save
  15991. test $ac_write_fail = 0 ||
  15992. as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  15993. # configure is writing to config.log, and then calls config.status.
  15994. # config.status does its own redirection, appending to config.log.
  15995. # Unfortunately, on DOS this fails, as config.log is still kept open
  15996. # by configure, so config.status won't be able to write to it; its
  15997. # output is simply discarded. So we exec the FD to /dev/null,
  15998. # effectively closing config.log, so it can be properly (re)opened and
  15999. # appended to by config.status. When coming back to configure, we
  16000. # need to make the FD available again.
  16001. if test "$no_create" != yes; then
  16002. ac_cs_success=:
  16003. ac_config_status_args=
  16004. test "$silent" = yes &&
  16005. ac_config_status_args="$ac_config_status_args --quiet"
  16006. exec 5>/dev/null
  16007. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16008. exec 5>>config.log
  16009. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16010. # would make configure fail if this is the last instruction.
  16011. $ac_cs_success || as_fn_exit $?
  16012. fi
  16013. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16014. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16015. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16016. fi