configure 604 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.67 for vcmi 0.84b.
  4. #
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
  8. # Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. case $0 in #((
  86. *[\\/]* ) as_myself=$0 ;;
  87. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  88. for as_dir in $PATH
  89. do
  90. IFS=$as_save_IFS
  91. test -z "$as_dir" && as_dir=.
  92. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  93. done
  94. IFS=$as_save_IFS
  95. ;;
  96. esac
  97. # We did not find ourselves, most probably we were run as `sh COMMAND'
  98. # in which case we are not to be found in the path.
  99. if test "x$as_myself" = x; then
  100. as_myself=$0
  101. fi
  102. if test ! -f "$as_myself"; then
  103. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  104. exit 1
  105. fi
  106. # Unset variables that we do not need and which cause bugs (e.g. in
  107. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  108. # suppresses any "Segmentation fault" message there. '((' could
  109. # trigger a bug in pdksh 5.2.14.
  110. for as_var in BASH_ENV ENV MAIL MAILPATH
  111. do eval test x\${$as_var+set} = xset \
  112. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  113. done
  114. PS1='$ '
  115. PS2='> '
  116. PS4='+ '
  117. # NLS nuisances.
  118. LC_ALL=C
  119. export LC_ALL
  120. LANGUAGE=C
  121. export LANGUAGE
  122. # CDPATH.
  123. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  124. if test "x$CONFIG_SHELL" = x; then
  125. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  126. emulate sh
  127. NULLCMD=:
  128. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  129. # is contrary to our usage. Disable this feature.
  130. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  131. setopt NO_GLOB_SUBST
  132. else
  133. case \`(set -o) 2>/dev/null\` in #(
  134. *posix*) :
  135. set -o posix ;; #(
  136. *) :
  137. ;;
  138. esac
  139. fi
  140. "
  141. as_required="as_fn_return () { (exit \$1); }
  142. as_fn_success () { as_fn_return 0; }
  143. as_fn_failure () { as_fn_return 1; }
  144. as_fn_ret_success () { return 0; }
  145. as_fn_ret_failure () { return 1; }
  146. exitcode=0
  147. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  148. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  149. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  150. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  151. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  152. else
  153. exitcode=1; echo positional parameters were not saved.
  154. fi
  155. test x\$exitcode = x0 || exit 1"
  156. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  157. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  158. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  159. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  160. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  161. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  162. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  163. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  164. PATH=/empty FPATH=/empty; export PATH FPATH
  165. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  166. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  167. test \$(( 1 + 1 )) = 2 || exit 1"
  168. if (eval "$as_required") 2>/dev/null; then :
  169. as_have_required=yes
  170. else
  171. as_have_required=no
  172. fi
  173. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  174. else
  175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  176. as_found=false
  177. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  178. do
  179. IFS=$as_save_IFS
  180. test -z "$as_dir" && as_dir=.
  181. as_found=:
  182. case $as_dir in #(
  183. /*)
  184. for as_base in sh bash ksh sh5; do
  185. # Try only shells that exist, to save several forks.
  186. as_shell=$as_dir/$as_base
  187. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  188. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  189. CONFIG_SHELL=$as_shell as_have_required=yes
  190. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  191. break 2
  192. fi
  193. fi
  194. done;;
  195. esac
  196. as_found=false
  197. done
  198. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  199. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  200. CONFIG_SHELL=$SHELL as_have_required=yes
  201. fi; }
  202. IFS=$as_save_IFS
  203. if test "x$CONFIG_SHELL" != x; then :
  204. # We cannot yet assume a decent shell, so we have to provide a
  205. # neutralization value for shells without unset; and this also
  206. # works around shells that cannot unset nonexistent variables.
  207. BASH_ENV=/dev/null
  208. ENV=/dev/null
  209. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  210. export CONFIG_SHELL
  211. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  212. fi
  213. if test x$as_have_required = xno; then :
  214. $as_echo "$0: This script requires a shell more modern than all"
  215. $as_echo "$0: the shells that I found on your system."
  216. if test x${ZSH_VERSION+set} = xset ; then
  217. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  218. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  219. else
  220. $as_echo "$0: Please tell [email protected] about your system,
  221. $0: including any error possibly output before this
  222. $0: message. Then install a modern shell, or manually run
  223. $0: the script under such a shell if you do have one."
  224. fi
  225. exit 1
  226. fi
  227. fi
  228. fi
  229. SHELL=${CONFIG_SHELL-/bin/sh}
  230. export SHELL
  231. # Unset more variables known to interfere with behavior of common tools.
  232. CLICOLOR_FORCE= GREP_OPTIONS=
  233. unset CLICOLOR_FORCE GREP_OPTIONS
  234. ## --------------------- ##
  235. ## M4sh Shell Functions. ##
  236. ## --------------------- ##
  237. # as_fn_unset VAR
  238. # ---------------
  239. # Portably unset VAR.
  240. as_fn_unset ()
  241. {
  242. { eval $1=; unset $1;}
  243. }
  244. as_unset=as_fn_unset
  245. # as_fn_set_status STATUS
  246. # -----------------------
  247. # Set $? to STATUS, without forking.
  248. as_fn_set_status ()
  249. {
  250. return $1
  251. } # as_fn_set_status
  252. # as_fn_exit STATUS
  253. # -----------------
  254. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  255. as_fn_exit ()
  256. {
  257. set +e
  258. as_fn_set_status $1
  259. exit $1
  260. } # as_fn_exit
  261. # as_fn_mkdir_p
  262. # -------------
  263. # Create "$as_dir" as a directory, including parents if necessary.
  264. as_fn_mkdir_p ()
  265. {
  266. case $as_dir in #(
  267. -*) as_dir=./$as_dir;;
  268. esac
  269. test -d "$as_dir" || eval $as_mkdir_p || {
  270. as_dirs=
  271. while :; do
  272. case $as_dir in #(
  273. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  274. *) as_qdir=$as_dir;;
  275. esac
  276. as_dirs="'$as_qdir' $as_dirs"
  277. as_dir=`$as_dirname -- "$as_dir" ||
  278. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  279. X"$as_dir" : 'X\(//\)[^/]' \| \
  280. X"$as_dir" : 'X\(//\)$' \| \
  281. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  282. $as_echo X"$as_dir" |
  283. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\/\)[^/].*/{
  288. s//\1/
  289. q
  290. }
  291. /^X\(\/\/\)$/{
  292. s//\1/
  293. q
  294. }
  295. /^X\(\/\).*/{
  296. s//\1/
  297. q
  298. }
  299. s/.*/./; q'`
  300. test -d "$as_dir" && break
  301. done
  302. test -z "$as_dirs" || eval "mkdir $as_dirs"
  303. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  304. } # as_fn_mkdir_p
  305. # as_fn_append VAR VALUE
  306. # ----------------------
  307. # Append the text in VALUE to the end of the definition contained in VAR. Take
  308. # advantage of any shell optimizations that allow amortized linear growth over
  309. # repeated appends, instead of the typical quadratic growth present in naive
  310. # implementations.
  311. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  312. eval 'as_fn_append ()
  313. {
  314. eval $1+=\$2
  315. }'
  316. else
  317. as_fn_append ()
  318. {
  319. eval $1=\$$1\$2
  320. }
  321. fi # as_fn_append
  322. # as_fn_arith ARG...
  323. # ------------------
  324. # Perform arithmetic evaluation on the ARGs, and store the result in the
  325. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  326. # must be portable across $(()) and expr.
  327. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  328. eval 'as_fn_arith ()
  329. {
  330. as_val=$(( $* ))
  331. }'
  332. else
  333. as_fn_arith ()
  334. {
  335. as_val=`expr "$@" || test $? -eq 1`
  336. }
  337. fi # as_fn_arith
  338. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  339. # ----------------------------------------
  340. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  341. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  342. # script with STATUS, using 1 if that was 0.
  343. as_fn_error ()
  344. {
  345. as_status=$1; test $as_status -eq 0 && as_status=1
  346. if test "$4"; then
  347. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  348. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  349. fi
  350. $as_echo "$as_me: error: $2" >&2
  351. as_fn_exit $as_status
  352. } # as_fn_error
  353. if expr a : '\(a\)' >/dev/null 2>&1 &&
  354. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  355. as_expr=expr
  356. else
  357. as_expr=false
  358. fi
  359. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  360. as_basename=basename
  361. else
  362. as_basename=false
  363. fi
  364. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  365. as_dirname=dirname
  366. else
  367. as_dirname=false
  368. fi
  369. as_me=`$as_basename -- "$0" ||
  370. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  371. X"$0" : 'X\(//\)$' \| \
  372. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  373. $as_echo X/"$0" |
  374. sed '/^.*\/\([^/][^/]*\)\/*$/{
  375. s//\1/
  376. q
  377. }
  378. /^X\/\(\/\/\)$/{
  379. s//\1/
  380. q
  381. }
  382. /^X\/\(\/\).*/{
  383. s//\1/
  384. q
  385. }
  386. s/.*/./; q'`
  387. # Avoid depending upon Character Ranges.
  388. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  389. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  390. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  391. as_cr_digits='0123456789'
  392. as_cr_alnum=$as_cr_Letters$as_cr_digits
  393. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  394. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  395. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  396. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  397. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  398. sed -n '
  399. p
  400. /[$]LINENO/=
  401. ' <$as_myself |
  402. sed '
  403. s/[$]LINENO.*/&-/
  404. t lineno
  405. b
  406. :lineno
  407. N
  408. :loop
  409. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  410. t loop
  411. s/-\n.*//
  412. ' >$as_me.lineno &&
  413. chmod +x "$as_me.lineno" ||
  414. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  415. # Don't try to exec as it changes $[0], causing all sort of problems
  416. # (the dirname of $[0] is not the place where we might find the
  417. # original and so on. Autoconf is especially sensitive to this).
  418. . "./$as_me.lineno"
  419. # Exit status is that of the last command.
  420. exit
  421. }
  422. ECHO_C= ECHO_N= ECHO_T=
  423. case `echo -n x` in #(((((
  424. -n*)
  425. case `echo 'xy\c'` in
  426. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  427. xy) ECHO_C='\c';;
  428. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  429. ECHO_T=' ';;
  430. esac;;
  431. *)
  432. ECHO_N='-n';;
  433. esac
  434. rm -f conf$$ conf$$.exe conf$$.file
  435. if test -d conf$$.dir; then
  436. rm -f conf$$.dir/conf$$.file
  437. else
  438. rm -f conf$$.dir
  439. mkdir conf$$.dir 2>/dev/null
  440. fi
  441. if (echo >conf$$.file) 2>/dev/null; then
  442. if ln -s conf$$.file conf$$ 2>/dev/null; then
  443. as_ln_s='ln -s'
  444. # ... but there are two gotchas:
  445. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  446. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  447. # In both cases, we have to default to `cp -p'.
  448. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  449. as_ln_s='cp -p'
  450. elif ln conf$$.file conf$$ 2>/dev/null; then
  451. as_ln_s=ln
  452. else
  453. as_ln_s='cp -p'
  454. fi
  455. else
  456. as_ln_s='cp -p'
  457. fi
  458. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  459. rmdir conf$$.dir 2>/dev/null
  460. if mkdir -p . 2>/dev/null; then
  461. as_mkdir_p='mkdir -p "$as_dir"'
  462. else
  463. test -d ./-p && rmdir ./-p
  464. as_mkdir_p=false
  465. fi
  466. if test -x / >/dev/null 2>&1; then
  467. as_test_x='test -x'
  468. else
  469. if ls -dL / >/dev/null 2>&1; then
  470. as_ls_L_option=L
  471. else
  472. as_ls_L_option=
  473. fi
  474. as_test_x='
  475. eval sh -c '\''
  476. if test -d "$1"; then
  477. test -d "$1/.";
  478. else
  479. case $1 in #(
  480. -*)set "./$1";;
  481. esac;
  482. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  483. ???[sx]*):;;*)false;;esac;fi
  484. '\'' sh
  485. '
  486. fi
  487. as_executable_p=$as_test_x
  488. # Sed expression to map a string onto a valid CPP name.
  489. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  490. # Sed expression to map a string onto a valid variable name.
  491. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  492. SHELL=${CONFIG_SHELL-/bin/sh}
  493. test -n "$DJDIR" || exec 7<&0 </dev/null
  494. exec 6>&1
  495. # Name of the host.
  496. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  497. # so uname gets run too.
  498. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  499. #
  500. # Initializations.
  501. #
  502. ac_default_prefix=/usr/local
  503. ac_clean_files=
  504. ac_config_libobj_dir=.
  505. LIBOBJS=
  506. cross_compiling=no
  507. subdirs=
  508. MFLAGS=
  509. MAKEFLAGS=
  510. # Identity of this package.
  511. PACKAGE_NAME='vcmi'
  512. PACKAGE_TARNAME='vcmi'
  513. PACKAGE_VERSION='0.84b'
  514. PACKAGE_STRING='vcmi 0.84b'
  515. PACKAGE_BUGREPORT=''
  516. PACKAGE_URL=''
  517. # Factoring default headers for most tests.
  518. ac_includes_default="\
  519. #include <stdio.h>
  520. #ifdef HAVE_SYS_TYPES_H
  521. # include <sys/types.h>
  522. #endif
  523. #ifdef HAVE_SYS_STAT_H
  524. # include <sys/stat.h>
  525. #endif
  526. #ifdef STDC_HEADERS
  527. # include <stdlib.h>
  528. # include <stddef.h>
  529. #else
  530. # ifdef HAVE_STDLIB_H
  531. # include <stdlib.h>
  532. # endif
  533. #endif
  534. #ifdef HAVE_STRING_H
  535. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  536. # include <memory.h>
  537. # endif
  538. # include <string.h>
  539. #endif
  540. #ifdef HAVE_STRINGS_H
  541. # include <strings.h>
  542. #endif
  543. #ifdef HAVE_INTTYPES_H
  544. # include <inttypes.h>
  545. #endif
  546. #ifdef HAVE_STDINT_H
  547. # include <stdint.h>
  548. #endif
  549. #ifdef HAVE_UNISTD_H
  550. # include <unistd.h>
  551. #endif"
  552. ac_subst_vars='am__EXEEXT_FALSE
  553. am__EXEEXT_TRUE
  554. LTLIBOBJS
  555. LIBOBJS
  556. VCMI_SCRIPTING_LIBS_DIR
  557. VCMI_AI_LIBS_DIR
  558. FFMPEG_CXXFLAGS
  559. FFMPEG_LIBS
  560. SDL_CXXFLAGS
  561. SDL_LIBS
  562. SDL_CFLAGS
  563. SDL_CONFIG
  564. BOOST_PROGRAM_OPTIONS_LIB
  565. BOOST_IOSTREAMS_LIB
  566. BOOST_THREAD_LIB
  567. BOOST_FILESYSTEM_LIB
  568. BOOST_SYSTEM_LIB
  569. BOOST_LDFLAGS
  570. BOOST_CPPFLAGS
  571. AM_BACKSLASH
  572. AM_DEFAULT_VERBOSITY
  573. CXXCPP
  574. CPP
  575. OTOOL64
  576. OTOOL
  577. LIPO
  578. NMEDIT
  579. DSYMUTIL
  580. MANIFEST_TOOL
  581. RANLIB
  582. ac_ct_AR
  583. AR
  584. DLLTOOL
  585. OBJDUMP
  586. LN_S
  587. NM
  588. ac_ct_DUMPBIN
  589. DUMPBIN
  590. LD
  591. FGREP
  592. EGREP
  593. GREP
  594. SED
  595. am__fastdepCC_FALSE
  596. am__fastdepCC_TRUE
  597. CCDEPMODE
  598. ac_ct_CC
  599. CFLAGS
  600. CC
  601. host_os
  602. host_vendor
  603. host_cpu
  604. host
  605. build_os
  606. build_vendor
  607. build_cpu
  608. build
  609. LIBTOOL
  610. am__fastdepCXX_FALSE
  611. am__fastdepCXX_TRUE
  612. CXXDEPMODE
  613. AMDEPBACKSLASH
  614. AMDEP_FALSE
  615. AMDEP_TRUE
  616. am__quote
  617. am__include
  618. DEPDIR
  619. OBJEXT
  620. EXEEXT
  621. ac_ct_CXX
  622. CPPFLAGS
  623. LDFLAGS
  624. CXXFLAGS
  625. CXX
  626. am__untar
  627. am__tar
  628. AMTAR
  629. am__leading_dot
  630. SET_MAKE
  631. AWK
  632. mkdir_p
  633. MKDIR_P
  634. INSTALL_STRIP_PROGRAM
  635. STRIP
  636. install_sh
  637. MAKEINFO
  638. AUTOHEADER
  639. AUTOMAKE
  640. AUTOCONF
  641. ACLOCAL
  642. VERSION
  643. PACKAGE
  644. CYGPATH_W
  645. am__isrc
  646. INSTALL_DATA
  647. INSTALL_SCRIPT
  648. INSTALL_PROGRAM
  649. target_alias
  650. host_alias
  651. build_alias
  652. LIBS
  653. ECHO_T
  654. ECHO_N
  655. ECHO_C
  656. DEFS
  657. mandir
  658. localedir
  659. libdir
  660. psdir
  661. pdfdir
  662. dvidir
  663. htmldir
  664. infodir
  665. docdir
  666. oldincludedir
  667. includedir
  668. localstatedir
  669. sharedstatedir
  670. sysconfdir
  671. datadir
  672. datarootdir
  673. libexecdir
  674. sbindir
  675. bindir
  676. program_transform_name
  677. prefix
  678. exec_prefix
  679. PACKAGE_URL
  680. PACKAGE_BUGREPORT
  681. PACKAGE_STRING
  682. PACKAGE_VERSION
  683. PACKAGE_TARNAME
  684. PACKAGE_NAME
  685. PATH_SEPARATOR
  686. SHELL'
  687. ac_subst_files=''
  688. ac_user_opts='
  689. enable_option_checking
  690. enable_dependency_tracking
  691. enable_shared
  692. enable_static
  693. with_pic
  694. enable_fast_install
  695. with_gnu_ld
  696. with_sysroot
  697. enable_libtool_lock
  698. enable_silent_rules
  699. enable_debug
  700. with_boost
  701. with_boost_libdir
  702. with_boost_system
  703. with_boost_filesystem
  704. with_boost_thread
  705. with_boost_iostreams
  706. with_boost_program_options
  707. with_sdl_prefix
  708. with_sdl_exec_prefix
  709. enable_sdltest
  710. '
  711. ac_precious_vars='build_alias
  712. host_alias
  713. target_alias
  714. CXX
  715. CXXFLAGS
  716. LDFLAGS
  717. LIBS
  718. CPPFLAGS
  719. CCC
  720. CC
  721. CFLAGS
  722. CPP
  723. CXXCPP'
  724. # Initialize some variables set by options.
  725. ac_init_help=
  726. ac_init_version=false
  727. ac_unrecognized_opts=
  728. ac_unrecognized_sep=
  729. # The variables have the same names as the options, with
  730. # dashes changed to underlines.
  731. cache_file=/dev/null
  732. exec_prefix=NONE
  733. no_create=
  734. no_recursion=
  735. prefix=NONE
  736. program_prefix=NONE
  737. program_suffix=NONE
  738. program_transform_name=s,x,x,
  739. silent=
  740. site=
  741. srcdir=
  742. verbose=
  743. x_includes=NONE
  744. x_libraries=NONE
  745. # Installation directory options.
  746. # These are left unexpanded so users can "make install exec_prefix=/foo"
  747. # and all the variables that are supposed to be based on exec_prefix
  748. # by default will actually change.
  749. # Use braces instead of parens because sh, perl, etc. also accept them.
  750. # (The list follows the same order as the GNU Coding Standards.)
  751. bindir='${exec_prefix}/bin'
  752. sbindir='${exec_prefix}/sbin'
  753. libexecdir='${exec_prefix}/libexec'
  754. datarootdir='${prefix}/share'
  755. datadir='${datarootdir}'
  756. sysconfdir='${prefix}/etc'
  757. sharedstatedir='${prefix}/com'
  758. localstatedir='${prefix}/var'
  759. includedir='${prefix}/include'
  760. oldincludedir='/usr/include'
  761. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  762. infodir='${datarootdir}/info'
  763. htmldir='${docdir}'
  764. dvidir='${docdir}'
  765. pdfdir='${docdir}'
  766. psdir='${docdir}'
  767. libdir='${exec_prefix}/lib'
  768. localedir='${datarootdir}/locale'
  769. mandir='${datarootdir}/man'
  770. ac_prev=
  771. ac_dashdash=
  772. for ac_option
  773. do
  774. # If the previous option needs an argument, assign it.
  775. if test -n "$ac_prev"; then
  776. eval $ac_prev=\$ac_option
  777. ac_prev=
  778. continue
  779. fi
  780. case $ac_option in
  781. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  782. *=) ac_optarg= ;;
  783. *) ac_optarg=yes ;;
  784. esac
  785. # Accept the important Cygnus configure options, so we can diagnose typos.
  786. case $ac_dashdash$ac_option in
  787. --)
  788. ac_dashdash=yes ;;
  789. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  790. ac_prev=bindir ;;
  791. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  792. bindir=$ac_optarg ;;
  793. -build | --build | --buil | --bui | --bu)
  794. ac_prev=build_alias ;;
  795. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  796. build_alias=$ac_optarg ;;
  797. -cache-file | --cache-file | --cache-fil | --cache-fi \
  798. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  799. ac_prev=cache_file ;;
  800. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  801. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  802. cache_file=$ac_optarg ;;
  803. --config-cache | -C)
  804. cache_file=config.cache ;;
  805. -datadir | --datadir | --datadi | --datad)
  806. ac_prev=datadir ;;
  807. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  808. datadir=$ac_optarg ;;
  809. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  810. | --dataroo | --dataro | --datar)
  811. ac_prev=datarootdir ;;
  812. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  813. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  814. datarootdir=$ac_optarg ;;
  815. -disable-* | --disable-*)
  816. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  817. # Reject names that are not valid shell variable names.
  818. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  819. as_fn_error $? "invalid feature name: $ac_useropt"
  820. ac_useropt_orig=$ac_useropt
  821. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  822. case $ac_user_opts in
  823. *"
  824. "enable_$ac_useropt"
  825. "*) ;;
  826. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  827. ac_unrecognized_sep=', ';;
  828. esac
  829. eval enable_$ac_useropt=no ;;
  830. -docdir | --docdir | --docdi | --doc | --do)
  831. ac_prev=docdir ;;
  832. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  833. docdir=$ac_optarg ;;
  834. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  835. ac_prev=dvidir ;;
  836. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  837. dvidir=$ac_optarg ;;
  838. -enable-* | --enable-*)
  839. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  840. # Reject names that are not valid shell variable names.
  841. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  842. as_fn_error $? "invalid feature name: $ac_useropt"
  843. ac_useropt_orig=$ac_useropt
  844. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  845. case $ac_user_opts in
  846. *"
  847. "enable_$ac_useropt"
  848. "*) ;;
  849. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  850. ac_unrecognized_sep=', ';;
  851. esac
  852. eval enable_$ac_useropt=\$ac_optarg ;;
  853. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  854. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  855. | --exec | --exe | --ex)
  856. ac_prev=exec_prefix ;;
  857. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  858. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  859. | --exec=* | --exe=* | --ex=*)
  860. exec_prefix=$ac_optarg ;;
  861. -gas | --gas | --ga | --g)
  862. # Obsolete; use --with-gas.
  863. with_gas=yes ;;
  864. -help | --help | --hel | --he | -h)
  865. ac_init_help=long ;;
  866. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  867. ac_init_help=recursive ;;
  868. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  869. ac_init_help=short ;;
  870. -host | --host | --hos | --ho)
  871. ac_prev=host_alias ;;
  872. -host=* | --host=* | --hos=* | --ho=*)
  873. host_alias=$ac_optarg ;;
  874. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  875. ac_prev=htmldir ;;
  876. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  877. | --ht=*)
  878. htmldir=$ac_optarg ;;
  879. -includedir | --includedir | --includedi | --included | --include \
  880. | --includ | --inclu | --incl | --inc)
  881. ac_prev=includedir ;;
  882. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  883. | --includ=* | --inclu=* | --incl=* | --inc=*)
  884. includedir=$ac_optarg ;;
  885. -infodir | --infodir | --infodi | --infod | --info | --inf)
  886. ac_prev=infodir ;;
  887. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  888. infodir=$ac_optarg ;;
  889. -libdir | --libdir | --libdi | --libd)
  890. ac_prev=libdir ;;
  891. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  892. libdir=$ac_optarg ;;
  893. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  894. | --libexe | --libex | --libe)
  895. ac_prev=libexecdir ;;
  896. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  897. | --libexe=* | --libex=* | --libe=*)
  898. libexecdir=$ac_optarg ;;
  899. -localedir | --localedir | --localedi | --localed | --locale)
  900. ac_prev=localedir ;;
  901. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  902. localedir=$ac_optarg ;;
  903. -localstatedir | --localstatedir | --localstatedi | --localstated \
  904. | --localstate | --localstat | --localsta | --localst | --locals)
  905. ac_prev=localstatedir ;;
  906. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  907. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  908. localstatedir=$ac_optarg ;;
  909. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  910. ac_prev=mandir ;;
  911. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  912. mandir=$ac_optarg ;;
  913. -nfp | --nfp | --nf)
  914. # Obsolete; use --without-fp.
  915. with_fp=no ;;
  916. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  917. | --no-cr | --no-c | -n)
  918. no_create=yes ;;
  919. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  920. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  921. no_recursion=yes ;;
  922. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  923. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  924. | --oldin | --oldi | --old | --ol | --o)
  925. ac_prev=oldincludedir ;;
  926. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  927. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  928. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  929. oldincludedir=$ac_optarg ;;
  930. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  931. ac_prev=prefix ;;
  932. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  933. prefix=$ac_optarg ;;
  934. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  935. | --program-pre | --program-pr | --program-p)
  936. ac_prev=program_prefix ;;
  937. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  938. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  939. program_prefix=$ac_optarg ;;
  940. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  941. | --program-suf | --program-su | --program-s)
  942. ac_prev=program_suffix ;;
  943. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  944. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  945. program_suffix=$ac_optarg ;;
  946. -program-transform-name | --program-transform-name \
  947. | --program-transform-nam | --program-transform-na \
  948. | --program-transform-n | --program-transform- \
  949. | --program-transform | --program-transfor \
  950. | --program-transfo | --program-transf \
  951. | --program-trans | --program-tran \
  952. | --progr-tra | --program-tr | --program-t)
  953. ac_prev=program_transform_name ;;
  954. -program-transform-name=* | --program-transform-name=* \
  955. | --program-transform-nam=* | --program-transform-na=* \
  956. | --program-transform-n=* | --program-transform-=* \
  957. | --program-transform=* | --program-transfor=* \
  958. | --program-transfo=* | --program-transf=* \
  959. | --program-trans=* | --program-tran=* \
  960. | --progr-tra=* | --program-tr=* | --program-t=*)
  961. program_transform_name=$ac_optarg ;;
  962. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  963. ac_prev=pdfdir ;;
  964. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  965. pdfdir=$ac_optarg ;;
  966. -psdir | --psdir | --psdi | --psd | --ps)
  967. ac_prev=psdir ;;
  968. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  969. psdir=$ac_optarg ;;
  970. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  971. | -silent | --silent | --silen | --sile | --sil)
  972. silent=yes ;;
  973. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  974. ac_prev=sbindir ;;
  975. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  976. | --sbi=* | --sb=*)
  977. sbindir=$ac_optarg ;;
  978. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  979. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  980. | --sharedst | --shareds | --shared | --share | --shar \
  981. | --sha | --sh)
  982. ac_prev=sharedstatedir ;;
  983. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  984. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  985. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  986. | --sha=* | --sh=*)
  987. sharedstatedir=$ac_optarg ;;
  988. -site | --site | --sit)
  989. ac_prev=site ;;
  990. -site=* | --site=* | --sit=*)
  991. site=$ac_optarg ;;
  992. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  993. ac_prev=srcdir ;;
  994. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  995. srcdir=$ac_optarg ;;
  996. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  997. | --syscon | --sysco | --sysc | --sys | --sy)
  998. ac_prev=sysconfdir ;;
  999. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1000. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1001. sysconfdir=$ac_optarg ;;
  1002. -target | --target | --targe | --targ | --tar | --ta | --t)
  1003. ac_prev=target_alias ;;
  1004. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1005. target_alias=$ac_optarg ;;
  1006. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1007. verbose=yes ;;
  1008. -version | --version | --versio | --versi | --vers | -V)
  1009. ac_init_version=: ;;
  1010. -with-* | --with-*)
  1011. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1012. # Reject names that are not valid shell variable names.
  1013. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1014. as_fn_error $? "invalid package name: $ac_useropt"
  1015. ac_useropt_orig=$ac_useropt
  1016. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1017. case $ac_user_opts in
  1018. *"
  1019. "with_$ac_useropt"
  1020. "*) ;;
  1021. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1022. ac_unrecognized_sep=', ';;
  1023. esac
  1024. eval with_$ac_useropt=\$ac_optarg ;;
  1025. -without-* | --without-*)
  1026. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1027. # Reject names that are not valid shell variable names.
  1028. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1029. as_fn_error $? "invalid package name: $ac_useropt"
  1030. ac_useropt_orig=$ac_useropt
  1031. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1032. case $ac_user_opts in
  1033. *"
  1034. "with_$ac_useropt"
  1035. "*) ;;
  1036. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1037. ac_unrecognized_sep=', ';;
  1038. esac
  1039. eval with_$ac_useropt=no ;;
  1040. --x)
  1041. # Obsolete; use --with-x.
  1042. with_x=yes ;;
  1043. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1044. | --x-incl | --x-inc | --x-in | --x-i)
  1045. ac_prev=x_includes ;;
  1046. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1047. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1048. x_includes=$ac_optarg ;;
  1049. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1050. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1051. ac_prev=x_libraries ;;
  1052. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1053. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1054. x_libraries=$ac_optarg ;;
  1055. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1056. Try \`$0 --help' for more information"
  1057. ;;
  1058. *=*)
  1059. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1060. # Reject names that are not valid shell variable names.
  1061. case $ac_envvar in #(
  1062. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1063. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1064. esac
  1065. eval $ac_envvar=\$ac_optarg
  1066. export $ac_envvar ;;
  1067. *)
  1068. # FIXME: should be removed in autoconf 3.0.
  1069. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1070. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1071. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1072. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1073. ;;
  1074. esac
  1075. done
  1076. if test -n "$ac_prev"; then
  1077. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1078. as_fn_error $? "missing argument to $ac_option"
  1079. fi
  1080. if test -n "$ac_unrecognized_opts"; then
  1081. case $enable_option_checking in
  1082. no) ;;
  1083. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1084. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1085. esac
  1086. fi
  1087. # Check all directory arguments for consistency.
  1088. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1089. datadir sysconfdir sharedstatedir localstatedir includedir \
  1090. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1091. libdir localedir mandir
  1092. do
  1093. eval ac_val=\$$ac_var
  1094. # Remove trailing slashes.
  1095. case $ac_val in
  1096. */ )
  1097. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1098. eval $ac_var=\$ac_val;;
  1099. esac
  1100. # Be sure to have absolute directory names.
  1101. case $ac_val in
  1102. [\\/$]* | ?:[\\/]* ) continue;;
  1103. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1104. esac
  1105. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1106. done
  1107. # There might be people who depend on the old broken behavior: `$host'
  1108. # used to hold the argument of --host etc.
  1109. # FIXME: To remove some day.
  1110. build=$build_alias
  1111. host=$host_alias
  1112. target=$target_alias
  1113. # FIXME: To remove some day.
  1114. if test "x$host_alias" != x; then
  1115. if test "x$build_alias" = x; then
  1116. cross_compiling=maybe
  1117. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1118. If a cross compiler is detected then cross compile mode will be used" >&2
  1119. elif test "x$build_alias" != "x$host_alias"; then
  1120. cross_compiling=yes
  1121. fi
  1122. fi
  1123. ac_tool_prefix=
  1124. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1125. test "$silent" = yes && exec 6>/dev/null
  1126. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1127. ac_ls_di=`ls -di .` &&
  1128. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1129. as_fn_error $? "working directory cannot be determined"
  1130. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1131. as_fn_error $? "pwd does not report name of working directory"
  1132. # Find the source files, if location was not specified.
  1133. if test -z "$srcdir"; then
  1134. ac_srcdir_defaulted=yes
  1135. # Try the directory containing this script, then the parent directory.
  1136. ac_confdir=`$as_dirname -- "$as_myself" ||
  1137. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1138. X"$as_myself" : 'X\(//\)[^/]' \| \
  1139. X"$as_myself" : 'X\(//\)$' \| \
  1140. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1141. $as_echo X"$as_myself" |
  1142. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1143. s//\1/
  1144. q
  1145. }
  1146. /^X\(\/\/\)[^/].*/{
  1147. s//\1/
  1148. q
  1149. }
  1150. /^X\(\/\/\)$/{
  1151. s//\1/
  1152. q
  1153. }
  1154. /^X\(\/\).*/{
  1155. s//\1/
  1156. q
  1157. }
  1158. s/.*/./; q'`
  1159. srcdir=$ac_confdir
  1160. if test ! -r "$srcdir/$ac_unique_file"; then
  1161. srcdir=..
  1162. fi
  1163. else
  1164. ac_srcdir_defaulted=no
  1165. fi
  1166. if test ! -r "$srcdir/$ac_unique_file"; then
  1167. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1168. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1169. fi
  1170. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1171. ac_abs_confdir=`(
  1172. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1173. pwd)`
  1174. # When building in place, set srcdir=.
  1175. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1176. srcdir=.
  1177. fi
  1178. # Remove unnecessary trailing slashes from srcdir.
  1179. # Double slashes in file names in object file debugging info
  1180. # mess up M-x gdb in Emacs.
  1181. case $srcdir in
  1182. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1183. esac
  1184. for ac_var in $ac_precious_vars; do
  1185. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1186. eval ac_env_${ac_var}_value=\$${ac_var}
  1187. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1188. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1189. done
  1190. #
  1191. # Report the --help message.
  1192. #
  1193. if test "$ac_init_help" = "long"; then
  1194. # Omit some internal or obsolete options to make the list less imposing.
  1195. # This message is too long to be a string in the A/UX 3.1 sh.
  1196. cat <<_ACEOF
  1197. \`configure' configures vcmi 0.84b to adapt to many kinds of systems.
  1198. Usage: $0 [OPTION]... [VAR=VALUE]...
  1199. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1200. VAR=VALUE. See below for descriptions of some of the useful variables.
  1201. Defaults for the options are specified in brackets.
  1202. Configuration:
  1203. -h, --help display this help and exit
  1204. --help=short display options specific to this package
  1205. --help=recursive display the short help of all the included packages
  1206. -V, --version display version information and exit
  1207. -q, --quiet, --silent do not print \`checking ...' messages
  1208. --cache-file=FILE cache test results in FILE [disabled]
  1209. -C, --config-cache alias for \`--cache-file=config.cache'
  1210. -n, --no-create do not create output files
  1211. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1212. Installation directories:
  1213. --prefix=PREFIX install architecture-independent files in PREFIX
  1214. [$ac_default_prefix]
  1215. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1216. [PREFIX]
  1217. By default, \`make install' will install all the files in
  1218. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1219. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1220. for instance \`--prefix=\$HOME'.
  1221. For better control, use the options below.
  1222. Fine tuning of the installation directories:
  1223. --bindir=DIR user executables [EPREFIX/bin]
  1224. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1225. --libexecdir=DIR program executables [EPREFIX/libexec]
  1226. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1227. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1228. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1229. --libdir=DIR object code libraries [EPREFIX/lib]
  1230. --includedir=DIR C header files [PREFIX/include]
  1231. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1232. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1233. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1234. --infodir=DIR info documentation [DATAROOTDIR/info]
  1235. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1236. --mandir=DIR man documentation [DATAROOTDIR/man]
  1237. --docdir=DIR documentation root [DATAROOTDIR/doc/vcmi]
  1238. --htmldir=DIR html documentation [DOCDIR]
  1239. --dvidir=DIR dvi documentation [DOCDIR]
  1240. --pdfdir=DIR pdf documentation [DOCDIR]
  1241. --psdir=DIR ps documentation [DOCDIR]
  1242. _ACEOF
  1243. cat <<\_ACEOF
  1244. Program names:
  1245. --program-prefix=PREFIX prepend PREFIX to installed program names
  1246. --program-suffix=SUFFIX append SUFFIX to installed program names
  1247. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1248. System types:
  1249. --build=BUILD configure for building on BUILD [guessed]
  1250. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1251. _ACEOF
  1252. fi
  1253. if test -n "$ac_init_help"; then
  1254. case $ac_init_help in
  1255. short | recursive ) echo "Configuration of vcmi 0.84b:";;
  1256. esac
  1257. cat <<\_ACEOF
  1258. Optional Features:
  1259. --disable-option-checking ignore unrecognized --enable/--with options
  1260. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1261. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1262. --disable-dependency-tracking speeds up one-time build
  1263. --enable-dependency-tracking do not reject slow dependency extractors
  1264. --enable-shared[=PKGS] build shared libraries [default=yes]
  1265. --enable-static[=PKGS] build static libraries [default=no]
  1266. --enable-fast-install[=PKGS]
  1267. optimize for fast installation [default=yes]
  1268. --disable-libtool-lock avoid locking (might break parallel builds)
  1269. --enable-silent-rules less verbose build output (undo: `make V=1')
  1270. --disable-silent-rules verbose build output (undo: `make V=0')
  1271. --disable-debug turn off debugging (default=enable)
  1272. --disable-sdltest Do not try to compile and run a test SDL program
  1273. Optional Packages:
  1274. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1275. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1276. --with-pic try to use only PIC/non-PIC objects [default=use
  1277. both]
  1278. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1279. --with-sysroot=DIR Search for dependent libraries within DIR
  1280. (or the compiler's sysroot if not specified).
  1281. --with-boost[=ARG] use Boost library from a standard location
  1282. (ARG=yes), from the specified location (ARG=<path>),
  1283. or disable it (ARG=no) [ARG=yes]
  1284. --with-boost-libdir=LIB_DIR
  1285. Force given directory for boost libraries. Note that
  1286. this will override library path detection, so use
  1287. this parameter only if default library detection
  1288. fails and you know exactly where your boost
  1289. libraries are located.
  1290. --with-boost-system[=special-lib]
  1291. use the System library from boost - it is possible
  1292. to specify a certain library for the linker e.g.
  1293. --with-boost-system=boost_system-gcc-mt
  1294. --with-boost-filesystem[=special-lib]
  1295. use the Filesystem library from boost - it is
  1296. possible to specify a certain library for the linker
  1297. e.g. --with-boost-filesystem=boost_filesystem-gcc-mt
  1298. --with-boost-thread[=special-lib]
  1299. use the Thread library from boost - it is possible
  1300. to specify a certain library for the linker e.g.
  1301. --with-boost-thread=boost_thread-gcc-mt
  1302. --with-boost-iostreams[=special-lib]
  1303. use the IOStreams library from boost - it is
  1304. possible to specify a certain library for the linker
  1305. e.g.
  1306. --with-boost-iostreams=boost_iostreams-gcc-mt-d-1_33_1
  1307. --with-boost-program-options[=special-lib]
  1308. use the program options library from boost - it is
  1309. possible to specify a certain library for the linker
  1310. e.g.
  1311. --with-boost-program-options=boost_program_options-gcc-mt-1_33_1
  1312. --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
  1313. --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
  1314. Some influential environment variables:
  1315. CXX C++ compiler command
  1316. CXXFLAGS C++ compiler flags
  1317. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1318. nonstandard directory <lib dir>
  1319. LIBS libraries to pass to the linker, e.g. -l<library>
  1320. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1321. you have headers in a nonstandard directory <include dir>
  1322. CC C compiler command
  1323. CFLAGS C compiler flags
  1324. CPP C preprocessor
  1325. CXXCPP C++ preprocessor
  1326. Use these variables to override the choices made by `configure' or to help
  1327. it to find libraries and programs with nonstandard names/locations.
  1328. Report bugs to the package provider.
  1329. _ACEOF
  1330. ac_status=$?
  1331. fi
  1332. if test "$ac_init_help" = "recursive"; then
  1333. # If there are subdirs, report their specific --help.
  1334. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1335. test -d "$ac_dir" ||
  1336. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1337. continue
  1338. ac_builddir=.
  1339. case "$ac_dir" in
  1340. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1341. *)
  1342. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1343. # A ".." for each directory in $ac_dir_suffix.
  1344. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1345. case $ac_top_builddir_sub in
  1346. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1347. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1348. esac ;;
  1349. esac
  1350. ac_abs_top_builddir=$ac_pwd
  1351. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1352. # for backward compatibility:
  1353. ac_top_builddir=$ac_top_build_prefix
  1354. case $srcdir in
  1355. .) # We are building in place.
  1356. ac_srcdir=.
  1357. ac_top_srcdir=$ac_top_builddir_sub
  1358. ac_abs_top_srcdir=$ac_pwd ;;
  1359. [\\/]* | ?:[\\/]* ) # Absolute name.
  1360. ac_srcdir=$srcdir$ac_dir_suffix;
  1361. ac_top_srcdir=$srcdir
  1362. ac_abs_top_srcdir=$srcdir ;;
  1363. *) # Relative name.
  1364. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1365. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1366. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1367. esac
  1368. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1369. cd "$ac_dir" || { ac_status=$?; continue; }
  1370. # Check for guested configure.
  1371. if test -f "$ac_srcdir/configure.gnu"; then
  1372. echo &&
  1373. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1374. elif test -f "$ac_srcdir/configure"; then
  1375. echo &&
  1376. $SHELL "$ac_srcdir/configure" --help=recursive
  1377. else
  1378. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1379. fi || ac_status=$?
  1380. cd "$ac_pwd" || { ac_status=$?; break; }
  1381. done
  1382. fi
  1383. test -n "$ac_init_help" && exit $ac_status
  1384. if $ac_init_version; then
  1385. cat <<\_ACEOF
  1386. vcmi configure 0.84b
  1387. generated by GNU Autoconf 2.67
  1388. Copyright (C) 2010 Free Software Foundation, Inc.
  1389. This configure script is free software; the Free Software Foundation
  1390. gives unlimited permission to copy, distribute and modify it.
  1391. _ACEOF
  1392. exit
  1393. fi
  1394. ## ------------------------ ##
  1395. ## Autoconf initialization. ##
  1396. ## ------------------------ ##
  1397. # ac_fn_cxx_try_compile LINENO
  1398. # ----------------------------
  1399. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1400. ac_fn_cxx_try_compile ()
  1401. {
  1402. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1403. rm -f conftest.$ac_objext
  1404. if { { ac_try="$ac_compile"
  1405. case "(($ac_try" in
  1406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1407. *) ac_try_echo=$ac_try;;
  1408. esac
  1409. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1410. $as_echo "$ac_try_echo"; } >&5
  1411. (eval "$ac_compile") 2>conftest.err
  1412. ac_status=$?
  1413. if test -s conftest.err; then
  1414. grep -v '^ *+' conftest.err >conftest.er1
  1415. cat conftest.er1 >&5
  1416. mv -f conftest.er1 conftest.err
  1417. fi
  1418. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1419. test $ac_status = 0; } && {
  1420. test -z "$ac_cxx_werror_flag" ||
  1421. test ! -s conftest.err
  1422. } && test -s conftest.$ac_objext; then :
  1423. ac_retval=0
  1424. else
  1425. $as_echo "$as_me: failed program was:" >&5
  1426. sed 's/^/| /' conftest.$ac_ext >&5
  1427. ac_retval=1
  1428. fi
  1429. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1430. as_fn_set_status $ac_retval
  1431. } # ac_fn_cxx_try_compile
  1432. # ac_fn_c_try_compile LINENO
  1433. # --------------------------
  1434. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1435. ac_fn_c_try_compile ()
  1436. {
  1437. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1438. rm -f conftest.$ac_objext
  1439. if { { ac_try="$ac_compile"
  1440. case "(($ac_try" in
  1441. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1442. *) ac_try_echo=$ac_try;;
  1443. esac
  1444. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1445. $as_echo "$ac_try_echo"; } >&5
  1446. (eval "$ac_compile") 2>conftest.err
  1447. ac_status=$?
  1448. if test -s conftest.err; then
  1449. grep -v '^ *+' conftest.err >conftest.er1
  1450. cat conftest.er1 >&5
  1451. mv -f conftest.er1 conftest.err
  1452. fi
  1453. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1454. test $ac_status = 0; } && {
  1455. test -z "$ac_c_werror_flag" ||
  1456. test ! -s conftest.err
  1457. } && test -s conftest.$ac_objext; then :
  1458. ac_retval=0
  1459. else
  1460. $as_echo "$as_me: failed program was:" >&5
  1461. sed 's/^/| /' conftest.$ac_ext >&5
  1462. ac_retval=1
  1463. fi
  1464. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1465. as_fn_set_status $ac_retval
  1466. } # ac_fn_c_try_compile
  1467. # ac_fn_c_try_link LINENO
  1468. # -----------------------
  1469. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1470. ac_fn_c_try_link ()
  1471. {
  1472. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1473. rm -f conftest.$ac_objext conftest$ac_exeext
  1474. if { { ac_try="$ac_link"
  1475. case "(($ac_try" in
  1476. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1477. *) ac_try_echo=$ac_try;;
  1478. esac
  1479. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1480. $as_echo "$ac_try_echo"; } >&5
  1481. (eval "$ac_link") 2>conftest.err
  1482. ac_status=$?
  1483. if test -s conftest.err; then
  1484. grep -v '^ *+' conftest.err >conftest.er1
  1485. cat conftest.er1 >&5
  1486. mv -f conftest.er1 conftest.err
  1487. fi
  1488. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1489. test $ac_status = 0; } && {
  1490. test -z "$ac_c_werror_flag" ||
  1491. test ! -s conftest.err
  1492. } && test -s conftest$ac_exeext && {
  1493. test "$cross_compiling" = yes ||
  1494. $as_test_x conftest$ac_exeext
  1495. }; then :
  1496. ac_retval=0
  1497. else
  1498. $as_echo "$as_me: failed program was:" >&5
  1499. sed 's/^/| /' conftest.$ac_ext >&5
  1500. ac_retval=1
  1501. fi
  1502. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1503. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1504. # interfere with the next link command; also delete a directory that is
  1505. # left behind by Apple's compiler. We do this before executing the actions.
  1506. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1507. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1508. as_fn_set_status $ac_retval
  1509. } # ac_fn_c_try_link
  1510. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1511. # -------------------------------------------------------
  1512. # Tests whether HEADER exists and can be compiled using the include files in
  1513. # INCLUDES, setting the cache variable VAR accordingly.
  1514. ac_fn_c_check_header_compile ()
  1515. {
  1516. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1518. $as_echo_n "checking for $2... " >&6; }
  1519. if eval "test \"\${$3+set}\"" = set; then :
  1520. $as_echo_n "(cached) " >&6
  1521. else
  1522. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1523. /* end confdefs.h. */
  1524. $4
  1525. #include <$2>
  1526. _ACEOF
  1527. if ac_fn_c_try_compile "$LINENO"; then :
  1528. eval "$3=yes"
  1529. else
  1530. eval "$3=no"
  1531. fi
  1532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1533. fi
  1534. eval ac_res=\$$3
  1535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1536. $as_echo "$ac_res" >&6; }
  1537. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1538. } # ac_fn_c_check_header_compile
  1539. # ac_fn_c_try_cpp LINENO
  1540. # ----------------------
  1541. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1542. ac_fn_c_try_cpp ()
  1543. {
  1544. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1545. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1546. case "(($ac_try" in
  1547. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1548. *) ac_try_echo=$ac_try;;
  1549. esac
  1550. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1551. $as_echo "$ac_try_echo"; } >&5
  1552. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1553. ac_status=$?
  1554. if test -s conftest.err; then
  1555. grep -v '^ *+' conftest.err >conftest.er1
  1556. cat conftest.er1 >&5
  1557. mv -f conftest.er1 conftest.err
  1558. fi
  1559. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1560. test $ac_status = 0; } > conftest.i && {
  1561. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1562. test ! -s conftest.err
  1563. }; then :
  1564. ac_retval=0
  1565. else
  1566. $as_echo "$as_me: failed program was:" >&5
  1567. sed 's/^/| /' conftest.$ac_ext >&5
  1568. ac_retval=1
  1569. fi
  1570. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1571. as_fn_set_status $ac_retval
  1572. } # ac_fn_c_try_cpp
  1573. # ac_fn_c_try_run LINENO
  1574. # ----------------------
  1575. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1576. # that executables *can* be run.
  1577. ac_fn_c_try_run ()
  1578. {
  1579. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1580. if { { ac_try="$ac_link"
  1581. case "(($ac_try" in
  1582. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1583. *) ac_try_echo=$ac_try;;
  1584. esac
  1585. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1586. $as_echo "$ac_try_echo"; } >&5
  1587. (eval "$ac_link") 2>&5
  1588. ac_status=$?
  1589. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1590. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1591. { { case "(($ac_try" in
  1592. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1593. *) ac_try_echo=$ac_try;;
  1594. esac
  1595. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1596. $as_echo "$ac_try_echo"; } >&5
  1597. (eval "$ac_try") 2>&5
  1598. ac_status=$?
  1599. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1600. test $ac_status = 0; }; }; then :
  1601. ac_retval=0
  1602. else
  1603. $as_echo "$as_me: program exited with status $ac_status" >&5
  1604. $as_echo "$as_me: failed program was:" >&5
  1605. sed 's/^/| /' conftest.$ac_ext >&5
  1606. ac_retval=$ac_status
  1607. fi
  1608. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1609. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1610. as_fn_set_status $ac_retval
  1611. } # ac_fn_c_try_run
  1612. # ac_fn_c_check_func LINENO FUNC VAR
  1613. # ----------------------------------
  1614. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1615. ac_fn_c_check_func ()
  1616. {
  1617. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1619. $as_echo_n "checking for $2... " >&6; }
  1620. if eval "test \"\${$3+set}\"" = set; then :
  1621. $as_echo_n "(cached) " >&6
  1622. else
  1623. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1624. /* end confdefs.h. */
  1625. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1626. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1627. #define $2 innocuous_$2
  1628. /* System header to define __stub macros and hopefully few prototypes,
  1629. which can conflict with char $2 (); below.
  1630. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1631. <limits.h> exists even on freestanding compilers. */
  1632. #ifdef __STDC__
  1633. # include <limits.h>
  1634. #else
  1635. # include <assert.h>
  1636. #endif
  1637. #undef $2
  1638. /* Override any GCC internal prototype to avoid an error.
  1639. Use char because int might match the return type of a GCC
  1640. builtin and then its argument prototype would still apply. */
  1641. #ifdef __cplusplus
  1642. extern "C"
  1643. #endif
  1644. char $2 ();
  1645. /* The GNU C library defines this for functions which it implements
  1646. to always fail with ENOSYS. Some functions are actually named
  1647. something starting with __ and the normal name is an alias. */
  1648. #if defined __stub_$2 || defined __stub___$2
  1649. choke me
  1650. #endif
  1651. int
  1652. main ()
  1653. {
  1654. return $2 ();
  1655. ;
  1656. return 0;
  1657. }
  1658. _ACEOF
  1659. if ac_fn_c_try_link "$LINENO"; then :
  1660. eval "$3=yes"
  1661. else
  1662. eval "$3=no"
  1663. fi
  1664. rm -f core conftest.err conftest.$ac_objext \
  1665. conftest$ac_exeext conftest.$ac_ext
  1666. fi
  1667. eval ac_res=\$$3
  1668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1669. $as_echo "$ac_res" >&6; }
  1670. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1671. } # ac_fn_c_check_func
  1672. # ac_fn_cxx_try_cpp LINENO
  1673. # ------------------------
  1674. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1675. ac_fn_cxx_try_cpp ()
  1676. {
  1677. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1678. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1679. case "(($ac_try" in
  1680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1681. *) ac_try_echo=$ac_try;;
  1682. esac
  1683. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1684. $as_echo "$ac_try_echo"; } >&5
  1685. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1686. ac_status=$?
  1687. if test -s conftest.err; then
  1688. grep -v '^ *+' conftest.err >conftest.er1
  1689. cat conftest.er1 >&5
  1690. mv -f conftest.er1 conftest.err
  1691. fi
  1692. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1693. test $ac_status = 0; } > conftest.i && {
  1694. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1695. test ! -s conftest.err
  1696. }; then :
  1697. ac_retval=0
  1698. else
  1699. $as_echo "$as_me: failed program was:" >&5
  1700. sed 's/^/| /' conftest.$ac_ext >&5
  1701. ac_retval=1
  1702. fi
  1703. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1704. as_fn_set_status $ac_retval
  1705. } # ac_fn_cxx_try_cpp
  1706. # ac_fn_cxx_try_link LINENO
  1707. # -------------------------
  1708. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1709. ac_fn_cxx_try_link ()
  1710. {
  1711. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1712. rm -f conftest.$ac_objext conftest$ac_exeext
  1713. if { { ac_try="$ac_link"
  1714. case "(($ac_try" in
  1715. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1716. *) ac_try_echo=$ac_try;;
  1717. esac
  1718. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1719. $as_echo "$ac_try_echo"; } >&5
  1720. (eval "$ac_link") 2>conftest.err
  1721. ac_status=$?
  1722. if test -s conftest.err; then
  1723. grep -v '^ *+' conftest.err >conftest.er1
  1724. cat conftest.er1 >&5
  1725. mv -f conftest.er1 conftest.err
  1726. fi
  1727. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1728. test $ac_status = 0; } && {
  1729. test -z "$ac_cxx_werror_flag" ||
  1730. test ! -s conftest.err
  1731. } && test -s conftest$ac_exeext && {
  1732. test "$cross_compiling" = yes ||
  1733. $as_test_x conftest$ac_exeext
  1734. }; then :
  1735. ac_retval=0
  1736. else
  1737. $as_echo "$as_me: failed program was:" >&5
  1738. sed 's/^/| /' conftest.$ac_ext >&5
  1739. ac_retval=1
  1740. fi
  1741. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1742. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1743. # interfere with the next link command; also delete a directory that is
  1744. # left behind by Apple's compiler. We do this before executing the actions.
  1745. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1746. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1747. as_fn_set_status $ac_retval
  1748. } # ac_fn_cxx_try_link
  1749. # ac_fn_cxx_try_run LINENO
  1750. # ------------------------
  1751. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1752. # that executables *can* be run.
  1753. ac_fn_cxx_try_run ()
  1754. {
  1755. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1756. if { { ac_try="$ac_link"
  1757. case "(($ac_try" in
  1758. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1759. *) ac_try_echo=$ac_try;;
  1760. esac
  1761. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1762. $as_echo "$ac_try_echo"; } >&5
  1763. (eval "$ac_link") 2>&5
  1764. ac_status=$?
  1765. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1766. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1767. { { case "(($ac_try" in
  1768. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1769. *) ac_try_echo=$ac_try;;
  1770. esac
  1771. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1772. $as_echo "$ac_try_echo"; } >&5
  1773. (eval "$ac_try") 2>&5
  1774. ac_status=$?
  1775. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1776. test $ac_status = 0; }; }; then :
  1777. ac_retval=0
  1778. else
  1779. $as_echo "$as_me: program exited with status $ac_status" >&5
  1780. $as_echo "$as_me: failed program was:" >&5
  1781. sed 's/^/| /' conftest.$ac_ext >&5
  1782. ac_retval=$ac_status
  1783. fi
  1784. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1785. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1786. as_fn_set_status $ac_retval
  1787. } # ac_fn_cxx_try_run
  1788. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1789. # ---------------------------------------------------------
  1790. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1791. # the include files in INCLUDES and setting the cache variable VAR
  1792. # accordingly.
  1793. ac_fn_cxx_check_header_mongrel ()
  1794. {
  1795. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1796. if eval "test \"\${$3+set}\"" = set; then :
  1797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1798. $as_echo_n "checking for $2... " >&6; }
  1799. if eval "test \"\${$3+set}\"" = set; then :
  1800. $as_echo_n "(cached) " >&6
  1801. fi
  1802. eval ac_res=\$$3
  1803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1804. $as_echo "$ac_res" >&6; }
  1805. else
  1806. # Is the header compilable?
  1807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1808. $as_echo_n "checking $2 usability... " >&6; }
  1809. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1810. /* end confdefs.h. */
  1811. $4
  1812. #include <$2>
  1813. _ACEOF
  1814. if ac_fn_cxx_try_compile "$LINENO"; then :
  1815. ac_header_compiler=yes
  1816. else
  1817. ac_header_compiler=no
  1818. fi
  1819. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1821. $as_echo "$ac_header_compiler" >&6; }
  1822. # Is the header present?
  1823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1824. $as_echo_n "checking $2 presence... " >&6; }
  1825. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1826. /* end confdefs.h. */
  1827. #include <$2>
  1828. _ACEOF
  1829. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1830. ac_header_preproc=yes
  1831. else
  1832. ac_header_preproc=no
  1833. fi
  1834. rm -f conftest.err conftest.i conftest.$ac_ext
  1835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1836. $as_echo "$ac_header_preproc" >&6; }
  1837. # So? What about this header?
  1838. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1839. yes:no: )
  1840. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1841. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1842. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1843. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1844. ;;
  1845. no:yes:* )
  1846. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1847. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1849. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1851. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1853. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1854. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1855. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1856. ;;
  1857. esac
  1858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1859. $as_echo_n "checking for $2... " >&6; }
  1860. if eval "test \"\${$3+set}\"" = set; then :
  1861. $as_echo_n "(cached) " >&6
  1862. else
  1863. eval "$3=\$ac_header_compiler"
  1864. fi
  1865. eval ac_res=\$$3
  1866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1867. $as_echo "$ac_res" >&6; }
  1868. fi
  1869. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1870. } # ac_fn_cxx_check_header_mongrel
  1871. # ac_fn_cxx_check_func LINENO FUNC VAR
  1872. # ------------------------------------
  1873. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1874. ac_fn_cxx_check_func ()
  1875. {
  1876. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1877. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1878. $as_echo_n "checking for $2... " >&6; }
  1879. if eval "test \"\${$3+set}\"" = set; then :
  1880. $as_echo_n "(cached) " >&6
  1881. else
  1882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1883. /* end confdefs.h. */
  1884. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1885. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1886. #define $2 innocuous_$2
  1887. /* System header to define __stub macros and hopefully few prototypes,
  1888. which can conflict with char $2 (); below.
  1889. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1890. <limits.h> exists even on freestanding compilers. */
  1891. #ifdef __STDC__
  1892. # include <limits.h>
  1893. #else
  1894. # include <assert.h>
  1895. #endif
  1896. #undef $2
  1897. /* Override any GCC internal prototype to avoid an error.
  1898. Use char because int might match the return type of a GCC
  1899. builtin and then its argument prototype would still apply. */
  1900. #ifdef __cplusplus
  1901. extern "C"
  1902. #endif
  1903. char $2 ();
  1904. /* The GNU C library defines this for functions which it implements
  1905. to always fail with ENOSYS. Some functions are actually named
  1906. something starting with __ and the normal name is an alias. */
  1907. #if defined __stub_$2 || defined __stub___$2
  1908. choke me
  1909. #endif
  1910. int
  1911. main ()
  1912. {
  1913. return $2 ();
  1914. ;
  1915. return 0;
  1916. }
  1917. _ACEOF
  1918. if ac_fn_cxx_try_link "$LINENO"; then :
  1919. eval "$3=yes"
  1920. else
  1921. eval "$3=no"
  1922. fi
  1923. rm -f core conftest.err conftest.$ac_objext \
  1924. conftest$ac_exeext conftest.$ac_ext
  1925. fi
  1926. eval ac_res=\$$3
  1927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1928. $as_echo "$ac_res" >&6; }
  1929. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1930. } # ac_fn_cxx_check_func
  1931. cat >config.log <<_ACEOF
  1932. This file contains any messages produced by compilers while
  1933. running configure, to aid debugging if configure makes a mistake.
  1934. It was created by vcmi $as_me 0.84b, which was
  1935. generated by GNU Autoconf 2.67. Invocation command line was
  1936. $ $0 $@
  1937. _ACEOF
  1938. exec 5>>config.log
  1939. {
  1940. cat <<_ASUNAME
  1941. ## --------- ##
  1942. ## Platform. ##
  1943. ## --------- ##
  1944. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1945. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1946. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1947. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1948. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1949. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1950. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1951. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1952. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1953. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1954. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1955. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1956. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1957. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1958. _ASUNAME
  1959. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1960. for as_dir in $PATH
  1961. do
  1962. IFS=$as_save_IFS
  1963. test -z "$as_dir" && as_dir=.
  1964. $as_echo "PATH: $as_dir"
  1965. done
  1966. IFS=$as_save_IFS
  1967. } >&5
  1968. cat >&5 <<_ACEOF
  1969. ## ----------- ##
  1970. ## Core tests. ##
  1971. ## ----------- ##
  1972. _ACEOF
  1973. # Keep a trace of the command line.
  1974. # Strip out --no-create and --no-recursion so they do not pile up.
  1975. # Strip out --silent because we don't want to record it for future runs.
  1976. # Also quote any args containing shell meta-characters.
  1977. # Make two passes to allow for proper duplicate-argument suppression.
  1978. ac_configure_args=
  1979. ac_configure_args0=
  1980. ac_configure_args1=
  1981. ac_must_keep_next=false
  1982. for ac_pass in 1 2
  1983. do
  1984. for ac_arg
  1985. do
  1986. case $ac_arg in
  1987. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1988. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1989. | -silent | --silent | --silen | --sile | --sil)
  1990. continue ;;
  1991. *\'*)
  1992. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1993. esac
  1994. case $ac_pass in
  1995. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1996. 2)
  1997. as_fn_append ac_configure_args1 " '$ac_arg'"
  1998. if test $ac_must_keep_next = true; then
  1999. ac_must_keep_next=false # Got value, back to normal.
  2000. else
  2001. case $ac_arg in
  2002. *=* | --config-cache | -C | -disable-* | --disable-* \
  2003. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2004. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2005. | -with-* | --with-* | -without-* | --without-* | --x)
  2006. case "$ac_configure_args0 " in
  2007. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2008. esac
  2009. ;;
  2010. -* ) ac_must_keep_next=true ;;
  2011. esac
  2012. fi
  2013. as_fn_append ac_configure_args " '$ac_arg'"
  2014. ;;
  2015. esac
  2016. done
  2017. done
  2018. { ac_configure_args0=; unset ac_configure_args0;}
  2019. { ac_configure_args1=; unset ac_configure_args1;}
  2020. # When interrupted or exit'd, cleanup temporary files, and complete
  2021. # config.log. We remove comments because anyway the quotes in there
  2022. # would cause problems or look ugly.
  2023. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2024. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2025. trap 'exit_status=$?
  2026. # Save into config.log some information that might help in debugging.
  2027. {
  2028. echo
  2029. $as_echo "## ---------------- ##
  2030. ## Cache variables. ##
  2031. ## ---------------- ##"
  2032. echo
  2033. # The following way of writing the cache mishandles newlines in values,
  2034. (
  2035. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2036. eval ac_val=\$$ac_var
  2037. case $ac_val in #(
  2038. *${as_nl}*)
  2039. case $ac_var in #(
  2040. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2041. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2042. esac
  2043. case $ac_var in #(
  2044. _ | IFS | as_nl) ;; #(
  2045. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2046. *) { eval $ac_var=; unset $ac_var;} ;;
  2047. esac ;;
  2048. esac
  2049. done
  2050. (set) 2>&1 |
  2051. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2052. *${as_nl}ac_space=\ *)
  2053. sed -n \
  2054. "s/'\''/'\''\\\\'\'''\''/g;
  2055. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2056. ;; #(
  2057. *)
  2058. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2059. ;;
  2060. esac |
  2061. sort
  2062. )
  2063. echo
  2064. $as_echo "## ----------------- ##
  2065. ## Output variables. ##
  2066. ## ----------------- ##"
  2067. echo
  2068. for ac_var in $ac_subst_vars
  2069. do
  2070. eval ac_val=\$$ac_var
  2071. case $ac_val in
  2072. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2073. esac
  2074. $as_echo "$ac_var='\''$ac_val'\''"
  2075. done | sort
  2076. echo
  2077. if test -n "$ac_subst_files"; then
  2078. $as_echo "## ------------------- ##
  2079. ## File substitutions. ##
  2080. ## ------------------- ##"
  2081. echo
  2082. for ac_var in $ac_subst_files
  2083. do
  2084. eval ac_val=\$$ac_var
  2085. case $ac_val in
  2086. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2087. esac
  2088. $as_echo "$ac_var='\''$ac_val'\''"
  2089. done | sort
  2090. echo
  2091. fi
  2092. if test -s confdefs.h; then
  2093. $as_echo "## ----------- ##
  2094. ## confdefs.h. ##
  2095. ## ----------- ##"
  2096. echo
  2097. cat confdefs.h
  2098. echo
  2099. fi
  2100. test "$ac_signal" != 0 &&
  2101. $as_echo "$as_me: caught signal $ac_signal"
  2102. $as_echo "$as_me: exit $exit_status"
  2103. } >&5
  2104. rm -f core *.core core.conftest.* &&
  2105. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2106. exit $exit_status
  2107. ' 0
  2108. for ac_signal in 1 2 13 15; do
  2109. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2110. done
  2111. ac_signal=0
  2112. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2113. rm -f -r conftest* confdefs.h
  2114. $as_echo "/* confdefs.h */" > confdefs.h
  2115. # Predefined preprocessor variables.
  2116. cat >>confdefs.h <<_ACEOF
  2117. #define PACKAGE_NAME "$PACKAGE_NAME"
  2118. _ACEOF
  2119. cat >>confdefs.h <<_ACEOF
  2120. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2121. _ACEOF
  2122. cat >>confdefs.h <<_ACEOF
  2123. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2124. _ACEOF
  2125. cat >>confdefs.h <<_ACEOF
  2126. #define PACKAGE_STRING "$PACKAGE_STRING"
  2127. _ACEOF
  2128. cat >>confdefs.h <<_ACEOF
  2129. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2130. _ACEOF
  2131. cat >>confdefs.h <<_ACEOF
  2132. #define PACKAGE_URL "$PACKAGE_URL"
  2133. _ACEOF
  2134. # Let the site file select an alternate cache file if it wants to.
  2135. # Prefer an explicitly selected file to automatically selected ones.
  2136. ac_site_file1=NONE
  2137. ac_site_file2=NONE
  2138. if test -n "$CONFIG_SITE"; then
  2139. # We do not want a PATH search for config.site.
  2140. case $CONFIG_SITE in #((
  2141. -*) ac_site_file1=./$CONFIG_SITE;;
  2142. */*) ac_site_file1=$CONFIG_SITE;;
  2143. *) ac_site_file1=./$CONFIG_SITE;;
  2144. esac
  2145. elif test "x$prefix" != xNONE; then
  2146. ac_site_file1=$prefix/share/config.site
  2147. ac_site_file2=$prefix/etc/config.site
  2148. else
  2149. ac_site_file1=$ac_default_prefix/share/config.site
  2150. ac_site_file2=$ac_default_prefix/etc/config.site
  2151. fi
  2152. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2153. do
  2154. test "x$ac_site_file" = xNONE && continue
  2155. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2156. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2157. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2158. sed 's/^/| /' "$ac_site_file" >&5
  2159. . "$ac_site_file" \
  2160. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2161. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2162. as_fn_error $? "failed to load site script $ac_site_file
  2163. See \`config.log' for more details" "$LINENO" 5 ; }
  2164. fi
  2165. done
  2166. if test -r "$cache_file"; then
  2167. # Some versions of bash will fail to source /dev/null (special files
  2168. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2169. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2170. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2171. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2172. case $cache_file in
  2173. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2174. *) . "./$cache_file";;
  2175. esac
  2176. fi
  2177. else
  2178. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2179. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2180. >$cache_file
  2181. fi
  2182. # Check that the precious variables saved in the cache have kept the same
  2183. # value.
  2184. ac_cache_corrupted=false
  2185. for ac_var in $ac_precious_vars; do
  2186. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2187. eval ac_new_set=\$ac_env_${ac_var}_set
  2188. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2189. eval ac_new_val=\$ac_env_${ac_var}_value
  2190. case $ac_old_set,$ac_new_set in
  2191. set,)
  2192. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2193. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2194. ac_cache_corrupted=: ;;
  2195. ,set)
  2196. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2197. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2198. ac_cache_corrupted=: ;;
  2199. ,);;
  2200. *)
  2201. if test "x$ac_old_val" != "x$ac_new_val"; then
  2202. # differences in whitespace do not lead to failure.
  2203. ac_old_val_w=`echo x $ac_old_val`
  2204. ac_new_val_w=`echo x $ac_new_val`
  2205. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2207. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2208. ac_cache_corrupted=:
  2209. else
  2210. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2211. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2212. eval $ac_var=\$ac_old_val
  2213. fi
  2214. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2215. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2216. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2217. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2218. fi;;
  2219. esac
  2220. # Pass precious variables to config.status.
  2221. if test "$ac_new_set" = set; then
  2222. case $ac_new_val in
  2223. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2224. *) ac_arg=$ac_var=$ac_new_val ;;
  2225. esac
  2226. case " $ac_configure_args " in
  2227. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2228. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2229. esac
  2230. fi
  2231. done
  2232. if $ac_cache_corrupted; then
  2233. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2234. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2235. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2236. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2237. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2238. fi
  2239. ## -------------------- ##
  2240. ## Main body of script. ##
  2241. ## -------------------- ##
  2242. ac_ext=c
  2243. ac_cpp='$CPP $CPPFLAGS'
  2244. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2245. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2246. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2247. # Follow VCMI_VERSION in GameConstants.h
  2248. am__api_version='1.11'
  2249. ac_aux_dir=
  2250. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2251. if test -f "$ac_dir/install-sh"; then
  2252. ac_aux_dir=$ac_dir
  2253. ac_install_sh="$ac_aux_dir/install-sh -c"
  2254. break
  2255. elif test -f "$ac_dir/install.sh"; then
  2256. ac_aux_dir=$ac_dir
  2257. ac_install_sh="$ac_aux_dir/install.sh -c"
  2258. break
  2259. elif test -f "$ac_dir/shtool"; then
  2260. ac_aux_dir=$ac_dir
  2261. ac_install_sh="$ac_aux_dir/shtool install -c"
  2262. break
  2263. fi
  2264. done
  2265. if test -z "$ac_aux_dir"; then
  2266. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2267. fi
  2268. # These three variables are undocumented and unsupported,
  2269. # and are intended to be withdrawn in a future Autoconf release.
  2270. # They can cause serious problems if a builder's source tree is in a directory
  2271. # whose full name contains unusual characters.
  2272. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2273. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2274. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2275. # Find a good install program. We prefer a C program (faster),
  2276. # so one script is as good as another. But avoid the broken or
  2277. # incompatible versions:
  2278. # SysV /etc/install, /usr/sbin/install
  2279. # SunOS /usr/etc/install
  2280. # IRIX /sbin/install
  2281. # AIX /bin/install
  2282. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2283. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2284. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2285. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2286. # OS/2's system install, which has a completely different semantic
  2287. # ./install, which can be erroneously created by make from ./install.sh.
  2288. # Reject install programs that cannot install multiple files.
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2290. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2291. if test -z "$INSTALL"; then
  2292. if test "${ac_cv_path_install+set}" = set; then :
  2293. $as_echo_n "(cached) " >&6
  2294. else
  2295. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2296. for as_dir in $PATH
  2297. do
  2298. IFS=$as_save_IFS
  2299. test -z "$as_dir" && as_dir=.
  2300. # Account for people who put trailing slashes in PATH elements.
  2301. case $as_dir/ in #((
  2302. ./ | .// | /[cC]/* | \
  2303. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2304. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2305. /usr/ucb/* ) ;;
  2306. *)
  2307. # OSF1 and SCO ODT 3.0 have their own names for install.
  2308. # Don't use installbsd from OSF since it installs stuff as root
  2309. # by default.
  2310. for ac_prog in ginstall scoinst install; do
  2311. for ac_exec_ext in '' $ac_executable_extensions; do
  2312. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2313. if test $ac_prog = install &&
  2314. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2315. # AIX install. It has an incompatible calling convention.
  2316. :
  2317. elif test $ac_prog = install &&
  2318. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2319. # program-specific install script used by HP pwplus--don't use.
  2320. :
  2321. else
  2322. rm -rf conftest.one conftest.two conftest.dir
  2323. echo one > conftest.one
  2324. echo two > conftest.two
  2325. mkdir conftest.dir
  2326. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2327. test -s conftest.one && test -s conftest.two &&
  2328. test -s conftest.dir/conftest.one &&
  2329. test -s conftest.dir/conftest.two
  2330. then
  2331. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2332. break 3
  2333. fi
  2334. fi
  2335. fi
  2336. done
  2337. done
  2338. ;;
  2339. esac
  2340. done
  2341. IFS=$as_save_IFS
  2342. rm -rf conftest.one conftest.two conftest.dir
  2343. fi
  2344. if test "${ac_cv_path_install+set}" = set; then
  2345. INSTALL=$ac_cv_path_install
  2346. else
  2347. # As a last resort, use the slow shell script. Don't cache a
  2348. # value for INSTALL within a source directory, because that will
  2349. # break other packages using the cache if that directory is
  2350. # removed, or if the value is a relative name.
  2351. INSTALL=$ac_install_sh
  2352. fi
  2353. fi
  2354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2355. $as_echo "$INSTALL" >&6; }
  2356. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2357. # It thinks the first close brace ends the variable substitution.
  2358. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2359. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2360. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2361. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2362. $as_echo_n "checking whether build environment is sane... " >&6; }
  2363. # Just in case
  2364. sleep 1
  2365. echo timestamp > conftest.file
  2366. # Reject unsafe characters in $srcdir or the absolute working directory
  2367. # name. Accept space and tab only in the latter.
  2368. am_lf='
  2369. '
  2370. case `pwd` in
  2371. *[\\\"\#\$\&\'\`$am_lf]*)
  2372. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
  2373. esac
  2374. case $srcdir in
  2375. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2376. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
  2377. esac
  2378. # Do `set' in a subshell so we don't clobber the current shell's
  2379. # arguments. Must try -L first in case configure is actually a
  2380. # symlink; some systems play weird games with the mod time of symlinks
  2381. # (eg FreeBSD returns the mod time of the symlink's containing
  2382. # directory).
  2383. if (
  2384. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2385. if test "$*" = "X"; then
  2386. # -L didn't work.
  2387. set X `ls -t "$srcdir/configure" conftest.file`
  2388. fi
  2389. rm -f conftest.file
  2390. if test "$*" != "X $srcdir/configure conftest.file" \
  2391. && test "$*" != "X conftest.file $srcdir/configure"; then
  2392. # If neither matched, then we have a broken ls. This can happen
  2393. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2394. # broken ls alias from the environment. This has actually
  2395. # happened. Such a system could not be considered "sane".
  2396. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2397. alias in your environment" "$LINENO" 5
  2398. fi
  2399. test "$2" = conftest.file
  2400. )
  2401. then
  2402. # Ok.
  2403. :
  2404. else
  2405. as_fn_error $? "newly created file is older than distributed files!
  2406. Check your system clock" "$LINENO" 5
  2407. fi
  2408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2409. $as_echo "yes" >&6; }
  2410. test "$program_prefix" != NONE &&
  2411. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2412. # Use a double $ so make ignores it.
  2413. test "$program_suffix" != NONE &&
  2414. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2415. # Double any \ or $.
  2416. # By default was `s,x,x', remove it if useless.
  2417. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2418. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2419. # expand $ac_aux_dir to an absolute path
  2420. am_aux_dir=`cd $ac_aux_dir && pwd`
  2421. if test x"${MISSING+set}" != xset; then
  2422. case $am_aux_dir in
  2423. *\ * | *\ *)
  2424. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2425. *)
  2426. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2427. esac
  2428. fi
  2429. # Use eval to expand $SHELL
  2430. if eval "$MISSING --run true"; then
  2431. am_missing_run="$MISSING --run "
  2432. else
  2433. am_missing_run=
  2434. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2435. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2436. fi
  2437. if test x"${install_sh}" != xset; then
  2438. case $am_aux_dir in
  2439. *\ * | *\ *)
  2440. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2441. *)
  2442. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2443. esac
  2444. fi
  2445. # Installed binaries are usually stripped using `strip' when the user
  2446. # run `make install-strip'. However `strip' might not be the right
  2447. # tool to use in cross-compilation environments, therefore Automake
  2448. # will honor the `STRIP' environment variable to overrule this program.
  2449. if test "$cross_compiling" != no; then
  2450. if test -n "$ac_tool_prefix"; then
  2451. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2452. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2454. $as_echo_n "checking for $ac_word... " >&6; }
  2455. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2456. $as_echo_n "(cached) " >&6
  2457. else
  2458. if test -n "$STRIP"; then
  2459. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2460. else
  2461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2462. for as_dir in $PATH
  2463. do
  2464. IFS=$as_save_IFS
  2465. test -z "$as_dir" && as_dir=.
  2466. for ac_exec_ext in '' $ac_executable_extensions; do
  2467. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2468. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2469. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2470. break 2
  2471. fi
  2472. done
  2473. done
  2474. IFS=$as_save_IFS
  2475. fi
  2476. fi
  2477. STRIP=$ac_cv_prog_STRIP
  2478. if test -n "$STRIP"; then
  2479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2480. $as_echo "$STRIP" >&6; }
  2481. else
  2482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2483. $as_echo "no" >&6; }
  2484. fi
  2485. fi
  2486. if test -z "$ac_cv_prog_STRIP"; then
  2487. ac_ct_STRIP=$STRIP
  2488. # Extract the first word of "strip", so it can be a program name with args.
  2489. set dummy strip; ac_word=$2
  2490. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2491. $as_echo_n "checking for $ac_word... " >&6; }
  2492. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2493. $as_echo_n "(cached) " >&6
  2494. else
  2495. if test -n "$ac_ct_STRIP"; then
  2496. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2497. else
  2498. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2499. for as_dir in $PATH
  2500. do
  2501. IFS=$as_save_IFS
  2502. test -z "$as_dir" && as_dir=.
  2503. for ac_exec_ext in '' $ac_executable_extensions; do
  2504. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2505. ac_cv_prog_ac_ct_STRIP="strip"
  2506. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2507. break 2
  2508. fi
  2509. done
  2510. done
  2511. IFS=$as_save_IFS
  2512. fi
  2513. fi
  2514. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2515. if test -n "$ac_ct_STRIP"; then
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2517. $as_echo "$ac_ct_STRIP" >&6; }
  2518. else
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2520. $as_echo "no" >&6; }
  2521. fi
  2522. if test "x$ac_ct_STRIP" = x; then
  2523. STRIP=":"
  2524. else
  2525. case $cross_compiling:$ac_tool_warned in
  2526. yes:)
  2527. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2528. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2529. ac_tool_warned=yes ;;
  2530. esac
  2531. STRIP=$ac_ct_STRIP
  2532. fi
  2533. else
  2534. STRIP="$ac_cv_prog_STRIP"
  2535. fi
  2536. fi
  2537. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2539. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2540. if test -z "$MKDIR_P"; then
  2541. if test "${ac_cv_path_mkdir+set}" = set; then :
  2542. $as_echo_n "(cached) " >&6
  2543. else
  2544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2545. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2546. do
  2547. IFS=$as_save_IFS
  2548. test -z "$as_dir" && as_dir=.
  2549. for ac_prog in mkdir gmkdir; do
  2550. for ac_exec_ext in '' $ac_executable_extensions; do
  2551. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2552. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2553. 'mkdir (GNU coreutils) '* | \
  2554. 'mkdir (coreutils) '* | \
  2555. 'mkdir (fileutils) '4.1*)
  2556. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2557. break 3;;
  2558. esac
  2559. done
  2560. done
  2561. done
  2562. IFS=$as_save_IFS
  2563. fi
  2564. test -d ./--version && rmdir ./--version
  2565. if test "${ac_cv_path_mkdir+set}" = set; then
  2566. MKDIR_P="$ac_cv_path_mkdir -p"
  2567. else
  2568. # As a last resort, use the slow shell script. Don't cache a
  2569. # value for MKDIR_P within a source directory, because that will
  2570. # break other packages using the cache if that directory is
  2571. # removed, or if the value is a relative name.
  2572. MKDIR_P="$ac_install_sh -d"
  2573. fi
  2574. fi
  2575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2576. $as_echo "$MKDIR_P" >&6; }
  2577. mkdir_p="$MKDIR_P"
  2578. case $mkdir_p in
  2579. [\\/$]* | ?:[\\/]*) ;;
  2580. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2581. esac
  2582. for ac_prog in gawk mawk nawk awk
  2583. do
  2584. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2585. set dummy $ac_prog; ac_word=$2
  2586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2587. $as_echo_n "checking for $ac_word... " >&6; }
  2588. if test "${ac_cv_prog_AWK+set}" = set; then :
  2589. $as_echo_n "(cached) " >&6
  2590. else
  2591. if test -n "$AWK"; then
  2592. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2593. else
  2594. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2595. for as_dir in $PATH
  2596. do
  2597. IFS=$as_save_IFS
  2598. test -z "$as_dir" && as_dir=.
  2599. for ac_exec_ext in '' $ac_executable_extensions; do
  2600. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2601. ac_cv_prog_AWK="$ac_prog"
  2602. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2603. break 2
  2604. fi
  2605. done
  2606. done
  2607. IFS=$as_save_IFS
  2608. fi
  2609. fi
  2610. AWK=$ac_cv_prog_AWK
  2611. if test -n "$AWK"; then
  2612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2613. $as_echo "$AWK" >&6; }
  2614. else
  2615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2616. $as_echo "no" >&6; }
  2617. fi
  2618. test -n "$AWK" && break
  2619. done
  2620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2621. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2622. set x ${MAKE-make}
  2623. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2624. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  2625. $as_echo_n "(cached) " >&6
  2626. else
  2627. cat >conftest.make <<\_ACEOF
  2628. SHELL = /bin/sh
  2629. all:
  2630. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2631. _ACEOF
  2632. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2633. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2634. *@@@%%%=?*=@@@%%%*)
  2635. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2636. *)
  2637. eval ac_cv_prog_make_${ac_make}_set=no;;
  2638. esac
  2639. rm -f conftest.make
  2640. fi
  2641. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2643. $as_echo "yes" >&6; }
  2644. SET_MAKE=
  2645. else
  2646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2647. $as_echo "no" >&6; }
  2648. SET_MAKE="MAKE=${MAKE-make}"
  2649. fi
  2650. rm -rf .tst 2>/dev/null
  2651. mkdir .tst 2>/dev/null
  2652. if test -d .tst; then
  2653. am__leading_dot=.
  2654. else
  2655. am__leading_dot=_
  2656. fi
  2657. rmdir .tst 2>/dev/null
  2658. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2659. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2660. # is not polluted with repeated "-I."
  2661. am__isrc=' -I$(srcdir)'
  2662. # test to see if srcdir already configured
  2663. if test -f $srcdir/config.status; then
  2664. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2665. fi
  2666. fi
  2667. # test whether we have cygpath
  2668. if test -z "$CYGPATH_W"; then
  2669. if (cygpath --version) >/dev/null 2>/dev/null; then
  2670. CYGPATH_W='cygpath -w'
  2671. else
  2672. CYGPATH_W=echo
  2673. fi
  2674. fi
  2675. # Define the identity of the package.
  2676. PACKAGE='vcmi'
  2677. VERSION='0.84b'
  2678. cat >>confdefs.h <<_ACEOF
  2679. #define PACKAGE "$PACKAGE"
  2680. _ACEOF
  2681. cat >>confdefs.h <<_ACEOF
  2682. #define VERSION "$VERSION"
  2683. _ACEOF
  2684. # Some tools Automake needs.
  2685. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2686. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2687. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2688. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2689. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2690. # We need awk for the "check" target. The system "awk" is bad on
  2691. # some platforms.
  2692. # Always define AMTAR for backward compatibility.
  2693. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2694. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2695. # Checks for build toolchain
  2696. ac_ext=cpp
  2697. ac_cpp='$CXXCPP $CPPFLAGS'
  2698. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2699. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2700. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2701. ac_ext=cpp
  2702. ac_cpp='$CXXCPP $CPPFLAGS'
  2703. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2704. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2705. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2706. if test -z "$CXX"; then
  2707. if test -n "$CCC"; then
  2708. CXX=$CCC
  2709. else
  2710. if test -n "$ac_tool_prefix"; then
  2711. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2712. do
  2713. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2714. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2716. $as_echo_n "checking for $ac_word... " >&6; }
  2717. if test "${ac_cv_prog_CXX+set}" = set; then :
  2718. $as_echo_n "(cached) " >&6
  2719. else
  2720. if test -n "$CXX"; then
  2721. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2722. else
  2723. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2724. for as_dir in $PATH
  2725. do
  2726. IFS=$as_save_IFS
  2727. test -z "$as_dir" && as_dir=.
  2728. for ac_exec_ext in '' $ac_executable_extensions; do
  2729. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2730. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2731. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2732. break 2
  2733. fi
  2734. done
  2735. done
  2736. IFS=$as_save_IFS
  2737. fi
  2738. fi
  2739. CXX=$ac_cv_prog_CXX
  2740. if test -n "$CXX"; then
  2741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2742. $as_echo "$CXX" >&6; }
  2743. else
  2744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2745. $as_echo "no" >&6; }
  2746. fi
  2747. test -n "$CXX" && break
  2748. done
  2749. fi
  2750. if test -z "$CXX"; then
  2751. ac_ct_CXX=$CXX
  2752. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2753. do
  2754. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2755. set dummy $ac_prog; ac_word=$2
  2756. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2757. $as_echo_n "checking for $ac_word... " >&6; }
  2758. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  2759. $as_echo_n "(cached) " >&6
  2760. else
  2761. if test -n "$ac_ct_CXX"; then
  2762. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2763. else
  2764. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2765. for as_dir in $PATH
  2766. do
  2767. IFS=$as_save_IFS
  2768. test -z "$as_dir" && as_dir=.
  2769. for ac_exec_ext in '' $ac_executable_extensions; do
  2770. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2771. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2772. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2773. break 2
  2774. fi
  2775. done
  2776. done
  2777. IFS=$as_save_IFS
  2778. fi
  2779. fi
  2780. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2781. if test -n "$ac_ct_CXX"; then
  2782. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2783. $as_echo "$ac_ct_CXX" >&6; }
  2784. else
  2785. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2786. $as_echo "no" >&6; }
  2787. fi
  2788. test -n "$ac_ct_CXX" && break
  2789. done
  2790. if test "x$ac_ct_CXX" = x; then
  2791. CXX="g++"
  2792. else
  2793. case $cross_compiling:$ac_tool_warned in
  2794. yes:)
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2796. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2797. ac_tool_warned=yes ;;
  2798. esac
  2799. CXX=$ac_ct_CXX
  2800. fi
  2801. fi
  2802. fi
  2803. fi
  2804. # Provide some information about the compiler.
  2805. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2806. set X $ac_compile
  2807. ac_compiler=$2
  2808. for ac_option in --version -v -V -qversion; do
  2809. { { ac_try="$ac_compiler $ac_option >&5"
  2810. case "(($ac_try" in
  2811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2812. *) ac_try_echo=$ac_try;;
  2813. esac
  2814. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2815. $as_echo "$ac_try_echo"; } >&5
  2816. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2817. ac_status=$?
  2818. if test -s conftest.err; then
  2819. sed '10a\
  2820. ... rest of stderr output deleted ...
  2821. 10q' conftest.err >conftest.er1
  2822. cat conftest.er1 >&5
  2823. fi
  2824. rm -f conftest.er1 conftest.err
  2825. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2826. test $ac_status = 0; }
  2827. done
  2828. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2829. /* end confdefs.h. */
  2830. int
  2831. main ()
  2832. {
  2833. ;
  2834. return 0;
  2835. }
  2836. _ACEOF
  2837. ac_clean_files_save=$ac_clean_files
  2838. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2839. # Try to create an executable without -o first, disregard a.out.
  2840. # It will help us diagnose broken compilers, and finding out an intuition
  2841. # of exeext.
  2842. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2843. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2844. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2845. # The possible output files:
  2846. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2847. ac_rmfiles=
  2848. for ac_file in $ac_files
  2849. do
  2850. case $ac_file in
  2851. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2852. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2853. esac
  2854. done
  2855. rm -f $ac_rmfiles
  2856. if { { ac_try="$ac_link_default"
  2857. case "(($ac_try" in
  2858. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2859. *) ac_try_echo=$ac_try;;
  2860. esac
  2861. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2862. $as_echo "$ac_try_echo"; } >&5
  2863. (eval "$ac_link_default") 2>&5
  2864. ac_status=$?
  2865. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2866. test $ac_status = 0; }; then :
  2867. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2868. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2869. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2870. # so that the user can short-circuit this test for compilers unknown to
  2871. # Autoconf.
  2872. for ac_file in $ac_files ''
  2873. do
  2874. test -f "$ac_file" || continue
  2875. case $ac_file in
  2876. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2877. ;;
  2878. [ab].out )
  2879. # We found the default executable, but exeext='' is most
  2880. # certainly right.
  2881. break;;
  2882. *.* )
  2883. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2884. then :; else
  2885. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2886. fi
  2887. # We set ac_cv_exeext here because the later test for it is not
  2888. # safe: cross compilers may not add the suffix if given an `-o'
  2889. # argument, so we may need to know it at that point already.
  2890. # Even if this section looks crufty: it has the advantage of
  2891. # actually working.
  2892. break;;
  2893. * )
  2894. break;;
  2895. esac
  2896. done
  2897. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2898. else
  2899. ac_file=''
  2900. fi
  2901. if test -z "$ac_file"; then :
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2903. $as_echo "no" >&6; }
  2904. $as_echo "$as_me: failed program was:" >&5
  2905. sed 's/^/| /' conftest.$ac_ext >&5
  2906. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2907. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2908. as_fn_error 77 "C++ compiler cannot create executables
  2909. See \`config.log' for more details" "$LINENO" 5 ; }
  2910. else
  2911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2912. $as_echo "yes" >&6; }
  2913. fi
  2914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  2915. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  2916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2917. $as_echo "$ac_file" >&6; }
  2918. ac_exeext=$ac_cv_exeext
  2919. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2920. ac_clean_files=$ac_clean_files_save
  2921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2922. $as_echo_n "checking for suffix of executables... " >&6; }
  2923. if { { ac_try="$ac_link"
  2924. case "(($ac_try" in
  2925. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2926. *) ac_try_echo=$ac_try;;
  2927. esac
  2928. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2929. $as_echo "$ac_try_echo"; } >&5
  2930. (eval "$ac_link") 2>&5
  2931. ac_status=$?
  2932. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2933. test $ac_status = 0; }; then :
  2934. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2935. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2936. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2937. # `rm'.
  2938. for ac_file in conftest.exe conftest conftest.*; do
  2939. test -f "$ac_file" || continue
  2940. case $ac_file in
  2941. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2942. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2943. break;;
  2944. * ) break;;
  2945. esac
  2946. done
  2947. else
  2948. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2949. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2950. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2951. See \`config.log' for more details" "$LINENO" 5 ; }
  2952. fi
  2953. rm -f conftest conftest$ac_cv_exeext
  2954. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2955. $as_echo "$ac_cv_exeext" >&6; }
  2956. rm -f conftest.$ac_ext
  2957. EXEEXT=$ac_cv_exeext
  2958. ac_exeext=$EXEEXT
  2959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2960. /* end confdefs.h. */
  2961. #include <stdio.h>
  2962. int
  2963. main ()
  2964. {
  2965. FILE *f = fopen ("conftest.out", "w");
  2966. return ferror (f) || fclose (f) != 0;
  2967. ;
  2968. return 0;
  2969. }
  2970. _ACEOF
  2971. ac_clean_files="$ac_clean_files conftest.out"
  2972. # Check that the compiler produces executables we can run. If not, either
  2973. # the compiler is broken, or we cross compile.
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2975. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2976. if test "$cross_compiling" != yes; then
  2977. { { ac_try="$ac_link"
  2978. case "(($ac_try" in
  2979. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2980. *) ac_try_echo=$ac_try;;
  2981. esac
  2982. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2983. $as_echo "$ac_try_echo"; } >&5
  2984. (eval "$ac_link") 2>&5
  2985. ac_status=$?
  2986. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2987. test $ac_status = 0; }
  2988. if { ac_try='./conftest$ac_cv_exeext'
  2989. { { case "(($ac_try" in
  2990. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2991. *) ac_try_echo=$ac_try;;
  2992. esac
  2993. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2994. $as_echo "$ac_try_echo"; } >&5
  2995. (eval "$ac_try") 2>&5
  2996. ac_status=$?
  2997. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2998. test $ac_status = 0; }; }; then
  2999. cross_compiling=no
  3000. else
  3001. if test "$cross_compiling" = maybe; then
  3002. cross_compiling=yes
  3003. else
  3004. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3005. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3006. as_fn_error $? "cannot run C++ compiled programs.
  3007. If you meant to cross compile, use \`--host'.
  3008. See \`config.log' for more details" "$LINENO" 5 ; }
  3009. fi
  3010. fi
  3011. fi
  3012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3013. $as_echo "$cross_compiling" >&6; }
  3014. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3015. ac_clean_files=$ac_clean_files_save
  3016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3017. $as_echo_n "checking for suffix of object files... " >&6; }
  3018. if test "${ac_cv_objext+set}" = set; then :
  3019. $as_echo_n "(cached) " >&6
  3020. else
  3021. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3022. /* end confdefs.h. */
  3023. int
  3024. main ()
  3025. {
  3026. ;
  3027. return 0;
  3028. }
  3029. _ACEOF
  3030. rm -f conftest.o conftest.obj
  3031. if { { ac_try="$ac_compile"
  3032. case "(($ac_try" in
  3033. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3034. *) ac_try_echo=$ac_try;;
  3035. esac
  3036. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3037. $as_echo "$ac_try_echo"; } >&5
  3038. (eval "$ac_compile") 2>&5
  3039. ac_status=$?
  3040. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3041. test $ac_status = 0; }; then :
  3042. for ac_file in conftest.o conftest.obj conftest.*; do
  3043. test -f "$ac_file" || continue;
  3044. case $ac_file in
  3045. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3046. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3047. break;;
  3048. esac
  3049. done
  3050. else
  3051. $as_echo "$as_me: failed program was:" >&5
  3052. sed 's/^/| /' conftest.$ac_ext >&5
  3053. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3054. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3055. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3056. See \`config.log' for more details" "$LINENO" 5 ; }
  3057. fi
  3058. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3059. fi
  3060. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3061. $as_echo "$ac_cv_objext" >&6; }
  3062. OBJEXT=$ac_cv_objext
  3063. ac_objext=$OBJEXT
  3064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3065. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3066. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3067. $as_echo_n "(cached) " >&6
  3068. else
  3069. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3070. /* end confdefs.h. */
  3071. int
  3072. main ()
  3073. {
  3074. #ifndef __GNUC__
  3075. choke me
  3076. #endif
  3077. ;
  3078. return 0;
  3079. }
  3080. _ACEOF
  3081. if ac_fn_cxx_try_compile "$LINENO"; then :
  3082. ac_compiler_gnu=yes
  3083. else
  3084. ac_compiler_gnu=no
  3085. fi
  3086. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3087. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3088. fi
  3089. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3090. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3091. if test $ac_compiler_gnu = yes; then
  3092. GXX=yes
  3093. else
  3094. GXX=
  3095. fi
  3096. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3097. ac_save_CXXFLAGS=$CXXFLAGS
  3098. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3099. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3100. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3101. $as_echo_n "(cached) " >&6
  3102. else
  3103. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3104. ac_cxx_werror_flag=yes
  3105. ac_cv_prog_cxx_g=no
  3106. CXXFLAGS="-g"
  3107. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3108. /* end confdefs.h. */
  3109. int
  3110. main ()
  3111. {
  3112. ;
  3113. return 0;
  3114. }
  3115. _ACEOF
  3116. if ac_fn_cxx_try_compile "$LINENO"; then :
  3117. ac_cv_prog_cxx_g=yes
  3118. else
  3119. CXXFLAGS=""
  3120. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3121. /* end confdefs.h. */
  3122. int
  3123. main ()
  3124. {
  3125. ;
  3126. return 0;
  3127. }
  3128. _ACEOF
  3129. if ac_fn_cxx_try_compile "$LINENO"; then :
  3130. else
  3131. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3132. CXXFLAGS="-g"
  3133. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3134. /* end confdefs.h. */
  3135. int
  3136. main ()
  3137. {
  3138. ;
  3139. return 0;
  3140. }
  3141. _ACEOF
  3142. if ac_fn_cxx_try_compile "$LINENO"; then :
  3143. ac_cv_prog_cxx_g=yes
  3144. fi
  3145. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3146. fi
  3147. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3148. fi
  3149. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3150. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3151. fi
  3152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3153. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3154. if test "$ac_test_CXXFLAGS" = set; then
  3155. CXXFLAGS=$ac_save_CXXFLAGS
  3156. elif test $ac_cv_prog_cxx_g = yes; then
  3157. if test "$GXX" = yes; then
  3158. CXXFLAGS="-g -O2"
  3159. else
  3160. CXXFLAGS="-g"
  3161. fi
  3162. else
  3163. if test "$GXX" = yes; then
  3164. CXXFLAGS="-O2"
  3165. else
  3166. CXXFLAGS=
  3167. fi
  3168. fi
  3169. ac_ext=cpp
  3170. ac_cpp='$CXXCPP $CPPFLAGS'
  3171. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3172. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3173. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3174. DEPDIR="${am__leading_dot}deps"
  3175. ac_config_commands="$ac_config_commands depfiles"
  3176. am_make=${MAKE-make}
  3177. cat > confinc << 'END'
  3178. am__doit:
  3179. @echo this is the am__doit target
  3180. .PHONY: am__doit
  3181. END
  3182. # If we don't find an include directive, just comment out the code.
  3183. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3184. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3185. am__include="#"
  3186. am__quote=
  3187. _am_result=none
  3188. # First try GNU make style include.
  3189. echo "include confinc" > confmf
  3190. # Ignore all kinds of additional output from `make'.
  3191. case `$am_make -s -f confmf 2> /dev/null` in #(
  3192. *the\ am__doit\ target*)
  3193. am__include=include
  3194. am__quote=
  3195. _am_result=GNU
  3196. ;;
  3197. esac
  3198. # Now try BSD make style include.
  3199. if test "$am__include" = "#"; then
  3200. echo '.include "confinc"' > confmf
  3201. case `$am_make -s -f confmf 2> /dev/null` in #(
  3202. *the\ am__doit\ target*)
  3203. am__include=.include
  3204. am__quote="\""
  3205. _am_result=BSD
  3206. ;;
  3207. esac
  3208. fi
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3210. $as_echo "$_am_result" >&6; }
  3211. rm -f confinc confmf
  3212. # Check whether --enable-dependency-tracking was given.
  3213. if test "${enable_dependency_tracking+set}" = set; then :
  3214. enableval=$enable_dependency_tracking;
  3215. fi
  3216. if test "x$enable_dependency_tracking" != xno; then
  3217. am_depcomp="$ac_aux_dir/depcomp"
  3218. AMDEPBACKSLASH='\'
  3219. fi
  3220. if test "x$enable_dependency_tracking" != xno; then
  3221. AMDEP_TRUE=
  3222. AMDEP_FALSE='#'
  3223. else
  3224. AMDEP_TRUE='#'
  3225. AMDEP_FALSE=
  3226. fi
  3227. depcc="$CXX" am_compiler_list=
  3228. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3229. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3230. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3231. $as_echo_n "(cached) " >&6
  3232. else
  3233. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3234. # We make a subdir and do the tests there. Otherwise we can end up
  3235. # making bogus files that we don't know about and never remove. For
  3236. # instance it was reported that on HP-UX the gcc test will end up
  3237. # making a dummy file named `D' -- because `-MD' means `put the output
  3238. # in D'.
  3239. mkdir conftest.dir
  3240. # Copy depcomp to subdir because otherwise we won't find it if we're
  3241. # using a relative directory.
  3242. cp "$am_depcomp" conftest.dir
  3243. cd conftest.dir
  3244. # We will build objects and dependencies in a subdirectory because
  3245. # it helps to detect inapplicable dependency modes. For instance
  3246. # both Tru64's cc and ICC support -MD to output dependencies as a
  3247. # side effect of compilation, but ICC will put the dependencies in
  3248. # the current directory while Tru64 will put them in the object
  3249. # directory.
  3250. mkdir sub
  3251. am_cv_CXX_dependencies_compiler_type=none
  3252. if test "$am_compiler_list" = ""; then
  3253. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3254. fi
  3255. am__universal=false
  3256. case " $depcc " in #(
  3257. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3258. esac
  3259. for depmode in $am_compiler_list; do
  3260. # Setup a source with many dependencies, because some compilers
  3261. # like to wrap large dependency lists on column 80 (with \), and
  3262. # we should not choose a depcomp mode which is confused by this.
  3263. #
  3264. # We need to recreate these files for each test, as the compiler may
  3265. # overwrite some of them when testing with obscure command lines.
  3266. # This happens at least with the AIX C compiler.
  3267. : > sub/conftest.c
  3268. for i in 1 2 3 4 5 6; do
  3269. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3270. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3271. # Solaris 8's {/usr,}/bin/sh.
  3272. touch sub/conftst$i.h
  3273. done
  3274. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3275. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3276. # mode. It turns out that the SunPro C++ compiler does not properly
  3277. # handle `-M -o', and we need to detect this. Also, some Intel
  3278. # versions had trouble with output in subdirs
  3279. am__obj=sub/conftest.${OBJEXT-o}
  3280. am__minus_obj="-o $am__obj"
  3281. case $depmode in
  3282. gcc)
  3283. # This depmode causes a compiler race in universal mode.
  3284. test "$am__universal" = false || continue
  3285. ;;
  3286. nosideeffect)
  3287. # after this tag, mechanisms are not by side-effect, so they'll
  3288. # only be used when explicitly requested
  3289. if test "x$enable_dependency_tracking" = xyes; then
  3290. continue
  3291. else
  3292. break
  3293. fi
  3294. ;;
  3295. msvisualcpp | msvcmsys)
  3296. # This compiler won't grok `-c -o', but also, the minuso test has
  3297. # not run yet. These depmodes are late enough in the game, and
  3298. # so weak that their functioning should not be impacted.
  3299. am__obj=conftest.${OBJEXT-o}
  3300. am__minus_obj=
  3301. ;;
  3302. none) break ;;
  3303. esac
  3304. if depmode=$depmode \
  3305. source=sub/conftest.c object=$am__obj \
  3306. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3307. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3308. >/dev/null 2>conftest.err &&
  3309. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3310. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3311. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3312. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3313. # icc doesn't choke on unknown options, it will just issue warnings
  3314. # or remarks (even with -Werror). So we grep stderr for any message
  3315. # that says an option was ignored or not supported.
  3316. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3317. # icc: Command line warning: ignoring option '-M'; no argument required
  3318. # The diagnosis changed in icc 8.0:
  3319. # icc: Command line remark: option '-MP' not supported
  3320. if (grep 'ignoring option' conftest.err ||
  3321. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3322. am_cv_CXX_dependencies_compiler_type=$depmode
  3323. break
  3324. fi
  3325. fi
  3326. done
  3327. cd ..
  3328. rm -rf conftest.dir
  3329. else
  3330. am_cv_CXX_dependencies_compiler_type=none
  3331. fi
  3332. fi
  3333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3334. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3335. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3336. if
  3337. test "x$enable_dependency_tracking" != xno \
  3338. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3339. am__fastdepCXX_TRUE=
  3340. am__fastdepCXX_FALSE='#'
  3341. else
  3342. am__fastdepCXX_TRUE='#'
  3343. am__fastdepCXX_FALSE=
  3344. fi
  3345. # Check whether --enable-shared was given.
  3346. if test "${enable_shared+set}" = set; then :
  3347. enableval=$enable_shared; p=${PACKAGE-default}
  3348. case $enableval in
  3349. yes) enable_shared=yes ;;
  3350. no) enable_shared=no ;;
  3351. *)
  3352. enable_shared=no
  3353. # Look at the argument we got. We use all the common list separators.
  3354. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3355. for pkg in $enableval; do
  3356. IFS="$lt_save_ifs"
  3357. if test "X$pkg" = "X$p"; then
  3358. enable_shared=yes
  3359. fi
  3360. done
  3361. IFS="$lt_save_ifs"
  3362. ;;
  3363. esac
  3364. else
  3365. enable_shared=yes
  3366. fi
  3367. # Check whether --enable-static was given.
  3368. if test "${enable_static+set}" = set; then :
  3369. enableval=$enable_static; p=${PACKAGE-default}
  3370. case $enableval in
  3371. yes) enable_static=yes ;;
  3372. no) enable_static=no ;;
  3373. *)
  3374. enable_static=no
  3375. # Look at the argument we got. We use all the common list separators.
  3376. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3377. for pkg in $enableval; do
  3378. IFS="$lt_save_ifs"
  3379. if test "X$pkg" = "X$p"; then
  3380. enable_static=yes
  3381. fi
  3382. done
  3383. IFS="$lt_save_ifs"
  3384. ;;
  3385. esac
  3386. else
  3387. enable_static=no
  3388. fi
  3389. case `pwd` in
  3390. *\ * | *\ *)
  3391. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3392. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3393. esac
  3394. macro_version='2.4'
  3395. macro_revision='1.3293'
  3396. ltmain="$ac_aux_dir/ltmain.sh"
  3397. # Make sure we can run config.sub.
  3398. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3399. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3401. $as_echo_n "checking build system type... " >&6; }
  3402. if test "${ac_cv_build+set}" = set; then :
  3403. $as_echo_n "(cached) " >&6
  3404. else
  3405. ac_build_alias=$build_alias
  3406. test "x$ac_build_alias" = x &&
  3407. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3408. test "x$ac_build_alias" = x &&
  3409. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3410. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3411. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3412. fi
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3414. $as_echo "$ac_cv_build" >&6; }
  3415. case $ac_cv_build in
  3416. *-*-*) ;;
  3417. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
  3418. esac
  3419. build=$ac_cv_build
  3420. ac_save_IFS=$IFS; IFS='-'
  3421. set x $ac_cv_build
  3422. shift
  3423. build_cpu=$1
  3424. build_vendor=$2
  3425. shift; shift
  3426. # Remember, the first character of IFS is used to create $*,
  3427. # except with old shells:
  3428. build_os=$*
  3429. IFS=$ac_save_IFS
  3430. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3432. $as_echo_n "checking host system type... " >&6; }
  3433. if test "${ac_cv_host+set}" = set; then :
  3434. $as_echo_n "(cached) " >&6
  3435. else
  3436. if test "x$host_alias" = x; then
  3437. ac_cv_host=$ac_cv_build
  3438. else
  3439. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3440. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3441. fi
  3442. fi
  3443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3444. $as_echo "$ac_cv_host" >&6; }
  3445. case $ac_cv_host in
  3446. *-*-*) ;;
  3447. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
  3448. esac
  3449. host=$ac_cv_host
  3450. ac_save_IFS=$IFS; IFS='-'
  3451. set x $ac_cv_host
  3452. shift
  3453. host_cpu=$1
  3454. host_vendor=$2
  3455. shift; shift
  3456. # Remember, the first character of IFS is used to create $*,
  3457. # except with old shells:
  3458. host_os=$*
  3459. IFS=$ac_save_IFS
  3460. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3461. # Backslashify metacharacters that are still active within
  3462. # double-quoted strings.
  3463. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3464. # Same as above, but do not quote variable references.
  3465. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3466. # Sed substitution to delay expansion of an escaped shell variable in a
  3467. # double_quote_subst'ed string.
  3468. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3469. # Sed substitution to delay expansion of an escaped single quote.
  3470. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3471. # Sed substitution to avoid accidental globbing in evaled expressions
  3472. no_glob_subst='s/\*/\\\*/g'
  3473. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3474. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3475. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3477. $as_echo_n "checking how to print strings... " >&6; }
  3478. # Test print first, because it will be a builtin if present.
  3479. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3480. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3481. ECHO='print -r --'
  3482. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3483. ECHO='printf %s\n'
  3484. else
  3485. # Use this function as a fallback that always works.
  3486. func_fallback_echo ()
  3487. {
  3488. eval 'cat <<_LTECHO_EOF
  3489. $1
  3490. _LTECHO_EOF'
  3491. }
  3492. ECHO='func_fallback_echo'
  3493. fi
  3494. # func_echo_all arg...
  3495. # Invoke $ECHO with all args, space-separated.
  3496. func_echo_all ()
  3497. {
  3498. $ECHO ""
  3499. }
  3500. case "$ECHO" in
  3501. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3502. $as_echo "printf" >&6; } ;;
  3503. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3504. $as_echo "print -r" >&6; } ;;
  3505. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3506. $as_echo "cat" >&6; } ;;
  3507. esac
  3508. ac_ext=c
  3509. ac_cpp='$CPP $CPPFLAGS'
  3510. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3511. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3512. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3513. if test -n "$ac_tool_prefix"; then
  3514. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3515. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3517. $as_echo_n "checking for $ac_word... " >&6; }
  3518. if test "${ac_cv_prog_CC+set}" = set; then :
  3519. $as_echo_n "(cached) " >&6
  3520. else
  3521. if test -n "$CC"; then
  3522. ac_cv_prog_CC="$CC" # Let the user override the test.
  3523. else
  3524. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3525. for as_dir in $PATH
  3526. do
  3527. IFS=$as_save_IFS
  3528. test -z "$as_dir" && as_dir=.
  3529. for ac_exec_ext in '' $ac_executable_extensions; do
  3530. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3531. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3532. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3533. break 2
  3534. fi
  3535. done
  3536. done
  3537. IFS=$as_save_IFS
  3538. fi
  3539. fi
  3540. CC=$ac_cv_prog_CC
  3541. if test -n "$CC"; then
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3543. $as_echo "$CC" >&6; }
  3544. else
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3546. $as_echo "no" >&6; }
  3547. fi
  3548. fi
  3549. if test -z "$ac_cv_prog_CC"; then
  3550. ac_ct_CC=$CC
  3551. # Extract the first word of "gcc", so it can be a program name with args.
  3552. set dummy gcc; ac_word=$2
  3553. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3554. $as_echo_n "checking for $ac_word... " >&6; }
  3555. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3556. $as_echo_n "(cached) " >&6
  3557. else
  3558. if test -n "$ac_ct_CC"; then
  3559. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3560. else
  3561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3562. for as_dir in $PATH
  3563. do
  3564. IFS=$as_save_IFS
  3565. test -z "$as_dir" && as_dir=.
  3566. for ac_exec_ext in '' $ac_executable_extensions; do
  3567. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3568. ac_cv_prog_ac_ct_CC="gcc"
  3569. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3570. break 2
  3571. fi
  3572. done
  3573. done
  3574. IFS=$as_save_IFS
  3575. fi
  3576. fi
  3577. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3578. if test -n "$ac_ct_CC"; then
  3579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3580. $as_echo "$ac_ct_CC" >&6; }
  3581. else
  3582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3583. $as_echo "no" >&6; }
  3584. fi
  3585. if test "x$ac_ct_CC" = x; then
  3586. CC=""
  3587. else
  3588. case $cross_compiling:$ac_tool_warned in
  3589. yes:)
  3590. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3591. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3592. ac_tool_warned=yes ;;
  3593. esac
  3594. CC=$ac_ct_CC
  3595. fi
  3596. else
  3597. CC="$ac_cv_prog_CC"
  3598. fi
  3599. if test -z "$CC"; then
  3600. if test -n "$ac_tool_prefix"; then
  3601. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3602. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3604. $as_echo_n "checking for $ac_word... " >&6; }
  3605. if test "${ac_cv_prog_CC+set}" = set; then :
  3606. $as_echo_n "(cached) " >&6
  3607. else
  3608. if test -n "$CC"; then
  3609. ac_cv_prog_CC="$CC" # Let the user override the test.
  3610. else
  3611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3612. for as_dir in $PATH
  3613. do
  3614. IFS=$as_save_IFS
  3615. test -z "$as_dir" && as_dir=.
  3616. for ac_exec_ext in '' $ac_executable_extensions; do
  3617. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3618. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3620. break 2
  3621. fi
  3622. done
  3623. done
  3624. IFS=$as_save_IFS
  3625. fi
  3626. fi
  3627. CC=$ac_cv_prog_CC
  3628. if test -n "$CC"; then
  3629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3630. $as_echo "$CC" >&6; }
  3631. else
  3632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3633. $as_echo "no" >&6; }
  3634. fi
  3635. fi
  3636. fi
  3637. if test -z "$CC"; then
  3638. # Extract the first word of "cc", so it can be a program name with args.
  3639. set dummy cc; ac_word=$2
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3641. $as_echo_n "checking for $ac_word... " >&6; }
  3642. if test "${ac_cv_prog_CC+set}" = set; then :
  3643. $as_echo_n "(cached) " >&6
  3644. else
  3645. if test -n "$CC"; then
  3646. ac_cv_prog_CC="$CC" # Let the user override the test.
  3647. else
  3648. ac_prog_rejected=no
  3649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3650. for as_dir in $PATH
  3651. do
  3652. IFS=$as_save_IFS
  3653. test -z "$as_dir" && as_dir=.
  3654. for ac_exec_ext in '' $ac_executable_extensions; do
  3655. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3656. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3657. ac_prog_rejected=yes
  3658. continue
  3659. fi
  3660. ac_cv_prog_CC="cc"
  3661. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3662. break 2
  3663. fi
  3664. done
  3665. done
  3666. IFS=$as_save_IFS
  3667. if test $ac_prog_rejected = yes; then
  3668. # We found a bogon in the path, so make sure we never use it.
  3669. set dummy $ac_cv_prog_CC
  3670. shift
  3671. if test $# != 0; then
  3672. # We chose a different compiler from the bogus one.
  3673. # However, it has the same basename, so the bogon will be chosen
  3674. # first if we set CC to just the basename; use the full file name.
  3675. shift
  3676. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3677. fi
  3678. fi
  3679. fi
  3680. fi
  3681. CC=$ac_cv_prog_CC
  3682. if test -n "$CC"; then
  3683. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3684. $as_echo "$CC" >&6; }
  3685. else
  3686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3687. $as_echo "no" >&6; }
  3688. fi
  3689. fi
  3690. if test -z "$CC"; then
  3691. if test -n "$ac_tool_prefix"; then
  3692. for ac_prog in cl.exe
  3693. do
  3694. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3695. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3697. $as_echo_n "checking for $ac_word... " >&6; }
  3698. if test "${ac_cv_prog_CC+set}" = set; then :
  3699. $as_echo_n "(cached) " >&6
  3700. else
  3701. if test -n "$CC"; then
  3702. ac_cv_prog_CC="$CC" # Let the user override the test.
  3703. else
  3704. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3705. for as_dir in $PATH
  3706. do
  3707. IFS=$as_save_IFS
  3708. test -z "$as_dir" && as_dir=.
  3709. for ac_exec_ext in '' $ac_executable_extensions; do
  3710. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3711. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3712. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3713. break 2
  3714. fi
  3715. done
  3716. done
  3717. IFS=$as_save_IFS
  3718. fi
  3719. fi
  3720. CC=$ac_cv_prog_CC
  3721. if test -n "$CC"; then
  3722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3723. $as_echo "$CC" >&6; }
  3724. else
  3725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3726. $as_echo "no" >&6; }
  3727. fi
  3728. test -n "$CC" && break
  3729. done
  3730. fi
  3731. if test -z "$CC"; then
  3732. ac_ct_CC=$CC
  3733. for ac_prog in cl.exe
  3734. do
  3735. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3736. set dummy $ac_prog; ac_word=$2
  3737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3738. $as_echo_n "checking for $ac_word... " >&6; }
  3739. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3740. $as_echo_n "(cached) " >&6
  3741. else
  3742. if test -n "$ac_ct_CC"; then
  3743. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3744. else
  3745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3746. for as_dir in $PATH
  3747. do
  3748. IFS=$as_save_IFS
  3749. test -z "$as_dir" && as_dir=.
  3750. for ac_exec_ext in '' $ac_executable_extensions; do
  3751. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3752. ac_cv_prog_ac_ct_CC="$ac_prog"
  3753. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3754. break 2
  3755. fi
  3756. done
  3757. done
  3758. IFS=$as_save_IFS
  3759. fi
  3760. fi
  3761. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3762. if test -n "$ac_ct_CC"; then
  3763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3764. $as_echo "$ac_ct_CC" >&6; }
  3765. else
  3766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3767. $as_echo "no" >&6; }
  3768. fi
  3769. test -n "$ac_ct_CC" && break
  3770. done
  3771. if test "x$ac_ct_CC" = x; then
  3772. CC=""
  3773. else
  3774. case $cross_compiling:$ac_tool_warned in
  3775. yes:)
  3776. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3777. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3778. ac_tool_warned=yes ;;
  3779. esac
  3780. CC=$ac_ct_CC
  3781. fi
  3782. fi
  3783. fi
  3784. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3785. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3786. as_fn_error $? "no acceptable C compiler found in \$PATH
  3787. See \`config.log' for more details" "$LINENO" 5 ; }
  3788. # Provide some information about the compiler.
  3789. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3790. set X $ac_compile
  3791. ac_compiler=$2
  3792. for ac_option in --version -v -V -qversion; do
  3793. { { ac_try="$ac_compiler $ac_option >&5"
  3794. case "(($ac_try" in
  3795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3796. *) ac_try_echo=$ac_try;;
  3797. esac
  3798. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3799. $as_echo "$ac_try_echo"; } >&5
  3800. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3801. ac_status=$?
  3802. if test -s conftest.err; then
  3803. sed '10a\
  3804. ... rest of stderr output deleted ...
  3805. 10q' conftest.err >conftest.er1
  3806. cat conftest.er1 >&5
  3807. fi
  3808. rm -f conftest.er1 conftest.err
  3809. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3810. test $ac_status = 0; }
  3811. done
  3812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3813. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3814. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3815. $as_echo_n "(cached) " >&6
  3816. else
  3817. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3818. /* end confdefs.h. */
  3819. int
  3820. main ()
  3821. {
  3822. #ifndef __GNUC__
  3823. choke me
  3824. #endif
  3825. ;
  3826. return 0;
  3827. }
  3828. _ACEOF
  3829. if ac_fn_c_try_compile "$LINENO"; then :
  3830. ac_compiler_gnu=yes
  3831. else
  3832. ac_compiler_gnu=no
  3833. fi
  3834. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3835. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3836. fi
  3837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3838. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3839. if test $ac_compiler_gnu = yes; then
  3840. GCC=yes
  3841. else
  3842. GCC=
  3843. fi
  3844. ac_test_CFLAGS=${CFLAGS+set}
  3845. ac_save_CFLAGS=$CFLAGS
  3846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3847. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3848. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3849. $as_echo_n "(cached) " >&6
  3850. else
  3851. ac_save_c_werror_flag=$ac_c_werror_flag
  3852. ac_c_werror_flag=yes
  3853. ac_cv_prog_cc_g=no
  3854. CFLAGS="-g"
  3855. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3856. /* end confdefs.h. */
  3857. int
  3858. main ()
  3859. {
  3860. ;
  3861. return 0;
  3862. }
  3863. _ACEOF
  3864. if ac_fn_c_try_compile "$LINENO"; then :
  3865. ac_cv_prog_cc_g=yes
  3866. else
  3867. CFLAGS=""
  3868. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3869. /* end confdefs.h. */
  3870. int
  3871. main ()
  3872. {
  3873. ;
  3874. return 0;
  3875. }
  3876. _ACEOF
  3877. if ac_fn_c_try_compile "$LINENO"; then :
  3878. else
  3879. ac_c_werror_flag=$ac_save_c_werror_flag
  3880. CFLAGS="-g"
  3881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3882. /* end confdefs.h. */
  3883. int
  3884. main ()
  3885. {
  3886. ;
  3887. return 0;
  3888. }
  3889. _ACEOF
  3890. if ac_fn_c_try_compile "$LINENO"; then :
  3891. ac_cv_prog_cc_g=yes
  3892. fi
  3893. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3894. fi
  3895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3896. fi
  3897. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3898. ac_c_werror_flag=$ac_save_c_werror_flag
  3899. fi
  3900. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3901. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3902. if test "$ac_test_CFLAGS" = set; then
  3903. CFLAGS=$ac_save_CFLAGS
  3904. elif test $ac_cv_prog_cc_g = yes; then
  3905. if test "$GCC" = yes; then
  3906. CFLAGS="-g -O2"
  3907. else
  3908. CFLAGS="-g"
  3909. fi
  3910. else
  3911. if test "$GCC" = yes; then
  3912. CFLAGS="-O2"
  3913. else
  3914. CFLAGS=
  3915. fi
  3916. fi
  3917. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3918. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3919. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3920. $as_echo_n "(cached) " >&6
  3921. else
  3922. ac_cv_prog_cc_c89=no
  3923. ac_save_CC=$CC
  3924. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3925. /* end confdefs.h. */
  3926. #include <stdarg.h>
  3927. #include <stdio.h>
  3928. #include <sys/types.h>
  3929. #include <sys/stat.h>
  3930. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3931. struct buf { int x; };
  3932. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3933. static char *e (p, i)
  3934. char **p;
  3935. int i;
  3936. {
  3937. return p[i];
  3938. }
  3939. static char *f (char * (*g) (char **, int), char **p, ...)
  3940. {
  3941. char *s;
  3942. va_list v;
  3943. va_start (v,p);
  3944. s = g (p, va_arg (v,int));
  3945. va_end (v);
  3946. return s;
  3947. }
  3948. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3949. function prototypes and stuff, but not '\xHH' hex character constants.
  3950. These don't provoke an error unfortunately, instead are silently treated
  3951. as 'x'. The following induces an error, until -std is added to get
  3952. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3953. array size at least. It's necessary to write '\x00'==0 to get something
  3954. that's true only with -std. */
  3955. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3956. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3957. inside strings and character constants. */
  3958. #define FOO(x) 'x'
  3959. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3960. int test (int i, double x);
  3961. struct s1 {int (*f) (int a);};
  3962. struct s2 {int (*f) (double a);};
  3963. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3964. int argc;
  3965. char **argv;
  3966. int
  3967. main ()
  3968. {
  3969. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3970. ;
  3971. return 0;
  3972. }
  3973. _ACEOF
  3974. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3975. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3976. do
  3977. CC="$ac_save_CC $ac_arg"
  3978. if ac_fn_c_try_compile "$LINENO"; then :
  3979. ac_cv_prog_cc_c89=$ac_arg
  3980. fi
  3981. rm -f core conftest.err conftest.$ac_objext
  3982. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3983. done
  3984. rm -f conftest.$ac_ext
  3985. CC=$ac_save_CC
  3986. fi
  3987. # AC_CACHE_VAL
  3988. case "x$ac_cv_prog_cc_c89" in
  3989. x)
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3991. $as_echo "none needed" >&6; } ;;
  3992. xno)
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3994. $as_echo "unsupported" >&6; } ;;
  3995. *)
  3996. CC="$CC $ac_cv_prog_cc_c89"
  3997. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3998. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3999. esac
  4000. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4001. fi
  4002. ac_ext=cpp
  4003. ac_cpp='$CXXCPP $CPPFLAGS'
  4004. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4005. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4006. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4007. depcc="$CC" am_compiler_list=
  4008. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4009. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4010. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4011. $as_echo_n "(cached) " >&6
  4012. else
  4013. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4014. # We make a subdir and do the tests there. Otherwise we can end up
  4015. # making bogus files that we don't know about and never remove. For
  4016. # instance it was reported that on HP-UX the gcc test will end up
  4017. # making a dummy file named `D' -- because `-MD' means `put the output
  4018. # in D'.
  4019. mkdir conftest.dir
  4020. # Copy depcomp to subdir because otherwise we won't find it if we're
  4021. # using a relative directory.
  4022. cp "$am_depcomp" conftest.dir
  4023. cd conftest.dir
  4024. # We will build objects and dependencies in a subdirectory because
  4025. # it helps to detect inapplicable dependency modes. For instance
  4026. # both Tru64's cc and ICC support -MD to output dependencies as a
  4027. # side effect of compilation, but ICC will put the dependencies in
  4028. # the current directory while Tru64 will put them in the object
  4029. # directory.
  4030. mkdir sub
  4031. am_cv_CC_dependencies_compiler_type=none
  4032. if test "$am_compiler_list" = ""; then
  4033. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4034. fi
  4035. am__universal=false
  4036. case " $depcc " in #(
  4037. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4038. esac
  4039. for depmode in $am_compiler_list; do
  4040. # Setup a source with many dependencies, because some compilers
  4041. # like to wrap large dependency lists on column 80 (with \), and
  4042. # we should not choose a depcomp mode which is confused by this.
  4043. #
  4044. # We need to recreate these files for each test, as the compiler may
  4045. # overwrite some of them when testing with obscure command lines.
  4046. # This happens at least with the AIX C compiler.
  4047. : > sub/conftest.c
  4048. for i in 1 2 3 4 5 6; do
  4049. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4050. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4051. # Solaris 8's {/usr,}/bin/sh.
  4052. touch sub/conftst$i.h
  4053. done
  4054. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4055. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4056. # mode. It turns out that the SunPro C++ compiler does not properly
  4057. # handle `-M -o', and we need to detect this. Also, some Intel
  4058. # versions had trouble with output in subdirs
  4059. am__obj=sub/conftest.${OBJEXT-o}
  4060. am__minus_obj="-o $am__obj"
  4061. case $depmode in
  4062. gcc)
  4063. # This depmode causes a compiler race in universal mode.
  4064. test "$am__universal" = false || continue
  4065. ;;
  4066. nosideeffect)
  4067. # after this tag, mechanisms are not by side-effect, so they'll
  4068. # only be used when explicitly requested
  4069. if test "x$enable_dependency_tracking" = xyes; then
  4070. continue
  4071. else
  4072. break
  4073. fi
  4074. ;;
  4075. msvisualcpp | msvcmsys)
  4076. # This compiler won't grok `-c -o', but also, the minuso test has
  4077. # not run yet. These depmodes are late enough in the game, and
  4078. # so weak that their functioning should not be impacted.
  4079. am__obj=conftest.${OBJEXT-o}
  4080. am__minus_obj=
  4081. ;;
  4082. none) break ;;
  4083. esac
  4084. if depmode=$depmode \
  4085. source=sub/conftest.c object=$am__obj \
  4086. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4087. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4088. >/dev/null 2>conftest.err &&
  4089. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4090. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4091. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4092. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4093. # icc doesn't choke on unknown options, it will just issue warnings
  4094. # or remarks (even with -Werror). So we grep stderr for any message
  4095. # that says an option was ignored or not supported.
  4096. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4097. # icc: Command line warning: ignoring option '-M'; no argument required
  4098. # The diagnosis changed in icc 8.0:
  4099. # icc: Command line remark: option '-MP' not supported
  4100. if (grep 'ignoring option' conftest.err ||
  4101. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4102. am_cv_CC_dependencies_compiler_type=$depmode
  4103. break
  4104. fi
  4105. fi
  4106. done
  4107. cd ..
  4108. rm -rf conftest.dir
  4109. else
  4110. am_cv_CC_dependencies_compiler_type=none
  4111. fi
  4112. fi
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4114. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4115. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4116. if
  4117. test "x$enable_dependency_tracking" != xno \
  4118. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4119. am__fastdepCC_TRUE=
  4120. am__fastdepCC_FALSE='#'
  4121. else
  4122. am__fastdepCC_TRUE='#'
  4123. am__fastdepCC_FALSE=
  4124. fi
  4125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4126. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4127. if test "${ac_cv_path_SED+set}" = set; then :
  4128. $as_echo_n "(cached) " >&6
  4129. else
  4130. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4131. for ac_i in 1 2 3 4 5 6 7; do
  4132. ac_script="$ac_script$as_nl$ac_script"
  4133. done
  4134. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4135. { ac_script=; unset ac_script;}
  4136. if test -z "$SED"; then
  4137. ac_path_SED_found=false
  4138. # Loop through the user's path and test for each of PROGNAME-LIST
  4139. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4140. for as_dir in $PATH
  4141. do
  4142. IFS=$as_save_IFS
  4143. test -z "$as_dir" && as_dir=.
  4144. for ac_prog in sed gsed; do
  4145. for ac_exec_ext in '' $ac_executable_extensions; do
  4146. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4147. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4148. # Check for GNU ac_path_SED and select it if it is found.
  4149. # Check for GNU $ac_path_SED
  4150. case `"$ac_path_SED" --version 2>&1` in
  4151. *GNU*)
  4152. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4153. *)
  4154. ac_count=0
  4155. $as_echo_n 0123456789 >"conftest.in"
  4156. while :
  4157. do
  4158. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4159. mv "conftest.tmp" "conftest.in"
  4160. cp "conftest.in" "conftest.nl"
  4161. $as_echo '' >> "conftest.nl"
  4162. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4163. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4164. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4165. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4166. # Best one so far, save it but keep looking for a better one
  4167. ac_cv_path_SED="$ac_path_SED"
  4168. ac_path_SED_max=$ac_count
  4169. fi
  4170. # 10*(2^10) chars as input seems more than enough
  4171. test $ac_count -gt 10 && break
  4172. done
  4173. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4174. esac
  4175. $ac_path_SED_found && break 3
  4176. done
  4177. done
  4178. done
  4179. IFS=$as_save_IFS
  4180. if test -z "$ac_cv_path_SED"; then
  4181. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4182. fi
  4183. else
  4184. ac_cv_path_SED=$SED
  4185. fi
  4186. fi
  4187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4188. $as_echo "$ac_cv_path_SED" >&6; }
  4189. SED="$ac_cv_path_SED"
  4190. rm -f conftest.sed
  4191. test -z "$SED" && SED=sed
  4192. Xsed="$SED -e 1s/^X//"
  4193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4194. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4195. if test "${ac_cv_path_GREP+set}" = set; then :
  4196. $as_echo_n "(cached) " >&6
  4197. else
  4198. if test -z "$GREP"; then
  4199. ac_path_GREP_found=false
  4200. # Loop through the user's path and test for each of PROGNAME-LIST
  4201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4202. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4203. do
  4204. IFS=$as_save_IFS
  4205. test -z "$as_dir" && as_dir=.
  4206. for ac_prog in grep ggrep; do
  4207. for ac_exec_ext in '' $ac_executable_extensions; do
  4208. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4209. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4210. # Check for GNU ac_path_GREP and select it if it is found.
  4211. # Check for GNU $ac_path_GREP
  4212. case `"$ac_path_GREP" --version 2>&1` in
  4213. *GNU*)
  4214. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4215. *)
  4216. ac_count=0
  4217. $as_echo_n 0123456789 >"conftest.in"
  4218. while :
  4219. do
  4220. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4221. mv "conftest.tmp" "conftest.in"
  4222. cp "conftest.in" "conftest.nl"
  4223. $as_echo 'GREP' >> "conftest.nl"
  4224. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4225. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4226. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4227. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4228. # Best one so far, save it but keep looking for a better one
  4229. ac_cv_path_GREP="$ac_path_GREP"
  4230. ac_path_GREP_max=$ac_count
  4231. fi
  4232. # 10*(2^10) chars as input seems more than enough
  4233. test $ac_count -gt 10 && break
  4234. done
  4235. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4236. esac
  4237. $ac_path_GREP_found && break 3
  4238. done
  4239. done
  4240. done
  4241. IFS=$as_save_IFS
  4242. if test -z "$ac_cv_path_GREP"; then
  4243. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4244. fi
  4245. else
  4246. ac_cv_path_GREP=$GREP
  4247. fi
  4248. fi
  4249. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4250. $as_echo "$ac_cv_path_GREP" >&6; }
  4251. GREP="$ac_cv_path_GREP"
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4253. $as_echo_n "checking for egrep... " >&6; }
  4254. if test "${ac_cv_path_EGREP+set}" = set; then :
  4255. $as_echo_n "(cached) " >&6
  4256. else
  4257. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4258. then ac_cv_path_EGREP="$GREP -E"
  4259. else
  4260. if test -z "$EGREP"; then
  4261. ac_path_EGREP_found=false
  4262. # Loop through the user's path and test for each of PROGNAME-LIST
  4263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4264. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4265. do
  4266. IFS=$as_save_IFS
  4267. test -z "$as_dir" && as_dir=.
  4268. for ac_prog in egrep; do
  4269. for ac_exec_ext in '' $ac_executable_extensions; do
  4270. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4271. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4272. # Check for GNU ac_path_EGREP and select it if it is found.
  4273. # Check for GNU $ac_path_EGREP
  4274. case `"$ac_path_EGREP" --version 2>&1` in
  4275. *GNU*)
  4276. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4277. *)
  4278. ac_count=0
  4279. $as_echo_n 0123456789 >"conftest.in"
  4280. while :
  4281. do
  4282. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4283. mv "conftest.tmp" "conftest.in"
  4284. cp "conftest.in" "conftest.nl"
  4285. $as_echo 'EGREP' >> "conftest.nl"
  4286. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4287. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4288. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4289. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4290. # Best one so far, save it but keep looking for a better one
  4291. ac_cv_path_EGREP="$ac_path_EGREP"
  4292. ac_path_EGREP_max=$ac_count
  4293. fi
  4294. # 10*(2^10) chars as input seems more than enough
  4295. test $ac_count -gt 10 && break
  4296. done
  4297. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4298. esac
  4299. $ac_path_EGREP_found && break 3
  4300. done
  4301. done
  4302. done
  4303. IFS=$as_save_IFS
  4304. if test -z "$ac_cv_path_EGREP"; then
  4305. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4306. fi
  4307. else
  4308. ac_cv_path_EGREP=$EGREP
  4309. fi
  4310. fi
  4311. fi
  4312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4313. $as_echo "$ac_cv_path_EGREP" >&6; }
  4314. EGREP="$ac_cv_path_EGREP"
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4316. $as_echo_n "checking for fgrep... " >&6; }
  4317. if test "${ac_cv_path_FGREP+set}" = set; then :
  4318. $as_echo_n "(cached) " >&6
  4319. else
  4320. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4321. then ac_cv_path_FGREP="$GREP -F"
  4322. else
  4323. if test -z "$FGREP"; then
  4324. ac_path_FGREP_found=false
  4325. # Loop through the user's path and test for each of PROGNAME-LIST
  4326. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4327. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4328. do
  4329. IFS=$as_save_IFS
  4330. test -z "$as_dir" && as_dir=.
  4331. for ac_prog in fgrep; do
  4332. for ac_exec_ext in '' $ac_executable_extensions; do
  4333. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4334. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4335. # Check for GNU ac_path_FGREP and select it if it is found.
  4336. # Check for GNU $ac_path_FGREP
  4337. case `"$ac_path_FGREP" --version 2>&1` in
  4338. *GNU*)
  4339. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4340. *)
  4341. ac_count=0
  4342. $as_echo_n 0123456789 >"conftest.in"
  4343. while :
  4344. do
  4345. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4346. mv "conftest.tmp" "conftest.in"
  4347. cp "conftest.in" "conftest.nl"
  4348. $as_echo 'FGREP' >> "conftest.nl"
  4349. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4350. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4351. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4352. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4353. # Best one so far, save it but keep looking for a better one
  4354. ac_cv_path_FGREP="$ac_path_FGREP"
  4355. ac_path_FGREP_max=$ac_count
  4356. fi
  4357. # 10*(2^10) chars as input seems more than enough
  4358. test $ac_count -gt 10 && break
  4359. done
  4360. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4361. esac
  4362. $ac_path_FGREP_found && break 3
  4363. done
  4364. done
  4365. done
  4366. IFS=$as_save_IFS
  4367. if test -z "$ac_cv_path_FGREP"; then
  4368. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4369. fi
  4370. else
  4371. ac_cv_path_FGREP=$FGREP
  4372. fi
  4373. fi
  4374. fi
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4376. $as_echo "$ac_cv_path_FGREP" >&6; }
  4377. FGREP="$ac_cv_path_FGREP"
  4378. test -z "$GREP" && GREP=grep
  4379. # Check whether --with-gnu-ld was given.
  4380. if test "${with_gnu_ld+set}" = set; then :
  4381. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4382. else
  4383. with_gnu_ld=no
  4384. fi
  4385. ac_prog=ld
  4386. if test "$GCC" = yes; then
  4387. # Check if gcc -print-prog-name=ld gives a path.
  4388. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4389. $as_echo_n "checking for ld used by $CC... " >&6; }
  4390. case $host in
  4391. *-*-mingw*)
  4392. # gcc leaves a trailing carriage return which upsets mingw
  4393. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4394. *)
  4395. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4396. esac
  4397. case $ac_prog in
  4398. # Accept absolute paths.
  4399. [\\/]* | ?:[\\/]*)
  4400. re_direlt='/[^/][^/]*/\.\./'
  4401. # Canonicalize the pathname of ld
  4402. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4403. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4404. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4405. done
  4406. test -z "$LD" && LD="$ac_prog"
  4407. ;;
  4408. "")
  4409. # If it fails, then pretend we aren't using GCC.
  4410. ac_prog=ld
  4411. ;;
  4412. *)
  4413. # If it is relative, then search for the first ld in PATH.
  4414. with_gnu_ld=unknown
  4415. ;;
  4416. esac
  4417. elif test "$with_gnu_ld" = yes; then
  4418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4419. $as_echo_n "checking for GNU ld... " >&6; }
  4420. else
  4421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4422. $as_echo_n "checking for non-GNU ld... " >&6; }
  4423. fi
  4424. if test "${lt_cv_path_LD+set}" = set; then :
  4425. $as_echo_n "(cached) " >&6
  4426. else
  4427. if test -z "$LD"; then
  4428. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4429. for ac_dir in $PATH; do
  4430. IFS="$lt_save_ifs"
  4431. test -z "$ac_dir" && ac_dir=.
  4432. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4433. lt_cv_path_LD="$ac_dir/$ac_prog"
  4434. # Check to see if the program is GNU ld. I'd rather use --version,
  4435. # but apparently some variants of GNU ld only accept -v.
  4436. # Break only if it was the GNU/non-GNU ld that we prefer.
  4437. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4438. *GNU* | *'with BFD'*)
  4439. test "$with_gnu_ld" != no && break
  4440. ;;
  4441. *)
  4442. test "$with_gnu_ld" != yes && break
  4443. ;;
  4444. esac
  4445. fi
  4446. done
  4447. IFS="$lt_save_ifs"
  4448. else
  4449. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4450. fi
  4451. fi
  4452. LD="$lt_cv_path_LD"
  4453. if test -n "$LD"; then
  4454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4455. $as_echo "$LD" >&6; }
  4456. else
  4457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4458. $as_echo "no" >&6; }
  4459. fi
  4460. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4462. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4463. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4464. $as_echo_n "(cached) " >&6
  4465. else
  4466. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4467. case `$LD -v 2>&1 </dev/null` in
  4468. *GNU* | *'with BFD'*)
  4469. lt_cv_prog_gnu_ld=yes
  4470. ;;
  4471. *)
  4472. lt_cv_prog_gnu_ld=no
  4473. ;;
  4474. esac
  4475. fi
  4476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4477. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4478. with_gnu_ld=$lt_cv_prog_gnu_ld
  4479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4480. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4481. if test "${lt_cv_path_NM+set}" = set; then :
  4482. $as_echo_n "(cached) " >&6
  4483. else
  4484. if test -n "$NM"; then
  4485. # Let the user override the test.
  4486. lt_cv_path_NM="$NM"
  4487. else
  4488. lt_nm_to_check="${ac_tool_prefix}nm"
  4489. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4490. lt_nm_to_check="$lt_nm_to_check nm"
  4491. fi
  4492. for lt_tmp_nm in $lt_nm_to_check; do
  4493. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4494. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4495. IFS="$lt_save_ifs"
  4496. test -z "$ac_dir" && ac_dir=.
  4497. tmp_nm="$ac_dir/$lt_tmp_nm"
  4498. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4499. # Check to see if the nm accepts a BSD-compat flag.
  4500. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4501. # nm: unknown option "B" ignored
  4502. # Tru64's nm complains that /dev/null is an invalid object file
  4503. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4504. */dev/null* | *'Invalid file or object type'*)
  4505. lt_cv_path_NM="$tmp_nm -B"
  4506. break
  4507. ;;
  4508. *)
  4509. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4510. */dev/null*)
  4511. lt_cv_path_NM="$tmp_nm -p"
  4512. break
  4513. ;;
  4514. *)
  4515. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4516. continue # so that we can try to find one that supports BSD flags
  4517. ;;
  4518. esac
  4519. ;;
  4520. esac
  4521. fi
  4522. done
  4523. IFS="$lt_save_ifs"
  4524. done
  4525. : ${lt_cv_path_NM=no}
  4526. fi
  4527. fi
  4528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4529. $as_echo "$lt_cv_path_NM" >&6; }
  4530. if test "$lt_cv_path_NM" != "no"; then
  4531. NM="$lt_cv_path_NM"
  4532. else
  4533. # Didn't find any BSD compatible name lister, look for dumpbin.
  4534. if test -n "$DUMPBIN"; then :
  4535. # Let the user override the test.
  4536. else
  4537. if test -n "$ac_tool_prefix"; then
  4538. for ac_prog in dumpbin "link -dump"
  4539. do
  4540. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4541. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4543. $as_echo_n "checking for $ac_word... " >&6; }
  4544. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4545. $as_echo_n "(cached) " >&6
  4546. else
  4547. if test -n "$DUMPBIN"; then
  4548. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4549. else
  4550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4551. for as_dir in $PATH
  4552. do
  4553. IFS=$as_save_IFS
  4554. test -z "$as_dir" && as_dir=.
  4555. for ac_exec_ext in '' $ac_executable_extensions; do
  4556. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4557. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4558. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4559. break 2
  4560. fi
  4561. done
  4562. done
  4563. IFS=$as_save_IFS
  4564. fi
  4565. fi
  4566. DUMPBIN=$ac_cv_prog_DUMPBIN
  4567. if test -n "$DUMPBIN"; then
  4568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4569. $as_echo "$DUMPBIN" >&6; }
  4570. else
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4572. $as_echo "no" >&6; }
  4573. fi
  4574. test -n "$DUMPBIN" && break
  4575. done
  4576. fi
  4577. if test -z "$DUMPBIN"; then
  4578. ac_ct_DUMPBIN=$DUMPBIN
  4579. for ac_prog in dumpbin "link -dump"
  4580. do
  4581. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4582. set dummy $ac_prog; ac_word=$2
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4584. $as_echo_n "checking for $ac_word... " >&6; }
  4585. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4586. $as_echo_n "(cached) " >&6
  4587. else
  4588. if test -n "$ac_ct_DUMPBIN"; then
  4589. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4590. else
  4591. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4592. for as_dir in $PATH
  4593. do
  4594. IFS=$as_save_IFS
  4595. test -z "$as_dir" && as_dir=.
  4596. for ac_exec_ext in '' $ac_executable_extensions; do
  4597. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4598. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4599. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4600. break 2
  4601. fi
  4602. done
  4603. done
  4604. IFS=$as_save_IFS
  4605. fi
  4606. fi
  4607. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4608. if test -n "$ac_ct_DUMPBIN"; then
  4609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4610. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4611. else
  4612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4613. $as_echo "no" >&6; }
  4614. fi
  4615. test -n "$ac_ct_DUMPBIN" && break
  4616. done
  4617. if test "x$ac_ct_DUMPBIN" = x; then
  4618. DUMPBIN=":"
  4619. else
  4620. case $cross_compiling:$ac_tool_warned in
  4621. yes:)
  4622. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4623. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4624. ac_tool_warned=yes ;;
  4625. esac
  4626. DUMPBIN=$ac_ct_DUMPBIN
  4627. fi
  4628. fi
  4629. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4630. *COFF*)
  4631. DUMPBIN="$DUMPBIN -symbols"
  4632. ;;
  4633. *)
  4634. DUMPBIN=:
  4635. ;;
  4636. esac
  4637. fi
  4638. if test "$DUMPBIN" != ":"; then
  4639. NM="$DUMPBIN"
  4640. fi
  4641. fi
  4642. test -z "$NM" && NM=nm
  4643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4644. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4645. if test "${lt_cv_nm_interface+set}" = set; then :
  4646. $as_echo_n "(cached) " >&6
  4647. else
  4648. lt_cv_nm_interface="BSD nm"
  4649. echo "int some_variable = 0;" > conftest.$ac_ext
  4650. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4651. (eval "$ac_compile" 2>conftest.err)
  4652. cat conftest.err >&5
  4653. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4654. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4655. cat conftest.err >&5
  4656. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4657. cat conftest.out >&5
  4658. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4659. lt_cv_nm_interface="MS dumpbin"
  4660. fi
  4661. rm -f conftest*
  4662. fi
  4663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4664. $as_echo "$lt_cv_nm_interface" >&6; }
  4665. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4666. $as_echo_n "checking whether ln -s works... " >&6; }
  4667. LN_S=$as_ln_s
  4668. if test "$LN_S" = "ln -s"; then
  4669. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4670. $as_echo "yes" >&6; }
  4671. else
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4673. $as_echo "no, using $LN_S" >&6; }
  4674. fi
  4675. # find the maximum length of command line arguments
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4677. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4678. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4679. $as_echo_n "(cached) " >&6
  4680. else
  4681. i=0
  4682. teststring="ABCD"
  4683. case $build_os in
  4684. msdosdjgpp*)
  4685. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4686. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4687. # during glob expansion). Even if it were fixed, the result of this
  4688. # check would be larger than it should be.
  4689. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4690. ;;
  4691. gnu*)
  4692. # Under GNU Hurd, this test is not required because there is
  4693. # no limit to the length of command line arguments.
  4694. # Libtool will interpret -1 as no limit whatsoever
  4695. lt_cv_sys_max_cmd_len=-1;
  4696. ;;
  4697. cygwin* | mingw* | cegcc*)
  4698. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4699. # about 5 minutes as the teststring grows exponentially.
  4700. # Worse, since 9x/ME are not pre-emptively multitasking,
  4701. # you end up with a "frozen" computer, even though with patience
  4702. # the test eventually succeeds (with a max line length of 256k).
  4703. # Instead, let's just punt: use the minimum linelength reported by
  4704. # all of the supported platforms: 8192 (on NT/2K/XP).
  4705. lt_cv_sys_max_cmd_len=8192;
  4706. ;;
  4707. mint*)
  4708. # On MiNT this can take a long time and run out of memory.
  4709. lt_cv_sys_max_cmd_len=8192;
  4710. ;;
  4711. amigaos*)
  4712. # On AmigaOS with pdksh, this test takes hours, literally.
  4713. # So we just punt and use a minimum line length of 8192.
  4714. lt_cv_sys_max_cmd_len=8192;
  4715. ;;
  4716. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4717. # This has been around since 386BSD, at least. Likely further.
  4718. if test -x /sbin/sysctl; then
  4719. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4720. elif test -x /usr/sbin/sysctl; then
  4721. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4722. else
  4723. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4724. fi
  4725. # And add a safety zone
  4726. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4727. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4728. ;;
  4729. interix*)
  4730. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4731. lt_cv_sys_max_cmd_len=196608
  4732. ;;
  4733. osf*)
  4734. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4735. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4736. # nice to cause kernel panics so lets avoid the loop below.
  4737. # First set a reasonable default.
  4738. lt_cv_sys_max_cmd_len=16384
  4739. #
  4740. if test -x /sbin/sysconfig; then
  4741. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4742. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4743. esac
  4744. fi
  4745. ;;
  4746. sco3.2v5*)
  4747. lt_cv_sys_max_cmd_len=102400
  4748. ;;
  4749. sysv5* | sco5v6* | sysv4.2uw2*)
  4750. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4751. if test -n "$kargmax"; then
  4752. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4753. else
  4754. lt_cv_sys_max_cmd_len=32768
  4755. fi
  4756. ;;
  4757. *)
  4758. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4759. if test -n "$lt_cv_sys_max_cmd_len"; then
  4760. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4761. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4762. else
  4763. # Make teststring a little bigger before we do anything with it.
  4764. # a 1K string should be a reasonable start.
  4765. for i in 1 2 3 4 5 6 7 8 ; do
  4766. teststring=$teststring$teststring
  4767. done
  4768. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4769. # If test is not a shell built-in, we'll probably end up computing a
  4770. # maximum length that is only half of the actual maximum length, but
  4771. # we can't tell.
  4772. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4773. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4774. test $i != 17 # 1/2 MB should be enough
  4775. do
  4776. i=`expr $i + 1`
  4777. teststring=$teststring$teststring
  4778. done
  4779. # Only check the string length outside the loop.
  4780. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4781. teststring=
  4782. # Add a significant safety factor because C++ compilers can tack on
  4783. # massive amounts of additional arguments before passing them to the
  4784. # linker. It appears as though 1/2 is a usable value.
  4785. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4786. fi
  4787. ;;
  4788. esac
  4789. fi
  4790. if test -n $lt_cv_sys_max_cmd_len ; then
  4791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4792. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4793. else
  4794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4795. $as_echo "none" >&6; }
  4796. fi
  4797. max_cmd_len=$lt_cv_sys_max_cmd_len
  4798. : ${CP="cp -f"}
  4799. : ${MV="mv -f"}
  4800. : ${RM="rm -f"}
  4801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4802. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4803. # Try some XSI features
  4804. xsi_shell=no
  4805. ( _lt_dummy="a/b/c"
  4806. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4807. = c,a/b,b/c, \
  4808. && eval 'test $(( 1 + 1 )) -eq 2 \
  4809. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4810. && xsi_shell=yes
  4811. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4812. $as_echo "$xsi_shell" >&6; }
  4813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4814. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4815. lt_shell_append=no
  4816. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4817. >/dev/null 2>&1 \
  4818. && lt_shell_append=yes
  4819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4820. $as_echo "$lt_shell_append" >&6; }
  4821. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4822. lt_unset=unset
  4823. else
  4824. lt_unset=false
  4825. fi
  4826. # test EBCDIC or ASCII
  4827. case `echo X|tr X '\101'` in
  4828. A) # ASCII based system
  4829. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4830. lt_SP2NL='tr \040 \012'
  4831. lt_NL2SP='tr \015\012 \040\040'
  4832. ;;
  4833. *) # EBCDIC based system
  4834. lt_SP2NL='tr \100 \n'
  4835. lt_NL2SP='tr \r\n \100\100'
  4836. ;;
  4837. esac
  4838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4839. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4840. if test "${lt_cv_to_host_file_cmd+set}" = set; then :
  4841. $as_echo_n "(cached) " >&6
  4842. else
  4843. case $host in
  4844. *-*-mingw* )
  4845. case $build in
  4846. *-*-mingw* ) # actually msys
  4847. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4848. ;;
  4849. *-*-cygwin* )
  4850. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4851. ;;
  4852. * ) # otherwise, assume *nix
  4853. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4854. ;;
  4855. esac
  4856. ;;
  4857. *-*-cygwin* )
  4858. case $build in
  4859. *-*-mingw* ) # actually msys
  4860. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4861. ;;
  4862. *-*-cygwin* )
  4863. lt_cv_to_host_file_cmd=func_convert_file_noop
  4864. ;;
  4865. * ) # otherwise, assume *nix
  4866. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4867. ;;
  4868. esac
  4869. ;;
  4870. * ) # unhandled hosts (and "normal" native builds)
  4871. lt_cv_to_host_file_cmd=func_convert_file_noop
  4872. ;;
  4873. esac
  4874. fi
  4875. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4877. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4879. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4880. if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
  4881. $as_echo_n "(cached) " >&6
  4882. else
  4883. #assume ordinary cross tools, or native build.
  4884. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4885. case $host in
  4886. *-*-mingw* )
  4887. case $build in
  4888. *-*-mingw* ) # actually msys
  4889. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4890. ;;
  4891. esac
  4892. ;;
  4893. esac
  4894. fi
  4895. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4897. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4899. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4900. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4901. $as_echo_n "(cached) " >&6
  4902. else
  4903. lt_cv_ld_reload_flag='-r'
  4904. fi
  4905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4906. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4907. reload_flag=$lt_cv_ld_reload_flag
  4908. case $reload_flag in
  4909. "" | " "*) ;;
  4910. *) reload_flag=" $reload_flag" ;;
  4911. esac
  4912. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4913. case $host_os in
  4914. cygwin* | mingw* | pw32* | cegcc*)
  4915. if test "$GCC" != yes; then
  4916. reload_cmds=false
  4917. fi
  4918. ;;
  4919. darwin*)
  4920. if test "$GCC" = yes; then
  4921. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4922. else
  4923. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4924. fi
  4925. ;;
  4926. esac
  4927. if test -n "$ac_tool_prefix"; then
  4928. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4929. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4931. $as_echo_n "checking for $ac_word... " >&6; }
  4932. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4933. $as_echo_n "(cached) " >&6
  4934. else
  4935. if test -n "$OBJDUMP"; then
  4936. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4937. else
  4938. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4939. for as_dir in $PATH
  4940. do
  4941. IFS=$as_save_IFS
  4942. test -z "$as_dir" && as_dir=.
  4943. for ac_exec_ext in '' $ac_executable_extensions; do
  4944. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4945. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4946. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4947. break 2
  4948. fi
  4949. done
  4950. done
  4951. IFS=$as_save_IFS
  4952. fi
  4953. fi
  4954. OBJDUMP=$ac_cv_prog_OBJDUMP
  4955. if test -n "$OBJDUMP"; then
  4956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4957. $as_echo "$OBJDUMP" >&6; }
  4958. else
  4959. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4960. $as_echo "no" >&6; }
  4961. fi
  4962. fi
  4963. if test -z "$ac_cv_prog_OBJDUMP"; then
  4964. ac_ct_OBJDUMP=$OBJDUMP
  4965. # Extract the first word of "objdump", so it can be a program name with args.
  4966. set dummy objdump; ac_word=$2
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4968. $as_echo_n "checking for $ac_word... " >&6; }
  4969. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4970. $as_echo_n "(cached) " >&6
  4971. else
  4972. if test -n "$ac_ct_OBJDUMP"; then
  4973. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4974. else
  4975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4976. for as_dir in $PATH
  4977. do
  4978. IFS=$as_save_IFS
  4979. test -z "$as_dir" && as_dir=.
  4980. for ac_exec_ext in '' $ac_executable_extensions; do
  4981. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4982. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4983. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4984. break 2
  4985. fi
  4986. done
  4987. done
  4988. IFS=$as_save_IFS
  4989. fi
  4990. fi
  4991. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4992. if test -n "$ac_ct_OBJDUMP"; then
  4993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4994. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4995. else
  4996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4997. $as_echo "no" >&6; }
  4998. fi
  4999. if test "x$ac_ct_OBJDUMP" = x; then
  5000. OBJDUMP="false"
  5001. else
  5002. case $cross_compiling:$ac_tool_warned in
  5003. yes:)
  5004. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5005. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5006. ac_tool_warned=yes ;;
  5007. esac
  5008. OBJDUMP=$ac_ct_OBJDUMP
  5009. fi
  5010. else
  5011. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5012. fi
  5013. test -z "$OBJDUMP" && OBJDUMP=objdump
  5014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5015. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5016. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5017. $as_echo_n "(cached) " >&6
  5018. else
  5019. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5020. lt_cv_file_magic_test_file=
  5021. lt_cv_deplibs_check_method='unknown'
  5022. # Need to set the preceding variable on all platforms that support
  5023. # interlibrary dependencies.
  5024. # 'none' -- dependencies not supported.
  5025. # `unknown' -- same as none, but documents that we really don't know.
  5026. # 'pass_all' -- all dependencies passed with no checks.
  5027. # 'test_compile' -- check by making test program.
  5028. # 'file_magic [[regex]]' -- check by looking for files in library path
  5029. # which responds to the $file_magic_cmd with a given extended regex.
  5030. # If you have `file' or equivalent on your system and you're not sure
  5031. # whether `pass_all' will *always* work, you probably want this one.
  5032. case $host_os in
  5033. aix[4-9]*)
  5034. lt_cv_deplibs_check_method=pass_all
  5035. ;;
  5036. beos*)
  5037. lt_cv_deplibs_check_method=pass_all
  5038. ;;
  5039. bsdi[45]*)
  5040. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5041. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5042. lt_cv_file_magic_test_file=/shlib/libc.so
  5043. ;;
  5044. cygwin*)
  5045. # func_win32_libid is a shell function defined in ltmain.sh
  5046. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5047. lt_cv_file_magic_cmd='func_win32_libid'
  5048. ;;
  5049. mingw* | pw32*)
  5050. # Base MSYS/MinGW do not provide the 'file' command needed by
  5051. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5052. # unless we find 'file', for example because we are cross-compiling.
  5053. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5054. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5055. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5056. lt_cv_file_magic_cmd='func_win32_libid'
  5057. else
  5058. # Keep this pattern in sync with the one in func_win32_libid.
  5059. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5060. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5061. fi
  5062. ;;
  5063. cegcc*)
  5064. # use the weaker test based on 'objdump'. See mingw*.
  5065. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5066. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5067. ;;
  5068. darwin* | rhapsody*)
  5069. lt_cv_deplibs_check_method=pass_all
  5070. ;;
  5071. freebsd* | dragonfly*)
  5072. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5073. case $host_cpu in
  5074. i*86 )
  5075. # Not sure whether the presence of OpenBSD here was a mistake.
  5076. # Let's accept both of them until this is cleared up.
  5077. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5078. lt_cv_file_magic_cmd=/usr/bin/file
  5079. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5080. ;;
  5081. esac
  5082. else
  5083. lt_cv_deplibs_check_method=pass_all
  5084. fi
  5085. ;;
  5086. gnu*)
  5087. lt_cv_deplibs_check_method=pass_all
  5088. ;;
  5089. haiku*)
  5090. lt_cv_deplibs_check_method=pass_all
  5091. ;;
  5092. hpux10.20* | hpux11*)
  5093. lt_cv_file_magic_cmd=/usr/bin/file
  5094. case $host_cpu in
  5095. ia64*)
  5096. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5097. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5098. ;;
  5099. hppa*64*)
  5100. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5101. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5102. ;;
  5103. *)
  5104. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5105. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5106. ;;
  5107. esac
  5108. ;;
  5109. interix[3-9]*)
  5110. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5111. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5112. ;;
  5113. irix5* | irix6* | nonstopux*)
  5114. case $LD in
  5115. *-32|*"-32 ") libmagic=32-bit;;
  5116. *-n32|*"-n32 ") libmagic=N32;;
  5117. *-64|*"-64 ") libmagic=64-bit;;
  5118. *) libmagic=never-match;;
  5119. esac
  5120. lt_cv_deplibs_check_method=pass_all
  5121. ;;
  5122. # This must be Linux ELF.
  5123. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5124. lt_cv_deplibs_check_method=pass_all
  5125. ;;
  5126. netbsd* | netbsdelf*-gnu)
  5127. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5128. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5129. else
  5130. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5131. fi
  5132. ;;
  5133. newos6*)
  5134. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5135. lt_cv_file_magic_cmd=/usr/bin/file
  5136. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5137. ;;
  5138. *nto* | *qnx*)
  5139. lt_cv_deplibs_check_method=pass_all
  5140. ;;
  5141. openbsd*)
  5142. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5143. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5144. else
  5145. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5146. fi
  5147. ;;
  5148. osf3* | osf4* | osf5*)
  5149. lt_cv_deplibs_check_method=pass_all
  5150. ;;
  5151. rdos*)
  5152. lt_cv_deplibs_check_method=pass_all
  5153. ;;
  5154. solaris*)
  5155. lt_cv_deplibs_check_method=pass_all
  5156. ;;
  5157. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5158. lt_cv_deplibs_check_method=pass_all
  5159. ;;
  5160. sysv4 | sysv4.3*)
  5161. case $host_vendor in
  5162. motorola)
  5163. 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]'
  5164. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5165. ;;
  5166. ncr)
  5167. lt_cv_deplibs_check_method=pass_all
  5168. ;;
  5169. sequent)
  5170. lt_cv_file_magic_cmd='/bin/file'
  5171. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5172. ;;
  5173. sni)
  5174. lt_cv_file_magic_cmd='/bin/file'
  5175. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5176. lt_cv_file_magic_test_file=/lib/libc.so
  5177. ;;
  5178. siemens)
  5179. lt_cv_deplibs_check_method=pass_all
  5180. ;;
  5181. pc)
  5182. lt_cv_deplibs_check_method=pass_all
  5183. ;;
  5184. esac
  5185. ;;
  5186. tpf*)
  5187. lt_cv_deplibs_check_method=pass_all
  5188. ;;
  5189. esac
  5190. fi
  5191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5192. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5193. file_magic_glob=
  5194. want_nocaseglob=no
  5195. if test "$build" = "$host"; then
  5196. case $host_os in
  5197. mingw* | pw32*)
  5198. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5199. want_nocaseglob=yes
  5200. else
  5201. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5202. fi
  5203. ;;
  5204. esac
  5205. fi
  5206. file_magic_cmd=$lt_cv_file_magic_cmd
  5207. deplibs_check_method=$lt_cv_deplibs_check_method
  5208. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5209. if test -n "$ac_tool_prefix"; then
  5210. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5211. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5212. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5213. $as_echo_n "checking for $ac_word... " >&6; }
  5214. if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
  5215. $as_echo_n "(cached) " >&6
  5216. else
  5217. if test -n "$DLLTOOL"; then
  5218. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5219. else
  5220. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5221. for as_dir in $PATH
  5222. do
  5223. IFS=$as_save_IFS
  5224. test -z "$as_dir" && as_dir=.
  5225. for ac_exec_ext in '' $ac_executable_extensions; do
  5226. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5227. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5228. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5229. break 2
  5230. fi
  5231. done
  5232. done
  5233. IFS=$as_save_IFS
  5234. fi
  5235. fi
  5236. DLLTOOL=$ac_cv_prog_DLLTOOL
  5237. if test -n "$DLLTOOL"; then
  5238. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5239. $as_echo "$DLLTOOL" >&6; }
  5240. else
  5241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5242. $as_echo "no" >&6; }
  5243. fi
  5244. fi
  5245. if test -z "$ac_cv_prog_DLLTOOL"; then
  5246. ac_ct_DLLTOOL=$DLLTOOL
  5247. # Extract the first word of "dlltool", so it can be a program name with args.
  5248. set dummy dlltool; ac_word=$2
  5249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5250. $as_echo_n "checking for $ac_word... " >&6; }
  5251. if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
  5252. $as_echo_n "(cached) " >&6
  5253. else
  5254. if test -n "$ac_ct_DLLTOOL"; then
  5255. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5256. else
  5257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5258. for as_dir in $PATH
  5259. do
  5260. IFS=$as_save_IFS
  5261. test -z "$as_dir" && as_dir=.
  5262. for ac_exec_ext in '' $ac_executable_extensions; do
  5263. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5264. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5265. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5266. break 2
  5267. fi
  5268. done
  5269. done
  5270. IFS=$as_save_IFS
  5271. fi
  5272. fi
  5273. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5274. if test -n "$ac_ct_DLLTOOL"; then
  5275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5276. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5277. else
  5278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5279. $as_echo "no" >&6; }
  5280. fi
  5281. if test "x$ac_ct_DLLTOOL" = x; then
  5282. DLLTOOL="false"
  5283. else
  5284. case $cross_compiling:$ac_tool_warned in
  5285. yes:)
  5286. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5287. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5288. ac_tool_warned=yes ;;
  5289. esac
  5290. DLLTOOL=$ac_ct_DLLTOOL
  5291. fi
  5292. else
  5293. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5294. fi
  5295. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5297. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5298. if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
  5299. $as_echo_n "(cached) " >&6
  5300. else
  5301. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5302. case $host_os in
  5303. cygwin* | mingw* | pw32* | cegcc*)
  5304. # two different shell functions defined in ltmain.sh
  5305. # decide which to use based on capabilities of $DLLTOOL
  5306. case `$DLLTOOL --help 2>&1` in
  5307. *--identify-strict*)
  5308. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5309. ;;
  5310. *)
  5311. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5312. ;;
  5313. esac
  5314. ;;
  5315. *)
  5316. # fallback: assume linklib IS sharedlib
  5317. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5318. ;;
  5319. esac
  5320. fi
  5321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5322. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5323. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5324. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5325. if test -n "$ac_tool_prefix"; then
  5326. for ac_prog in ar
  5327. do
  5328. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5329. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5331. $as_echo_n "checking for $ac_word... " >&6; }
  5332. if test "${ac_cv_prog_AR+set}" = set; then :
  5333. $as_echo_n "(cached) " >&6
  5334. else
  5335. if test -n "$AR"; then
  5336. ac_cv_prog_AR="$AR" # Let the user override the test.
  5337. else
  5338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5339. for as_dir in $PATH
  5340. do
  5341. IFS=$as_save_IFS
  5342. test -z "$as_dir" && as_dir=.
  5343. for ac_exec_ext in '' $ac_executable_extensions; do
  5344. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5345. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5346. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5347. break 2
  5348. fi
  5349. done
  5350. done
  5351. IFS=$as_save_IFS
  5352. fi
  5353. fi
  5354. AR=$ac_cv_prog_AR
  5355. if test -n "$AR"; then
  5356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5357. $as_echo "$AR" >&6; }
  5358. else
  5359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5360. $as_echo "no" >&6; }
  5361. fi
  5362. test -n "$AR" && break
  5363. done
  5364. fi
  5365. if test -z "$AR"; then
  5366. ac_ct_AR=$AR
  5367. for ac_prog in ar
  5368. do
  5369. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5370. set dummy $ac_prog; ac_word=$2
  5371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5372. $as_echo_n "checking for $ac_word... " >&6; }
  5373. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5374. $as_echo_n "(cached) " >&6
  5375. else
  5376. if test -n "$ac_ct_AR"; then
  5377. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5378. else
  5379. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5380. for as_dir in $PATH
  5381. do
  5382. IFS=$as_save_IFS
  5383. test -z "$as_dir" && as_dir=.
  5384. for ac_exec_ext in '' $ac_executable_extensions; do
  5385. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5386. ac_cv_prog_ac_ct_AR="$ac_prog"
  5387. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5388. break 2
  5389. fi
  5390. done
  5391. done
  5392. IFS=$as_save_IFS
  5393. fi
  5394. fi
  5395. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5396. if test -n "$ac_ct_AR"; then
  5397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5398. $as_echo "$ac_ct_AR" >&6; }
  5399. else
  5400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5401. $as_echo "no" >&6; }
  5402. fi
  5403. test -n "$ac_ct_AR" && break
  5404. done
  5405. if test "x$ac_ct_AR" = x; then
  5406. AR="false"
  5407. else
  5408. case $cross_compiling:$ac_tool_warned in
  5409. yes:)
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5411. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5412. ac_tool_warned=yes ;;
  5413. esac
  5414. AR=$ac_ct_AR
  5415. fi
  5416. fi
  5417. : ${AR=ar}
  5418. : ${AR_FLAGS=cru}
  5419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5420. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5421. if test "${lt_cv_ar_at_file+set}" = set; then :
  5422. $as_echo_n "(cached) " >&6
  5423. else
  5424. lt_cv_ar_at_file=no
  5425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5426. /* end confdefs.h. */
  5427. int
  5428. main ()
  5429. {
  5430. ;
  5431. return 0;
  5432. }
  5433. _ACEOF
  5434. if ac_fn_cxx_try_compile "$LINENO"; then :
  5435. echo conftest.$ac_objext > conftest.lst
  5436. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5437. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5438. (eval $lt_ar_try) 2>&5
  5439. ac_status=$?
  5440. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5441. test $ac_status = 0; }
  5442. if test "$ac_status" -eq 0; then
  5443. # Ensure the archiver fails upon bogus file names.
  5444. rm -f conftest.$ac_objext libconftest.a
  5445. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5446. (eval $lt_ar_try) 2>&5
  5447. ac_status=$?
  5448. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5449. test $ac_status = 0; }
  5450. if test "$ac_status" -ne 0; then
  5451. lt_cv_ar_at_file=@
  5452. fi
  5453. fi
  5454. rm -f conftest.* libconftest.a
  5455. fi
  5456. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5457. fi
  5458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5459. $as_echo "$lt_cv_ar_at_file" >&6; }
  5460. if test "x$lt_cv_ar_at_file" = xno; then
  5461. archiver_list_spec=
  5462. else
  5463. archiver_list_spec=$lt_cv_ar_at_file
  5464. fi
  5465. if test -n "$ac_tool_prefix"; then
  5466. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5467. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5469. $as_echo_n "checking for $ac_word... " >&6; }
  5470. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5471. $as_echo_n "(cached) " >&6
  5472. else
  5473. if test -n "$STRIP"; then
  5474. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5475. else
  5476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5477. for as_dir in $PATH
  5478. do
  5479. IFS=$as_save_IFS
  5480. test -z "$as_dir" && as_dir=.
  5481. for ac_exec_ext in '' $ac_executable_extensions; do
  5482. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5483. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5485. break 2
  5486. fi
  5487. done
  5488. done
  5489. IFS=$as_save_IFS
  5490. fi
  5491. fi
  5492. STRIP=$ac_cv_prog_STRIP
  5493. if test -n "$STRIP"; then
  5494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5495. $as_echo "$STRIP" >&6; }
  5496. else
  5497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5498. $as_echo "no" >&6; }
  5499. fi
  5500. fi
  5501. if test -z "$ac_cv_prog_STRIP"; then
  5502. ac_ct_STRIP=$STRIP
  5503. # Extract the first word of "strip", so it can be a program name with args.
  5504. set dummy strip; ac_word=$2
  5505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5506. $as_echo_n "checking for $ac_word... " >&6; }
  5507. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5508. $as_echo_n "(cached) " >&6
  5509. else
  5510. if test -n "$ac_ct_STRIP"; then
  5511. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5512. else
  5513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5514. for as_dir in $PATH
  5515. do
  5516. IFS=$as_save_IFS
  5517. test -z "$as_dir" && as_dir=.
  5518. for ac_exec_ext in '' $ac_executable_extensions; do
  5519. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5520. ac_cv_prog_ac_ct_STRIP="strip"
  5521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5522. break 2
  5523. fi
  5524. done
  5525. done
  5526. IFS=$as_save_IFS
  5527. fi
  5528. fi
  5529. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5530. if test -n "$ac_ct_STRIP"; then
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5532. $as_echo "$ac_ct_STRIP" >&6; }
  5533. else
  5534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5535. $as_echo "no" >&6; }
  5536. fi
  5537. if test "x$ac_ct_STRIP" = x; then
  5538. STRIP=":"
  5539. else
  5540. case $cross_compiling:$ac_tool_warned in
  5541. yes:)
  5542. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5543. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5544. ac_tool_warned=yes ;;
  5545. esac
  5546. STRIP=$ac_ct_STRIP
  5547. fi
  5548. else
  5549. STRIP="$ac_cv_prog_STRIP"
  5550. fi
  5551. test -z "$STRIP" && STRIP=:
  5552. if test -n "$ac_tool_prefix"; then
  5553. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5554. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5556. $as_echo_n "checking for $ac_word... " >&6; }
  5557. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5558. $as_echo_n "(cached) " >&6
  5559. else
  5560. if test -n "$RANLIB"; then
  5561. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5562. else
  5563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5564. for as_dir in $PATH
  5565. do
  5566. IFS=$as_save_IFS
  5567. test -z "$as_dir" && as_dir=.
  5568. for ac_exec_ext in '' $ac_executable_extensions; do
  5569. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5570. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5571. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5572. break 2
  5573. fi
  5574. done
  5575. done
  5576. IFS=$as_save_IFS
  5577. fi
  5578. fi
  5579. RANLIB=$ac_cv_prog_RANLIB
  5580. if test -n "$RANLIB"; then
  5581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5582. $as_echo "$RANLIB" >&6; }
  5583. else
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5585. $as_echo "no" >&6; }
  5586. fi
  5587. fi
  5588. if test -z "$ac_cv_prog_RANLIB"; then
  5589. ac_ct_RANLIB=$RANLIB
  5590. # Extract the first word of "ranlib", so it can be a program name with args.
  5591. set dummy ranlib; ac_word=$2
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5593. $as_echo_n "checking for $ac_word... " >&6; }
  5594. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5595. $as_echo_n "(cached) " >&6
  5596. else
  5597. if test -n "$ac_ct_RANLIB"; then
  5598. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5599. else
  5600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5601. for as_dir in $PATH
  5602. do
  5603. IFS=$as_save_IFS
  5604. test -z "$as_dir" && as_dir=.
  5605. for ac_exec_ext in '' $ac_executable_extensions; do
  5606. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5607. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5608. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5609. break 2
  5610. fi
  5611. done
  5612. done
  5613. IFS=$as_save_IFS
  5614. fi
  5615. fi
  5616. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5617. if test -n "$ac_ct_RANLIB"; then
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5619. $as_echo "$ac_ct_RANLIB" >&6; }
  5620. else
  5621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5622. $as_echo "no" >&6; }
  5623. fi
  5624. if test "x$ac_ct_RANLIB" = x; then
  5625. RANLIB=":"
  5626. else
  5627. case $cross_compiling:$ac_tool_warned in
  5628. yes:)
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5630. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5631. ac_tool_warned=yes ;;
  5632. esac
  5633. RANLIB=$ac_ct_RANLIB
  5634. fi
  5635. else
  5636. RANLIB="$ac_cv_prog_RANLIB"
  5637. fi
  5638. test -z "$RANLIB" && RANLIB=:
  5639. # Determine commands to create old-style static archives.
  5640. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5641. old_postinstall_cmds='chmod 644 $oldlib'
  5642. old_postuninstall_cmds=
  5643. if test -n "$RANLIB"; then
  5644. case $host_os in
  5645. openbsd*)
  5646. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5647. ;;
  5648. *)
  5649. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5650. ;;
  5651. esac
  5652. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5653. fi
  5654. case $host_os in
  5655. darwin*)
  5656. lock_old_archive_extraction=yes ;;
  5657. *)
  5658. lock_old_archive_extraction=no ;;
  5659. esac
  5660. # If no C compiler was specified, use CC.
  5661. LTCC=${LTCC-"$CC"}
  5662. # If no C compiler flags were specified, use CFLAGS.
  5663. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5664. # Allow CC to be a program name with arguments.
  5665. compiler=$CC
  5666. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5668. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5669. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5670. $as_echo_n "(cached) " >&6
  5671. else
  5672. # These are sane defaults that work on at least a few old systems.
  5673. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5674. # Character class describing NM global symbol codes.
  5675. symcode='[BCDEGRST]'
  5676. # Regexp to match symbols that can be accessed directly from C.
  5677. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5678. # Define system-specific variables.
  5679. case $host_os in
  5680. aix*)
  5681. symcode='[BCDT]'
  5682. ;;
  5683. cygwin* | mingw* | pw32* | cegcc*)
  5684. symcode='[ABCDGISTW]'
  5685. ;;
  5686. hpux*)
  5687. if test "$host_cpu" = ia64; then
  5688. symcode='[ABCDEGRST]'
  5689. fi
  5690. ;;
  5691. irix* | nonstopux*)
  5692. symcode='[BCDEGRST]'
  5693. ;;
  5694. osf*)
  5695. symcode='[BCDEGQRST]'
  5696. ;;
  5697. solaris*)
  5698. symcode='[BDRT]'
  5699. ;;
  5700. sco3.2v5*)
  5701. symcode='[DT]'
  5702. ;;
  5703. sysv4.2uw2*)
  5704. symcode='[DT]'
  5705. ;;
  5706. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5707. symcode='[ABDT]'
  5708. ;;
  5709. sysv4)
  5710. symcode='[DFNSTU]'
  5711. ;;
  5712. esac
  5713. # If we're using GNU nm, then use its standard symbol codes.
  5714. case `$NM -V 2>&1` in
  5715. *GNU* | *'with BFD'*)
  5716. symcode='[ABCDGIRSTW]' ;;
  5717. esac
  5718. # Transform an extracted symbol line into a proper C declaration.
  5719. # Some systems (esp. on ia64) link data and code symbols differently,
  5720. # so use this general approach.
  5721. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5722. # Transform an extracted symbol line into symbol name and symbol address
  5723. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5724. 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'"
  5725. # Handle CRLF in mingw tool chain
  5726. opt_cr=
  5727. case $build_os in
  5728. mingw*)
  5729. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5730. ;;
  5731. esac
  5732. # Try without a prefix underscore, then with it.
  5733. for ac_symprfx in "" "_"; do
  5734. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5735. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5736. # Write the raw and C identifiers.
  5737. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5738. # Fake it for dumpbin and say T for any non-static function
  5739. # and D for any global variable.
  5740. # Also find C++ and __fastcall symbols from MSVC++,
  5741. # which start with @ or ?.
  5742. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5743. " {last_section=section; section=\$ 3};"\
  5744. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5745. " \$ 0!~/External *\|/{next};"\
  5746. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5747. " {if(hide[section]) next};"\
  5748. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5749. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5750. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5751. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5752. " ' prfx=^$ac_symprfx"
  5753. else
  5754. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5755. fi
  5756. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5757. # Check to see that the pipe works correctly.
  5758. pipe_works=no
  5759. rm -f conftest*
  5760. cat > conftest.$ac_ext <<_LT_EOF
  5761. #ifdef __cplusplus
  5762. extern "C" {
  5763. #endif
  5764. char nm_test_var;
  5765. void nm_test_func(void);
  5766. void nm_test_func(void){}
  5767. #ifdef __cplusplus
  5768. }
  5769. #endif
  5770. int main(){nm_test_var='a';nm_test_func();return(0);}
  5771. _LT_EOF
  5772. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5773. (eval $ac_compile) 2>&5
  5774. ac_status=$?
  5775. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5776. test $ac_status = 0; }; then
  5777. # Now try to grab the symbols.
  5778. nlist=conftest.nm
  5779. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5780. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5781. ac_status=$?
  5782. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5783. test $ac_status = 0; } && test -s "$nlist"; then
  5784. # Try sorting and uniquifying the output.
  5785. if sort "$nlist" | uniq > "$nlist"T; then
  5786. mv -f "$nlist"T "$nlist"
  5787. else
  5788. rm -f "$nlist"T
  5789. fi
  5790. # Make sure that we snagged all the symbols we need.
  5791. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5792. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5793. cat <<_LT_EOF > conftest.$ac_ext
  5794. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5795. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5796. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5797. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5798. # define LT_DLSYM_CONST
  5799. #elif defined(__osf__)
  5800. /* This system does not cope well with relocations in const data. */
  5801. # define LT_DLSYM_CONST
  5802. #else
  5803. # define LT_DLSYM_CONST const
  5804. #endif
  5805. #ifdef __cplusplus
  5806. extern "C" {
  5807. #endif
  5808. _LT_EOF
  5809. # Now generate the symbol file.
  5810. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5811. cat <<_LT_EOF >> conftest.$ac_ext
  5812. /* The mapping between symbol names and symbols. */
  5813. LT_DLSYM_CONST struct {
  5814. const char *name;
  5815. void *address;
  5816. }
  5817. lt__PROGRAM__LTX_preloaded_symbols[] =
  5818. {
  5819. { "@PROGRAM@", (void *) 0 },
  5820. _LT_EOF
  5821. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5822. cat <<\_LT_EOF >> conftest.$ac_ext
  5823. {0, (void *) 0}
  5824. };
  5825. /* This works around a problem in FreeBSD linker */
  5826. #ifdef FREEBSD_WORKAROUND
  5827. static const void *lt_preloaded_setup() {
  5828. return lt__PROGRAM__LTX_preloaded_symbols;
  5829. }
  5830. #endif
  5831. #ifdef __cplusplus
  5832. }
  5833. #endif
  5834. _LT_EOF
  5835. # Now try linking the two files.
  5836. mv conftest.$ac_objext conftstm.$ac_objext
  5837. lt_globsym_save_LIBS=$LIBS
  5838. lt_globsym_save_CFLAGS=$CFLAGS
  5839. LIBS="conftstm.$ac_objext"
  5840. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5841. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5842. (eval $ac_link) 2>&5
  5843. ac_status=$?
  5844. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5845. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5846. pipe_works=yes
  5847. fi
  5848. LIBS=$lt_globsym_save_LIBS
  5849. CFLAGS=$lt_globsym_save_CFLAGS
  5850. else
  5851. echo "cannot find nm_test_func in $nlist" >&5
  5852. fi
  5853. else
  5854. echo "cannot find nm_test_var in $nlist" >&5
  5855. fi
  5856. else
  5857. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5858. fi
  5859. else
  5860. echo "$progname: failed program was:" >&5
  5861. cat conftest.$ac_ext >&5
  5862. fi
  5863. rm -rf conftest* conftst*
  5864. # Do not use the global_symbol_pipe unless it works.
  5865. if test "$pipe_works" = yes; then
  5866. break
  5867. else
  5868. lt_cv_sys_global_symbol_pipe=
  5869. fi
  5870. done
  5871. fi
  5872. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5873. lt_cv_sys_global_symbol_to_cdecl=
  5874. fi
  5875. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5876. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5877. $as_echo "failed" >&6; }
  5878. else
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5880. $as_echo "ok" >&6; }
  5881. fi
  5882. # Response file support.
  5883. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5884. nm_file_list_spec='@'
  5885. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5886. nm_file_list_spec='@'
  5887. fi
  5888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5889. $as_echo_n "checking for sysroot... " >&6; }
  5890. # Check whether --with-sysroot was given.
  5891. if test "${with_sysroot+set}" = set; then :
  5892. withval=$with_sysroot;
  5893. else
  5894. with_sysroot=no
  5895. fi
  5896. lt_sysroot=
  5897. case ${with_sysroot} in #(
  5898. yes)
  5899. if test "$GCC" = yes; then
  5900. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5901. fi
  5902. ;; #(
  5903. /*)
  5904. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5905. ;; #(
  5906. no|'')
  5907. ;; #(
  5908. *)
  5909. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5910. $as_echo "${with_sysroot}" >&6; }
  5911. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5912. ;;
  5913. esac
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5915. $as_echo "${lt_sysroot:-no}" >&6; }
  5916. # Check whether --enable-libtool-lock was given.
  5917. if test "${enable_libtool_lock+set}" = set; then :
  5918. enableval=$enable_libtool_lock;
  5919. fi
  5920. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5921. # Some flags need to be propagated to the compiler or linker for good
  5922. # libtool support.
  5923. case $host in
  5924. ia64-*-hpux*)
  5925. # Find out which ABI we are using.
  5926. echo 'int i;' > conftest.$ac_ext
  5927. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5928. (eval $ac_compile) 2>&5
  5929. ac_status=$?
  5930. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5931. test $ac_status = 0; }; then
  5932. case `/usr/bin/file conftest.$ac_objext` in
  5933. *ELF-32*)
  5934. HPUX_IA64_MODE="32"
  5935. ;;
  5936. *ELF-64*)
  5937. HPUX_IA64_MODE="64"
  5938. ;;
  5939. esac
  5940. fi
  5941. rm -rf conftest*
  5942. ;;
  5943. *-*-irix6*)
  5944. # Find out which ABI we are using.
  5945. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5946. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5947. (eval $ac_compile) 2>&5
  5948. ac_status=$?
  5949. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5950. test $ac_status = 0; }; then
  5951. if test "$lt_cv_prog_gnu_ld" = yes; then
  5952. case `/usr/bin/file conftest.$ac_objext` in
  5953. *32-bit*)
  5954. LD="${LD-ld} -melf32bsmip"
  5955. ;;
  5956. *N32*)
  5957. LD="${LD-ld} -melf32bmipn32"
  5958. ;;
  5959. *64-bit*)
  5960. LD="${LD-ld} -melf64bmip"
  5961. ;;
  5962. esac
  5963. else
  5964. case `/usr/bin/file conftest.$ac_objext` in
  5965. *32-bit*)
  5966. LD="${LD-ld} -32"
  5967. ;;
  5968. *N32*)
  5969. LD="${LD-ld} -n32"
  5970. ;;
  5971. *64-bit*)
  5972. LD="${LD-ld} -64"
  5973. ;;
  5974. esac
  5975. fi
  5976. fi
  5977. rm -rf conftest*
  5978. ;;
  5979. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5980. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5981. # Find out which ABI we are using.
  5982. echo 'int i;' > conftest.$ac_ext
  5983. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5984. (eval $ac_compile) 2>&5
  5985. ac_status=$?
  5986. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5987. test $ac_status = 0; }; then
  5988. case `/usr/bin/file conftest.o` in
  5989. *32-bit*)
  5990. case $host in
  5991. x86_64-*kfreebsd*-gnu)
  5992. LD="${LD-ld} -m elf_i386_fbsd"
  5993. ;;
  5994. x86_64-*linux*)
  5995. LD="${LD-ld} -m elf_i386"
  5996. ;;
  5997. ppc64-*linux*|powerpc64-*linux*)
  5998. LD="${LD-ld} -m elf32ppclinux"
  5999. ;;
  6000. s390x-*linux*)
  6001. LD="${LD-ld} -m elf_s390"
  6002. ;;
  6003. sparc64-*linux*)
  6004. LD="${LD-ld} -m elf32_sparc"
  6005. ;;
  6006. esac
  6007. ;;
  6008. *64-bit*)
  6009. case $host in
  6010. x86_64-*kfreebsd*-gnu)
  6011. LD="${LD-ld} -m elf_x86_64_fbsd"
  6012. ;;
  6013. x86_64-*linux*)
  6014. LD="${LD-ld} -m elf_x86_64"
  6015. ;;
  6016. ppc*-*linux*|powerpc*-*linux*)
  6017. LD="${LD-ld} -m elf64ppc"
  6018. ;;
  6019. s390*-*linux*|s390*-*tpf*)
  6020. LD="${LD-ld} -m elf64_s390"
  6021. ;;
  6022. sparc*-*linux*)
  6023. LD="${LD-ld} -m elf64_sparc"
  6024. ;;
  6025. esac
  6026. ;;
  6027. esac
  6028. fi
  6029. rm -rf conftest*
  6030. ;;
  6031. *-*-sco3.2v5*)
  6032. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6033. SAVE_CFLAGS="$CFLAGS"
  6034. CFLAGS="$CFLAGS -belf"
  6035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6036. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6037. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  6038. $as_echo_n "(cached) " >&6
  6039. else
  6040. ac_ext=c
  6041. ac_cpp='$CPP $CPPFLAGS'
  6042. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6043. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6044. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6046. /* end confdefs.h. */
  6047. int
  6048. main ()
  6049. {
  6050. ;
  6051. return 0;
  6052. }
  6053. _ACEOF
  6054. if ac_fn_c_try_link "$LINENO"; then :
  6055. lt_cv_cc_needs_belf=yes
  6056. else
  6057. lt_cv_cc_needs_belf=no
  6058. fi
  6059. rm -f core conftest.err conftest.$ac_objext \
  6060. conftest$ac_exeext conftest.$ac_ext
  6061. ac_ext=c
  6062. ac_cpp='$CPP $CPPFLAGS'
  6063. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6064. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6065. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6066. fi
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6068. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6069. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6070. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6071. CFLAGS="$SAVE_CFLAGS"
  6072. fi
  6073. ;;
  6074. sparc*-*solaris*)
  6075. # Find out which ABI we are using.
  6076. echo 'int i;' > conftest.$ac_ext
  6077. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6078. (eval $ac_compile) 2>&5
  6079. ac_status=$?
  6080. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6081. test $ac_status = 0; }; then
  6082. case `/usr/bin/file conftest.o` in
  6083. *64-bit*)
  6084. case $lt_cv_prog_gnu_ld in
  6085. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  6086. *)
  6087. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6088. LD="${LD-ld} -64"
  6089. fi
  6090. ;;
  6091. esac
  6092. ;;
  6093. esac
  6094. fi
  6095. rm -rf conftest*
  6096. ;;
  6097. esac
  6098. need_locks="$enable_libtool_lock"
  6099. if test -n "$ac_tool_prefix"; then
  6100. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6101. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6102. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6103. $as_echo_n "checking for $ac_word... " >&6; }
  6104. if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
  6105. $as_echo_n "(cached) " >&6
  6106. else
  6107. if test -n "$MANIFEST_TOOL"; then
  6108. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6109. else
  6110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6111. for as_dir in $PATH
  6112. do
  6113. IFS=$as_save_IFS
  6114. test -z "$as_dir" && as_dir=.
  6115. for ac_exec_ext in '' $ac_executable_extensions; do
  6116. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6117. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6118. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6119. break 2
  6120. fi
  6121. done
  6122. done
  6123. IFS=$as_save_IFS
  6124. fi
  6125. fi
  6126. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6127. if test -n "$MANIFEST_TOOL"; then
  6128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6129. $as_echo "$MANIFEST_TOOL" >&6; }
  6130. else
  6131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6132. $as_echo "no" >&6; }
  6133. fi
  6134. fi
  6135. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6136. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6137. # Extract the first word of "mt", so it can be a program name with args.
  6138. set dummy mt; ac_word=$2
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6140. $as_echo_n "checking for $ac_word... " >&6; }
  6141. if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
  6142. $as_echo_n "(cached) " >&6
  6143. else
  6144. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6145. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6146. else
  6147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6148. for as_dir in $PATH
  6149. do
  6150. IFS=$as_save_IFS
  6151. test -z "$as_dir" && as_dir=.
  6152. for ac_exec_ext in '' $ac_executable_extensions; do
  6153. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6154. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6155. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6156. break 2
  6157. fi
  6158. done
  6159. done
  6160. IFS=$as_save_IFS
  6161. fi
  6162. fi
  6163. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6164. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6166. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6167. else
  6168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6169. $as_echo "no" >&6; }
  6170. fi
  6171. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6172. MANIFEST_TOOL=":"
  6173. else
  6174. case $cross_compiling:$ac_tool_warned in
  6175. yes:)
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6177. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6178. ac_tool_warned=yes ;;
  6179. esac
  6180. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6181. fi
  6182. else
  6183. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6184. fi
  6185. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6186. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6187. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6188. if test "${lt_cv_path_mainfest_tool+set}" = set; then :
  6189. $as_echo_n "(cached) " >&6
  6190. else
  6191. lt_cv_path_mainfest_tool=no
  6192. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6193. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6194. cat conftest.err >&5
  6195. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6196. lt_cv_path_mainfest_tool=yes
  6197. fi
  6198. rm -f conftest*
  6199. fi
  6200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6201. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6202. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6203. MANIFEST_TOOL=:
  6204. fi
  6205. case $host_os in
  6206. rhapsody* | darwin*)
  6207. if test -n "$ac_tool_prefix"; then
  6208. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6209. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6210. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6211. $as_echo_n "checking for $ac_word... " >&6; }
  6212. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  6213. $as_echo_n "(cached) " >&6
  6214. else
  6215. if test -n "$DSYMUTIL"; then
  6216. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6217. else
  6218. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6219. for as_dir in $PATH
  6220. do
  6221. IFS=$as_save_IFS
  6222. test -z "$as_dir" && as_dir=.
  6223. for ac_exec_ext in '' $ac_executable_extensions; do
  6224. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6225. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6226. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6227. break 2
  6228. fi
  6229. done
  6230. done
  6231. IFS=$as_save_IFS
  6232. fi
  6233. fi
  6234. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6235. if test -n "$DSYMUTIL"; then
  6236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6237. $as_echo "$DSYMUTIL" >&6; }
  6238. else
  6239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6240. $as_echo "no" >&6; }
  6241. fi
  6242. fi
  6243. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6244. ac_ct_DSYMUTIL=$DSYMUTIL
  6245. # Extract the first word of "dsymutil", so it can be a program name with args.
  6246. set dummy dsymutil; ac_word=$2
  6247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6248. $as_echo_n "checking for $ac_word... " >&6; }
  6249. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  6250. $as_echo_n "(cached) " >&6
  6251. else
  6252. if test -n "$ac_ct_DSYMUTIL"; then
  6253. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6254. else
  6255. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6256. for as_dir in $PATH
  6257. do
  6258. IFS=$as_save_IFS
  6259. test -z "$as_dir" && as_dir=.
  6260. for ac_exec_ext in '' $ac_executable_extensions; do
  6261. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6262. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6263. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6264. break 2
  6265. fi
  6266. done
  6267. done
  6268. IFS=$as_save_IFS
  6269. fi
  6270. fi
  6271. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6272. if test -n "$ac_ct_DSYMUTIL"; then
  6273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6274. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6275. else
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6277. $as_echo "no" >&6; }
  6278. fi
  6279. if test "x$ac_ct_DSYMUTIL" = x; then
  6280. DSYMUTIL=":"
  6281. else
  6282. case $cross_compiling:$ac_tool_warned in
  6283. yes:)
  6284. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6285. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6286. ac_tool_warned=yes ;;
  6287. esac
  6288. DSYMUTIL=$ac_ct_DSYMUTIL
  6289. fi
  6290. else
  6291. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6292. fi
  6293. if test -n "$ac_tool_prefix"; then
  6294. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6295. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6297. $as_echo_n "checking for $ac_word... " >&6; }
  6298. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  6299. $as_echo_n "(cached) " >&6
  6300. else
  6301. if test -n "$NMEDIT"; then
  6302. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6303. else
  6304. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6305. for as_dir in $PATH
  6306. do
  6307. IFS=$as_save_IFS
  6308. test -z "$as_dir" && as_dir=.
  6309. for ac_exec_ext in '' $ac_executable_extensions; do
  6310. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6311. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6312. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6313. break 2
  6314. fi
  6315. done
  6316. done
  6317. IFS=$as_save_IFS
  6318. fi
  6319. fi
  6320. NMEDIT=$ac_cv_prog_NMEDIT
  6321. if test -n "$NMEDIT"; then
  6322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6323. $as_echo "$NMEDIT" >&6; }
  6324. else
  6325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6326. $as_echo "no" >&6; }
  6327. fi
  6328. fi
  6329. if test -z "$ac_cv_prog_NMEDIT"; then
  6330. ac_ct_NMEDIT=$NMEDIT
  6331. # Extract the first word of "nmedit", so it can be a program name with args.
  6332. set dummy nmedit; ac_word=$2
  6333. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6334. $as_echo_n "checking for $ac_word... " >&6; }
  6335. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  6336. $as_echo_n "(cached) " >&6
  6337. else
  6338. if test -n "$ac_ct_NMEDIT"; then
  6339. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6340. else
  6341. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6342. for as_dir in $PATH
  6343. do
  6344. IFS=$as_save_IFS
  6345. test -z "$as_dir" && as_dir=.
  6346. for ac_exec_ext in '' $ac_executable_extensions; do
  6347. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6348. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6349. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6350. break 2
  6351. fi
  6352. done
  6353. done
  6354. IFS=$as_save_IFS
  6355. fi
  6356. fi
  6357. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6358. if test -n "$ac_ct_NMEDIT"; then
  6359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6360. $as_echo "$ac_ct_NMEDIT" >&6; }
  6361. else
  6362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6363. $as_echo "no" >&6; }
  6364. fi
  6365. if test "x$ac_ct_NMEDIT" = x; then
  6366. NMEDIT=":"
  6367. else
  6368. case $cross_compiling:$ac_tool_warned in
  6369. yes:)
  6370. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6371. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6372. ac_tool_warned=yes ;;
  6373. esac
  6374. NMEDIT=$ac_ct_NMEDIT
  6375. fi
  6376. else
  6377. NMEDIT="$ac_cv_prog_NMEDIT"
  6378. fi
  6379. if test -n "$ac_tool_prefix"; then
  6380. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6381. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6383. $as_echo_n "checking for $ac_word... " >&6; }
  6384. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6385. $as_echo_n "(cached) " >&6
  6386. else
  6387. if test -n "$LIPO"; then
  6388. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6389. else
  6390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6391. for as_dir in $PATH
  6392. do
  6393. IFS=$as_save_IFS
  6394. test -z "$as_dir" && as_dir=.
  6395. for ac_exec_ext in '' $ac_executable_extensions; do
  6396. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6397. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6398. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6399. break 2
  6400. fi
  6401. done
  6402. done
  6403. IFS=$as_save_IFS
  6404. fi
  6405. fi
  6406. LIPO=$ac_cv_prog_LIPO
  6407. if test -n "$LIPO"; then
  6408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6409. $as_echo "$LIPO" >&6; }
  6410. else
  6411. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6412. $as_echo "no" >&6; }
  6413. fi
  6414. fi
  6415. if test -z "$ac_cv_prog_LIPO"; then
  6416. ac_ct_LIPO=$LIPO
  6417. # Extract the first word of "lipo", so it can be a program name with args.
  6418. set dummy lipo; ac_word=$2
  6419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6420. $as_echo_n "checking for $ac_word... " >&6; }
  6421. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6422. $as_echo_n "(cached) " >&6
  6423. else
  6424. if test -n "$ac_ct_LIPO"; then
  6425. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6426. else
  6427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6428. for as_dir in $PATH
  6429. do
  6430. IFS=$as_save_IFS
  6431. test -z "$as_dir" && as_dir=.
  6432. for ac_exec_ext in '' $ac_executable_extensions; do
  6433. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6434. ac_cv_prog_ac_ct_LIPO="lipo"
  6435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6436. break 2
  6437. fi
  6438. done
  6439. done
  6440. IFS=$as_save_IFS
  6441. fi
  6442. fi
  6443. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6444. if test -n "$ac_ct_LIPO"; then
  6445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6446. $as_echo "$ac_ct_LIPO" >&6; }
  6447. else
  6448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6449. $as_echo "no" >&6; }
  6450. fi
  6451. if test "x$ac_ct_LIPO" = x; then
  6452. LIPO=":"
  6453. else
  6454. case $cross_compiling:$ac_tool_warned in
  6455. yes:)
  6456. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6457. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6458. ac_tool_warned=yes ;;
  6459. esac
  6460. LIPO=$ac_ct_LIPO
  6461. fi
  6462. else
  6463. LIPO="$ac_cv_prog_LIPO"
  6464. fi
  6465. if test -n "$ac_tool_prefix"; then
  6466. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6467. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6469. $as_echo_n "checking for $ac_word... " >&6; }
  6470. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6471. $as_echo_n "(cached) " >&6
  6472. else
  6473. if test -n "$OTOOL"; then
  6474. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6475. else
  6476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6477. for as_dir in $PATH
  6478. do
  6479. IFS=$as_save_IFS
  6480. test -z "$as_dir" && as_dir=.
  6481. for ac_exec_ext in '' $ac_executable_extensions; do
  6482. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6483. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6484. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6485. break 2
  6486. fi
  6487. done
  6488. done
  6489. IFS=$as_save_IFS
  6490. fi
  6491. fi
  6492. OTOOL=$ac_cv_prog_OTOOL
  6493. if test -n "$OTOOL"; then
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6495. $as_echo "$OTOOL" >&6; }
  6496. else
  6497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6498. $as_echo "no" >&6; }
  6499. fi
  6500. fi
  6501. if test -z "$ac_cv_prog_OTOOL"; then
  6502. ac_ct_OTOOL=$OTOOL
  6503. # Extract the first word of "otool", so it can be a program name with args.
  6504. set dummy otool; ac_word=$2
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6506. $as_echo_n "checking for $ac_word... " >&6; }
  6507. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6508. $as_echo_n "(cached) " >&6
  6509. else
  6510. if test -n "$ac_ct_OTOOL"; then
  6511. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6512. else
  6513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6514. for as_dir in $PATH
  6515. do
  6516. IFS=$as_save_IFS
  6517. test -z "$as_dir" && as_dir=.
  6518. for ac_exec_ext in '' $ac_executable_extensions; do
  6519. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6520. ac_cv_prog_ac_ct_OTOOL="otool"
  6521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6522. break 2
  6523. fi
  6524. done
  6525. done
  6526. IFS=$as_save_IFS
  6527. fi
  6528. fi
  6529. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6530. if test -n "$ac_ct_OTOOL"; then
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6532. $as_echo "$ac_ct_OTOOL" >&6; }
  6533. else
  6534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6535. $as_echo "no" >&6; }
  6536. fi
  6537. if test "x$ac_ct_OTOOL" = x; then
  6538. OTOOL=":"
  6539. else
  6540. case $cross_compiling:$ac_tool_warned in
  6541. yes:)
  6542. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6543. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6544. ac_tool_warned=yes ;;
  6545. esac
  6546. OTOOL=$ac_ct_OTOOL
  6547. fi
  6548. else
  6549. OTOOL="$ac_cv_prog_OTOOL"
  6550. fi
  6551. if test -n "$ac_tool_prefix"; then
  6552. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6553. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6554. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6555. $as_echo_n "checking for $ac_word... " >&6; }
  6556. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6557. $as_echo_n "(cached) " >&6
  6558. else
  6559. if test -n "$OTOOL64"; then
  6560. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6561. else
  6562. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6563. for as_dir in $PATH
  6564. do
  6565. IFS=$as_save_IFS
  6566. test -z "$as_dir" && as_dir=.
  6567. for ac_exec_ext in '' $ac_executable_extensions; do
  6568. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6569. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6570. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6571. break 2
  6572. fi
  6573. done
  6574. done
  6575. IFS=$as_save_IFS
  6576. fi
  6577. fi
  6578. OTOOL64=$ac_cv_prog_OTOOL64
  6579. if test -n "$OTOOL64"; then
  6580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6581. $as_echo "$OTOOL64" >&6; }
  6582. else
  6583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6584. $as_echo "no" >&6; }
  6585. fi
  6586. fi
  6587. if test -z "$ac_cv_prog_OTOOL64"; then
  6588. ac_ct_OTOOL64=$OTOOL64
  6589. # Extract the first word of "otool64", so it can be a program name with args.
  6590. set dummy otool64; ac_word=$2
  6591. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6592. $as_echo_n "checking for $ac_word... " >&6; }
  6593. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6594. $as_echo_n "(cached) " >&6
  6595. else
  6596. if test -n "$ac_ct_OTOOL64"; then
  6597. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6598. else
  6599. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6600. for as_dir in $PATH
  6601. do
  6602. IFS=$as_save_IFS
  6603. test -z "$as_dir" && as_dir=.
  6604. for ac_exec_ext in '' $ac_executable_extensions; do
  6605. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6606. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6607. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6608. break 2
  6609. fi
  6610. done
  6611. done
  6612. IFS=$as_save_IFS
  6613. fi
  6614. fi
  6615. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6616. if test -n "$ac_ct_OTOOL64"; then
  6617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6618. $as_echo "$ac_ct_OTOOL64" >&6; }
  6619. else
  6620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6621. $as_echo "no" >&6; }
  6622. fi
  6623. if test "x$ac_ct_OTOOL64" = x; then
  6624. OTOOL64=":"
  6625. else
  6626. case $cross_compiling:$ac_tool_warned in
  6627. yes:)
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6629. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6630. ac_tool_warned=yes ;;
  6631. esac
  6632. OTOOL64=$ac_ct_OTOOL64
  6633. fi
  6634. else
  6635. OTOOL64="$ac_cv_prog_OTOOL64"
  6636. fi
  6637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6638. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6639. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6640. $as_echo_n "(cached) " >&6
  6641. else
  6642. lt_cv_apple_cc_single_mod=no
  6643. if test -z "${LT_MULTI_MODULE}"; then
  6644. # By default we will add the -single_module flag. You can override
  6645. # by either setting the environment variable LT_MULTI_MODULE
  6646. # non-empty at configure time, or by adding -multi_module to the
  6647. # link flags.
  6648. rm -rf libconftest.dylib*
  6649. echo "int foo(void){return 1;}" > conftest.c
  6650. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6651. -dynamiclib -Wl,-single_module conftest.c" >&5
  6652. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6653. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6654. _lt_result=$?
  6655. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6656. lt_cv_apple_cc_single_mod=yes
  6657. else
  6658. cat conftest.err >&5
  6659. fi
  6660. rm -rf libconftest.dylib*
  6661. rm -f conftest.*
  6662. fi
  6663. fi
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6665. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6667. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6668. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6669. $as_echo_n "(cached) " >&6
  6670. else
  6671. lt_cv_ld_exported_symbols_list=no
  6672. save_LDFLAGS=$LDFLAGS
  6673. echo "_main" > conftest.sym
  6674. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6675. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6676. /* end confdefs.h. */
  6677. int
  6678. main ()
  6679. {
  6680. ;
  6681. return 0;
  6682. }
  6683. _ACEOF
  6684. if ac_fn_c_try_link "$LINENO"; then :
  6685. lt_cv_ld_exported_symbols_list=yes
  6686. else
  6687. lt_cv_ld_exported_symbols_list=no
  6688. fi
  6689. rm -f core conftest.err conftest.$ac_objext \
  6690. conftest$ac_exeext conftest.$ac_ext
  6691. LDFLAGS="$save_LDFLAGS"
  6692. fi
  6693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6694. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6696. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6697. if test "${lt_cv_ld_force_load+set}" = set; then :
  6698. $as_echo_n "(cached) " >&6
  6699. else
  6700. lt_cv_ld_force_load=no
  6701. cat > conftest.c << _LT_EOF
  6702. int forced_loaded() { return 2;}
  6703. _LT_EOF
  6704. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6705. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6706. echo "$AR cru libconftest.a conftest.o" >&5
  6707. $AR cru libconftest.a conftest.o 2>&5
  6708. echo "$RANLIB libconftest.a" >&5
  6709. $RANLIB libconftest.a 2>&5
  6710. cat > conftest.c << _LT_EOF
  6711. int main() { return 0;}
  6712. _LT_EOF
  6713. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6714. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6715. _lt_result=$?
  6716. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6717. lt_cv_ld_force_load=yes
  6718. else
  6719. cat conftest.err >&5
  6720. fi
  6721. rm -f conftest.err libconftest.a conftest conftest.c
  6722. rm -rf conftest.dSYM
  6723. fi
  6724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6725. $as_echo "$lt_cv_ld_force_load" >&6; }
  6726. case $host_os in
  6727. rhapsody* | darwin1.[012])
  6728. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6729. darwin1.*)
  6730. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6731. darwin*) # darwin 5.x on
  6732. # if running on 10.5 or later, the deployment target defaults
  6733. # to the OS version, if on x86, and 10.4, the deployment
  6734. # target defaults to 10.4. Don't you love it?
  6735. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6736. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6737. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6738. 10.[012]*)
  6739. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6740. 10.*)
  6741. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6742. esac
  6743. ;;
  6744. esac
  6745. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6746. _lt_dar_single_mod='$single_module'
  6747. fi
  6748. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6749. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6750. else
  6751. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6752. fi
  6753. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6754. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6755. else
  6756. _lt_dsymutil=
  6757. fi
  6758. ;;
  6759. esac
  6760. ac_ext=c
  6761. ac_cpp='$CPP $CPPFLAGS'
  6762. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6763. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6764. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6766. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6767. # On Suns, sometimes $CPP names a directory.
  6768. if test -n "$CPP" && test -d "$CPP"; then
  6769. CPP=
  6770. fi
  6771. if test -z "$CPP"; then
  6772. if test "${ac_cv_prog_CPP+set}" = set; then :
  6773. $as_echo_n "(cached) " >&6
  6774. else
  6775. # Double quotes because CPP needs to be expanded
  6776. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6777. do
  6778. ac_preproc_ok=false
  6779. for ac_c_preproc_warn_flag in '' yes
  6780. do
  6781. # Use a header file that comes with gcc, so configuring glibc
  6782. # with a fresh cross-compiler works.
  6783. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6784. # <limits.h> exists even on freestanding compilers.
  6785. # On the NeXT, cc -E runs the code through the compiler's parser,
  6786. # not just through cpp. "Syntax error" is here to catch this case.
  6787. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6788. /* end confdefs.h. */
  6789. #ifdef __STDC__
  6790. # include <limits.h>
  6791. #else
  6792. # include <assert.h>
  6793. #endif
  6794. Syntax error
  6795. _ACEOF
  6796. if ac_fn_c_try_cpp "$LINENO"; then :
  6797. else
  6798. # Broken: fails on valid input.
  6799. continue
  6800. fi
  6801. rm -f conftest.err conftest.i conftest.$ac_ext
  6802. # OK, works on sane cases. Now check whether nonexistent headers
  6803. # can be detected and how.
  6804. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6805. /* end confdefs.h. */
  6806. #include <ac_nonexistent.h>
  6807. _ACEOF
  6808. if ac_fn_c_try_cpp "$LINENO"; then :
  6809. # Broken: success on invalid input.
  6810. continue
  6811. else
  6812. # Passes both tests.
  6813. ac_preproc_ok=:
  6814. break
  6815. fi
  6816. rm -f conftest.err conftest.i conftest.$ac_ext
  6817. done
  6818. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6819. rm -f conftest.i conftest.err conftest.$ac_ext
  6820. if $ac_preproc_ok; then :
  6821. break
  6822. fi
  6823. done
  6824. ac_cv_prog_CPP=$CPP
  6825. fi
  6826. CPP=$ac_cv_prog_CPP
  6827. else
  6828. ac_cv_prog_CPP=$CPP
  6829. fi
  6830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6831. $as_echo "$CPP" >&6; }
  6832. ac_preproc_ok=false
  6833. for ac_c_preproc_warn_flag in '' yes
  6834. do
  6835. # Use a header file that comes with gcc, so configuring glibc
  6836. # with a fresh cross-compiler works.
  6837. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6838. # <limits.h> exists even on freestanding compilers.
  6839. # On the NeXT, cc -E runs the code through the compiler's parser,
  6840. # not just through cpp. "Syntax error" is here to catch this case.
  6841. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6842. /* end confdefs.h. */
  6843. #ifdef __STDC__
  6844. # include <limits.h>
  6845. #else
  6846. # include <assert.h>
  6847. #endif
  6848. Syntax error
  6849. _ACEOF
  6850. if ac_fn_c_try_cpp "$LINENO"; then :
  6851. else
  6852. # Broken: fails on valid input.
  6853. continue
  6854. fi
  6855. rm -f conftest.err conftest.i conftest.$ac_ext
  6856. # OK, works on sane cases. Now check whether nonexistent headers
  6857. # can be detected and how.
  6858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6859. /* end confdefs.h. */
  6860. #include <ac_nonexistent.h>
  6861. _ACEOF
  6862. if ac_fn_c_try_cpp "$LINENO"; then :
  6863. # Broken: success on invalid input.
  6864. continue
  6865. else
  6866. # Passes both tests.
  6867. ac_preproc_ok=:
  6868. break
  6869. fi
  6870. rm -f conftest.err conftest.i conftest.$ac_ext
  6871. done
  6872. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6873. rm -f conftest.i conftest.err conftest.$ac_ext
  6874. if $ac_preproc_ok; then :
  6875. else
  6876. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6877. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6878. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6879. See \`config.log' for more details" "$LINENO" 5 ; }
  6880. fi
  6881. ac_ext=c
  6882. ac_cpp='$CPP $CPPFLAGS'
  6883. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6884. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6885. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6887. $as_echo_n "checking for ANSI C header files... " >&6; }
  6888. if test "${ac_cv_header_stdc+set}" = set; then :
  6889. $as_echo_n "(cached) " >&6
  6890. else
  6891. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6892. /* end confdefs.h. */
  6893. #include <stdlib.h>
  6894. #include <stdarg.h>
  6895. #include <string.h>
  6896. #include <float.h>
  6897. int
  6898. main ()
  6899. {
  6900. ;
  6901. return 0;
  6902. }
  6903. _ACEOF
  6904. if ac_fn_c_try_compile "$LINENO"; then :
  6905. ac_cv_header_stdc=yes
  6906. else
  6907. ac_cv_header_stdc=no
  6908. fi
  6909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6910. if test $ac_cv_header_stdc = yes; then
  6911. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6912. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6913. /* end confdefs.h. */
  6914. #include <string.h>
  6915. _ACEOF
  6916. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6917. $EGREP "memchr" >/dev/null 2>&1; then :
  6918. else
  6919. ac_cv_header_stdc=no
  6920. fi
  6921. rm -f conftest*
  6922. fi
  6923. if test $ac_cv_header_stdc = yes; then
  6924. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6925. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6926. /* end confdefs.h. */
  6927. #include <stdlib.h>
  6928. _ACEOF
  6929. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6930. $EGREP "free" >/dev/null 2>&1; then :
  6931. else
  6932. ac_cv_header_stdc=no
  6933. fi
  6934. rm -f conftest*
  6935. fi
  6936. if test $ac_cv_header_stdc = yes; then
  6937. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6938. if test "$cross_compiling" = yes; then :
  6939. :
  6940. else
  6941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6942. /* end confdefs.h. */
  6943. #include <ctype.h>
  6944. #include <stdlib.h>
  6945. #if ((' ' & 0x0FF) == 0x020)
  6946. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6947. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6948. #else
  6949. # define ISLOWER(c) \
  6950. (('a' <= (c) && (c) <= 'i') \
  6951. || ('j' <= (c) && (c) <= 'r') \
  6952. || ('s' <= (c) && (c) <= 'z'))
  6953. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6954. #endif
  6955. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6956. int
  6957. main ()
  6958. {
  6959. int i;
  6960. for (i = 0; i < 256; i++)
  6961. if (XOR (islower (i), ISLOWER (i))
  6962. || toupper (i) != TOUPPER (i))
  6963. return 2;
  6964. return 0;
  6965. }
  6966. _ACEOF
  6967. if ac_fn_c_try_run "$LINENO"; then :
  6968. else
  6969. ac_cv_header_stdc=no
  6970. fi
  6971. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6972. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6973. fi
  6974. fi
  6975. fi
  6976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6977. $as_echo "$ac_cv_header_stdc" >&6; }
  6978. if test $ac_cv_header_stdc = yes; then
  6979. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6980. fi
  6981. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6982. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6983. inttypes.h stdint.h unistd.h
  6984. do :
  6985. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6986. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6987. "
  6988. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6989. cat >>confdefs.h <<_ACEOF
  6990. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6991. _ACEOF
  6992. fi
  6993. done
  6994. for ac_header in dlfcn.h
  6995. do :
  6996. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6997. "
  6998. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6999. cat >>confdefs.h <<_ACEOF
  7000. #define HAVE_DLFCN_H 1
  7001. _ACEOF
  7002. fi
  7003. done
  7004. func_stripname_cnf ()
  7005. {
  7006. case ${2} in
  7007. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7008. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7009. esac
  7010. } # func_stripname_cnf
  7011. # Set options
  7012. enable_dlopen=no
  7013. enable_win32_dll=no
  7014. # Check whether --with-pic was given.
  7015. if test "${with_pic+set}" = set; then :
  7016. withval=$with_pic; pic_mode="$withval"
  7017. else
  7018. pic_mode=default
  7019. fi
  7020. test -z "$pic_mode" && pic_mode=default
  7021. # Check whether --enable-fast-install was given.
  7022. if test "${enable_fast_install+set}" = set; then :
  7023. enableval=$enable_fast_install; p=${PACKAGE-default}
  7024. case $enableval in
  7025. yes) enable_fast_install=yes ;;
  7026. no) enable_fast_install=no ;;
  7027. *)
  7028. enable_fast_install=no
  7029. # Look at the argument we got. We use all the common list separators.
  7030. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7031. for pkg in $enableval; do
  7032. IFS="$lt_save_ifs"
  7033. if test "X$pkg" = "X$p"; then
  7034. enable_fast_install=yes
  7035. fi
  7036. done
  7037. IFS="$lt_save_ifs"
  7038. ;;
  7039. esac
  7040. else
  7041. enable_fast_install=yes
  7042. fi
  7043. # This can be used to rebuild libtool when needed
  7044. LIBTOOL_DEPS="$ltmain"
  7045. # Always use our own libtool.
  7046. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7047. test -z "$LN_S" && LN_S="ln -s"
  7048. if test -n "${ZSH_VERSION+set}" ; then
  7049. setopt NO_GLOB_SUBST
  7050. fi
  7051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7052. $as_echo_n "checking for objdir... " >&6; }
  7053. if test "${lt_cv_objdir+set}" = set; then :
  7054. $as_echo_n "(cached) " >&6
  7055. else
  7056. rm -f .libs 2>/dev/null
  7057. mkdir .libs 2>/dev/null
  7058. if test -d .libs; then
  7059. lt_cv_objdir=.libs
  7060. else
  7061. # MS-DOS does not allow filenames that begin with a dot.
  7062. lt_cv_objdir=_libs
  7063. fi
  7064. rmdir .libs 2>/dev/null
  7065. fi
  7066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7067. $as_echo "$lt_cv_objdir" >&6; }
  7068. objdir=$lt_cv_objdir
  7069. cat >>confdefs.h <<_ACEOF
  7070. #define LT_OBJDIR "$lt_cv_objdir/"
  7071. _ACEOF
  7072. case $host_os in
  7073. aix3*)
  7074. # AIX sometimes has problems with the GCC collect2 program. For some
  7075. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7076. # vanish in a puff of smoke.
  7077. if test "X${COLLECT_NAMES+set}" != Xset; then
  7078. COLLECT_NAMES=
  7079. export COLLECT_NAMES
  7080. fi
  7081. ;;
  7082. esac
  7083. # Global variables:
  7084. ofile=libtool
  7085. can_build_shared=yes
  7086. # All known linkers require a `.a' archive for static linking (except MSVC,
  7087. # which needs '.lib').
  7088. libext=a
  7089. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7090. old_CC="$CC"
  7091. old_CFLAGS="$CFLAGS"
  7092. # Set sane defaults for various variables
  7093. test -z "$CC" && CC=cc
  7094. test -z "$LTCC" && LTCC=$CC
  7095. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7096. test -z "$LD" && LD=ld
  7097. test -z "$ac_objext" && ac_objext=o
  7098. for cc_temp in $compiler""; do
  7099. case $cc_temp in
  7100. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7101. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7102. \-*) ;;
  7103. *) break;;
  7104. esac
  7105. done
  7106. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7107. # Only perform the check for file, if the check method requires it
  7108. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7109. case $deplibs_check_method in
  7110. file_magic*)
  7111. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7112. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7113. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7114. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7115. $as_echo_n "(cached) " >&6
  7116. else
  7117. case $MAGIC_CMD in
  7118. [\\/*] | ?:[\\/]*)
  7119. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7120. ;;
  7121. *)
  7122. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7123. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7124. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7125. for ac_dir in $ac_dummy; do
  7126. IFS="$lt_save_ifs"
  7127. test -z "$ac_dir" && ac_dir=.
  7128. if test -f $ac_dir/${ac_tool_prefix}file; then
  7129. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7130. if test -n "$file_magic_test_file"; then
  7131. case $deplibs_check_method in
  7132. "file_magic "*)
  7133. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7134. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7135. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7136. $EGREP "$file_magic_regex" > /dev/null; then
  7137. :
  7138. else
  7139. cat <<_LT_EOF 1>&2
  7140. *** Warning: the command libtool uses to detect shared libraries,
  7141. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7142. *** The result is that libtool may fail to recognize shared libraries
  7143. *** as such. This will affect the creation of libtool libraries that
  7144. *** depend on shared libraries, but programs linked with such libtool
  7145. *** libraries will work regardless of this problem. Nevertheless, you
  7146. *** may want to report the problem to your system manager and/or to
  7147. *** [email protected]
  7148. _LT_EOF
  7149. fi ;;
  7150. esac
  7151. fi
  7152. break
  7153. fi
  7154. done
  7155. IFS="$lt_save_ifs"
  7156. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7157. ;;
  7158. esac
  7159. fi
  7160. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7161. if test -n "$MAGIC_CMD"; then
  7162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7163. $as_echo "$MAGIC_CMD" >&6; }
  7164. else
  7165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7166. $as_echo "no" >&6; }
  7167. fi
  7168. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7169. if test -n "$ac_tool_prefix"; then
  7170. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7171. $as_echo_n "checking for file... " >&6; }
  7172. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7173. $as_echo_n "(cached) " >&6
  7174. else
  7175. case $MAGIC_CMD in
  7176. [\\/*] | ?:[\\/]*)
  7177. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7178. ;;
  7179. *)
  7180. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7181. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7182. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7183. for ac_dir in $ac_dummy; do
  7184. IFS="$lt_save_ifs"
  7185. test -z "$ac_dir" && ac_dir=.
  7186. if test -f $ac_dir/file; then
  7187. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7188. if test -n "$file_magic_test_file"; then
  7189. case $deplibs_check_method in
  7190. "file_magic "*)
  7191. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7192. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7193. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7194. $EGREP "$file_magic_regex" > /dev/null; then
  7195. :
  7196. else
  7197. cat <<_LT_EOF 1>&2
  7198. *** Warning: the command libtool uses to detect shared libraries,
  7199. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7200. *** The result is that libtool may fail to recognize shared libraries
  7201. *** as such. This will affect the creation of libtool libraries that
  7202. *** depend on shared libraries, but programs linked with such libtool
  7203. *** libraries will work regardless of this problem. Nevertheless, you
  7204. *** may want to report the problem to your system manager and/or to
  7205. *** [email protected]
  7206. _LT_EOF
  7207. fi ;;
  7208. esac
  7209. fi
  7210. break
  7211. fi
  7212. done
  7213. IFS="$lt_save_ifs"
  7214. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7215. ;;
  7216. esac
  7217. fi
  7218. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7219. if test -n "$MAGIC_CMD"; then
  7220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7221. $as_echo "$MAGIC_CMD" >&6; }
  7222. else
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7224. $as_echo "no" >&6; }
  7225. fi
  7226. else
  7227. MAGIC_CMD=:
  7228. fi
  7229. fi
  7230. fi
  7231. ;;
  7232. esac
  7233. # Use C for the default configuration in the libtool script
  7234. lt_save_CC="$CC"
  7235. ac_ext=c
  7236. ac_cpp='$CPP $CPPFLAGS'
  7237. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7238. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7239. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7240. # Source file extension for C test sources.
  7241. ac_ext=c
  7242. # Object file extension for compiled C test sources.
  7243. objext=o
  7244. objext=$objext
  7245. # Code to be used in simple compile tests
  7246. lt_simple_compile_test_code="int some_variable = 0;"
  7247. # Code to be used in simple link tests
  7248. lt_simple_link_test_code='int main(){return(0);}'
  7249. # If no C compiler was specified, use CC.
  7250. LTCC=${LTCC-"$CC"}
  7251. # If no C compiler flags were specified, use CFLAGS.
  7252. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7253. # Allow CC to be a program name with arguments.
  7254. compiler=$CC
  7255. # Save the default compiler, since it gets overwritten when the other
  7256. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7257. compiler_DEFAULT=$CC
  7258. # save warnings/boilerplate of simple test code
  7259. ac_outfile=conftest.$ac_objext
  7260. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7261. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7262. _lt_compiler_boilerplate=`cat conftest.err`
  7263. $RM conftest*
  7264. ac_outfile=conftest.$ac_objext
  7265. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7266. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7267. _lt_linker_boilerplate=`cat conftest.err`
  7268. $RM -r conftest*
  7269. ## CAVEAT EMPTOR:
  7270. ## There is no encapsulation within the following macros, do not change
  7271. ## the running order or otherwise move them around unless you know exactly
  7272. ## what you are doing...
  7273. if test -n "$compiler"; then
  7274. lt_prog_compiler_no_builtin_flag=
  7275. if test "$GCC" = yes; then
  7276. case $cc_basename in
  7277. nvcc*)
  7278. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7279. *)
  7280. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7281. esac
  7282. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7283. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7284. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7285. $as_echo_n "(cached) " >&6
  7286. else
  7287. lt_cv_prog_compiler_rtti_exceptions=no
  7288. ac_outfile=conftest.$ac_objext
  7289. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7290. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7291. # Insert the option either (1) after the last *FLAGS variable, or
  7292. # (2) before a word containing "conftest.", or (3) at the end.
  7293. # Note that $ac_compile itself does not contain backslashes and begins
  7294. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7295. # The option is referenced via a variable to avoid confusing sed.
  7296. lt_compile=`echo "$ac_compile" | $SED \
  7297. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7298. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7299. -e 's:$: $lt_compiler_flag:'`
  7300. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7301. (eval "$lt_compile" 2>conftest.err)
  7302. ac_status=$?
  7303. cat conftest.err >&5
  7304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7305. if (exit $ac_status) && test -s "$ac_outfile"; then
  7306. # The compiler can only warn and ignore the option if not recognized
  7307. # So say no if there are warnings other than the usual output.
  7308. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7309. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7310. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7311. lt_cv_prog_compiler_rtti_exceptions=yes
  7312. fi
  7313. fi
  7314. $RM conftest*
  7315. fi
  7316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7317. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7318. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7319. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7320. else
  7321. :
  7322. fi
  7323. fi
  7324. lt_prog_compiler_wl=
  7325. lt_prog_compiler_pic=
  7326. lt_prog_compiler_static=
  7327. if test "$GCC" = yes; then
  7328. lt_prog_compiler_wl='-Wl,'
  7329. lt_prog_compiler_static='-static'
  7330. case $host_os in
  7331. aix*)
  7332. # All AIX code is PIC.
  7333. if test "$host_cpu" = ia64; then
  7334. # AIX 5 now supports IA64 processor
  7335. lt_prog_compiler_static='-Bstatic'
  7336. fi
  7337. ;;
  7338. amigaos*)
  7339. case $host_cpu in
  7340. powerpc)
  7341. # see comment about AmigaOS4 .so support
  7342. lt_prog_compiler_pic='-fPIC'
  7343. ;;
  7344. m68k)
  7345. # FIXME: we need at least 68020 code to build shared libraries, but
  7346. # adding the `-m68020' flag to GCC prevents building anything better,
  7347. # like `-m68040'.
  7348. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7349. ;;
  7350. esac
  7351. ;;
  7352. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7353. # PIC is the default for these OSes.
  7354. ;;
  7355. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7356. # This hack is so that the source file can tell whether it is being
  7357. # built for inclusion in a dll (and should export symbols for example).
  7358. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7359. # (--disable-auto-import) libraries
  7360. lt_prog_compiler_pic='-DDLL_EXPORT'
  7361. ;;
  7362. darwin* | rhapsody*)
  7363. # PIC is the default on this platform
  7364. # Common symbols not allowed in MH_DYLIB files
  7365. lt_prog_compiler_pic='-fno-common'
  7366. ;;
  7367. haiku*)
  7368. # PIC is the default for Haiku.
  7369. # The "-static" flag exists, but is broken.
  7370. lt_prog_compiler_static=
  7371. ;;
  7372. hpux*)
  7373. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7374. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7375. # sets the default TLS model and affects inlining.
  7376. case $host_cpu in
  7377. hppa*64*)
  7378. # +Z the default
  7379. ;;
  7380. *)
  7381. lt_prog_compiler_pic='-fPIC'
  7382. ;;
  7383. esac
  7384. ;;
  7385. interix[3-9]*)
  7386. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7387. # Instead, we relocate shared libraries at runtime.
  7388. ;;
  7389. msdosdjgpp*)
  7390. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7391. # on systems that don't support them.
  7392. lt_prog_compiler_can_build_shared=no
  7393. enable_shared=no
  7394. ;;
  7395. *nto* | *qnx*)
  7396. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7397. # it will coredump.
  7398. lt_prog_compiler_pic='-fPIC -shared'
  7399. ;;
  7400. sysv4*MP*)
  7401. if test -d /usr/nec; then
  7402. lt_prog_compiler_pic=-Kconform_pic
  7403. fi
  7404. ;;
  7405. *)
  7406. lt_prog_compiler_pic='-fPIC'
  7407. ;;
  7408. esac
  7409. case $cc_basename in
  7410. nvcc*) # Cuda Compiler Driver 2.2
  7411. lt_prog_compiler_wl='-Xlinker '
  7412. lt_prog_compiler_pic='-Xcompiler -fPIC'
  7413. ;;
  7414. esac
  7415. else
  7416. # PORTME Check for flag to pass linker flags through the system compiler.
  7417. case $host_os in
  7418. aix*)
  7419. lt_prog_compiler_wl='-Wl,'
  7420. if test "$host_cpu" = ia64; then
  7421. # AIX 5 now supports IA64 processor
  7422. lt_prog_compiler_static='-Bstatic'
  7423. else
  7424. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7425. fi
  7426. ;;
  7427. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7428. # This hack is so that the source file can tell whether it is being
  7429. # built for inclusion in a dll (and should export symbols for example).
  7430. lt_prog_compiler_pic='-DDLL_EXPORT'
  7431. ;;
  7432. hpux9* | hpux10* | hpux11*)
  7433. lt_prog_compiler_wl='-Wl,'
  7434. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7435. # not for PA HP-UX.
  7436. case $host_cpu in
  7437. hppa*64*|ia64*)
  7438. # +Z the default
  7439. ;;
  7440. *)
  7441. lt_prog_compiler_pic='+Z'
  7442. ;;
  7443. esac
  7444. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7445. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7446. ;;
  7447. irix5* | irix6* | nonstopux*)
  7448. lt_prog_compiler_wl='-Wl,'
  7449. # PIC (with -KPIC) is the default.
  7450. lt_prog_compiler_static='-non_shared'
  7451. ;;
  7452. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7453. case $cc_basename in
  7454. # old Intel for x86_64 which still supported -KPIC.
  7455. ecc*)
  7456. lt_prog_compiler_wl='-Wl,'
  7457. lt_prog_compiler_pic='-KPIC'
  7458. lt_prog_compiler_static='-static'
  7459. ;;
  7460. # icc used to be incompatible with GCC.
  7461. # ICC 10 doesn't accept -KPIC any more.
  7462. icc* | ifort*)
  7463. lt_prog_compiler_wl='-Wl,'
  7464. lt_prog_compiler_pic='-fPIC'
  7465. lt_prog_compiler_static='-static'
  7466. ;;
  7467. # Lahey Fortran 8.1.
  7468. lf95*)
  7469. lt_prog_compiler_wl='-Wl,'
  7470. lt_prog_compiler_pic='--shared'
  7471. lt_prog_compiler_static='--static'
  7472. ;;
  7473. nagfor*)
  7474. # NAG Fortran compiler
  7475. lt_prog_compiler_wl='-Wl,-Wl,,'
  7476. lt_prog_compiler_pic='-PIC'
  7477. lt_prog_compiler_static='-Bstatic'
  7478. ;;
  7479. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7480. # Portland Group compilers (*not* the Pentium gcc compiler,
  7481. # which looks to be a dead project)
  7482. lt_prog_compiler_wl='-Wl,'
  7483. lt_prog_compiler_pic='-fpic'
  7484. lt_prog_compiler_static='-Bstatic'
  7485. ;;
  7486. ccc*)
  7487. lt_prog_compiler_wl='-Wl,'
  7488. # All Alpha code is PIC.
  7489. lt_prog_compiler_static='-non_shared'
  7490. ;;
  7491. xl* | bgxl* | bgf* | mpixl*)
  7492. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7493. lt_prog_compiler_wl='-Wl,'
  7494. lt_prog_compiler_pic='-qpic'
  7495. lt_prog_compiler_static='-qstaticlink'
  7496. ;;
  7497. *)
  7498. case `$CC -V 2>&1 | sed 5q` in
  7499. *Sun\ F* | *Sun*Fortran*)
  7500. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7501. lt_prog_compiler_pic='-KPIC'
  7502. lt_prog_compiler_static='-Bstatic'
  7503. lt_prog_compiler_wl=''
  7504. ;;
  7505. *Sun\ C*)
  7506. # Sun C 5.9
  7507. lt_prog_compiler_pic='-KPIC'
  7508. lt_prog_compiler_static='-Bstatic'
  7509. lt_prog_compiler_wl='-Wl,'
  7510. ;;
  7511. esac
  7512. ;;
  7513. esac
  7514. ;;
  7515. newsos6)
  7516. lt_prog_compiler_pic='-KPIC'
  7517. lt_prog_compiler_static='-Bstatic'
  7518. ;;
  7519. *nto* | *qnx*)
  7520. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7521. # it will coredump.
  7522. lt_prog_compiler_pic='-fPIC -shared'
  7523. ;;
  7524. osf3* | osf4* | osf5*)
  7525. lt_prog_compiler_wl='-Wl,'
  7526. # All OSF/1 code is PIC.
  7527. lt_prog_compiler_static='-non_shared'
  7528. ;;
  7529. rdos*)
  7530. lt_prog_compiler_static='-non_shared'
  7531. ;;
  7532. solaris*)
  7533. lt_prog_compiler_pic='-KPIC'
  7534. lt_prog_compiler_static='-Bstatic'
  7535. case $cc_basename in
  7536. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7537. lt_prog_compiler_wl='-Qoption ld ';;
  7538. *)
  7539. lt_prog_compiler_wl='-Wl,';;
  7540. esac
  7541. ;;
  7542. sunos4*)
  7543. lt_prog_compiler_wl='-Qoption ld '
  7544. lt_prog_compiler_pic='-PIC'
  7545. lt_prog_compiler_static='-Bstatic'
  7546. ;;
  7547. sysv4 | sysv4.2uw2* | sysv4.3*)
  7548. lt_prog_compiler_wl='-Wl,'
  7549. lt_prog_compiler_pic='-KPIC'
  7550. lt_prog_compiler_static='-Bstatic'
  7551. ;;
  7552. sysv4*MP*)
  7553. if test -d /usr/nec ;then
  7554. lt_prog_compiler_pic='-Kconform_pic'
  7555. lt_prog_compiler_static='-Bstatic'
  7556. fi
  7557. ;;
  7558. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7559. lt_prog_compiler_wl='-Wl,'
  7560. lt_prog_compiler_pic='-KPIC'
  7561. lt_prog_compiler_static='-Bstatic'
  7562. ;;
  7563. unicos*)
  7564. lt_prog_compiler_wl='-Wl,'
  7565. lt_prog_compiler_can_build_shared=no
  7566. ;;
  7567. uts4*)
  7568. lt_prog_compiler_pic='-pic'
  7569. lt_prog_compiler_static='-Bstatic'
  7570. ;;
  7571. *)
  7572. lt_prog_compiler_can_build_shared=no
  7573. ;;
  7574. esac
  7575. fi
  7576. case $host_os in
  7577. # For platforms which do not support PIC, -DPIC is meaningless:
  7578. *djgpp*)
  7579. lt_prog_compiler_pic=
  7580. ;;
  7581. *)
  7582. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7583. ;;
  7584. esac
  7585. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7586. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7587. if test "${lt_cv_prog_compiler_pic+set}" = set; then :
  7588. $as_echo_n "(cached) " >&6
  7589. else
  7590. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7591. fi
  7592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7593. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7594. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7595. #
  7596. # Check to make sure the PIC flag actually works.
  7597. #
  7598. if test -n "$lt_prog_compiler_pic"; then
  7599. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7600. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7601. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7602. $as_echo_n "(cached) " >&6
  7603. else
  7604. lt_cv_prog_compiler_pic_works=no
  7605. ac_outfile=conftest.$ac_objext
  7606. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7607. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7608. # Insert the option either (1) after the last *FLAGS variable, or
  7609. # (2) before a word containing "conftest.", or (3) at the end.
  7610. # Note that $ac_compile itself does not contain backslashes and begins
  7611. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7612. # The option is referenced via a variable to avoid confusing sed.
  7613. lt_compile=`echo "$ac_compile" | $SED \
  7614. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7615. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7616. -e 's:$: $lt_compiler_flag:'`
  7617. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7618. (eval "$lt_compile" 2>conftest.err)
  7619. ac_status=$?
  7620. cat conftest.err >&5
  7621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7622. if (exit $ac_status) && test -s "$ac_outfile"; then
  7623. # The compiler can only warn and ignore the option if not recognized
  7624. # So say no if there are warnings other than the usual output.
  7625. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7626. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7627. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7628. lt_cv_prog_compiler_pic_works=yes
  7629. fi
  7630. fi
  7631. $RM conftest*
  7632. fi
  7633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7634. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7635. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7636. case $lt_prog_compiler_pic in
  7637. "" | " "*) ;;
  7638. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7639. esac
  7640. else
  7641. lt_prog_compiler_pic=
  7642. lt_prog_compiler_can_build_shared=no
  7643. fi
  7644. fi
  7645. #
  7646. # Check to make sure the static flag actually works.
  7647. #
  7648. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7650. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7651. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7652. $as_echo_n "(cached) " >&6
  7653. else
  7654. lt_cv_prog_compiler_static_works=no
  7655. save_LDFLAGS="$LDFLAGS"
  7656. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7657. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7658. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7659. # The linker can only warn and ignore the option if not recognized
  7660. # So say no if there are warnings
  7661. if test -s conftest.err; then
  7662. # Append any errors to the config.log.
  7663. cat conftest.err 1>&5
  7664. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7665. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7666. if diff conftest.exp conftest.er2 >/dev/null; then
  7667. lt_cv_prog_compiler_static_works=yes
  7668. fi
  7669. else
  7670. lt_cv_prog_compiler_static_works=yes
  7671. fi
  7672. fi
  7673. $RM -r conftest*
  7674. LDFLAGS="$save_LDFLAGS"
  7675. fi
  7676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7677. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7678. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7679. :
  7680. else
  7681. lt_prog_compiler_static=
  7682. fi
  7683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7684. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7685. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7686. $as_echo_n "(cached) " >&6
  7687. else
  7688. lt_cv_prog_compiler_c_o=no
  7689. $RM -r conftest 2>/dev/null
  7690. mkdir conftest
  7691. cd conftest
  7692. mkdir out
  7693. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7694. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7695. # Insert the option either (1) after the last *FLAGS variable, or
  7696. # (2) before a word containing "conftest.", or (3) at the end.
  7697. # Note that $ac_compile itself does not contain backslashes and begins
  7698. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7699. lt_compile=`echo "$ac_compile" | $SED \
  7700. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7701. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7702. -e 's:$: $lt_compiler_flag:'`
  7703. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7704. (eval "$lt_compile" 2>out/conftest.err)
  7705. ac_status=$?
  7706. cat out/conftest.err >&5
  7707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7708. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7709. then
  7710. # The compiler can only warn and ignore the option if not recognized
  7711. # So say no if there are warnings
  7712. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7713. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7714. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7715. lt_cv_prog_compiler_c_o=yes
  7716. fi
  7717. fi
  7718. chmod u+w . 2>&5
  7719. $RM conftest*
  7720. # SGI C++ compiler will create directory out/ii_files/ for
  7721. # template instantiation
  7722. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7723. $RM out/* && rmdir out
  7724. cd ..
  7725. $RM -r conftest
  7726. $RM conftest*
  7727. fi
  7728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7729. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7731. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7732. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7733. $as_echo_n "(cached) " >&6
  7734. else
  7735. lt_cv_prog_compiler_c_o=no
  7736. $RM -r conftest 2>/dev/null
  7737. mkdir conftest
  7738. cd conftest
  7739. mkdir out
  7740. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7741. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7742. # Insert the option either (1) after the last *FLAGS variable, or
  7743. # (2) before a word containing "conftest.", or (3) at the end.
  7744. # Note that $ac_compile itself does not contain backslashes and begins
  7745. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7746. lt_compile=`echo "$ac_compile" | $SED \
  7747. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7748. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7749. -e 's:$: $lt_compiler_flag:'`
  7750. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7751. (eval "$lt_compile" 2>out/conftest.err)
  7752. ac_status=$?
  7753. cat out/conftest.err >&5
  7754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7755. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7756. then
  7757. # The compiler can only warn and ignore the option if not recognized
  7758. # So say no if there are warnings
  7759. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7760. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7761. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7762. lt_cv_prog_compiler_c_o=yes
  7763. fi
  7764. fi
  7765. chmod u+w . 2>&5
  7766. $RM conftest*
  7767. # SGI C++ compiler will create directory out/ii_files/ for
  7768. # template instantiation
  7769. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7770. $RM out/* && rmdir out
  7771. cd ..
  7772. $RM -r conftest
  7773. $RM conftest*
  7774. fi
  7775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7776. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7777. hard_links="nottested"
  7778. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7779. # do not overwrite the value of need_locks provided by the user
  7780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7781. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7782. hard_links=yes
  7783. $RM conftest*
  7784. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7785. touch conftest.a
  7786. ln conftest.a conftest.b 2>&5 || hard_links=no
  7787. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7789. $as_echo "$hard_links" >&6; }
  7790. if test "$hard_links" = no; then
  7791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7792. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7793. need_locks=warn
  7794. fi
  7795. else
  7796. need_locks=no
  7797. fi
  7798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7799. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7800. runpath_var=
  7801. allow_undefined_flag=
  7802. always_export_symbols=no
  7803. archive_cmds=
  7804. archive_expsym_cmds=
  7805. compiler_needs_object=no
  7806. enable_shared_with_static_runtimes=no
  7807. export_dynamic_flag_spec=
  7808. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7809. hardcode_automatic=no
  7810. hardcode_direct=no
  7811. hardcode_direct_absolute=no
  7812. hardcode_libdir_flag_spec=
  7813. hardcode_libdir_flag_spec_ld=
  7814. hardcode_libdir_separator=
  7815. hardcode_minus_L=no
  7816. hardcode_shlibpath_var=unsupported
  7817. inherit_rpath=no
  7818. link_all_deplibs=unknown
  7819. module_cmds=
  7820. module_expsym_cmds=
  7821. old_archive_from_new_cmds=
  7822. old_archive_from_expsyms_cmds=
  7823. thread_safe_flag_spec=
  7824. whole_archive_flag_spec=
  7825. # include_expsyms should be a list of space-separated symbols to be *always*
  7826. # included in the symbol list
  7827. include_expsyms=
  7828. # exclude_expsyms can be an extended regexp of symbols to exclude
  7829. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7830. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7831. # as well as any symbol that contains `d'.
  7832. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7833. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7834. # platforms (ab)use it in PIC code, but their linkers get confused if
  7835. # the symbol is explicitly referenced. Since portable code cannot
  7836. # rely on this symbol name, it's probably fine to never include it in
  7837. # preloaded symbol tables.
  7838. # Exclude shared library initialization/finalization symbols.
  7839. extract_expsyms_cmds=
  7840. case $host_os in
  7841. cygwin* | mingw* | pw32* | cegcc*)
  7842. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7843. # When not using gcc, we currently assume that we are using
  7844. # Microsoft Visual C++.
  7845. if test "$GCC" != yes; then
  7846. with_gnu_ld=no
  7847. fi
  7848. ;;
  7849. interix*)
  7850. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7851. with_gnu_ld=yes
  7852. ;;
  7853. openbsd*)
  7854. with_gnu_ld=no
  7855. ;;
  7856. linux* | k*bsd*-gnu | gnu*)
  7857. link_all_deplibs=no
  7858. ;;
  7859. esac
  7860. ld_shlibs=yes
  7861. # On some targets, GNU ld is compatible enough with the native linker
  7862. # that we're better off using the native interface for both.
  7863. lt_use_gnu_ld_interface=no
  7864. if test "$with_gnu_ld" = yes; then
  7865. case $host_os in
  7866. aix*)
  7867. # The AIX port of GNU ld has always aspired to compatibility
  7868. # with the native linker. However, as the warning in the GNU ld
  7869. # block says, versions before 2.19.5* couldn't really create working
  7870. # shared libraries, regardless of the interface used.
  7871. case `$LD -v 2>&1` in
  7872. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7873. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7874. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7875. *)
  7876. lt_use_gnu_ld_interface=yes
  7877. ;;
  7878. esac
  7879. ;;
  7880. *)
  7881. lt_use_gnu_ld_interface=yes
  7882. ;;
  7883. esac
  7884. fi
  7885. if test "$lt_use_gnu_ld_interface" = yes; then
  7886. # If archive_cmds runs LD, not CC, wlarc should be empty
  7887. wlarc='${wl}'
  7888. # Set some defaults for GNU ld with shared library support. These
  7889. # are reset later if shared libraries are not supported. Putting them
  7890. # here allows them to be overridden if necessary.
  7891. runpath_var=LD_RUN_PATH
  7892. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7893. export_dynamic_flag_spec='${wl}--export-dynamic'
  7894. # ancient GNU ld didn't support --whole-archive et. al.
  7895. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7896. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7897. else
  7898. whole_archive_flag_spec=
  7899. fi
  7900. supports_anon_versioning=no
  7901. case `$LD -v 2>&1` in
  7902. *GNU\ gold*) supports_anon_versioning=yes ;;
  7903. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7904. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7905. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7906. *\ 2.11.*) ;; # other 2.11 versions
  7907. *) supports_anon_versioning=yes ;;
  7908. esac
  7909. # See if GNU ld supports shared libraries.
  7910. case $host_os in
  7911. aix[3-9]*)
  7912. # On AIX/PPC, the GNU linker is very broken
  7913. if test "$host_cpu" != ia64; then
  7914. ld_shlibs=no
  7915. cat <<_LT_EOF 1>&2
  7916. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7917. *** to be unable to reliably create shared libraries on AIX.
  7918. *** Therefore, libtool is disabling shared libraries support. If you
  7919. *** really care for shared libraries, you may want to install binutils
  7920. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7921. *** You will then need to restart the configuration process.
  7922. _LT_EOF
  7923. fi
  7924. ;;
  7925. amigaos*)
  7926. case $host_cpu in
  7927. powerpc)
  7928. # see comment about AmigaOS4 .so support
  7929. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7930. archive_expsym_cmds=''
  7931. ;;
  7932. m68k)
  7933. 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)'
  7934. hardcode_libdir_flag_spec='-L$libdir'
  7935. hardcode_minus_L=yes
  7936. ;;
  7937. esac
  7938. ;;
  7939. beos*)
  7940. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7941. allow_undefined_flag=unsupported
  7942. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7943. # support --undefined. This deserves some investigation. FIXME
  7944. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7945. else
  7946. ld_shlibs=no
  7947. fi
  7948. ;;
  7949. cygwin* | mingw* | pw32* | cegcc*)
  7950. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7951. # as there is no search path for DLLs.
  7952. hardcode_libdir_flag_spec='-L$libdir'
  7953. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7954. allow_undefined_flag=unsupported
  7955. always_export_symbols=no
  7956. enable_shared_with_static_runtimes=yes
  7957. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7958. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7959. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7960. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7961. # If the export-symbols file already is a .def file (1st line
  7962. # is EXPORTS), use it as is; otherwise, prepend...
  7963. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7964. cp $export_symbols $output_objdir/$soname.def;
  7965. else
  7966. echo EXPORTS > $output_objdir/$soname.def;
  7967. cat $export_symbols >> $output_objdir/$soname.def;
  7968. fi~
  7969. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7970. else
  7971. ld_shlibs=no
  7972. fi
  7973. ;;
  7974. haiku*)
  7975. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7976. link_all_deplibs=yes
  7977. ;;
  7978. interix[3-9]*)
  7979. hardcode_direct=no
  7980. hardcode_shlibpath_var=no
  7981. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7982. export_dynamic_flag_spec='${wl}-E'
  7983. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7984. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7985. # default) and relocated if they conflict, which is a slow very memory
  7986. # consuming and fragmenting process. To avoid this, we pick a random,
  7987. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7988. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7989. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7990. 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'
  7991. ;;
  7992. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7993. tmp_diet=no
  7994. if test "$host_os" = linux-dietlibc; then
  7995. case $cc_basename in
  7996. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7997. esac
  7998. fi
  7999. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8000. && test "$tmp_diet" = no
  8001. then
  8002. tmp_addflag=' $pic_flag'
  8003. tmp_sharedflag='-shared'
  8004. case $cc_basename,$host_cpu in
  8005. pgcc*) # Portland Group C compiler
  8006. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8007. tmp_addflag=' $pic_flag'
  8008. ;;
  8009. pgf77* | pgf90* | pgf95* | pgfortran*)
  8010. # Portland Group f77 and f90 compilers
  8011. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8012. tmp_addflag=' $pic_flag -Mnomain' ;;
  8013. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8014. tmp_addflag=' -i_dynamic' ;;
  8015. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8016. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8017. ifc* | ifort*) # Intel Fortran compiler
  8018. tmp_addflag=' -nofor_main' ;;
  8019. lf95*) # Lahey Fortran 8.1
  8020. whole_archive_flag_spec=
  8021. tmp_sharedflag='--shared' ;;
  8022. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8023. tmp_sharedflag='-qmkshrobj'
  8024. tmp_addflag= ;;
  8025. nvcc*) # Cuda Compiler Driver 2.2
  8026. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8027. compiler_needs_object=yes
  8028. ;;
  8029. esac
  8030. case `$CC -V 2>&1 | sed 5q` in
  8031. *Sun\ C*) # Sun C 5.9
  8032. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8033. compiler_needs_object=yes
  8034. tmp_sharedflag='-G' ;;
  8035. *Sun\ F*) # Sun Fortran 8.3
  8036. tmp_sharedflag='-G' ;;
  8037. esac
  8038. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8039. if test "x$supports_anon_versioning" = xyes; then
  8040. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8041. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8042. echo "local: *; };" >> $output_objdir/$libname.ver~
  8043. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8044. fi
  8045. case $cc_basename in
  8046. xlf* | bgf* | bgxlf* | mpixlf*)
  8047. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8048. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8049. hardcode_libdir_flag_spec=
  8050. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8051. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8052. if test "x$supports_anon_versioning" = xyes; then
  8053. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8054. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8055. echo "local: *; };" >> $output_objdir/$libname.ver~
  8056. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8057. fi
  8058. ;;
  8059. esac
  8060. else
  8061. ld_shlibs=no
  8062. fi
  8063. ;;
  8064. netbsd* | netbsdelf*-gnu)
  8065. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8066. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8067. wlarc=
  8068. else
  8069. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8070. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8071. fi
  8072. ;;
  8073. solaris*)
  8074. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8075. ld_shlibs=no
  8076. cat <<_LT_EOF 1>&2
  8077. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8078. *** create shared libraries on Solaris systems. Therefore, libtool
  8079. *** is disabling shared libraries support. We urge you to upgrade GNU
  8080. *** binutils to release 2.9.1 or newer. Another option is to modify
  8081. *** your PATH or compiler configuration so that the native linker is
  8082. *** used, and then restart.
  8083. _LT_EOF
  8084. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8085. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8086. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8087. else
  8088. ld_shlibs=no
  8089. fi
  8090. ;;
  8091. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8092. case `$LD -v 2>&1` in
  8093. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8094. ld_shlibs=no
  8095. cat <<_LT_EOF 1>&2
  8096. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8097. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8098. *** is disabling shared libraries support. We urge you to upgrade GNU
  8099. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8100. *** your PATH or compiler configuration so that the native linker is
  8101. *** used, and then restart.
  8102. _LT_EOF
  8103. ;;
  8104. *)
  8105. # For security reasons, it is highly recommended that you always
  8106. # use absolute paths for naming shared libraries, and exclude the
  8107. # DT_RUNPATH tag from executables and libraries. But doing so
  8108. # requires that you compile everything twice, which is a pain.
  8109. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8110. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8111. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8112. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8113. else
  8114. ld_shlibs=no
  8115. fi
  8116. ;;
  8117. esac
  8118. ;;
  8119. sunos4*)
  8120. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8121. wlarc=
  8122. hardcode_direct=yes
  8123. hardcode_shlibpath_var=no
  8124. ;;
  8125. *)
  8126. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8127. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8128. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8129. else
  8130. ld_shlibs=no
  8131. fi
  8132. ;;
  8133. esac
  8134. if test "$ld_shlibs" = no; then
  8135. runpath_var=
  8136. hardcode_libdir_flag_spec=
  8137. export_dynamic_flag_spec=
  8138. whole_archive_flag_spec=
  8139. fi
  8140. else
  8141. # PORTME fill in a description of your system's linker (not GNU ld)
  8142. case $host_os in
  8143. aix3*)
  8144. allow_undefined_flag=unsupported
  8145. always_export_symbols=yes
  8146. 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'
  8147. # Note: this linker hardcodes the directories in LIBPATH if there
  8148. # are no directories specified by -L.
  8149. hardcode_minus_L=yes
  8150. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8151. # Neither direct hardcoding nor static linking is supported with a
  8152. # broken collect2.
  8153. hardcode_direct=unsupported
  8154. fi
  8155. ;;
  8156. aix[4-9]*)
  8157. if test "$host_cpu" = ia64; then
  8158. # On IA64, the linker does run time linking by default, so we don't
  8159. # have to do anything special.
  8160. aix_use_runtimelinking=no
  8161. exp_sym_flag='-Bexport'
  8162. no_entry_flag=""
  8163. else
  8164. # If we're using GNU nm, then we don't want the "-C" option.
  8165. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8166. # Also, AIX nm treats weak defined symbols like other global
  8167. # defined symbols, whereas GNU nm marks them as "W".
  8168. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8169. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8170. else
  8171. 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'
  8172. fi
  8173. aix_use_runtimelinking=no
  8174. # Test if we are trying to use run time linking or normal
  8175. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8176. # need to do runtime linking.
  8177. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8178. for ld_flag in $LDFLAGS; do
  8179. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8180. aix_use_runtimelinking=yes
  8181. break
  8182. fi
  8183. done
  8184. ;;
  8185. esac
  8186. exp_sym_flag='-bexport'
  8187. no_entry_flag='-bnoentry'
  8188. fi
  8189. # When large executables or shared objects are built, AIX ld can
  8190. # have problems creating the table of contents. If linking a library
  8191. # or program results in "error TOC overflow" add -mminimal-toc to
  8192. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8193. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8194. archive_cmds=''
  8195. hardcode_direct=yes
  8196. hardcode_direct_absolute=yes
  8197. hardcode_libdir_separator=':'
  8198. link_all_deplibs=yes
  8199. file_list_spec='${wl}-f,'
  8200. if test "$GCC" = yes; then
  8201. case $host_os in aix4.[012]|aix4.[012].*)
  8202. # We only want to do this on AIX 4.2 and lower, the check
  8203. # below for broken collect2 doesn't work under 4.3+
  8204. collect2name=`${CC} -print-prog-name=collect2`
  8205. if test -f "$collect2name" &&
  8206. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8207. then
  8208. # We have reworked collect2
  8209. :
  8210. else
  8211. # We have old collect2
  8212. hardcode_direct=unsupported
  8213. # It fails to find uninstalled libraries when the uninstalled
  8214. # path is not listed in the libpath. Setting hardcode_minus_L
  8215. # to unsupported forces relinking
  8216. hardcode_minus_L=yes
  8217. hardcode_libdir_flag_spec='-L$libdir'
  8218. hardcode_libdir_separator=
  8219. fi
  8220. ;;
  8221. esac
  8222. shared_flag='-shared'
  8223. if test "$aix_use_runtimelinking" = yes; then
  8224. shared_flag="$shared_flag "'${wl}-G'
  8225. fi
  8226. link_all_deplibs=no
  8227. else
  8228. # not using gcc
  8229. if test "$host_cpu" = ia64; then
  8230. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8231. # chokes on -Wl,-G. The following line is correct:
  8232. shared_flag='-G'
  8233. else
  8234. if test "$aix_use_runtimelinking" = yes; then
  8235. shared_flag='${wl}-G'
  8236. else
  8237. shared_flag='${wl}-bM:SRE'
  8238. fi
  8239. fi
  8240. fi
  8241. export_dynamic_flag_spec='${wl}-bexpall'
  8242. # It seems that -bexpall does not export symbols beginning with
  8243. # underscore (_), so it is better to generate a list of symbols to export.
  8244. always_export_symbols=yes
  8245. if test "$aix_use_runtimelinking" = yes; then
  8246. # Warning - without using the other runtime loading flags (-brtl),
  8247. # -berok will link without error, but may produce a broken library.
  8248. allow_undefined_flag='-berok'
  8249. # Determine the default libpath from the value encoded in an
  8250. # empty executable.
  8251. if test "${lt_cv_aix_libpath+set}" = set; then
  8252. aix_libpath=$lt_cv_aix_libpath
  8253. else
  8254. if test "${lt_cv_aix_libpath_+set}" = set; then :
  8255. $as_echo_n "(cached) " >&6
  8256. else
  8257. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8258. /* end confdefs.h. */
  8259. int
  8260. main ()
  8261. {
  8262. ;
  8263. return 0;
  8264. }
  8265. _ACEOF
  8266. if ac_fn_c_try_link "$LINENO"; then :
  8267. lt_aix_libpath_sed='
  8268. /Import File Strings/,/^$/ {
  8269. /^0/ {
  8270. s/^0 *\([^ ]*\) *$/\1/
  8271. p
  8272. }
  8273. }'
  8274. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8275. # Check for a 64-bit object if we didn't find anything.
  8276. if test -z "$lt_cv_aix_libpath_"; then
  8277. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8278. fi
  8279. fi
  8280. rm -f core conftest.err conftest.$ac_objext \
  8281. conftest$ac_exeext conftest.$ac_ext
  8282. if test -z "$lt_cv_aix_libpath_"; then
  8283. lt_cv_aix_libpath_="/usr/lib:/lib"
  8284. fi
  8285. fi
  8286. aix_libpath=$lt_cv_aix_libpath_
  8287. fi
  8288. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8289. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8290. else
  8291. if test "$host_cpu" = ia64; then
  8292. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8293. allow_undefined_flag="-z nodefs"
  8294. 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"
  8295. else
  8296. # Determine the default libpath from the value encoded in an
  8297. # empty executable.
  8298. if test "${lt_cv_aix_libpath+set}" = set; then
  8299. aix_libpath=$lt_cv_aix_libpath
  8300. else
  8301. if test "${lt_cv_aix_libpath_+set}" = set; then :
  8302. $as_echo_n "(cached) " >&6
  8303. else
  8304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8305. /* end confdefs.h. */
  8306. int
  8307. main ()
  8308. {
  8309. ;
  8310. return 0;
  8311. }
  8312. _ACEOF
  8313. if ac_fn_c_try_link "$LINENO"; then :
  8314. lt_aix_libpath_sed='
  8315. /Import File Strings/,/^$/ {
  8316. /^0/ {
  8317. s/^0 *\([^ ]*\) *$/\1/
  8318. p
  8319. }
  8320. }'
  8321. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8322. # Check for a 64-bit object if we didn't find anything.
  8323. if test -z "$lt_cv_aix_libpath_"; then
  8324. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8325. fi
  8326. fi
  8327. rm -f core conftest.err conftest.$ac_objext \
  8328. conftest$ac_exeext conftest.$ac_ext
  8329. if test -z "$lt_cv_aix_libpath_"; then
  8330. lt_cv_aix_libpath_="/usr/lib:/lib"
  8331. fi
  8332. fi
  8333. aix_libpath=$lt_cv_aix_libpath_
  8334. fi
  8335. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8336. # Warning - without using the other run time loading flags,
  8337. # -berok will link without error, but may produce a broken library.
  8338. no_undefined_flag=' ${wl}-bernotok'
  8339. allow_undefined_flag=' ${wl}-berok'
  8340. if test "$with_gnu_ld" = yes; then
  8341. # We only use this code for GNU lds that support --whole-archive.
  8342. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8343. else
  8344. # Exported symbols can be pulled into shared objects from archives
  8345. whole_archive_flag_spec='$convenience'
  8346. fi
  8347. archive_cmds_need_lc=yes
  8348. # This is similar to how AIX traditionally builds its shared libraries.
  8349. 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'
  8350. fi
  8351. fi
  8352. ;;
  8353. amigaos*)
  8354. case $host_cpu in
  8355. powerpc)
  8356. # see comment about AmigaOS4 .so support
  8357. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8358. archive_expsym_cmds=''
  8359. ;;
  8360. m68k)
  8361. 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)'
  8362. hardcode_libdir_flag_spec='-L$libdir'
  8363. hardcode_minus_L=yes
  8364. ;;
  8365. esac
  8366. ;;
  8367. bsdi[45]*)
  8368. export_dynamic_flag_spec=-rdynamic
  8369. ;;
  8370. cygwin* | mingw* | pw32* | cegcc*)
  8371. # When not using gcc, we currently assume that we are using
  8372. # Microsoft Visual C++.
  8373. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8374. # no search path for DLLs.
  8375. case $cc_basename in
  8376. cl*)
  8377. # Native MSVC
  8378. hardcode_libdir_flag_spec=' '
  8379. allow_undefined_flag=unsupported
  8380. always_export_symbols=yes
  8381. file_list_spec='@'
  8382. # Tell ltmain to make .lib files, not .a files.
  8383. libext=lib
  8384. # Tell ltmain to make .dll files, not .so files.
  8385. shrext_cmds=".dll"
  8386. # FIXME: Setting linknames here is a bad hack.
  8387. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8388. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8389. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8390. else
  8391. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8392. fi~
  8393. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8394. linknames='
  8395. # The linker will not automatically build a static lib if we build a DLL.
  8396. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8397. enable_shared_with_static_runtimes=yes
  8398. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8399. # Don't use ranlib
  8400. old_postinstall_cmds='chmod 644 $oldlib'
  8401. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8402. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8403. case $lt_outputfile in
  8404. *.exe|*.EXE) ;;
  8405. *)
  8406. lt_outputfile="$lt_outputfile.exe"
  8407. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8408. ;;
  8409. esac~
  8410. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8411. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8412. $RM "$lt_outputfile.manifest";
  8413. fi'
  8414. ;;
  8415. *)
  8416. # Assume MSVC wrapper
  8417. hardcode_libdir_flag_spec=' '
  8418. allow_undefined_flag=unsupported
  8419. # Tell ltmain to make .lib files, not .a files.
  8420. libext=lib
  8421. # Tell ltmain to make .dll files, not .so files.
  8422. shrext_cmds=".dll"
  8423. # FIXME: Setting linknames here is a bad hack.
  8424. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8425. # The linker will automatically build a .lib file if we build a DLL.
  8426. old_archive_from_new_cmds='true'
  8427. # FIXME: Should let the user specify the lib program.
  8428. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8429. enable_shared_with_static_runtimes=yes
  8430. ;;
  8431. esac
  8432. ;;
  8433. darwin* | rhapsody*)
  8434. archive_cmds_need_lc=no
  8435. hardcode_direct=no
  8436. hardcode_automatic=yes
  8437. hardcode_shlibpath_var=unsupported
  8438. if test "$lt_cv_ld_force_load" = "yes"; then
  8439. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8440. else
  8441. whole_archive_flag_spec=''
  8442. fi
  8443. link_all_deplibs=yes
  8444. allow_undefined_flag="$_lt_dar_allow_undefined"
  8445. case $cc_basename in
  8446. ifort*) _lt_dar_can_shared=yes ;;
  8447. *) _lt_dar_can_shared=$GCC ;;
  8448. esac
  8449. if test "$_lt_dar_can_shared" = "yes"; then
  8450. output_verbose_link_cmd=func_echo_all
  8451. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8452. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8453. 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}"
  8454. 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}"
  8455. else
  8456. ld_shlibs=no
  8457. fi
  8458. ;;
  8459. dgux*)
  8460. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8461. hardcode_libdir_flag_spec='-L$libdir'
  8462. hardcode_shlibpath_var=no
  8463. ;;
  8464. freebsd1*)
  8465. ld_shlibs=no
  8466. ;;
  8467. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8468. # support. Future versions do this automatically, but an explicit c++rt0.o
  8469. # does not break anything, and helps significantly (at the cost of a little
  8470. # extra space).
  8471. freebsd2.2*)
  8472. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8473. hardcode_libdir_flag_spec='-R$libdir'
  8474. hardcode_direct=yes
  8475. hardcode_shlibpath_var=no
  8476. ;;
  8477. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8478. freebsd2*)
  8479. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8480. hardcode_direct=yes
  8481. hardcode_minus_L=yes
  8482. hardcode_shlibpath_var=no
  8483. ;;
  8484. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8485. freebsd* | dragonfly*)
  8486. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8487. hardcode_libdir_flag_spec='-R$libdir'
  8488. hardcode_direct=yes
  8489. hardcode_shlibpath_var=no
  8490. ;;
  8491. hpux9*)
  8492. if test "$GCC" = yes; then
  8493. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8494. else
  8495. 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'
  8496. fi
  8497. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8498. hardcode_libdir_separator=:
  8499. hardcode_direct=yes
  8500. # hardcode_minus_L: Not really in the search PATH,
  8501. # but as the default location of the library.
  8502. hardcode_minus_L=yes
  8503. export_dynamic_flag_spec='${wl}-E'
  8504. ;;
  8505. hpux10*)
  8506. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8507. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8508. else
  8509. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8510. fi
  8511. if test "$with_gnu_ld" = no; then
  8512. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8513. hardcode_libdir_flag_spec_ld='+b $libdir'
  8514. hardcode_libdir_separator=:
  8515. hardcode_direct=yes
  8516. hardcode_direct_absolute=yes
  8517. export_dynamic_flag_spec='${wl}-E'
  8518. # hardcode_minus_L: Not really in the search PATH,
  8519. # but as the default location of the library.
  8520. hardcode_minus_L=yes
  8521. fi
  8522. ;;
  8523. hpux11*)
  8524. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8525. case $host_cpu in
  8526. hppa*64*)
  8527. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8528. ;;
  8529. ia64*)
  8530. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8531. ;;
  8532. *)
  8533. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8534. ;;
  8535. esac
  8536. else
  8537. case $host_cpu in
  8538. hppa*64*)
  8539. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8540. ;;
  8541. ia64*)
  8542. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8543. ;;
  8544. *)
  8545. # Older versions of the 11.00 compiler do not understand -b yet
  8546. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8547. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8548. $as_echo_n "checking if $CC understands -b... " >&6; }
  8549. if test "${lt_cv_prog_compiler__b+set}" = set; then :
  8550. $as_echo_n "(cached) " >&6
  8551. else
  8552. lt_cv_prog_compiler__b=no
  8553. save_LDFLAGS="$LDFLAGS"
  8554. LDFLAGS="$LDFLAGS -b"
  8555. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8556. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8557. # The linker can only warn and ignore the option if not recognized
  8558. # So say no if there are warnings
  8559. if test -s conftest.err; then
  8560. # Append any errors to the config.log.
  8561. cat conftest.err 1>&5
  8562. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8563. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8564. if diff conftest.exp conftest.er2 >/dev/null; then
  8565. lt_cv_prog_compiler__b=yes
  8566. fi
  8567. else
  8568. lt_cv_prog_compiler__b=yes
  8569. fi
  8570. fi
  8571. $RM -r conftest*
  8572. LDFLAGS="$save_LDFLAGS"
  8573. fi
  8574. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8575. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8576. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8577. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8578. else
  8579. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8580. fi
  8581. ;;
  8582. esac
  8583. fi
  8584. if test "$with_gnu_ld" = no; then
  8585. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8586. hardcode_libdir_separator=:
  8587. case $host_cpu in
  8588. hppa*64*|ia64*)
  8589. hardcode_direct=no
  8590. hardcode_shlibpath_var=no
  8591. ;;
  8592. *)
  8593. hardcode_direct=yes
  8594. hardcode_direct_absolute=yes
  8595. export_dynamic_flag_spec='${wl}-E'
  8596. # hardcode_minus_L: Not really in the search PATH,
  8597. # but as the default location of the library.
  8598. hardcode_minus_L=yes
  8599. ;;
  8600. esac
  8601. fi
  8602. ;;
  8603. irix5* | irix6* | nonstopux*)
  8604. if test "$GCC" = yes; then
  8605. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8606. # Try to use the -exported_symbol ld option, if it does not
  8607. # work, assume that -exports_file does not work either and
  8608. # implicitly export all symbols.
  8609. # This should be the same for all languages, so no per-tag cache variable.
  8610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8611. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8612. if test "${lt_cv_irix_exported_symbol+set}" = set; then :
  8613. $as_echo_n "(cached) " >&6
  8614. else
  8615. save_LDFLAGS="$LDFLAGS"
  8616. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8617. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8618. /* end confdefs.h. */
  8619. int foo (void) { return 0; }
  8620. _ACEOF
  8621. if ac_fn_c_try_link "$LINENO"; then :
  8622. lt_cv_irix_exported_symbol=yes
  8623. else
  8624. lt_cv_irix_exported_symbol=no
  8625. fi
  8626. rm -f core conftest.err conftest.$ac_objext \
  8627. conftest$ac_exeext conftest.$ac_ext
  8628. LDFLAGS="$save_LDFLAGS"
  8629. fi
  8630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8631. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8632. if test "$lt_cv_irix_exported_symbol" = yes; then
  8633. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8634. fi
  8635. else
  8636. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8637. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8638. fi
  8639. archive_cmds_need_lc='no'
  8640. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8641. hardcode_libdir_separator=:
  8642. inherit_rpath=yes
  8643. link_all_deplibs=yes
  8644. ;;
  8645. netbsd* | netbsdelf*-gnu)
  8646. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8647. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8648. else
  8649. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8650. fi
  8651. hardcode_libdir_flag_spec='-R$libdir'
  8652. hardcode_direct=yes
  8653. hardcode_shlibpath_var=no
  8654. ;;
  8655. newsos6)
  8656. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8657. hardcode_direct=yes
  8658. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8659. hardcode_libdir_separator=:
  8660. hardcode_shlibpath_var=no
  8661. ;;
  8662. *nto* | *qnx*)
  8663. ;;
  8664. openbsd*)
  8665. if test -f /usr/libexec/ld.so; then
  8666. hardcode_direct=yes
  8667. hardcode_shlibpath_var=no
  8668. hardcode_direct_absolute=yes
  8669. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8670. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8671. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8672. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8673. export_dynamic_flag_spec='${wl}-E'
  8674. else
  8675. case $host_os in
  8676. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8677. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8678. hardcode_libdir_flag_spec='-R$libdir'
  8679. ;;
  8680. *)
  8681. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8682. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8683. ;;
  8684. esac
  8685. fi
  8686. else
  8687. ld_shlibs=no
  8688. fi
  8689. ;;
  8690. os2*)
  8691. hardcode_libdir_flag_spec='-L$libdir'
  8692. hardcode_minus_L=yes
  8693. allow_undefined_flag=unsupported
  8694. 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'
  8695. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8696. ;;
  8697. osf3*)
  8698. if test "$GCC" = yes; then
  8699. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8700. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8701. else
  8702. allow_undefined_flag=' -expect_unresolved \*'
  8703. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8704. fi
  8705. archive_cmds_need_lc='no'
  8706. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8707. hardcode_libdir_separator=:
  8708. ;;
  8709. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8710. if test "$GCC" = yes; then
  8711. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8712. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8713. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8714. else
  8715. allow_undefined_flag=' -expect_unresolved \*'
  8716. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8717. 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~
  8718. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8719. # Both c and cxx compiler support -rpath directly
  8720. hardcode_libdir_flag_spec='-rpath $libdir'
  8721. fi
  8722. archive_cmds_need_lc='no'
  8723. hardcode_libdir_separator=:
  8724. ;;
  8725. solaris*)
  8726. no_undefined_flag=' -z defs'
  8727. if test "$GCC" = yes; then
  8728. wlarc='${wl}'
  8729. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8730. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8731. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8732. else
  8733. case `$CC -V 2>&1` in
  8734. *"Compilers 5.0"*)
  8735. wlarc=''
  8736. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8737. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8738. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8739. ;;
  8740. *)
  8741. wlarc='${wl}'
  8742. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8743. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8744. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8745. ;;
  8746. esac
  8747. fi
  8748. hardcode_libdir_flag_spec='-R$libdir'
  8749. hardcode_shlibpath_var=no
  8750. case $host_os in
  8751. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8752. *)
  8753. # The compiler driver will combine and reorder linker options,
  8754. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8755. # but is careful enough not to reorder.
  8756. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8757. if test "$GCC" = yes; then
  8758. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8759. else
  8760. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8761. fi
  8762. ;;
  8763. esac
  8764. link_all_deplibs=yes
  8765. ;;
  8766. sunos4*)
  8767. if test "x$host_vendor" = xsequent; then
  8768. # Use $CC to link under sequent, because it throws in some extra .o
  8769. # files that make .init and .fini sections work.
  8770. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8771. else
  8772. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8773. fi
  8774. hardcode_libdir_flag_spec='-L$libdir'
  8775. hardcode_direct=yes
  8776. hardcode_minus_L=yes
  8777. hardcode_shlibpath_var=no
  8778. ;;
  8779. sysv4)
  8780. case $host_vendor in
  8781. sni)
  8782. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8783. hardcode_direct=yes # is this really true???
  8784. ;;
  8785. siemens)
  8786. ## LD is ld it makes a PLAMLIB
  8787. ## CC just makes a GrossModule.
  8788. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8789. reload_cmds='$CC -r -o $output$reload_objs'
  8790. hardcode_direct=no
  8791. ;;
  8792. motorola)
  8793. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8794. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8795. ;;
  8796. esac
  8797. runpath_var='LD_RUN_PATH'
  8798. hardcode_shlibpath_var=no
  8799. ;;
  8800. sysv4.3*)
  8801. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8802. hardcode_shlibpath_var=no
  8803. export_dynamic_flag_spec='-Bexport'
  8804. ;;
  8805. sysv4*MP*)
  8806. if test -d /usr/nec; then
  8807. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8808. hardcode_shlibpath_var=no
  8809. runpath_var=LD_RUN_PATH
  8810. hardcode_runpath_var=yes
  8811. ld_shlibs=yes
  8812. fi
  8813. ;;
  8814. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8815. no_undefined_flag='${wl}-z,text'
  8816. archive_cmds_need_lc=no
  8817. hardcode_shlibpath_var=no
  8818. runpath_var='LD_RUN_PATH'
  8819. if test "$GCC" = yes; then
  8820. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8821. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8822. else
  8823. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8824. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8825. fi
  8826. ;;
  8827. sysv5* | sco3.2v5* | sco5v6*)
  8828. # Note: We can NOT use -z defs as we might desire, because we do not
  8829. # link with -lc, and that would cause any symbols used from libc to
  8830. # always be unresolved, which means just about no library would
  8831. # ever link correctly. If we're not using GNU ld we use -z text
  8832. # though, which does catch some bad symbols but isn't as heavy-handed
  8833. # as -z defs.
  8834. no_undefined_flag='${wl}-z,text'
  8835. allow_undefined_flag='${wl}-z,nodefs'
  8836. archive_cmds_need_lc=no
  8837. hardcode_shlibpath_var=no
  8838. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8839. hardcode_libdir_separator=':'
  8840. link_all_deplibs=yes
  8841. export_dynamic_flag_spec='${wl}-Bexport'
  8842. runpath_var='LD_RUN_PATH'
  8843. if test "$GCC" = yes; then
  8844. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8845. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8846. else
  8847. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8848. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8849. fi
  8850. ;;
  8851. uts4*)
  8852. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8853. hardcode_libdir_flag_spec='-L$libdir'
  8854. hardcode_shlibpath_var=no
  8855. ;;
  8856. *)
  8857. ld_shlibs=no
  8858. ;;
  8859. esac
  8860. if test x$host_vendor = xsni; then
  8861. case $host in
  8862. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8863. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8864. ;;
  8865. esac
  8866. fi
  8867. fi
  8868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8869. $as_echo "$ld_shlibs" >&6; }
  8870. test "$ld_shlibs" = no && can_build_shared=no
  8871. with_gnu_ld=$with_gnu_ld
  8872. #
  8873. # Do we need to explicitly link libc?
  8874. #
  8875. case "x$archive_cmds_need_lc" in
  8876. x|xyes)
  8877. # Assume -lc should be added
  8878. archive_cmds_need_lc=yes
  8879. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8880. case $archive_cmds in
  8881. *'~'*)
  8882. # FIXME: we may have to deal with multi-command sequences.
  8883. ;;
  8884. '$CC '*)
  8885. # Test whether the compiler implicitly links with -lc since on some
  8886. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8887. # to ld, don't add -lc before -lgcc.
  8888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8889. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8890. if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
  8891. $as_echo_n "(cached) " >&6
  8892. else
  8893. $RM conftest*
  8894. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8895. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8896. (eval $ac_compile) 2>&5
  8897. ac_status=$?
  8898. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8899. test $ac_status = 0; } 2>conftest.err; then
  8900. soname=conftest
  8901. lib=conftest
  8902. libobjs=conftest.$ac_objext
  8903. deplibs=
  8904. wl=$lt_prog_compiler_wl
  8905. pic_flag=$lt_prog_compiler_pic
  8906. compiler_flags=-v
  8907. linker_flags=-v
  8908. verstring=
  8909. output_objdir=.
  8910. libname=conftest
  8911. lt_save_allow_undefined_flag=$allow_undefined_flag
  8912. allow_undefined_flag=
  8913. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8914. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8915. ac_status=$?
  8916. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8917. test $ac_status = 0; }
  8918. then
  8919. lt_cv_archive_cmds_need_lc=no
  8920. else
  8921. lt_cv_archive_cmds_need_lc=yes
  8922. fi
  8923. allow_undefined_flag=$lt_save_allow_undefined_flag
  8924. else
  8925. cat conftest.err 1>&5
  8926. fi
  8927. $RM conftest*
  8928. fi
  8929. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8930. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8931. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8932. ;;
  8933. esac
  8934. fi
  8935. ;;
  8936. esac
  8937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8938. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8939. if test "$GCC" = yes; then
  8940. case $host_os in
  8941. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8942. *) lt_awk_arg="/^libraries:/" ;;
  8943. esac
  8944. case $host_os in
  8945. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8946. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8947. esac
  8948. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8949. case $lt_search_path_spec in
  8950. *\;*)
  8951. # if the path contains ";" then we assume it to be the separator
  8952. # otherwise default to the standard path separator (i.e. ":") - it is
  8953. # assumed that no part of a normal pathname contains ";" but that should
  8954. # okay in the real world where ";" in dirpaths is itself problematic.
  8955. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8956. ;;
  8957. *)
  8958. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8959. ;;
  8960. esac
  8961. # Ok, now we have the path, separated by spaces, we can step through it
  8962. # and add multilib dir if necessary.
  8963. lt_tmp_lt_search_path_spec=
  8964. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8965. for lt_sys_path in $lt_search_path_spec; do
  8966. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8967. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8968. else
  8969. test -d "$lt_sys_path" && \
  8970. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8971. fi
  8972. done
  8973. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8974. BEGIN {RS=" "; FS="/|\n";} {
  8975. lt_foo="";
  8976. lt_count=0;
  8977. for (lt_i = NF; lt_i > 0; lt_i--) {
  8978. if ($lt_i != "" && $lt_i != ".") {
  8979. if ($lt_i == "..") {
  8980. lt_count++;
  8981. } else {
  8982. if (lt_count == 0) {
  8983. lt_foo="/" $lt_i lt_foo;
  8984. } else {
  8985. lt_count--;
  8986. }
  8987. }
  8988. }
  8989. }
  8990. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8991. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8992. }'`
  8993. # AWK program above erroneously prepends '/' to C:/dos/paths
  8994. # for these hosts.
  8995. case $host_os in
  8996. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8997. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8998. esac
  8999. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9000. else
  9001. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9002. fi
  9003. library_names_spec=
  9004. libname_spec='lib$name'
  9005. soname_spec=
  9006. shrext_cmds=".so"
  9007. postinstall_cmds=
  9008. postuninstall_cmds=
  9009. finish_cmds=
  9010. finish_eval=
  9011. shlibpath_var=
  9012. shlibpath_overrides_runpath=unknown
  9013. version_type=none
  9014. dynamic_linker="$host_os ld.so"
  9015. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9016. need_lib_prefix=unknown
  9017. hardcode_into_libs=no
  9018. # when you set need_version to no, make sure it does not cause -set_version
  9019. # flags to be left without arguments
  9020. need_version=unknown
  9021. case $host_os in
  9022. aix3*)
  9023. version_type=linux
  9024. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9025. shlibpath_var=LIBPATH
  9026. # AIX 3 has no versioning support, so we append a major version to the name.
  9027. soname_spec='${libname}${release}${shared_ext}$major'
  9028. ;;
  9029. aix[4-9]*)
  9030. version_type=linux
  9031. need_lib_prefix=no
  9032. need_version=no
  9033. hardcode_into_libs=yes
  9034. if test "$host_cpu" = ia64; then
  9035. # AIX 5 supports IA64
  9036. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9037. shlibpath_var=LD_LIBRARY_PATH
  9038. else
  9039. # With GCC up to 2.95.x, collect2 would create an import file
  9040. # for dependence libraries. The import file would start with
  9041. # the line `#! .'. This would cause the generated library to
  9042. # depend on `.', always an invalid library. This was fixed in
  9043. # development snapshots of GCC prior to 3.0.
  9044. case $host_os in
  9045. aix4 | aix4.[01] | aix4.[01].*)
  9046. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9047. echo ' yes '
  9048. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9049. :
  9050. else
  9051. can_build_shared=no
  9052. fi
  9053. ;;
  9054. esac
  9055. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9056. # soname into executable. Probably we can add versioning support to
  9057. # collect2, so additional links can be useful in future.
  9058. if test "$aix_use_runtimelinking" = yes; then
  9059. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9060. # instead of lib<name>.a to let people know that these are not
  9061. # typical AIX shared libraries.
  9062. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9063. else
  9064. # We preserve .a as extension for shared libraries through AIX4.2
  9065. # and later when we are not doing run time linking.
  9066. library_names_spec='${libname}${release}.a $libname.a'
  9067. soname_spec='${libname}${release}${shared_ext}$major'
  9068. fi
  9069. shlibpath_var=LIBPATH
  9070. fi
  9071. ;;
  9072. amigaos*)
  9073. case $host_cpu in
  9074. powerpc)
  9075. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9076. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9077. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9078. ;;
  9079. m68k)
  9080. library_names_spec='$libname.ixlibrary $libname.a'
  9081. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9082. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  9083. ;;
  9084. esac
  9085. ;;
  9086. beos*)
  9087. library_names_spec='${libname}${shared_ext}'
  9088. dynamic_linker="$host_os ld.so"
  9089. shlibpath_var=LIBRARY_PATH
  9090. ;;
  9091. bsdi[45]*)
  9092. version_type=linux
  9093. need_version=no
  9094. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9095. soname_spec='${libname}${release}${shared_ext}$major'
  9096. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9097. shlibpath_var=LD_LIBRARY_PATH
  9098. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9099. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9100. # the default ld.so.conf also contains /usr/contrib/lib and
  9101. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9102. # libtool to hard-code these into programs
  9103. ;;
  9104. cygwin* | mingw* | pw32* | cegcc*)
  9105. version_type=windows
  9106. shrext_cmds=".dll"
  9107. need_version=no
  9108. need_lib_prefix=no
  9109. case $GCC,$cc_basename in
  9110. yes,*)
  9111. # gcc
  9112. library_names_spec='$libname.dll.a'
  9113. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9114. postinstall_cmds='base_file=`basename \${file}`~
  9115. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9116. dldir=$destdir/`dirname \$dlpath`~
  9117. test -d \$dldir || mkdir -p \$dldir~
  9118. $install_prog $dir/$dlname \$dldir/$dlname~
  9119. chmod a+x \$dldir/$dlname~
  9120. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9121. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9122. fi'
  9123. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9124. dlpath=$dir/\$dldll~
  9125. $RM \$dlpath'
  9126. shlibpath_overrides_runpath=yes
  9127. case $host_os in
  9128. cygwin*)
  9129. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9130. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9131. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9132. ;;
  9133. mingw* | cegcc*)
  9134. # MinGW DLLs use traditional 'lib' prefix
  9135. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9136. ;;
  9137. pw32*)
  9138. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9139. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9140. ;;
  9141. esac
  9142. dynamic_linker='Win32 ld.exe'
  9143. ;;
  9144. *,cl*)
  9145. # Native MSVC
  9146. libname_spec='$name'
  9147. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9148. library_names_spec='${libname}.dll.lib'
  9149. case $build_os in
  9150. mingw*)
  9151. sys_lib_search_path_spec=
  9152. lt_save_ifs=$IFS
  9153. IFS=';'
  9154. for lt_path in $LIB
  9155. do
  9156. IFS=$lt_save_ifs
  9157. # Let DOS variable expansion print the short 8.3 style file name.
  9158. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9159. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9160. done
  9161. IFS=$lt_save_ifs
  9162. # Convert to MSYS style.
  9163. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9164. ;;
  9165. cygwin*)
  9166. # Convert to unix form, then to dos form, then back to unix form
  9167. # but this time dos style (no spaces!) so that the unix form looks
  9168. # like /cygdrive/c/PROGRA~1:/cygdr...
  9169. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9170. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9171. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9172. ;;
  9173. *)
  9174. sys_lib_search_path_spec="$LIB"
  9175. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9176. # It is most probably a Windows format PATH.
  9177. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9178. else
  9179. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9180. fi
  9181. # FIXME: find the short name or the path components, as spaces are
  9182. # common. (e.g. "Program Files" -> "PROGRA~1")
  9183. ;;
  9184. esac
  9185. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9186. postinstall_cmds='base_file=`basename \${file}`~
  9187. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9188. dldir=$destdir/`dirname \$dlpath`~
  9189. test -d \$dldir || mkdir -p \$dldir~
  9190. $install_prog $dir/$dlname \$dldir/$dlname'
  9191. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9192. dlpath=$dir/\$dldll~
  9193. $RM \$dlpath'
  9194. shlibpath_overrides_runpath=yes
  9195. dynamic_linker='Win32 link.exe'
  9196. ;;
  9197. *)
  9198. # Assume MSVC wrapper
  9199. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9200. dynamic_linker='Win32 ld.exe'
  9201. ;;
  9202. esac
  9203. # FIXME: first we should search . and the directory the executable is in
  9204. shlibpath_var=PATH
  9205. ;;
  9206. darwin* | rhapsody*)
  9207. dynamic_linker="$host_os dyld"
  9208. version_type=darwin
  9209. need_lib_prefix=no
  9210. need_version=no
  9211. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9212. soname_spec='${libname}${release}${major}$shared_ext'
  9213. shlibpath_overrides_runpath=yes
  9214. shlibpath_var=DYLD_LIBRARY_PATH
  9215. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9216. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9217. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9218. ;;
  9219. dgux*)
  9220. version_type=linux
  9221. need_lib_prefix=no
  9222. need_version=no
  9223. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9224. soname_spec='${libname}${release}${shared_ext}$major'
  9225. shlibpath_var=LD_LIBRARY_PATH
  9226. ;;
  9227. freebsd1*)
  9228. dynamic_linker=no
  9229. ;;
  9230. freebsd* | dragonfly*)
  9231. # DragonFly does not have aout. When/if they implement a new
  9232. # versioning mechanism, adjust this.
  9233. if test -x /usr/bin/objformat; then
  9234. objformat=`/usr/bin/objformat`
  9235. else
  9236. case $host_os in
  9237. freebsd[123]*) objformat=aout ;;
  9238. *) objformat=elf ;;
  9239. esac
  9240. fi
  9241. version_type=freebsd-$objformat
  9242. case $version_type in
  9243. freebsd-elf*)
  9244. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9245. need_version=no
  9246. need_lib_prefix=no
  9247. ;;
  9248. freebsd-*)
  9249. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9250. need_version=yes
  9251. ;;
  9252. esac
  9253. shlibpath_var=LD_LIBRARY_PATH
  9254. case $host_os in
  9255. freebsd2*)
  9256. shlibpath_overrides_runpath=yes
  9257. ;;
  9258. freebsd3.[01]* | freebsdelf3.[01]*)
  9259. shlibpath_overrides_runpath=yes
  9260. hardcode_into_libs=yes
  9261. ;;
  9262. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9263. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9264. shlibpath_overrides_runpath=no
  9265. hardcode_into_libs=yes
  9266. ;;
  9267. *) # from 4.6 on, and DragonFly
  9268. shlibpath_overrides_runpath=yes
  9269. hardcode_into_libs=yes
  9270. ;;
  9271. esac
  9272. ;;
  9273. gnu*)
  9274. version_type=linux
  9275. need_lib_prefix=no
  9276. need_version=no
  9277. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9278. soname_spec='${libname}${release}${shared_ext}$major'
  9279. shlibpath_var=LD_LIBRARY_PATH
  9280. shlibpath_overrides_runpath=no
  9281. hardcode_into_libs=yes
  9282. ;;
  9283. haiku*)
  9284. version_type=linux
  9285. need_lib_prefix=no
  9286. need_version=no
  9287. dynamic_linker="$host_os runtime_loader"
  9288. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9289. soname_spec='${libname}${release}${shared_ext}$major'
  9290. shlibpath_var=LIBRARY_PATH
  9291. shlibpath_overrides_runpath=yes
  9292. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9293. hardcode_into_libs=yes
  9294. ;;
  9295. hpux9* | hpux10* | hpux11*)
  9296. # Give a soname corresponding to the major version so that dld.sl refuses to
  9297. # link against other versions.
  9298. version_type=sunos
  9299. need_lib_prefix=no
  9300. need_version=no
  9301. case $host_cpu in
  9302. ia64*)
  9303. shrext_cmds='.so'
  9304. hardcode_into_libs=yes
  9305. dynamic_linker="$host_os dld.so"
  9306. shlibpath_var=LD_LIBRARY_PATH
  9307. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9308. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9309. soname_spec='${libname}${release}${shared_ext}$major'
  9310. if test "X$HPUX_IA64_MODE" = X32; then
  9311. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9312. else
  9313. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9314. fi
  9315. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9316. ;;
  9317. hppa*64*)
  9318. shrext_cmds='.sl'
  9319. hardcode_into_libs=yes
  9320. dynamic_linker="$host_os dld.sl"
  9321. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9322. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9323. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9324. soname_spec='${libname}${release}${shared_ext}$major'
  9325. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9326. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9327. ;;
  9328. *)
  9329. shrext_cmds='.sl'
  9330. dynamic_linker="$host_os dld.sl"
  9331. shlibpath_var=SHLIB_PATH
  9332. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9333. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9334. soname_spec='${libname}${release}${shared_ext}$major'
  9335. ;;
  9336. esac
  9337. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9338. postinstall_cmds='chmod 555 $lib'
  9339. # or fails outright, so override atomically:
  9340. install_override_mode=555
  9341. ;;
  9342. interix[3-9]*)
  9343. version_type=linux
  9344. need_lib_prefix=no
  9345. need_version=no
  9346. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9347. soname_spec='${libname}${release}${shared_ext}$major'
  9348. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9349. shlibpath_var=LD_LIBRARY_PATH
  9350. shlibpath_overrides_runpath=no
  9351. hardcode_into_libs=yes
  9352. ;;
  9353. irix5* | irix6* | nonstopux*)
  9354. case $host_os in
  9355. nonstopux*) version_type=nonstopux ;;
  9356. *)
  9357. if test "$lt_cv_prog_gnu_ld" = yes; then
  9358. version_type=linux
  9359. else
  9360. version_type=irix
  9361. fi ;;
  9362. esac
  9363. need_lib_prefix=no
  9364. need_version=no
  9365. soname_spec='${libname}${release}${shared_ext}$major'
  9366. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9367. case $host_os in
  9368. irix5* | nonstopux*)
  9369. libsuff= shlibsuff=
  9370. ;;
  9371. *)
  9372. case $LD in # libtool.m4 will add one of these switches to LD
  9373. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9374. libsuff= shlibsuff= libmagic=32-bit;;
  9375. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9376. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9377. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9378. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9379. *) libsuff= shlibsuff= libmagic=never-match;;
  9380. esac
  9381. ;;
  9382. esac
  9383. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9384. shlibpath_overrides_runpath=no
  9385. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9386. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9387. hardcode_into_libs=yes
  9388. ;;
  9389. # No shared lib support for Linux oldld, aout, or coff.
  9390. linux*oldld* | linux*aout* | linux*coff*)
  9391. dynamic_linker=no
  9392. ;;
  9393. # This must be Linux ELF.
  9394. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9395. version_type=linux
  9396. need_lib_prefix=no
  9397. need_version=no
  9398. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9399. soname_spec='${libname}${release}${shared_ext}$major'
  9400. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9401. shlibpath_var=LD_LIBRARY_PATH
  9402. shlibpath_overrides_runpath=no
  9403. # Some binutils ld are patched to set DT_RUNPATH
  9404. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  9405. $as_echo_n "(cached) " >&6
  9406. else
  9407. lt_cv_shlibpath_overrides_runpath=no
  9408. save_LDFLAGS=$LDFLAGS
  9409. save_libdir=$libdir
  9410. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9411. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9413. /* end confdefs.h. */
  9414. int
  9415. main ()
  9416. {
  9417. ;
  9418. return 0;
  9419. }
  9420. _ACEOF
  9421. if ac_fn_c_try_link "$LINENO"; then :
  9422. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9423. lt_cv_shlibpath_overrides_runpath=yes
  9424. fi
  9425. fi
  9426. rm -f core conftest.err conftest.$ac_objext \
  9427. conftest$ac_exeext conftest.$ac_ext
  9428. LDFLAGS=$save_LDFLAGS
  9429. libdir=$save_libdir
  9430. fi
  9431. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9432. # This implies no fast_install, which is unacceptable.
  9433. # Some rework will be needed to allow for fast_install
  9434. # before this can be enabled.
  9435. hardcode_into_libs=yes
  9436. # Append ld.so.conf contents to the search path
  9437. if test -f /etc/ld.so.conf; then
  9438. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9439. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9440. fi
  9441. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9442. # powerpc, because MkLinux only supported shared libraries with the
  9443. # GNU dynamic linker. Since this was broken with cross compilers,
  9444. # most powerpc-linux boxes support dynamic linking these days and
  9445. # people can always --disable-shared, the test was removed, and we
  9446. # assume the GNU/Linux dynamic linker is in use.
  9447. dynamic_linker='GNU/Linux ld.so'
  9448. ;;
  9449. netbsdelf*-gnu)
  9450. version_type=linux
  9451. need_lib_prefix=no
  9452. need_version=no
  9453. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9454. soname_spec='${libname}${release}${shared_ext}$major'
  9455. shlibpath_var=LD_LIBRARY_PATH
  9456. shlibpath_overrides_runpath=no
  9457. hardcode_into_libs=yes
  9458. dynamic_linker='NetBSD ld.elf_so'
  9459. ;;
  9460. netbsd*)
  9461. version_type=sunos
  9462. need_lib_prefix=no
  9463. need_version=no
  9464. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9465. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9466. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9467. dynamic_linker='NetBSD (a.out) ld.so'
  9468. else
  9469. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9470. soname_spec='${libname}${release}${shared_ext}$major'
  9471. dynamic_linker='NetBSD ld.elf_so'
  9472. fi
  9473. shlibpath_var=LD_LIBRARY_PATH
  9474. shlibpath_overrides_runpath=yes
  9475. hardcode_into_libs=yes
  9476. ;;
  9477. newsos6)
  9478. version_type=linux
  9479. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9480. shlibpath_var=LD_LIBRARY_PATH
  9481. shlibpath_overrides_runpath=yes
  9482. ;;
  9483. *nto* | *qnx*)
  9484. version_type=qnx
  9485. need_lib_prefix=no
  9486. need_version=no
  9487. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9488. soname_spec='${libname}${release}${shared_ext}$major'
  9489. shlibpath_var=LD_LIBRARY_PATH
  9490. shlibpath_overrides_runpath=no
  9491. hardcode_into_libs=yes
  9492. dynamic_linker='ldqnx.so'
  9493. ;;
  9494. openbsd*)
  9495. version_type=sunos
  9496. sys_lib_dlsearch_path_spec="/usr/lib"
  9497. need_lib_prefix=no
  9498. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9499. case $host_os in
  9500. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9501. *) need_version=no ;;
  9502. esac
  9503. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9504. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9505. shlibpath_var=LD_LIBRARY_PATH
  9506. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9507. case $host_os in
  9508. openbsd2.[89] | openbsd2.[89].*)
  9509. shlibpath_overrides_runpath=no
  9510. ;;
  9511. *)
  9512. shlibpath_overrides_runpath=yes
  9513. ;;
  9514. esac
  9515. else
  9516. shlibpath_overrides_runpath=yes
  9517. fi
  9518. ;;
  9519. os2*)
  9520. libname_spec='$name'
  9521. shrext_cmds=".dll"
  9522. need_lib_prefix=no
  9523. library_names_spec='$libname${shared_ext} $libname.a'
  9524. dynamic_linker='OS/2 ld.exe'
  9525. shlibpath_var=LIBPATH
  9526. ;;
  9527. osf3* | osf4* | osf5*)
  9528. version_type=osf
  9529. need_lib_prefix=no
  9530. need_version=no
  9531. soname_spec='${libname}${release}${shared_ext}$major'
  9532. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9533. shlibpath_var=LD_LIBRARY_PATH
  9534. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9535. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9536. ;;
  9537. rdos*)
  9538. dynamic_linker=no
  9539. ;;
  9540. solaris*)
  9541. version_type=linux
  9542. need_lib_prefix=no
  9543. need_version=no
  9544. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9545. soname_spec='${libname}${release}${shared_ext}$major'
  9546. shlibpath_var=LD_LIBRARY_PATH
  9547. shlibpath_overrides_runpath=yes
  9548. hardcode_into_libs=yes
  9549. # ldd complains unless libraries are executable
  9550. postinstall_cmds='chmod +x $lib'
  9551. ;;
  9552. sunos4*)
  9553. version_type=sunos
  9554. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9555. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9556. shlibpath_var=LD_LIBRARY_PATH
  9557. shlibpath_overrides_runpath=yes
  9558. if test "$with_gnu_ld" = yes; then
  9559. need_lib_prefix=no
  9560. fi
  9561. need_version=yes
  9562. ;;
  9563. sysv4 | sysv4.3*)
  9564. version_type=linux
  9565. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9566. soname_spec='${libname}${release}${shared_ext}$major'
  9567. shlibpath_var=LD_LIBRARY_PATH
  9568. case $host_vendor in
  9569. sni)
  9570. shlibpath_overrides_runpath=no
  9571. need_lib_prefix=no
  9572. runpath_var=LD_RUN_PATH
  9573. ;;
  9574. siemens)
  9575. need_lib_prefix=no
  9576. ;;
  9577. motorola)
  9578. need_lib_prefix=no
  9579. need_version=no
  9580. shlibpath_overrides_runpath=no
  9581. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9582. ;;
  9583. esac
  9584. ;;
  9585. sysv4*MP*)
  9586. if test -d /usr/nec ;then
  9587. version_type=linux
  9588. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9589. soname_spec='$libname${shared_ext}.$major'
  9590. shlibpath_var=LD_LIBRARY_PATH
  9591. fi
  9592. ;;
  9593. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9594. version_type=freebsd-elf
  9595. need_lib_prefix=no
  9596. need_version=no
  9597. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9598. soname_spec='${libname}${release}${shared_ext}$major'
  9599. shlibpath_var=LD_LIBRARY_PATH
  9600. shlibpath_overrides_runpath=yes
  9601. hardcode_into_libs=yes
  9602. if test "$with_gnu_ld" = yes; then
  9603. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9604. else
  9605. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9606. case $host_os in
  9607. sco3.2v5*)
  9608. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9609. ;;
  9610. esac
  9611. fi
  9612. sys_lib_dlsearch_path_spec='/usr/lib'
  9613. ;;
  9614. tpf*)
  9615. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9616. version_type=linux
  9617. need_lib_prefix=no
  9618. need_version=no
  9619. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9620. shlibpath_var=LD_LIBRARY_PATH
  9621. shlibpath_overrides_runpath=no
  9622. hardcode_into_libs=yes
  9623. ;;
  9624. uts4*)
  9625. version_type=linux
  9626. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9627. soname_spec='${libname}${release}${shared_ext}$major'
  9628. shlibpath_var=LD_LIBRARY_PATH
  9629. ;;
  9630. *)
  9631. dynamic_linker=no
  9632. ;;
  9633. esac
  9634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9635. $as_echo "$dynamic_linker" >&6; }
  9636. test "$dynamic_linker" = no && can_build_shared=no
  9637. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9638. if test "$GCC" = yes; then
  9639. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9640. fi
  9641. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9642. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9643. fi
  9644. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9645. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9646. fi
  9647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9648. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9649. hardcode_action=
  9650. if test -n "$hardcode_libdir_flag_spec" ||
  9651. test -n "$runpath_var" ||
  9652. test "X$hardcode_automatic" = "Xyes" ; then
  9653. # We can hardcode non-existent directories.
  9654. if test "$hardcode_direct" != no &&
  9655. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9656. # have to relink, otherwise we might link with an installed library
  9657. # when we should be linking with a yet-to-be-installed one
  9658. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9659. test "$hardcode_minus_L" != no; then
  9660. # Linking always hardcodes the temporary library directory.
  9661. hardcode_action=relink
  9662. else
  9663. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9664. hardcode_action=immediate
  9665. fi
  9666. else
  9667. # We cannot hardcode anything, or else we can only hardcode existing
  9668. # directories.
  9669. hardcode_action=unsupported
  9670. fi
  9671. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9672. $as_echo "$hardcode_action" >&6; }
  9673. if test "$hardcode_action" = relink ||
  9674. test "$inherit_rpath" = yes; then
  9675. # Fast installation is not supported
  9676. enable_fast_install=no
  9677. elif test "$shlibpath_overrides_runpath" = yes ||
  9678. test "$enable_shared" = no; then
  9679. # Fast installation is not necessary
  9680. enable_fast_install=needless
  9681. fi
  9682. if test "x$enable_dlopen" != xyes; then
  9683. enable_dlopen=unknown
  9684. enable_dlopen_self=unknown
  9685. enable_dlopen_self_static=unknown
  9686. else
  9687. lt_cv_dlopen=no
  9688. lt_cv_dlopen_libs=
  9689. case $host_os in
  9690. beos*)
  9691. lt_cv_dlopen="load_add_on"
  9692. lt_cv_dlopen_libs=
  9693. lt_cv_dlopen_self=yes
  9694. ;;
  9695. mingw* | pw32* | cegcc*)
  9696. lt_cv_dlopen="LoadLibrary"
  9697. lt_cv_dlopen_libs=
  9698. ;;
  9699. cygwin*)
  9700. lt_cv_dlopen="dlopen"
  9701. lt_cv_dlopen_libs=
  9702. ;;
  9703. darwin*)
  9704. # if libdl is installed we need to link against it
  9705. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9706. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9707. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9708. $as_echo_n "(cached) " >&6
  9709. else
  9710. ac_check_lib_save_LIBS=$LIBS
  9711. LIBS="-ldl $LIBS"
  9712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9713. /* end confdefs.h. */
  9714. /* Override any GCC internal prototype to avoid an error.
  9715. Use char because int might match the return type of a GCC
  9716. builtin and then its argument prototype would still apply. */
  9717. #ifdef __cplusplus
  9718. extern "C"
  9719. #endif
  9720. char dlopen ();
  9721. int
  9722. main ()
  9723. {
  9724. return dlopen ();
  9725. ;
  9726. return 0;
  9727. }
  9728. _ACEOF
  9729. if ac_fn_c_try_link "$LINENO"; then :
  9730. ac_cv_lib_dl_dlopen=yes
  9731. else
  9732. ac_cv_lib_dl_dlopen=no
  9733. fi
  9734. rm -f core conftest.err conftest.$ac_objext \
  9735. conftest$ac_exeext conftest.$ac_ext
  9736. LIBS=$ac_check_lib_save_LIBS
  9737. fi
  9738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9739. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9740. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9741. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9742. else
  9743. lt_cv_dlopen="dyld"
  9744. lt_cv_dlopen_libs=
  9745. lt_cv_dlopen_self=yes
  9746. fi
  9747. ;;
  9748. *)
  9749. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9750. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9751. lt_cv_dlopen="shl_load"
  9752. else
  9753. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9754. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9755. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9756. $as_echo_n "(cached) " >&6
  9757. else
  9758. ac_check_lib_save_LIBS=$LIBS
  9759. LIBS="-ldld $LIBS"
  9760. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9761. /* end confdefs.h. */
  9762. /* Override any GCC internal prototype to avoid an error.
  9763. Use char because int might match the return type of a GCC
  9764. builtin and then its argument prototype would still apply. */
  9765. #ifdef __cplusplus
  9766. extern "C"
  9767. #endif
  9768. char shl_load ();
  9769. int
  9770. main ()
  9771. {
  9772. return shl_load ();
  9773. ;
  9774. return 0;
  9775. }
  9776. _ACEOF
  9777. if ac_fn_c_try_link "$LINENO"; then :
  9778. ac_cv_lib_dld_shl_load=yes
  9779. else
  9780. ac_cv_lib_dld_shl_load=no
  9781. fi
  9782. rm -f core conftest.err conftest.$ac_objext \
  9783. conftest$ac_exeext conftest.$ac_ext
  9784. LIBS=$ac_check_lib_save_LIBS
  9785. fi
  9786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9787. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9788. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9789. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9790. else
  9791. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9792. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9793. lt_cv_dlopen="dlopen"
  9794. else
  9795. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9796. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9797. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9798. $as_echo_n "(cached) " >&6
  9799. else
  9800. ac_check_lib_save_LIBS=$LIBS
  9801. LIBS="-ldl $LIBS"
  9802. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9803. /* end confdefs.h. */
  9804. /* Override any GCC internal prototype to avoid an error.
  9805. Use char because int might match the return type of a GCC
  9806. builtin and then its argument prototype would still apply. */
  9807. #ifdef __cplusplus
  9808. extern "C"
  9809. #endif
  9810. char dlopen ();
  9811. int
  9812. main ()
  9813. {
  9814. return dlopen ();
  9815. ;
  9816. return 0;
  9817. }
  9818. _ACEOF
  9819. if ac_fn_c_try_link "$LINENO"; then :
  9820. ac_cv_lib_dl_dlopen=yes
  9821. else
  9822. ac_cv_lib_dl_dlopen=no
  9823. fi
  9824. rm -f core conftest.err conftest.$ac_objext \
  9825. conftest$ac_exeext conftest.$ac_ext
  9826. LIBS=$ac_check_lib_save_LIBS
  9827. fi
  9828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9829. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9830. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9831. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9832. else
  9833. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9834. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9835. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9836. $as_echo_n "(cached) " >&6
  9837. else
  9838. ac_check_lib_save_LIBS=$LIBS
  9839. LIBS="-lsvld $LIBS"
  9840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9841. /* end confdefs.h. */
  9842. /* Override any GCC internal prototype to avoid an error.
  9843. Use char because int might match the return type of a GCC
  9844. builtin and then its argument prototype would still apply. */
  9845. #ifdef __cplusplus
  9846. extern "C"
  9847. #endif
  9848. char dlopen ();
  9849. int
  9850. main ()
  9851. {
  9852. return dlopen ();
  9853. ;
  9854. return 0;
  9855. }
  9856. _ACEOF
  9857. if ac_fn_c_try_link "$LINENO"; then :
  9858. ac_cv_lib_svld_dlopen=yes
  9859. else
  9860. ac_cv_lib_svld_dlopen=no
  9861. fi
  9862. rm -f core conftest.err conftest.$ac_objext \
  9863. conftest$ac_exeext conftest.$ac_ext
  9864. LIBS=$ac_check_lib_save_LIBS
  9865. fi
  9866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9867. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9868. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9869. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9870. else
  9871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9872. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9873. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9874. $as_echo_n "(cached) " >&6
  9875. else
  9876. ac_check_lib_save_LIBS=$LIBS
  9877. LIBS="-ldld $LIBS"
  9878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9879. /* end confdefs.h. */
  9880. /* Override any GCC internal prototype to avoid an error.
  9881. Use char because int might match the return type of a GCC
  9882. builtin and then its argument prototype would still apply. */
  9883. #ifdef __cplusplus
  9884. extern "C"
  9885. #endif
  9886. char dld_link ();
  9887. int
  9888. main ()
  9889. {
  9890. return dld_link ();
  9891. ;
  9892. return 0;
  9893. }
  9894. _ACEOF
  9895. if ac_fn_c_try_link "$LINENO"; then :
  9896. ac_cv_lib_dld_dld_link=yes
  9897. else
  9898. ac_cv_lib_dld_dld_link=no
  9899. fi
  9900. rm -f core conftest.err conftest.$ac_objext \
  9901. conftest$ac_exeext conftest.$ac_ext
  9902. LIBS=$ac_check_lib_save_LIBS
  9903. fi
  9904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9905. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9906. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9907. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9908. fi
  9909. fi
  9910. fi
  9911. fi
  9912. fi
  9913. fi
  9914. ;;
  9915. esac
  9916. if test "x$lt_cv_dlopen" != xno; then
  9917. enable_dlopen=yes
  9918. else
  9919. enable_dlopen=no
  9920. fi
  9921. case $lt_cv_dlopen in
  9922. dlopen)
  9923. save_CPPFLAGS="$CPPFLAGS"
  9924. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9925. save_LDFLAGS="$LDFLAGS"
  9926. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9927. save_LIBS="$LIBS"
  9928. LIBS="$lt_cv_dlopen_libs $LIBS"
  9929. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9930. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9931. if test "${lt_cv_dlopen_self+set}" = set; then :
  9932. $as_echo_n "(cached) " >&6
  9933. else
  9934. if test "$cross_compiling" = yes; then :
  9935. lt_cv_dlopen_self=cross
  9936. else
  9937. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9938. lt_status=$lt_dlunknown
  9939. cat > conftest.$ac_ext <<_LT_EOF
  9940. #line $LINENO "configure"
  9941. #include "confdefs.h"
  9942. #if HAVE_DLFCN_H
  9943. #include <dlfcn.h>
  9944. #endif
  9945. #include <stdio.h>
  9946. #ifdef RTLD_GLOBAL
  9947. # define LT_DLGLOBAL RTLD_GLOBAL
  9948. #else
  9949. # ifdef DL_GLOBAL
  9950. # define LT_DLGLOBAL DL_GLOBAL
  9951. # else
  9952. # define LT_DLGLOBAL 0
  9953. # endif
  9954. #endif
  9955. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9956. find out it does not work in some platform. */
  9957. #ifndef LT_DLLAZY_OR_NOW
  9958. # ifdef RTLD_LAZY
  9959. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9960. # else
  9961. # ifdef DL_LAZY
  9962. # define LT_DLLAZY_OR_NOW DL_LAZY
  9963. # else
  9964. # ifdef RTLD_NOW
  9965. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9966. # else
  9967. # ifdef DL_NOW
  9968. # define LT_DLLAZY_OR_NOW DL_NOW
  9969. # else
  9970. # define LT_DLLAZY_OR_NOW 0
  9971. # endif
  9972. # endif
  9973. # endif
  9974. # endif
  9975. #endif
  9976. /* When -fvisbility=hidden is used, assume the code has been annotated
  9977. correspondingly for the symbols needed. */
  9978. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9979. int fnord () __attribute__((visibility("default")));
  9980. #endif
  9981. int fnord () { return 42; }
  9982. int main ()
  9983. {
  9984. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9985. int status = $lt_dlunknown;
  9986. if (self)
  9987. {
  9988. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9989. else
  9990. {
  9991. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9992. else puts (dlerror ());
  9993. }
  9994. /* dlclose (self); */
  9995. }
  9996. else
  9997. puts (dlerror ());
  9998. return status;
  9999. }
  10000. _LT_EOF
  10001. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10002. (eval $ac_link) 2>&5
  10003. ac_status=$?
  10004. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10005. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10006. (./conftest; exit; ) >&5 2>/dev/null
  10007. lt_status=$?
  10008. case x$lt_status in
  10009. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10010. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10011. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10012. esac
  10013. else :
  10014. # compilation failed
  10015. lt_cv_dlopen_self=no
  10016. fi
  10017. fi
  10018. rm -fr conftest*
  10019. fi
  10020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10021. $as_echo "$lt_cv_dlopen_self" >&6; }
  10022. if test "x$lt_cv_dlopen_self" = xyes; then
  10023. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10024. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10025. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10026. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  10027. $as_echo_n "(cached) " >&6
  10028. else
  10029. if test "$cross_compiling" = yes; then :
  10030. lt_cv_dlopen_self_static=cross
  10031. else
  10032. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10033. lt_status=$lt_dlunknown
  10034. cat > conftest.$ac_ext <<_LT_EOF
  10035. #line $LINENO "configure"
  10036. #include "confdefs.h"
  10037. #if HAVE_DLFCN_H
  10038. #include <dlfcn.h>
  10039. #endif
  10040. #include <stdio.h>
  10041. #ifdef RTLD_GLOBAL
  10042. # define LT_DLGLOBAL RTLD_GLOBAL
  10043. #else
  10044. # ifdef DL_GLOBAL
  10045. # define LT_DLGLOBAL DL_GLOBAL
  10046. # else
  10047. # define LT_DLGLOBAL 0
  10048. # endif
  10049. #endif
  10050. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10051. find out it does not work in some platform. */
  10052. #ifndef LT_DLLAZY_OR_NOW
  10053. # ifdef RTLD_LAZY
  10054. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10055. # else
  10056. # ifdef DL_LAZY
  10057. # define LT_DLLAZY_OR_NOW DL_LAZY
  10058. # else
  10059. # ifdef RTLD_NOW
  10060. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10061. # else
  10062. # ifdef DL_NOW
  10063. # define LT_DLLAZY_OR_NOW DL_NOW
  10064. # else
  10065. # define LT_DLLAZY_OR_NOW 0
  10066. # endif
  10067. # endif
  10068. # endif
  10069. # endif
  10070. #endif
  10071. /* When -fvisbility=hidden is used, assume the code has been annotated
  10072. correspondingly for the symbols needed. */
  10073. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10074. int fnord () __attribute__((visibility("default")));
  10075. #endif
  10076. int fnord () { return 42; }
  10077. int main ()
  10078. {
  10079. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10080. int status = $lt_dlunknown;
  10081. if (self)
  10082. {
  10083. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10084. else
  10085. {
  10086. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10087. else puts (dlerror ());
  10088. }
  10089. /* dlclose (self); */
  10090. }
  10091. else
  10092. puts (dlerror ());
  10093. return status;
  10094. }
  10095. _LT_EOF
  10096. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10097. (eval $ac_link) 2>&5
  10098. ac_status=$?
  10099. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10100. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10101. (./conftest; exit; ) >&5 2>/dev/null
  10102. lt_status=$?
  10103. case x$lt_status in
  10104. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10105. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10106. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10107. esac
  10108. else :
  10109. # compilation failed
  10110. lt_cv_dlopen_self_static=no
  10111. fi
  10112. fi
  10113. rm -fr conftest*
  10114. fi
  10115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10116. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10117. fi
  10118. CPPFLAGS="$save_CPPFLAGS"
  10119. LDFLAGS="$save_LDFLAGS"
  10120. LIBS="$save_LIBS"
  10121. ;;
  10122. esac
  10123. case $lt_cv_dlopen_self in
  10124. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10125. *) enable_dlopen_self=unknown ;;
  10126. esac
  10127. case $lt_cv_dlopen_self_static in
  10128. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10129. *) enable_dlopen_self_static=unknown ;;
  10130. esac
  10131. fi
  10132. striplib=
  10133. old_striplib=
  10134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10135. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10136. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10137. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10138. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10140. $as_echo "yes" >&6; }
  10141. else
  10142. # FIXME - insert some real tests, host_os isn't really good enough
  10143. case $host_os in
  10144. darwin*)
  10145. if test -n "$STRIP" ; then
  10146. striplib="$STRIP -x"
  10147. old_striplib="$STRIP -S"
  10148. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10149. $as_echo "yes" >&6; }
  10150. else
  10151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10152. $as_echo "no" >&6; }
  10153. fi
  10154. ;;
  10155. *)
  10156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10157. $as_echo "no" >&6; }
  10158. ;;
  10159. esac
  10160. fi
  10161. # Report which library types will actually be built
  10162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10163. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10165. $as_echo "$can_build_shared" >&6; }
  10166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10167. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10168. test "$can_build_shared" = "no" && enable_shared=no
  10169. # On AIX, shared libraries and static libraries use the same namespace, and
  10170. # are all built from PIC.
  10171. case $host_os in
  10172. aix3*)
  10173. test "$enable_shared" = yes && enable_static=no
  10174. if test -n "$RANLIB"; then
  10175. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10176. postinstall_cmds='$RANLIB $lib'
  10177. fi
  10178. ;;
  10179. aix[4-9]*)
  10180. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10181. test "$enable_shared" = yes && enable_static=no
  10182. fi
  10183. ;;
  10184. esac
  10185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10186. $as_echo "$enable_shared" >&6; }
  10187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10188. $as_echo_n "checking whether to build static libraries... " >&6; }
  10189. # Make sure either enable_shared or enable_static is yes.
  10190. test "$enable_shared" = yes || enable_static=yes
  10191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10192. $as_echo "$enable_static" >&6; }
  10193. fi
  10194. ac_ext=cpp
  10195. ac_cpp='$CXXCPP $CPPFLAGS'
  10196. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10197. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10198. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10199. CC="$lt_save_CC"
  10200. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10201. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10202. (test "X$CXX" != "Xg++"))) ; then
  10203. ac_ext=cpp
  10204. ac_cpp='$CXXCPP $CPPFLAGS'
  10205. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10206. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10207. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10208. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10209. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10210. if test -z "$CXXCPP"; then
  10211. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  10212. $as_echo_n "(cached) " >&6
  10213. else
  10214. # Double quotes because CXXCPP needs to be expanded
  10215. for CXXCPP in "$CXX -E" "/lib/cpp"
  10216. do
  10217. ac_preproc_ok=false
  10218. for ac_cxx_preproc_warn_flag in '' yes
  10219. do
  10220. # Use a header file that comes with gcc, so configuring glibc
  10221. # with a fresh cross-compiler works.
  10222. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10223. # <limits.h> exists even on freestanding compilers.
  10224. # On the NeXT, cc -E runs the code through the compiler's parser,
  10225. # not just through cpp. "Syntax error" is here to catch this case.
  10226. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10227. /* end confdefs.h. */
  10228. #ifdef __STDC__
  10229. # include <limits.h>
  10230. #else
  10231. # include <assert.h>
  10232. #endif
  10233. Syntax error
  10234. _ACEOF
  10235. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10236. else
  10237. # Broken: fails on valid input.
  10238. continue
  10239. fi
  10240. rm -f conftest.err conftest.i conftest.$ac_ext
  10241. # OK, works on sane cases. Now check whether nonexistent headers
  10242. # can be detected and how.
  10243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10244. /* end confdefs.h. */
  10245. #include <ac_nonexistent.h>
  10246. _ACEOF
  10247. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10248. # Broken: success on invalid input.
  10249. continue
  10250. else
  10251. # Passes both tests.
  10252. ac_preproc_ok=:
  10253. break
  10254. fi
  10255. rm -f conftest.err conftest.i conftest.$ac_ext
  10256. done
  10257. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10258. rm -f conftest.i conftest.err conftest.$ac_ext
  10259. if $ac_preproc_ok; then :
  10260. break
  10261. fi
  10262. done
  10263. ac_cv_prog_CXXCPP=$CXXCPP
  10264. fi
  10265. CXXCPP=$ac_cv_prog_CXXCPP
  10266. else
  10267. ac_cv_prog_CXXCPP=$CXXCPP
  10268. fi
  10269. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10270. $as_echo "$CXXCPP" >&6; }
  10271. ac_preproc_ok=false
  10272. for ac_cxx_preproc_warn_flag in '' yes
  10273. do
  10274. # Use a header file that comes with gcc, so configuring glibc
  10275. # with a fresh cross-compiler works.
  10276. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10277. # <limits.h> exists even on freestanding compilers.
  10278. # On the NeXT, cc -E runs the code through the compiler's parser,
  10279. # not just through cpp. "Syntax error" is here to catch this case.
  10280. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10281. /* end confdefs.h. */
  10282. #ifdef __STDC__
  10283. # include <limits.h>
  10284. #else
  10285. # include <assert.h>
  10286. #endif
  10287. Syntax error
  10288. _ACEOF
  10289. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10290. else
  10291. # Broken: fails on valid input.
  10292. continue
  10293. fi
  10294. rm -f conftest.err conftest.i conftest.$ac_ext
  10295. # OK, works on sane cases. Now check whether nonexistent headers
  10296. # can be detected and how.
  10297. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10298. /* end confdefs.h. */
  10299. #include <ac_nonexistent.h>
  10300. _ACEOF
  10301. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10302. # Broken: success on invalid input.
  10303. continue
  10304. else
  10305. # Passes both tests.
  10306. ac_preproc_ok=:
  10307. break
  10308. fi
  10309. rm -f conftest.err conftest.i conftest.$ac_ext
  10310. done
  10311. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10312. rm -f conftest.i conftest.err conftest.$ac_ext
  10313. if $ac_preproc_ok; then :
  10314. else
  10315. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10316. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10317. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10318. See \`config.log' for more details" "$LINENO" 5 ; }
  10319. fi
  10320. ac_ext=cpp
  10321. ac_cpp='$CXXCPP $CPPFLAGS'
  10322. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10323. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10324. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10325. else
  10326. _lt_caught_CXX_error=yes
  10327. fi
  10328. ac_ext=cpp
  10329. ac_cpp='$CXXCPP $CPPFLAGS'
  10330. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10331. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10332. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10333. archive_cmds_need_lc_CXX=no
  10334. allow_undefined_flag_CXX=
  10335. always_export_symbols_CXX=no
  10336. archive_expsym_cmds_CXX=
  10337. compiler_needs_object_CXX=no
  10338. export_dynamic_flag_spec_CXX=
  10339. hardcode_direct_CXX=no
  10340. hardcode_direct_absolute_CXX=no
  10341. hardcode_libdir_flag_spec_CXX=
  10342. hardcode_libdir_flag_spec_ld_CXX=
  10343. hardcode_libdir_separator_CXX=
  10344. hardcode_minus_L_CXX=no
  10345. hardcode_shlibpath_var_CXX=unsupported
  10346. hardcode_automatic_CXX=no
  10347. inherit_rpath_CXX=no
  10348. module_cmds_CXX=
  10349. module_expsym_cmds_CXX=
  10350. link_all_deplibs_CXX=unknown
  10351. old_archive_cmds_CXX=$old_archive_cmds
  10352. reload_flag_CXX=$reload_flag
  10353. reload_cmds_CXX=$reload_cmds
  10354. no_undefined_flag_CXX=
  10355. whole_archive_flag_spec_CXX=
  10356. enable_shared_with_static_runtimes_CXX=no
  10357. # Source file extension for C++ test sources.
  10358. ac_ext=cpp
  10359. # Object file extension for compiled C++ test sources.
  10360. objext=o
  10361. objext_CXX=$objext
  10362. # No sense in running all these tests if we already determined that
  10363. # the CXX compiler isn't working. Some variables (like enable_shared)
  10364. # are currently assumed to apply to all compilers on this platform,
  10365. # and will be corrupted by setting them based on a non-working compiler.
  10366. if test "$_lt_caught_CXX_error" != yes; then
  10367. # Code to be used in simple compile tests
  10368. lt_simple_compile_test_code="int some_variable = 0;"
  10369. # Code to be used in simple link tests
  10370. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10371. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10372. # If no C compiler was specified, use CC.
  10373. LTCC=${LTCC-"$CC"}
  10374. # If no C compiler flags were specified, use CFLAGS.
  10375. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10376. # Allow CC to be a program name with arguments.
  10377. compiler=$CC
  10378. # save warnings/boilerplate of simple test code
  10379. ac_outfile=conftest.$ac_objext
  10380. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10381. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10382. _lt_compiler_boilerplate=`cat conftest.err`
  10383. $RM conftest*
  10384. ac_outfile=conftest.$ac_objext
  10385. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10386. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10387. _lt_linker_boilerplate=`cat conftest.err`
  10388. $RM -r conftest*
  10389. # Allow CC to be a program name with arguments.
  10390. lt_save_CC=$CC
  10391. lt_save_CFLAGS=$CFLAGS
  10392. lt_save_LD=$LD
  10393. lt_save_GCC=$GCC
  10394. GCC=$GXX
  10395. lt_save_with_gnu_ld=$with_gnu_ld
  10396. lt_save_path_LD=$lt_cv_path_LD
  10397. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10398. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10399. else
  10400. $as_unset lt_cv_prog_gnu_ld
  10401. fi
  10402. if test -n "${lt_cv_path_LDCXX+set}"; then
  10403. lt_cv_path_LD=$lt_cv_path_LDCXX
  10404. else
  10405. $as_unset lt_cv_path_LD
  10406. fi
  10407. test -z "${LDCXX+set}" || LD=$LDCXX
  10408. CC=${CXX-"c++"}
  10409. CFLAGS=$CXXFLAGS
  10410. compiler=$CC
  10411. compiler_CXX=$CC
  10412. for cc_temp in $compiler""; do
  10413. case $cc_temp in
  10414. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10415. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10416. \-*) ;;
  10417. *) break;;
  10418. esac
  10419. done
  10420. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10421. if test -n "$compiler"; then
  10422. # We don't want -fno-exception when compiling C++ code, so set the
  10423. # no_builtin_flag separately
  10424. if test "$GXX" = yes; then
  10425. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10426. else
  10427. lt_prog_compiler_no_builtin_flag_CXX=
  10428. fi
  10429. if test "$GXX" = yes; then
  10430. # Set up default GNU C++ configuration
  10431. # Check whether --with-gnu-ld was given.
  10432. if test "${with_gnu_ld+set}" = set; then :
  10433. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10434. else
  10435. with_gnu_ld=no
  10436. fi
  10437. ac_prog=ld
  10438. if test "$GCC" = yes; then
  10439. # Check if gcc -print-prog-name=ld gives a path.
  10440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10441. $as_echo_n "checking for ld used by $CC... " >&6; }
  10442. case $host in
  10443. *-*-mingw*)
  10444. # gcc leaves a trailing carriage return which upsets mingw
  10445. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10446. *)
  10447. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10448. esac
  10449. case $ac_prog in
  10450. # Accept absolute paths.
  10451. [\\/]* | ?:[\\/]*)
  10452. re_direlt='/[^/][^/]*/\.\./'
  10453. # Canonicalize the pathname of ld
  10454. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10455. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10456. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10457. done
  10458. test -z "$LD" && LD="$ac_prog"
  10459. ;;
  10460. "")
  10461. # If it fails, then pretend we aren't using GCC.
  10462. ac_prog=ld
  10463. ;;
  10464. *)
  10465. # If it is relative, then search for the first ld in PATH.
  10466. with_gnu_ld=unknown
  10467. ;;
  10468. esac
  10469. elif test "$with_gnu_ld" = yes; then
  10470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10471. $as_echo_n "checking for GNU ld... " >&6; }
  10472. else
  10473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10474. $as_echo_n "checking for non-GNU ld... " >&6; }
  10475. fi
  10476. if test "${lt_cv_path_LD+set}" = set; then :
  10477. $as_echo_n "(cached) " >&6
  10478. else
  10479. if test -z "$LD"; then
  10480. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10481. for ac_dir in $PATH; do
  10482. IFS="$lt_save_ifs"
  10483. test -z "$ac_dir" && ac_dir=.
  10484. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10485. lt_cv_path_LD="$ac_dir/$ac_prog"
  10486. # Check to see if the program is GNU ld. I'd rather use --version,
  10487. # but apparently some variants of GNU ld only accept -v.
  10488. # Break only if it was the GNU/non-GNU ld that we prefer.
  10489. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10490. *GNU* | *'with BFD'*)
  10491. test "$with_gnu_ld" != no && break
  10492. ;;
  10493. *)
  10494. test "$with_gnu_ld" != yes && break
  10495. ;;
  10496. esac
  10497. fi
  10498. done
  10499. IFS="$lt_save_ifs"
  10500. else
  10501. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10502. fi
  10503. fi
  10504. LD="$lt_cv_path_LD"
  10505. if test -n "$LD"; then
  10506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10507. $as_echo "$LD" >&6; }
  10508. else
  10509. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10510. $as_echo "no" >&6; }
  10511. fi
  10512. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10513. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10514. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10515. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10516. $as_echo_n "(cached) " >&6
  10517. else
  10518. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10519. case `$LD -v 2>&1 </dev/null` in
  10520. *GNU* | *'with BFD'*)
  10521. lt_cv_prog_gnu_ld=yes
  10522. ;;
  10523. *)
  10524. lt_cv_prog_gnu_ld=no
  10525. ;;
  10526. esac
  10527. fi
  10528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10529. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10530. with_gnu_ld=$lt_cv_prog_gnu_ld
  10531. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10532. # archiving commands below assume that GNU ld is being used.
  10533. if test "$with_gnu_ld" = yes; then
  10534. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10535. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10536. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10537. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10538. # If archive_cmds runs LD, not CC, wlarc should be empty
  10539. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10540. # investigate it a little bit more. (MM)
  10541. wlarc='${wl}'
  10542. # ancient GNU ld didn't support --whole-archive et. al.
  10543. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10544. $GREP 'no-whole-archive' > /dev/null; then
  10545. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10546. else
  10547. whole_archive_flag_spec_CXX=
  10548. fi
  10549. else
  10550. with_gnu_ld=no
  10551. wlarc=
  10552. # A generic and very simple default shared library creation
  10553. # command for GNU C++ for the case where it uses the native
  10554. # linker, instead of GNU ld. If possible, this setting should
  10555. # overridden to take advantage of the native linker features on
  10556. # the platform it is being used on.
  10557. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10558. fi
  10559. # Commands to make compiler produce verbose output that lists
  10560. # what "hidden" libraries, object files and flags are used when
  10561. # linking a shared library.
  10562. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10563. else
  10564. GXX=no
  10565. with_gnu_ld=no
  10566. wlarc=
  10567. fi
  10568. # PORTME: fill in a description of your system's C++ link characteristics
  10569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10570. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10571. ld_shlibs_CXX=yes
  10572. case $host_os in
  10573. aix3*)
  10574. # FIXME: insert proper C++ library support
  10575. ld_shlibs_CXX=no
  10576. ;;
  10577. aix[4-9]*)
  10578. if test "$host_cpu" = ia64; then
  10579. # On IA64, the linker does run time linking by default, so we don't
  10580. # have to do anything special.
  10581. aix_use_runtimelinking=no
  10582. exp_sym_flag='-Bexport'
  10583. no_entry_flag=""
  10584. else
  10585. aix_use_runtimelinking=no
  10586. # Test if we are trying to use run time linking or normal
  10587. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10588. # need to do runtime linking.
  10589. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10590. for ld_flag in $LDFLAGS; do
  10591. case $ld_flag in
  10592. *-brtl*)
  10593. aix_use_runtimelinking=yes
  10594. break
  10595. ;;
  10596. esac
  10597. done
  10598. ;;
  10599. esac
  10600. exp_sym_flag='-bexport'
  10601. no_entry_flag='-bnoentry'
  10602. fi
  10603. # When large executables or shared objects are built, AIX ld can
  10604. # have problems creating the table of contents. If linking a library
  10605. # or program results in "error TOC overflow" add -mminimal-toc to
  10606. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10607. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10608. archive_cmds_CXX=''
  10609. hardcode_direct_CXX=yes
  10610. hardcode_direct_absolute_CXX=yes
  10611. hardcode_libdir_separator_CXX=':'
  10612. link_all_deplibs_CXX=yes
  10613. file_list_spec_CXX='${wl}-f,'
  10614. if test "$GXX" = yes; then
  10615. case $host_os in aix4.[012]|aix4.[012].*)
  10616. # We only want to do this on AIX 4.2 and lower, the check
  10617. # below for broken collect2 doesn't work under 4.3+
  10618. collect2name=`${CC} -print-prog-name=collect2`
  10619. if test -f "$collect2name" &&
  10620. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10621. then
  10622. # We have reworked collect2
  10623. :
  10624. else
  10625. # We have old collect2
  10626. hardcode_direct_CXX=unsupported
  10627. # It fails to find uninstalled libraries when the uninstalled
  10628. # path is not listed in the libpath. Setting hardcode_minus_L
  10629. # to unsupported forces relinking
  10630. hardcode_minus_L_CXX=yes
  10631. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10632. hardcode_libdir_separator_CXX=
  10633. fi
  10634. esac
  10635. shared_flag='-shared'
  10636. if test "$aix_use_runtimelinking" = yes; then
  10637. shared_flag="$shared_flag "'${wl}-G'
  10638. fi
  10639. else
  10640. # not using gcc
  10641. if test "$host_cpu" = ia64; then
  10642. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10643. # chokes on -Wl,-G. The following line is correct:
  10644. shared_flag='-G'
  10645. else
  10646. if test "$aix_use_runtimelinking" = yes; then
  10647. shared_flag='${wl}-G'
  10648. else
  10649. shared_flag='${wl}-bM:SRE'
  10650. fi
  10651. fi
  10652. fi
  10653. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10654. # It seems that -bexpall does not export symbols beginning with
  10655. # underscore (_), so it is better to generate a list of symbols to
  10656. # export.
  10657. always_export_symbols_CXX=yes
  10658. if test "$aix_use_runtimelinking" = yes; then
  10659. # Warning - without using the other runtime loading flags (-brtl),
  10660. # -berok will link without error, but may produce a broken library.
  10661. allow_undefined_flag_CXX='-berok'
  10662. # Determine the default libpath from the value encoded in an empty
  10663. # executable.
  10664. if test "${lt_cv_aix_libpath+set}" = set; then
  10665. aix_libpath=$lt_cv_aix_libpath
  10666. else
  10667. if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
  10668. $as_echo_n "(cached) " >&6
  10669. else
  10670. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10671. /* end confdefs.h. */
  10672. int
  10673. main ()
  10674. {
  10675. ;
  10676. return 0;
  10677. }
  10678. _ACEOF
  10679. if ac_fn_cxx_try_link "$LINENO"; then :
  10680. lt_aix_libpath_sed='
  10681. /Import File Strings/,/^$/ {
  10682. /^0/ {
  10683. s/^0 *\([^ ]*\) *$/\1/
  10684. p
  10685. }
  10686. }'
  10687. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10688. # Check for a 64-bit object if we didn't find anything.
  10689. if test -z "$lt_cv_aix_libpath__CXX"; then
  10690. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10691. fi
  10692. fi
  10693. rm -f core conftest.err conftest.$ac_objext \
  10694. conftest$ac_exeext conftest.$ac_ext
  10695. if test -z "$lt_cv_aix_libpath__CXX"; then
  10696. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10697. fi
  10698. fi
  10699. aix_libpath=$lt_cv_aix_libpath__CXX
  10700. fi
  10701. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10702. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10703. else
  10704. if test "$host_cpu" = ia64; then
  10705. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10706. allow_undefined_flag_CXX="-z nodefs"
  10707. 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"
  10708. else
  10709. # Determine the default libpath from the value encoded in an
  10710. # empty executable.
  10711. if test "${lt_cv_aix_libpath+set}" = set; then
  10712. aix_libpath=$lt_cv_aix_libpath
  10713. else
  10714. if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
  10715. $as_echo_n "(cached) " >&6
  10716. else
  10717. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10718. /* end confdefs.h. */
  10719. int
  10720. main ()
  10721. {
  10722. ;
  10723. return 0;
  10724. }
  10725. _ACEOF
  10726. if ac_fn_cxx_try_link "$LINENO"; then :
  10727. lt_aix_libpath_sed='
  10728. /Import File Strings/,/^$/ {
  10729. /^0/ {
  10730. s/^0 *\([^ ]*\) *$/\1/
  10731. p
  10732. }
  10733. }'
  10734. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10735. # Check for a 64-bit object if we didn't find anything.
  10736. if test -z "$lt_cv_aix_libpath__CXX"; then
  10737. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10738. fi
  10739. fi
  10740. rm -f core conftest.err conftest.$ac_objext \
  10741. conftest$ac_exeext conftest.$ac_ext
  10742. if test -z "$lt_cv_aix_libpath__CXX"; then
  10743. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10744. fi
  10745. fi
  10746. aix_libpath=$lt_cv_aix_libpath__CXX
  10747. fi
  10748. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10749. # Warning - without using the other run time loading flags,
  10750. # -berok will link without error, but may produce a broken library.
  10751. no_undefined_flag_CXX=' ${wl}-bernotok'
  10752. allow_undefined_flag_CXX=' ${wl}-berok'
  10753. if test "$with_gnu_ld" = yes; then
  10754. # We only use this code for GNU lds that support --whole-archive.
  10755. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10756. else
  10757. # Exported symbols can be pulled into shared objects from archives
  10758. whole_archive_flag_spec_CXX='$convenience'
  10759. fi
  10760. archive_cmds_need_lc_CXX=yes
  10761. # This is similar to how AIX traditionally builds its shared
  10762. # libraries.
  10763. 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'
  10764. fi
  10765. fi
  10766. ;;
  10767. beos*)
  10768. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10769. allow_undefined_flag_CXX=unsupported
  10770. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10771. # support --undefined. This deserves some investigation. FIXME
  10772. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10773. else
  10774. ld_shlibs_CXX=no
  10775. fi
  10776. ;;
  10777. chorus*)
  10778. case $cc_basename in
  10779. *)
  10780. # FIXME: insert proper C++ library support
  10781. ld_shlibs_CXX=no
  10782. ;;
  10783. esac
  10784. ;;
  10785. cygwin* | mingw* | pw32* | cegcc*)
  10786. case $GXX,$cc_basename in
  10787. ,cl* | no,cl*)
  10788. # Native MSVC
  10789. # hardcode_libdir_flag_spec is actually meaningless, as there is
  10790. # no search path for DLLs.
  10791. hardcode_libdir_flag_spec_CXX=' '
  10792. allow_undefined_flag_CXX=unsupported
  10793. always_export_symbols_CXX=yes
  10794. file_list_spec_CXX='@'
  10795. # Tell ltmain to make .lib files, not .a files.
  10796. libext=lib
  10797. # Tell ltmain to make .dll files, not .so files.
  10798. shrext_cmds=".dll"
  10799. # FIXME: Setting linknames here is a bad hack.
  10800. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  10801. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10802. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  10803. else
  10804. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  10805. fi~
  10806. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  10807. linknames='
  10808. # The linker will not automatically build a static lib if we build a DLL.
  10809. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  10810. enable_shared_with_static_runtimes_CXX=yes
  10811. # Don't use ranlib
  10812. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  10813. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  10814. lt_tool_outputfile="@TOOL_OUTPUT@"~
  10815. case $lt_outputfile in
  10816. *.exe|*.EXE) ;;
  10817. *)
  10818. lt_outputfile="$lt_outputfile.exe"
  10819. lt_tool_outputfile="$lt_tool_outputfile.exe"
  10820. ;;
  10821. esac~
  10822. func_to_tool_file "$lt_outputfile"~
  10823. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  10824. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  10825. $RM "$lt_outputfile.manifest";
  10826. fi'
  10827. ;;
  10828. *)
  10829. # g++
  10830. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10831. # as there is no search path for DLLs.
  10832. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10833. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  10834. allow_undefined_flag_CXX=unsupported
  10835. always_export_symbols_CXX=no
  10836. enable_shared_with_static_runtimes_CXX=yes
  10837. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10838. 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'
  10839. # If the export-symbols file already is a .def file (1st line
  10840. # is EXPORTS), use it as is; otherwise, prepend...
  10841. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10842. cp $export_symbols $output_objdir/$soname.def;
  10843. else
  10844. echo EXPORTS > $output_objdir/$soname.def;
  10845. cat $export_symbols >> $output_objdir/$soname.def;
  10846. fi~
  10847. $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'
  10848. else
  10849. ld_shlibs_CXX=no
  10850. fi
  10851. ;;
  10852. esac
  10853. ;;
  10854. darwin* | rhapsody*)
  10855. archive_cmds_need_lc_CXX=no
  10856. hardcode_direct_CXX=no
  10857. hardcode_automatic_CXX=yes
  10858. hardcode_shlibpath_var_CXX=unsupported
  10859. if test "$lt_cv_ld_force_load" = "yes"; then
  10860. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  10861. else
  10862. whole_archive_flag_spec_CXX=''
  10863. fi
  10864. link_all_deplibs_CXX=yes
  10865. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10866. case $cc_basename in
  10867. ifort*) _lt_dar_can_shared=yes ;;
  10868. *) _lt_dar_can_shared=$GCC ;;
  10869. esac
  10870. if test "$_lt_dar_can_shared" = "yes"; then
  10871. output_verbose_link_cmd=func_echo_all
  10872. 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}"
  10873. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10874. 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}"
  10875. 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}"
  10876. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10877. 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}"
  10878. 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}"
  10879. fi
  10880. else
  10881. ld_shlibs_CXX=no
  10882. fi
  10883. ;;
  10884. dgux*)
  10885. case $cc_basename in
  10886. ec++*)
  10887. # FIXME: insert proper C++ library support
  10888. ld_shlibs_CXX=no
  10889. ;;
  10890. ghcx*)
  10891. # Green Hills C++ Compiler
  10892. # FIXME: insert proper C++ library support
  10893. ld_shlibs_CXX=no
  10894. ;;
  10895. *)
  10896. # FIXME: insert proper C++ library support
  10897. ld_shlibs_CXX=no
  10898. ;;
  10899. esac
  10900. ;;
  10901. freebsd[12]*)
  10902. # C++ shared libraries reported to be fairly broken before
  10903. # switch to ELF
  10904. ld_shlibs_CXX=no
  10905. ;;
  10906. freebsd-elf*)
  10907. archive_cmds_need_lc_CXX=no
  10908. ;;
  10909. freebsd* | dragonfly*)
  10910. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10911. # conventions
  10912. ld_shlibs_CXX=yes
  10913. ;;
  10914. gnu*)
  10915. ;;
  10916. haiku*)
  10917. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10918. link_all_deplibs_CXX=yes
  10919. ;;
  10920. hpux9*)
  10921. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10922. hardcode_libdir_separator_CXX=:
  10923. export_dynamic_flag_spec_CXX='${wl}-E'
  10924. hardcode_direct_CXX=yes
  10925. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10926. # but as the default
  10927. # location of the library.
  10928. case $cc_basename in
  10929. CC*)
  10930. # FIXME: insert proper C++ library support
  10931. ld_shlibs_CXX=no
  10932. ;;
  10933. aCC*)
  10934. 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'
  10935. # Commands to make compiler produce verbose output that lists
  10936. # what "hidden" libraries, object files and flags are used when
  10937. # linking a shared library.
  10938. #
  10939. # There doesn't appear to be a way to prevent this compiler from
  10940. # explicitly linking system object files so we need to strip them
  10941. # from the output so that they don't get included in the library
  10942. # dependencies.
  10943. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  10944. ;;
  10945. *)
  10946. if test "$GXX" = yes; then
  10947. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10948. else
  10949. # FIXME: insert proper C++ library support
  10950. ld_shlibs_CXX=no
  10951. fi
  10952. ;;
  10953. esac
  10954. ;;
  10955. hpux10*|hpux11*)
  10956. if test $with_gnu_ld = no; then
  10957. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10958. hardcode_libdir_separator_CXX=:
  10959. case $host_cpu in
  10960. hppa*64*|ia64*)
  10961. ;;
  10962. *)
  10963. export_dynamic_flag_spec_CXX='${wl}-E'
  10964. ;;
  10965. esac
  10966. fi
  10967. case $host_cpu in
  10968. hppa*64*|ia64*)
  10969. hardcode_direct_CXX=no
  10970. hardcode_shlibpath_var_CXX=no
  10971. ;;
  10972. *)
  10973. hardcode_direct_CXX=yes
  10974. hardcode_direct_absolute_CXX=yes
  10975. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10976. # but as the default
  10977. # location of the library.
  10978. ;;
  10979. esac
  10980. case $cc_basename in
  10981. CC*)
  10982. # FIXME: insert proper C++ library support
  10983. ld_shlibs_CXX=no
  10984. ;;
  10985. aCC*)
  10986. case $host_cpu in
  10987. hppa*64*)
  10988. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10989. ;;
  10990. ia64*)
  10991. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10992. ;;
  10993. *)
  10994. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10995. ;;
  10996. esac
  10997. # Commands to make compiler produce verbose output that lists
  10998. # what "hidden" libraries, object files and flags are used when
  10999. # linking a shared library.
  11000. #
  11001. # There doesn't appear to be a way to prevent this compiler from
  11002. # explicitly linking system object files so we need to strip them
  11003. # from the output so that they don't get included in the library
  11004. # dependencies.
  11005. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11006. ;;
  11007. *)
  11008. if test "$GXX" = yes; then
  11009. if test $with_gnu_ld = no; then
  11010. case $host_cpu in
  11011. hppa*64*)
  11012. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11013. ;;
  11014. ia64*)
  11015. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11016. ;;
  11017. *)
  11018. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11019. ;;
  11020. esac
  11021. fi
  11022. else
  11023. # FIXME: insert proper C++ library support
  11024. ld_shlibs_CXX=no
  11025. fi
  11026. ;;
  11027. esac
  11028. ;;
  11029. interix[3-9]*)
  11030. hardcode_direct_CXX=no
  11031. hardcode_shlibpath_var_CXX=no
  11032. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11033. export_dynamic_flag_spec_CXX='${wl}-E'
  11034. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11035. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11036. # default) and relocated if they conflict, which is a slow very memory
  11037. # consuming and fragmenting process. To avoid this, we pick a random,
  11038. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11039. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11040. 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'
  11041. 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'
  11042. ;;
  11043. irix5* | irix6*)
  11044. case $cc_basename in
  11045. CC*)
  11046. # SGI C++
  11047. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11048. # Archives containing C++ object files must be created using
  11049. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11050. # necessary to make sure instantiated templates are included
  11051. # in the archive.
  11052. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11053. ;;
  11054. *)
  11055. if test "$GXX" = yes; then
  11056. if test "$with_gnu_ld" = no; then
  11057. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11058. else
  11059. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11060. fi
  11061. fi
  11062. link_all_deplibs_CXX=yes
  11063. ;;
  11064. esac
  11065. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11066. hardcode_libdir_separator_CXX=:
  11067. inherit_rpath_CXX=yes
  11068. ;;
  11069. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11070. case $cc_basename in
  11071. KCC*)
  11072. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11073. # KCC will only create a shared library if the output file
  11074. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11075. # to its proper name (with version) after linking.
  11076. 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'
  11077. 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'
  11078. # Commands to make compiler produce verbose output that lists
  11079. # what "hidden" libraries, object files and flags are used when
  11080. # linking a shared library.
  11081. #
  11082. # There doesn't appear to be a way to prevent this compiler from
  11083. # explicitly linking system object files so we need to strip them
  11084. # from the output so that they don't get included in the library
  11085. # dependencies.
  11086. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11087. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11088. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11089. # Archives containing C++ object files must be created using
  11090. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11091. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11092. ;;
  11093. icpc* | ecpc* )
  11094. # Intel C++
  11095. with_gnu_ld=yes
  11096. # version 8.0 and above of icpc choke on multiply defined symbols
  11097. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11098. # earlier do not add the objects themselves.
  11099. case `$CC -V 2>&1` in
  11100. *"Version 7."*)
  11101. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11102. 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'
  11103. ;;
  11104. *) # Version 8.0 or newer
  11105. tmp_idyn=
  11106. case $host_cpu in
  11107. ia64*) tmp_idyn=' -i_dynamic';;
  11108. esac
  11109. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11110. 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'
  11111. ;;
  11112. esac
  11113. archive_cmds_need_lc_CXX=no
  11114. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11115. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11116. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11117. ;;
  11118. pgCC* | pgcpp*)
  11119. # Portland Group C++ compiler
  11120. case `$CC -V` in
  11121. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11122. prelink_cmds_CXX='tpldir=Template.dir~
  11123. rm -rf $tpldir~
  11124. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11125. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11126. old_archive_cmds_CXX='tpldir=Template.dir~
  11127. rm -rf $tpldir~
  11128. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11129. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11130. $RANLIB $oldlib'
  11131. archive_cmds_CXX='tpldir=Template.dir~
  11132. rm -rf $tpldir~
  11133. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11134. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11135. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11136. rm -rf $tpldir~
  11137. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11138. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11139. ;;
  11140. *) # Version 6 and above use weak symbols
  11141. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11142. 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'
  11143. ;;
  11144. esac
  11145. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11146. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11147. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11148. ;;
  11149. cxx*)
  11150. # Compaq C++
  11151. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11152. 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'
  11153. runpath_var=LD_RUN_PATH
  11154. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11155. hardcode_libdir_separator_CXX=:
  11156. # Commands to make compiler produce verbose output that lists
  11157. # what "hidden" libraries, object files and flags are used when
  11158. # linking a shared library.
  11159. #
  11160. # There doesn't appear to be a way to prevent this compiler from
  11161. # explicitly linking system object files so we need to strip them
  11162. # from the output so that they don't get included in the library
  11163. # dependencies.
  11164. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11165. ;;
  11166. xl* | mpixl* | bgxl*)
  11167. # IBM XL 8.0 on PPC, with GNU ld
  11168. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11169. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11170. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11171. if test "x$supports_anon_versioning" = xyes; then
  11172. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11173. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11174. echo "local: *; };" >> $output_objdir/$libname.ver~
  11175. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11176. fi
  11177. ;;
  11178. *)
  11179. case `$CC -V 2>&1 | sed 5q` in
  11180. *Sun\ C*)
  11181. # Sun C++ 5.9
  11182. no_undefined_flag_CXX=' -zdefs'
  11183. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11184. 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'
  11185. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11186. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  11187. compiler_needs_object_CXX=yes
  11188. # Not sure whether something based on
  11189. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11190. # would be better.
  11191. output_verbose_link_cmd='func_echo_all'
  11192. # Archives containing C++ object files must be created using
  11193. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11194. # necessary to make sure instantiated templates are included
  11195. # in the archive.
  11196. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11197. ;;
  11198. esac
  11199. ;;
  11200. esac
  11201. ;;
  11202. lynxos*)
  11203. # FIXME: insert proper C++ library support
  11204. ld_shlibs_CXX=no
  11205. ;;
  11206. m88k*)
  11207. # FIXME: insert proper C++ library support
  11208. ld_shlibs_CXX=no
  11209. ;;
  11210. mvs*)
  11211. case $cc_basename in
  11212. cxx*)
  11213. # FIXME: insert proper C++ library support
  11214. ld_shlibs_CXX=no
  11215. ;;
  11216. *)
  11217. # FIXME: insert proper C++ library support
  11218. ld_shlibs_CXX=no
  11219. ;;
  11220. esac
  11221. ;;
  11222. netbsd*)
  11223. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11224. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11225. wlarc=
  11226. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11227. hardcode_direct_CXX=yes
  11228. hardcode_shlibpath_var_CXX=no
  11229. fi
  11230. # Workaround some broken pre-1.5 toolchains
  11231. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11232. ;;
  11233. *nto* | *qnx*)
  11234. ld_shlibs_CXX=yes
  11235. ;;
  11236. openbsd2*)
  11237. # C++ shared libraries are fairly broken
  11238. ld_shlibs_CXX=no
  11239. ;;
  11240. openbsd*)
  11241. if test -f /usr/libexec/ld.so; then
  11242. hardcode_direct_CXX=yes
  11243. hardcode_shlibpath_var_CXX=no
  11244. hardcode_direct_absolute_CXX=yes
  11245. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11246. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11247. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11248. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11249. export_dynamic_flag_spec_CXX='${wl}-E'
  11250. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11251. fi
  11252. output_verbose_link_cmd=func_echo_all
  11253. else
  11254. ld_shlibs_CXX=no
  11255. fi
  11256. ;;
  11257. osf3* | osf4* | osf5*)
  11258. case $cc_basename in
  11259. KCC*)
  11260. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11261. # KCC will only create a shared library if the output file
  11262. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11263. # to its proper name (with version) after linking.
  11264. 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'
  11265. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11266. hardcode_libdir_separator_CXX=:
  11267. # Archives containing C++ object files must be created using
  11268. # the KAI C++ compiler.
  11269. case $host in
  11270. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11271. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11272. esac
  11273. ;;
  11274. RCC*)
  11275. # Rational C++ 2.4.1
  11276. # FIXME: insert proper C++ library support
  11277. ld_shlibs_CXX=no
  11278. ;;
  11279. cxx*)
  11280. case $host in
  11281. osf3*)
  11282. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11283. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11284. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11285. ;;
  11286. *)
  11287. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11288. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11289. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11290. echo "-hidden">> $lib.exp~
  11291. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  11292. $RM $lib.exp'
  11293. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11294. ;;
  11295. esac
  11296. hardcode_libdir_separator_CXX=:
  11297. # Commands to make compiler produce verbose output that lists
  11298. # what "hidden" libraries, object files and flags are used when
  11299. # linking a shared library.
  11300. #
  11301. # There doesn't appear to be a way to prevent this compiler from
  11302. # explicitly linking system object files so we need to strip them
  11303. # from the output so that they don't get included in the library
  11304. # dependencies.
  11305. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11306. ;;
  11307. *)
  11308. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11309. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11310. case $host in
  11311. osf3*)
  11312. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11313. ;;
  11314. *)
  11315. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  11316. ;;
  11317. esac
  11318. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11319. hardcode_libdir_separator_CXX=:
  11320. # Commands to make compiler produce verbose output that lists
  11321. # what "hidden" libraries, object files and flags are used when
  11322. # linking a shared library.
  11323. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11324. else
  11325. # FIXME: insert proper C++ library support
  11326. ld_shlibs_CXX=no
  11327. fi
  11328. ;;
  11329. esac
  11330. ;;
  11331. psos*)
  11332. # FIXME: insert proper C++ library support
  11333. ld_shlibs_CXX=no
  11334. ;;
  11335. sunos4*)
  11336. case $cc_basename in
  11337. CC*)
  11338. # Sun C++ 4.x
  11339. # FIXME: insert proper C++ library support
  11340. ld_shlibs_CXX=no
  11341. ;;
  11342. lcc*)
  11343. # Lucid
  11344. # FIXME: insert proper C++ library support
  11345. ld_shlibs_CXX=no
  11346. ;;
  11347. *)
  11348. # FIXME: insert proper C++ library support
  11349. ld_shlibs_CXX=no
  11350. ;;
  11351. esac
  11352. ;;
  11353. solaris*)
  11354. case $cc_basename in
  11355. CC* | sunCC*)
  11356. # Sun C++ 4.2, 5.x and Centerline C++
  11357. archive_cmds_need_lc_CXX=yes
  11358. no_undefined_flag_CXX=' -zdefs'
  11359. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11360. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11361. $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'
  11362. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11363. hardcode_shlibpath_var_CXX=no
  11364. case $host_os in
  11365. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11366. *)
  11367. # The compiler driver will combine and reorder linker options,
  11368. # but understands `-z linker_flag'.
  11369. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11370. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11371. ;;
  11372. esac
  11373. link_all_deplibs_CXX=yes
  11374. output_verbose_link_cmd='func_echo_all'
  11375. # Archives containing C++ object files must be created using
  11376. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11377. # necessary to make sure instantiated templates are included
  11378. # in the archive.
  11379. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11380. ;;
  11381. gcx*)
  11382. # Green Hills C++ Compiler
  11383. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11384. # The C++ compiler must be used to create the archive.
  11385. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11386. ;;
  11387. *)
  11388. # GNU C++ compiler with Solaris linker
  11389. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11390. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11391. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11392. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11393. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11394. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11395. # Commands to make compiler produce verbose output that lists
  11396. # what "hidden" libraries, object files and flags are used when
  11397. # linking a shared library.
  11398. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11399. else
  11400. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11401. # platform.
  11402. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11403. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11404. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11405. # Commands to make compiler produce verbose output that lists
  11406. # what "hidden" libraries, object files and flags are used when
  11407. # linking a shared library.
  11408. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11409. fi
  11410. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11411. case $host_os in
  11412. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11413. *)
  11414. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11415. ;;
  11416. esac
  11417. fi
  11418. ;;
  11419. esac
  11420. ;;
  11421. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11422. no_undefined_flag_CXX='${wl}-z,text'
  11423. archive_cmds_need_lc_CXX=no
  11424. hardcode_shlibpath_var_CXX=no
  11425. runpath_var='LD_RUN_PATH'
  11426. case $cc_basename in
  11427. CC*)
  11428. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11429. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11430. ;;
  11431. *)
  11432. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11433. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11434. ;;
  11435. esac
  11436. ;;
  11437. sysv5* | sco3.2v5* | sco5v6*)
  11438. # Note: We can NOT use -z defs as we might desire, because we do not
  11439. # link with -lc, and that would cause any symbols used from libc to
  11440. # always be unresolved, which means just about no library would
  11441. # ever link correctly. If we're not using GNU ld we use -z text
  11442. # though, which does catch some bad symbols but isn't as heavy-handed
  11443. # as -z defs.
  11444. no_undefined_flag_CXX='${wl}-z,text'
  11445. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11446. archive_cmds_need_lc_CXX=no
  11447. hardcode_shlibpath_var_CXX=no
  11448. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11449. hardcode_libdir_separator_CXX=':'
  11450. link_all_deplibs_CXX=yes
  11451. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11452. runpath_var='LD_RUN_PATH'
  11453. case $cc_basename in
  11454. CC*)
  11455. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11456. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11457. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11458. '"$old_archive_cmds_CXX"
  11459. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11460. '"$reload_cmds_CXX"
  11461. ;;
  11462. *)
  11463. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11464. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11465. ;;
  11466. esac
  11467. ;;
  11468. tandem*)
  11469. case $cc_basename in
  11470. NCC*)
  11471. # NonStop-UX NCC 3.20
  11472. # FIXME: insert proper C++ library support
  11473. ld_shlibs_CXX=no
  11474. ;;
  11475. *)
  11476. # FIXME: insert proper C++ library support
  11477. ld_shlibs_CXX=no
  11478. ;;
  11479. esac
  11480. ;;
  11481. vxworks*)
  11482. # FIXME: insert proper C++ library support
  11483. ld_shlibs_CXX=no
  11484. ;;
  11485. *)
  11486. # FIXME: insert proper C++ library support
  11487. ld_shlibs_CXX=no
  11488. ;;
  11489. esac
  11490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11491. $as_echo "$ld_shlibs_CXX" >&6; }
  11492. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11493. GCC_CXX="$GXX"
  11494. LD_CXX="$LD"
  11495. ## CAVEAT EMPTOR:
  11496. ## There is no encapsulation within the following macros, do not change
  11497. ## the running order or otherwise move them around unless you know exactly
  11498. ## what you are doing...
  11499. # Dependencies to place before and after the object being linked:
  11500. predep_objects_CXX=
  11501. postdep_objects_CXX=
  11502. predeps_CXX=
  11503. postdeps_CXX=
  11504. compiler_lib_search_path_CXX=
  11505. cat > conftest.$ac_ext <<_LT_EOF
  11506. class Foo
  11507. {
  11508. public:
  11509. Foo (void) { a = 0; }
  11510. private:
  11511. int a;
  11512. };
  11513. _LT_EOF
  11514. _lt_libdeps_save_CFLAGS=$CFLAGS
  11515. case "$CC $CFLAGS " in #(
  11516. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11517. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11518. esac
  11519. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11520. (eval $ac_compile) 2>&5
  11521. ac_status=$?
  11522. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11523. test $ac_status = 0; }; then
  11524. # Parse the compiler output and extract the necessary
  11525. # objects, libraries and library flags.
  11526. # Sentinel used to keep track of whether or not we are before
  11527. # the conftest object file.
  11528. pre_test_object_deps_done=no
  11529. for p in `eval "$output_verbose_link_cmd"`; do
  11530. case ${prev}${p} in
  11531. -L* | -R* | -l*)
  11532. # Some compilers place space between "-{L,R}" and the path.
  11533. # Remove the space.
  11534. if test $p = "-L" ||
  11535. test $p = "-R"; then
  11536. prev=$p
  11537. continue
  11538. fi
  11539. # Expand the sysroot to ease extracting the directories later.
  11540. if test -z "$prev"; then
  11541. case $p in
  11542. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11543. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11544. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11545. esac
  11546. fi
  11547. case $p in
  11548. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11549. esac
  11550. if test "$pre_test_object_deps_done" = no; then
  11551. case ${prev} in
  11552. -L | -R)
  11553. # Internal compiler library paths should come after those
  11554. # provided the user. The postdeps already come after the
  11555. # user supplied libs so there is no need to process them.
  11556. if test -z "$compiler_lib_search_path_CXX"; then
  11557. compiler_lib_search_path_CXX="${prev}${p}"
  11558. else
  11559. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11560. fi
  11561. ;;
  11562. # The "-l" case would never come before the object being
  11563. # linked, so don't bother handling this case.
  11564. esac
  11565. else
  11566. if test -z "$postdeps_CXX"; then
  11567. postdeps_CXX="${prev}${p}"
  11568. else
  11569. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11570. fi
  11571. fi
  11572. prev=
  11573. ;;
  11574. *.lto.$objext) ;; # Ignore GCC LTO objects
  11575. *.$objext)
  11576. # This assumes that the test object file only shows up
  11577. # once in the compiler output.
  11578. if test "$p" = "conftest.$objext"; then
  11579. pre_test_object_deps_done=yes
  11580. continue
  11581. fi
  11582. if test "$pre_test_object_deps_done" = no; then
  11583. if test -z "$predep_objects_CXX"; then
  11584. predep_objects_CXX="$p"
  11585. else
  11586. predep_objects_CXX="$predep_objects_CXX $p"
  11587. fi
  11588. else
  11589. if test -z "$postdep_objects_CXX"; then
  11590. postdep_objects_CXX="$p"
  11591. else
  11592. postdep_objects_CXX="$postdep_objects_CXX $p"
  11593. fi
  11594. fi
  11595. ;;
  11596. *) ;; # Ignore the rest.
  11597. esac
  11598. done
  11599. # Clean up.
  11600. rm -f a.out a.exe
  11601. else
  11602. echo "libtool.m4: error: problem compiling CXX test program"
  11603. fi
  11604. $RM -f confest.$objext
  11605. CFLAGS=$_lt_libdeps_save_CFLAGS
  11606. # PORTME: override above test on systems where it is broken
  11607. case $host_os in
  11608. interix[3-9]*)
  11609. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11610. # hack all around it, let's just trust "g++" to DTRT.
  11611. predep_objects_CXX=
  11612. postdep_objects_CXX=
  11613. postdeps_CXX=
  11614. ;;
  11615. linux*)
  11616. case `$CC -V 2>&1 | sed 5q` in
  11617. *Sun\ C*)
  11618. # Sun C++ 5.9
  11619. # The more standards-conforming stlport4 library is
  11620. # incompatible with the Cstd library. Avoid specifying
  11621. # it if it's in CXXFLAGS. Ignore libCrun as
  11622. # -library=stlport4 depends on it.
  11623. case " $CXX $CXXFLAGS " in
  11624. *" -library=stlport4 "*)
  11625. solaris_use_stlport4=yes
  11626. ;;
  11627. esac
  11628. if test "$solaris_use_stlport4" != yes; then
  11629. postdeps_CXX='-library=Cstd -library=Crun'
  11630. fi
  11631. ;;
  11632. esac
  11633. ;;
  11634. solaris*)
  11635. case $cc_basename in
  11636. CC* | sunCC*)
  11637. # The more standards-conforming stlport4 library is
  11638. # incompatible with the Cstd library. Avoid specifying
  11639. # it if it's in CXXFLAGS. Ignore libCrun as
  11640. # -library=stlport4 depends on it.
  11641. case " $CXX $CXXFLAGS " in
  11642. *" -library=stlport4 "*)
  11643. solaris_use_stlport4=yes
  11644. ;;
  11645. esac
  11646. # Adding this requires a known-good setup of shared libraries for
  11647. # Sun compiler versions before 5.6, else PIC objects from an old
  11648. # archive will be linked into the output, leading to subtle bugs.
  11649. if test "$solaris_use_stlport4" != yes; then
  11650. postdeps_CXX='-library=Cstd -library=Crun'
  11651. fi
  11652. ;;
  11653. esac
  11654. ;;
  11655. esac
  11656. case " $postdeps_CXX " in
  11657. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11658. esac
  11659. compiler_lib_search_dirs_CXX=
  11660. if test -n "${compiler_lib_search_path_CXX}"; then
  11661. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11662. fi
  11663. lt_prog_compiler_wl_CXX=
  11664. lt_prog_compiler_pic_CXX=
  11665. lt_prog_compiler_static_CXX=
  11666. # C++ specific cases for pic, static, wl, etc.
  11667. if test "$GXX" = yes; then
  11668. lt_prog_compiler_wl_CXX='-Wl,'
  11669. lt_prog_compiler_static_CXX='-static'
  11670. case $host_os in
  11671. aix*)
  11672. # All AIX code is PIC.
  11673. if test "$host_cpu" = ia64; then
  11674. # AIX 5 now supports IA64 processor
  11675. lt_prog_compiler_static_CXX='-Bstatic'
  11676. fi
  11677. ;;
  11678. amigaos*)
  11679. case $host_cpu in
  11680. powerpc)
  11681. # see comment about AmigaOS4 .so support
  11682. lt_prog_compiler_pic_CXX='-fPIC'
  11683. ;;
  11684. m68k)
  11685. # FIXME: we need at least 68020 code to build shared libraries, but
  11686. # adding the `-m68020' flag to GCC prevents building anything better,
  11687. # like `-m68040'.
  11688. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11689. ;;
  11690. esac
  11691. ;;
  11692. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11693. # PIC is the default for these OSes.
  11694. ;;
  11695. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11696. # This hack is so that the source file can tell whether it is being
  11697. # built for inclusion in a dll (and should export symbols for example).
  11698. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11699. # (--disable-auto-import) libraries
  11700. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11701. ;;
  11702. darwin* | rhapsody*)
  11703. # PIC is the default on this platform
  11704. # Common symbols not allowed in MH_DYLIB files
  11705. lt_prog_compiler_pic_CXX='-fno-common'
  11706. ;;
  11707. *djgpp*)
  11708. # DJGPP does not support shared libraries at all
  11709. lt_prog_compiler_pic_CXX=
  11710. ;;
  11711. haiku*)
  11712. # PIC is the default for Haiku.
  11713. # The "-static" flag exists, but is broken.
  11714. lt_prog_compiler_static_CXX=
  11715. ;;
  11716. interix[3-9]*)
  11717. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11718. # Instead, we relocate shared libraries at runtime.
  11719. ;;
  11720. sysv4*MP*)
  11721. if test -d /usr/nec; then
  11722. lt_prog_compiler_pic_CXX=-Kconform_pic
  11723. fi
  11724. ;;
  11725. hpux*)
  11726. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11727. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11728. # sets the default TLS model and affects inlining.
  11729. case $host_cpu in
  11730. hppa*64*)
  11731. ;;
  11732. *)
  11733. lt_prog_compiler_pic_CXX='-fPIC'
  11734. ;;
  11735. esac
  11736. ;;
  11737. *qnx* | *nto*)
  11738. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11739. # it will coredump.
  11740. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11741. ;;
  11742. *)
  11743. lt_prog_compiler_pic_CXX='-fPIC'
  11744. ;;
  11745. esac
  11746. else
  11747. case $host_os in
  11748. aix[4-9]*)
  11749. # All AIX code is PIC.
  11750. if test "$host_cpu" = ia64; then
  11751. # AIX 5 now supports IA64 processor
  11752. lt_prog_compiler_static_CXX='-Bstatic'
  11753. else
  11754. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11755. fi
  11756. ;;
  11757. chorus*)
  11758. case $cc_basename in
  11759. cxch68*)
  11760. # Green Hills C++ Compiler
  11761. # _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"
  11762. ;;
  11763. esac
  11764. ;;
  11765. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11766. # This hack is so that the source file can tell whether it is being
  11767. # built for inclusion in a dll (and should export symbols for example).
  11768. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11769. ;;
  11770. dgux*)
  11771. case $cc_basename in
  11772. ec++*)
  11773. lt_prog_compiler_pic_CXX='-KPIC'
  11774. ;;
  11775. ghcx*)
  11776. # Green Hills C++ Compiler
  11777. lt_prog_compiler_pic_CXX='-pic'
  11778. ;;
  11779. *)
  11780. ;;
  11781. esac
  11782. ;;
  11783. freebsd* | dragonfly*)
  11784. # FreeBSD uses GNU C++
  11785. ;;
  11786. hpux9* | hpux10* | hpux11*)
  11787. case $cc_basename in
  11788. CC*)
  11789. lt_prog_compiler_wl_CXX='-Wl,'
  11790. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11791. if test "$host_cpu" != ia64; then
  11792. lt_prog_compiler_pic_CXX='+Z'
  11793. fi
  11794. ;;
  11795. aCC*)
  11796. lt_prog_compiler_wl_CXX='-Wl,'
  11797. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11798. case $host_cpu in
  11799. hppa*64*|ia64*)
  11800. # +Z the default
  11801. ;;
  11802. *)
  11803. lt_prog_compiler_pic_CXX='+Z'
  11804. ;;
  11805. esac
  11806. ;;
  11807. *)
  11808. ;;
  11809. esac
  11810. ;;
  11811. interix*)
  11812. # This is c89, which is MS Visual C++ (no shared libs)
  11813. # Anyone wants to do a port?
  11814. ;;
  11815. irix5* | irix6* | nonstopux*)
  11816. case $cc_basename in
  11817. CC*)
  11818. lt_prog_compiler_wl_CXX='-Wl,'
  11819. lt_prog_compiler_static_CXX='-non_shared'
  11820. # CC pic flag -KPIC is the default.
  11821. ;;
  11822. *)
  11823. ;;
  11824. esac
  11825. ;;
  11826. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11827. case $cc_basename in
  11828. KCC*)
  11829. # KAI C++ Compiler
  11830. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11831. lt_prog_compiler_pic_CXX='-fPIC'
  11832. ;;
  11833. ecpc* )
  11834. # old Intel C++ for x86_64 which still supported -KPIC.
  11835. lt_prog_compiler_wl_CXX='-Wl,'
  11836. lt_prog_compiler_pic_CXX='-KPIC'
  11837. lt_prog_compiler_static_CXX='-static'
  11838. ;;
  11839. icpc* )
  11840. # Intel C++, used to be incompatible with GCC.
  11841. # ICC 10 doesn't accept -KPIC any more.
  11842. lt_prog_compiler_wl_CXX='-Wl,'
  11843. lt_prog_compiler_pic_CXX='-fPIC'
  11844. lt_prog_compiler_static_CXX='-static'
  11845. ;;
  11846. pgCC* | pgcpp*)
  11847. # Portland Group C++ compiler
  11848. lt_prog_compiler_wl_CXX='-Wl,'
  11849. lt_prog_compiler_pic_CXX='-fpic'
  11850. lt_prog_compiler_static_CXX='-Bstatic'
  11851. ;;
  11852. cxx*)
  11853. # Compaq C++
  11854. # Make sure the PIC flag is empty. It appears that all Alpha
  11855. # Linux and Compaq Tru64 Unix objects are PIC.
  11856. lt_prog_compiler_pic_CXX=
  11857. lt_prog_compiler_static_CXX='-non_shared'
  11858. ;;
  11859. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  11860. # IBM XL 8.0, 9.0 on PPC and BlueGene
  11861. lt_prog_compiler_wl_CXX='-Wl,'
  11862. lt_prog_compiler_pic_CXX='-qpic'
  11863. lt_prog_compiler_static_CXX='-qstaticlink'
  11864. ;;
  11865. *)
  11866. case `$CC -V 2>&1 | sed 5q` in
  11867. *Sun\ C*)
  11868. # Sun C++ 5.9
  11869. lt_prog_compiler_pic_CXX='-KPIC'
  11870. lt_prog_compiler_static_CXX='-Bstatic'
  11871. lt_prog_compiler_wl_CXX='-Qoption ld '
  11872. ;;
  11873. esac
  11874. ;;
  11875. esac
  11876. ;;
  11877. lynxos*)
  11878. ;;
  11879. m88k*)
  11880. ;;
  11881. mvs*)
  11882. case $cc_basename in
  11883. cxx*)
  11884. lt_prog_compiler_pic_CXX='-W c,exportall'
  11885. ;;
  11886. *)
  11887. ;;
  11888. esac
  11889. ;;
  11890. netbsd* | netbsdelf*-gnu)
  11891. ;;
  11892. *qnx* | *nto*)
  11893. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11894. # it will coredump.
  11895. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11896. ;;
  11897. osf3* | osf4* | osf5*)
  11898. case $cc_basename in
  11899. KCC*)
  11900. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11901. ;;
  11902. RCC*)
  11903. # Rational C++ 2.4.1
  11904. lt_prog_compiler_pic_CXX='-pic'
  11905. ;;
  11906. cxx*)
  11907. # Digital/Compaq C++
  11908. lt_prog_compiler_wl_CXX='-Wl,'
  11909. # Make sure the PIC flag is empty. It appears that all Alpha
  11910. # Linux and Compaq Tru64 Unix objects are PIC.
  11911. lt_prog_compiler_pic_CXX=
  11912. lt_prog_compiler_static_CXX='-non_shared'
  11913. ;;
  11914. *)
  11915. ;;
  11916. esac
  11917. ;;
  11918. psos*)
  11919. ;;
  11920. solaris*)
  11921. case $cc_basename in
  11922. CC* | sunCC*)
  11923. # Sun C++ 4.2, 5.x and Centerline C++
  11924. lt_prog_compiler_pic_CXX='-KPIC'
  11925. lt_prog_compiler_static_CXX='-Bstatic'
  11926. lt_prog_compiler_wl_CXX='-Qoption ld '
  11927. ;;
  11928. gcx*)
  11929. # Green Hills C++ Compiler
  11930. lt_prog_compiler_pic_CXX='-PIC'
  11931. ;;
  11932. *)
  11933. ;;
  11934. esac
  11935. ;;
  11936. sunos4*)
  11937. case $cc_basename in
  11938. CC*)
  11939. # Sun C++ 4.x
  11940. lt_prog_compiler_pic_CXX='-pic'
  11941. lt_prog_compiler_static_CXX='-Bstatic'
  11942. ;;
  11943. lcc*)
  11944. # Lucid
  11945. lt_prog_compiler_pic_CXX='-pic'
  11946. ;;
  11947. *)
  11948. ;;
  11949. esac
  11950. ;;
  11951. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11952. case $cc_basename in
  11953. CC*)
  11954. lt_prog_compiler_wl_CXX='-Wl,'
  11955. lt_prog_compiler_pic_CXX='-KPIC'
  11956. lt_prog_compiler_static_CXX='-Bstatic'
  11957. ;;
  11958. esac
  11959. ;;
  11960. tandem*)
  11961. case $cc_basename in
  11962. NCC*)
  11963. # NonStop-UX NCC 3.20
  11964. lt_prog_compiler_pic_CXX='-KPIC'
  11965. ;;
  11966. *)
  11967. ;;
  11968. esac
  11969. ;;
  11970. vxworks*)
  11971. ;;
  11972. *)
  11973. lt_prog_compiler_can_build_shared_CXX=no
  11974. ;;
  11975. esac
  11976. fi
  11977. case $host_os in
  11978. # For platforms which do not support PIC, -DPIC is meaningless:
  11979. *djgpp*)
  11980. lt_prog_compiler_pic_CXX=
  11981. ;;
  11982. *)
  11983. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11984. ;;
  11985. esac
  11986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11987. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11988. if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then :
  11989. $as_echo_n "(cached) " >&6
  11990. else
  11991. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  11992. fi
  11993. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  11994. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  11995. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  11996. #
  11997. # Check to make sure the PIC flag actually works.
  11998. #
  11999. if test -n "$lt_prog_compiler_pic_CXX"; then
  12000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12001. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12002. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  12003. $as_echo_n "(cached) " >&6
  12004. else
  12005. lt_cv_prog_compiler_pic_works_CXX=no
  12006. ac_outfile=conftest.$ac_objext
  12007. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12008. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12009. # Insert the option either (1) after the last *FLAGS variable, or
  12010. # (2) before a word containing "conftest.", or (3) at the end.
  12011. # Note that $ac_compile itself does not contain backslashes and begins
  12012. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12013. # The option is referenced via a variable to avoid confusing sed.
  12014. lt_compile=`echo "$ac_compile" | $SED \
  12015. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12016. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12017. -e 's:$: $lt_compiler_flag:'`
  12018. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12019. (eval "$lt_compile" 2>conftest.err)
  12020. ac_status=$?
  12021. cat conftest.err >&5
  12022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12023. if (exit $ac_status) && test -s "$ac_outfile"; then
  12024. # The compiler can only warn and ignore the option if not recognized
  12025. # So say no if there are warnings other than the usual output.
  12026. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12027. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12028. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12029. lt_cv_prog_compiler_pic_works_CXX=yes
  12030. fi
  12031. fi
  12032. $RM conftest*
  12033. fi
  12034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12035. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12036. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12037. case $lt_prog_compiler_pic_CXX in
  12038. "" | " "*) ;;
  12039. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12040. esac
  12041. else
  12042. lt_prog_compiler_pic_CXX=
  12043. lt_prog_compiler_can_build_shared_CXX=no
  12044. fi
  12045. fi
  12046. #
  12047. # Check to make sure the static flag actually works.
  12048. #
  12049. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12050. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12051. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12052. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  12053. $as_echo_n "(cached) " >&6
  12054. else
  12055. lt_cv_prog_compiler_static_works_CXX=no
  12056. save_LDFLAGS="$LDFLAGS"
  12057. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12058. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12059. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12060. # The linker can only warn and ignore the option if not recognized
  12061. # So say no if there are warnings
  12062. if test -s conftest.err; then
  12063. # Append any errors to the config.log.
  12064. cat conftest.err 1>&5
  12065. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12066. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12067. if diff conftest.exp conftest.er2 >/dev/null; then
  12068. lt_cv_prog_compiler_static_works_CXX=yes
  12069. fi
  12070. else
  12071. lt_cv_prog_compiler_static_works_CXX=yes
  12072. fi
  12073. fi
  12074. $RM -r conftest*
  12075. LDFLAGS="$save_LDFLAGS"
  12076. fi
  12077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12078. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12079. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12080. :
  12081. else
  12082. lt_prog_compiler_static_CXX=
  12083. fi
  12084. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12085. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12086. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  12087. $as_echo_n "(cached) " >&6
  12088. else
  12089. lt_cv_prog_compiler_c_o_CXX=no
  12090. $RM -r conftest 2>/dev/null
  12091. mkdir conftest
  12092. cd conftest
  12093. mkdir out
  12094. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12095. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12096. # Insert the option either (1) after the last *FLAGS variable, or
  12097. # (2) before a word containing "conftest.", or (3) at the end.
  12098. # Note that $ac_compile itself does not contain backslashes and begins
  12099. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12100. lt_compile=`echo "$ac_compile" | $SED \
  12101. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12102. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12103. -e 's:$: $lt_compiler_flag:'`
  12104. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12105. (eval "$lt_compile" 2>out/conftest.err)
  12106. ac_status=$?
  12107. cat out/conftest.err >&5
  12108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12109. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12110. then
  12111. # The compiler can only warn and ignore the option if not recognized
  12112. # So say no if there are warnings
  12113. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12114. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12115. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12116. lt_cv_prog_compiler_c_o_CXX=yes
  12117. fi
  12118. fi
  12119. chmod u+w . 2>&5
  12120. $RM conftest*
  12121. # SGI C++ compiler will create directory out/ii_files/ for
  12122. # template instantiation
  12123. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12124. $RM out/* && rmdir out
  12125. cd ..
  12126. $RM -r conftest
  12127. $RM conftest*
  12128. fi
  12129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12130. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12132. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12133. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  12134. $as_echo_n "(cached) " >&6
  12135. else
  12136. lt_cv_prog_compiler_c_o_CXX=no
  12137. $RM -r conftest 2>/dev/null
  12138. mkdir conftest
  12139. cd conftest
  12140. mkdir out
  12141. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12142. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12143. # Insert the option either (1) after the last *FLAGS variable, or
  12144. # (2) before a word containing "conftest.", or (3) at the end.
  12145. # Note that $ac_compile itself does not contain backslashes and begins
  12146. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12147. lt_compile=`echo "$ac_compile" | $SED \
  12148. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12149. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12150. -e 's:$: $lt_compiler_flag:'`
  12151. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12152. (eval "$lt_compile" 2>out/conftest.err)
  12153. ac_status=$?
  12154. cat out/conftest.err >&5
  12155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12156. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12157. then
  12158. # The compiler can only warn and ignore the option if not recognized
  12159. # So say no if there are warnings
  12160. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12161. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12162. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12163. lt_cv_prog_compiler_c_o_CXX=yes
  12164. fi
  12165. fi
  12166. chmod u+w . 2>&5
  12167. $RM conftest*
  12168. # SGI C++ compiler will create directory out/ii_files/ for
  12169. # template instantiation
  12170. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12171. $RM out/* && rmdir out
  12172. cd ..
  12173. $RM -r conftest
  12174. $RM conftest*
  12175. fi
  12176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12177. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12178. hard_links="nottested"
  12179. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12180. # do not overwrite the value of need_locks provided by the user
  12181. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12182. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12183. hard_links=yes
  12184. $RM conftest*
  12185. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12186. touch conftest.a
  12187. ln conftest.a conftest.b 2>&5 || hard_links=no
  12188. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12190. $as_echo "$hard_links" >&6; }
  12191. if test "$hard_links" = no; then
  12192. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12193. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12194. need_locks=warn
  12195. fi
  12196. else
  12197. need_locks=no
  12198. fi
  12199. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12200. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12201. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12202. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12203. case $host_os in
  12204. aix[4-9]*)
  12205. # If we're using GNU nm, then we don't want the "-C" option.
  12206. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12207. # Also, AIX nm treats weak defined symbols like other global defined
  12208. # symbols, whereas GNU nm marks them as "W".
  12209. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12210. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12211. else
  12212. 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'
  12213. fi
  12214. ;;
  12215. pw32*)
  12216. export_symbols_cmds_CXX="$ltdll_cmds"
  12217. ;;
  12218. cygwin* | mingw* | cegcc*)
  12219. case $cc_basename in
  12220. cl*) ;;
  12221. *)
  12222. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12223. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12224. ;;
  12225. esac
  12226. ;;
  12227. linux* | k*bsd*-gnu | gnu*)
  12228. link_all_deplibs_CXX=no
  12229. ;;
  12230. *)
  12231. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12232. ;;
  12233. esac
  12234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12235. $as_echo "$ld_shlibs_CXX" >&6; }
  12236. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12237. with_gnu_ld_CXX=$with_gnu_ld
  12238. #
  12239. # Do we need to explicitly link libc?
  12240. #
  12241. case "x$archive_cmds_need_lc_CXX" in
  12242. x|xyes)
  12243. # Assume -lc should be added
  12244. archive_cmds_need_lc_CXX=yes
  12245. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12246. case $archive_cmds_CXX in
  12247. *'~'*)
  12248. # FIXME: we may have to deal with multi-command sequences.
  12249. ;;
  12250. '$CC '*)
  12251. # Test whether the compiler implicitly links with -lc since on some
  12252. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12253. # to ld, don't add -lc before -lgcc.
  12254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12255. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12256. if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
  12257. $as_echo_n "(cached) " >&6
  12258. else
  12259. $RM conftest*
  12260. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12261. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12262. (eval $ac_compile) 2>&5
  12263. ac_status=$?
  12264. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12265. test $ac_status = 0; } 2>conftest.err; then
  12266. soname=conftest
  12267. lib=conftest
  12268. libobjs=conftest.$ac_objext
  12269. deplibs=
  12270. wl=$lt_prog_compiler_wl_CXX
  12271. pic_flag=$lt_prog_compiler_pic_CXX
  12272. compiler_flags=-v
  12273. linker_flags=-v
  12274. verstring=
  12275. output_objdir=.
  12276. libname=conftest
  12277. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12278. allow_undefined_flag_CXX=
  12279. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12280. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12281. ac_status=$?
  12282. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12283. test $ac_status = 0; }
  12284. then
  12285. lt_cv_archive_cmds_need_lc_CXX=no
  12286. else
  12287. lt_cv_archive_cmds_need_lc_CXX=yes
  12288. fi
  12289. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12290. else
  12291. cat conftest.err 1>&5
  12292. fi
  12293. $RM conftest*
  12294. fi
  12295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12296. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12297. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12298. ;;
  12299. esac
  12300. fi
  12301. ;;
  12302. esac
  12303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12304. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12305. library_names_spec=
  12306. libname_spec='lib$name'
  12307. soname_spec=
  12308. shrext_cmds=".so"
  12309. postinstall_cmds=
  12310. postuninstall_cmds=
  12311. finish_cmds=
  12312. finish_eval=
  12313. shlibpath_var=
  12314. shlibpath_overrides_runpath=unknown
  12315. version_type=none
  12316. dynamic_linker="$host_os ld.so"
  12317. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12318. need_lib_prefix=unknown
  12319. hardcode_into_libs=no
  12320. # when you set need_version to no, make sure it does not cause -set_version
  12321. # flags to be left without arguments
  12322. need_version=unknown
  12323. case $host_os in
  12324. aix3*)
  12325. version_type=linux
  12326. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12327. shlibpath_var=LIBPATH
  12328. # AIX 3 has no versioning support, so we append a major version to the name.
  12329. soname_spec='${libname}${release}${shared_ext}$major'
  12330. ;;
  12331. aix[4-9]*)
  12332. version_type=linux
  12333. need_lib_prefix=no
  12334. need_version=no
  12335. hardcode_into_libs=yes
  12336. if test "$host_cpu" = ia64; then
  12337. # AIX 5 supports IA64
  12338. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12339. shlibpath_var=LD_LIBRARY_PATH
  12340. else
  12341. # With GCC up to 2.95.x, collect2 would create an import file
  12342. # for dependence libraries. The import file would start with
  12343. # the line `#! .'. This would cause the generated library to
  12344. # depend on `.', always an invalid library. This was fixed in
  12345. # development snapshots of GCC prior to 3.0.
  12346. case $host_os in
  12347. aix4 | aix4.[01] | aix4.[01].*)
  12348. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12349. echo ' yes '
  12350. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12351. :
  12352. else
  12353. can_build_shared=no
  12354. fi
  12355. ;;
  12356. esac
  12357. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12358. # soname into executable. Probably we can add versioning support to
  12359. # collect2, so additional links can be useful in future.
  12360. if test "$aix_use_runtimelinking" = yes; then
  12361. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12362. # instead of lib<name>.a to let people know that these are not
  12363. # typical AIX shared libraries.
  12364. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12365. else
  12366. # We preserve .a as extension for shared libraries through AIX4.2
  12367. # and later when we are not doing run time linking.
  12368. library_names_spec='${libname}${release}.a $libname.a'
  12369. soname_spec='${libname}${release}${shared_ext}$major'
  12370. fi
  12371. shlibpath_var=LIBPATH
  12372. fi
  12373. ;;
  12374. amigaos*)
  12375. case $host_cpu in
  12376. powerpc)
  12377. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12378. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12380. ;;
  12381. m68k)
  12382. library_names_spec='$libname.ixlibrary $libname.a'
  12383. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12384. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  12385. ;;
  12386. esac
  12387. ;;
  12388. beos*)
  12389. library_names_spec='${libname}${shared_ext}'
  12390. dynamic_linker="$host_os ld.so"
  12391. shlibpath_var=LIBRARY_PATH
  12392. ;;
  12393. bsdi[45]*)
  12394. version_type=linux
  12395. need_version=no
  12396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12397. soname_spec='${libname}${release}${shared_ext}$major'
  12398. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12399. shlibpath_var=LD_LIBRARY_PATH
  12400. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12401. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12402. # the default ld.so.conf also contains /usr/contrib/lib and
  12403. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12404. # libtool to hard-code these into programs
  12405. ;;
  12406. cygwin* | mingw* | pw32* | cegcc*)
  12407. version_type=windows
  12408. shrext_cmds=".dll"
  12409. need_version=no
  12410. need_lib_prefix=no
  12411. case $GCC,$cc_basename in
  12412. yes,*)
  12413. # gcc
  12414. library_names_spec='$libname.dll.a'
  12415. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12416. postinstall_cmds='base_file=`basename \${file}`~
  12417. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12418. dldir=$destdir/`dirname \$dlpath`~
  12419. test -d \$dldir || mkdir -p \$dldir~
  12420. $install_prog $dir/$dlname \$dldir/$dlname~
  12421. chmod a+x \$dldir/$dlname~
  12422. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12423. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12424. fi'
  12425. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12426. dlpath=$dir/\$dldll~
  12427. $RM \$dlpath'
  12428. shlibpath_overrides_runpath=yes
  12429. case $host_os in
  12430. cygwin*)
  12431. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12432. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12433. ;;
  12434. mingw* | cegcc*)
  12435. # MinGW DLLs use traditional 'lib' prefix
  12436. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12437. ;;
  12438. pw32*)
  12439. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12440. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12441. ;;
  12442. esac
  12443. dynamic_linker='Win32 ld.exe'
  12444. ;;
  12445. *,cl*)
  12446. # Native MSVC
  12447. libname_spec='$name'
  12448. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12449. library_names_spec='${libname}.dll.lib'
  12450. case $build_os in
  12451. mingw*)
  12452. sys_lib_search_path_spec=
  12453. lt_save_ifs=$IFS
  12454. IFS=';'
  12455. for lt_path in $LIB
  12456. do
  12457. IFS=$lt_save_ifs
  12458. # Let DOS variable expansion print the short 8.3 style file name.
  12459. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12460. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12461. done
  12462. IFS=$lt_save_ifs
  12463. # Convert to MSYS style.
  12464. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12465. ;;
  12466. cygwin*)
  12467. # Convert to unix form, then to dos form, then back to unix form
  12468. # but this time dos style (no spaces!) so that the unix form looks
  12469. # like /cygdrive/c/PROGRA~1:/cygdr...
  12470. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12471. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12472. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12473. ;;
  12474. *)
  12475. sys_lib_search_path_spec="$LIB"
  12476. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12477. # It is most probably a Windows format PATH.
  12478. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12479. else
  12480. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12481. fi
  12482. # FIXME: find the short name or the path components, as spaces are
  12483. # common. (e.g. "Program Files" -> "PROGRA~1")
  12484. ;;
  12485. esac
  12486. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12487. postinstall_cmds='base_file=`basename \${file}`~
  12488. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12489. dldir=$destdir/`dirname \$dlpath`~
  12490. test -d \$dldir || mkdir -p \$dldir~
  12491. $install_prog $dir/$dlname \$dldir/$dlname'
  12492. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12493. dlpath=$dir/\$dldll~
  12494. $RM \$dlpath'
  12495. shlibpath_overrides_runpath=yes
  12496. dynamic_linker='Win32 link.exe'
  12497. ;;
  12498. *)
  12499. # Assume MSVC wrapper
  12500. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12501. dynamic_linker='Win32 ld.exe'
  12502. ;;
  12503. esac
  12504. # FIXME: first we should search . and the directory the executable is in
  12505. shlibpath_var=PATH
  12506. ;;
  12507. darwin* | rhapsody*)
  12508. dynamic_linker="$host_os dyld"
  12509. version_type=darwin
  12510. need_lib_prefix=no
  12511. need_version=no
  12512. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12513. soname_spec='${libname}${release}${major}$shared_ext'
  12514. shlibpath_overrides_runpath=yes
  12515. shlibpath_var=DYLD_LIBRARY_PATH
  12516. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12517. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12518. ;;
  12519. dgux*)
  12520. version_type=linux
  12521. need_lib_prefix=no
  12522. need_version=no
  12523. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12524. soname_spec='${libname}${release}${shared_ext}$major'
  12525. shlibpath_var=LD_LIBRARY_PATH
  12526. ;;
  12527. freebsd1*)
  12528. dynamic_linker=no
  12529. ;;
  12530. freebsd* | dragonfly*)
  12531. # DragonFly does not have aout. When/if they implement a new
  12532. # versioning mechanism, adjust this.
  12533. if test -x /usr/bin/objformat; then
  12534. objformat=`/usr/bin/objformat`
  12535. else
  12536. case $host_os in
  12537. freebsd[123]*) objformat=aout ;;
  12538. *) objformat=elf ;;
  12539. esac
  12540. fi
  12541. version_type=freebsd-$objformat
  12542. case $version_type in
  12543. freebsd-elf*)
  12544. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12545. need_version=no
  12546. need_lib_prefix=no
  12547. ;;
  12548. freebsd-*)
  12549. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12550. need_version=yes
  12551. ;;
  12552. esac
  12553. shlibpath_var=LD_LIBRARY_PATH
  12554. case $host_os in
  12555. freebsd2*)
  12556. shlibpath_overrides_runpath=yes
  12557. ;;
  12558. freebsd3.[01]* | freebsdelf3.[01]*)
  12559. shlibpath_overrides_runpath=yes
  12560. hardcode_into_libs=yes
  12561. ;;
  12562. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12563. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12564. shlibpath_overrides_runpath=no
  12565. hardcode_into_libs=yes
  12566. ;;
  12567. *) # from 4.6 on, and DragonFly
  12568. shlibpath_overrides_runpath=yes
  12569. hardcode_into_libs=yes
  12570. ;;
  12571. esac
  12572. ;;
  12573. gnu*)
  12574. version_type=linux
  12575. need_lib_prefix=no
  12576. need_version=no
  12577. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12578. soname_spec='${libname}${release}${shared_ext}$major'
  12579. shlibpath_var=LD_LIBRARY_PATH
  12580. shlibpath_overrides_runpath=no
  12581. hardcode_into_libs=yes
  12582. ;;
  12583. haiku*)
  12584. version_type=linux
  12585. need_lib_prefix=no
  12586. need_version=no
  12587. dynamic_linker="$host_os runtime_loader"
  12588. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12589. soname_spec='${libname}${release}${shared_ext}$major'
  12590. shlibpath_var=LIBRARY_PATH
  12591. shlibpath_overrides_runpath=yes
  12592. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12593. hardcode_into_libs=yes
  12594. ;;
  12595. hpux9* | hpux10* | hpux11*)
  12596. # Give a soname corresponding to the major version so that dld.sl refuses to
  12597. # link against other versions.
  12598. version_type=sunos
  12599. need_lib_prefix=no
  12600. need_version=no
  12601. case $host_cpu in
  12602. ia64*)
  12603. shrext_cmds='.so'
  12604. hardcode_into_libs=yes
  12605. dynamic_linker="$host_os dld.so"
  12606. shlibpath_var=LD_LIBRARY_PATH
  12607. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12608. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12609. soname_spec='${libname}${release}${shared_ext}$major'
  12610. if test "X$HPUX_IA64_MODE" = X32; then
  12611. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12612. else
  12613. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12614. fi
  12615. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12616. ;;
  12617. hppa*64*)
  12618. shrext_cmds='.sl'
  12619. hardcode_into_libs=yes
  12620. dynamic_linker="$host_os dld.sl"
  12621. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12622. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12623. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12624. soname_spec='${libname}${release}${shared_ext}$major'
  12625. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12626. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12627. ;;
  12628. *)
  12629. shrext_cmds='.sl'
  12630. dynamic_linker="$host_os dld.sl"
  12631. shlibpath_var=SHLIB_PATH
  12632. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12633. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12634. soname_spec='${libname}${release}${shared_ext}$major'
  12635. ;;
  12636. esac
  12637. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12638. postinstall_cmds='chmod 555 $lib'
  12639. # or fails outright, so override atomically:
  12640. install_override_mode=555
  12641. ;;
  12642. interix[3-9]*)
  12643. version_type=linux
  12644. need_lib_prefix=no
  12645. need_version=no
  12646. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12647. soname_spec='${libname}${release}${shared_ext}$major'
  12648. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12649. shlibpath_var=LD_LIBRARY_PATH
  12650. shlibpath_overrides_runpath=no
  12651. hardcode_into_libs=yes
  12652. ;;
  12653. irix5* | irix6* | nonstopux*)
  12654. case $host_os in
  12655. nonstopux*) version_type=nonstopux ;;
  12656. *)
  12657. if test "$lt_cv_prog_gnu_ld" = yes; then
  12658. version_type=linux
  12659. else
  12660. version_type=irix
  12661. fi ;;
  12662. esac
  12663. need_lib_prefix=no
  12664. need_version=no
  12665. soname_spec='${libname}${release}${shared_ext}$major'
  12666. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12667. case $host_os in
  12668. irix5* | nonstopux*)
  12669. libsuff= shlibsuff=
  12670. ;;
  12671. *)
  12672. case $LD in # libtool.m4 will add one of these switches to LD
  12673. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12674. libsuff= shlibsuff= libmagic=32-bit;;
  12675. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12676. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12677. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12678. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12679. *) libsuff= shlibsuff= libmagic=never-match;;
  12680. esac
  12681. ;;
  12682. esac
  12683. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12684. shlibpath_overrides_runpath=no
  12685. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12686. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12687. hardcode_into_libs=yes
  12688. ;;
  12689. # No shared lib support for Linux oldld, aout, or coff.
  12690. linux*oldld* | linux*aout* | linux*coff*)
  12691. dynamic_linker=no
  12692. ;;
  12693. # This must be Linux ELF.
  12694. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12695. version_type=linux
  12696. need_lib_prefix=no
  12697. need_version=no
  12698. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12699. soname_spec='${libname}${release}${shared_ext}$major'
  12700. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12701. shlibpath_var=LD_LIBRARY_PATH
  12702. shlibpath_overrides_runpath=no
  12703. # Some binutils ld are patched to set DT_RUNPATH
  12704. if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
  12705. $as_echo_n "(cached) " >&6
  12706. else
  12707. lt_cv_shlibpath_overrides_runpath=no
  12708. save_LDFLAGS=$LDFLAGS
  12709. save_libdir=$libdir
  12710. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12711. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12712. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12713. /* end confdefs.h. */
  12714. int
  12715. main ()
  12716. {
  12717. ;
  12718. return 0;
  12719. }
  12720. _ACEOF
  12721. if ac_fn_cxx_try_link "$LINENO"; then :
  12722. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12723. lt_cv_shlibpath_overrides_runpath=yes
  12724. fi
  12725. fi
  12726. rm -f core conftest.err conftest.$ac_objext \
  12727. conftest$ac_exeext conftest.$ac_ext
  12728. LDFLAGS=$save_LDFLAGS
  12729. libdir=$save_libdir
  12730. fi
  12731. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12732. # This implies no fast_install, which is unacceptable.
  12733. # Some rework will be needed to allow for fast_install
  12734. # before this can be enabled.
  12735. hardcode_into_libs=yes
  12736. # Append ld.so.conf contents to the search path
  12737. if test -f /etc/ld.so.conf; then
  12738. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  12739. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12740. fi
  12741. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12742. # powerpc, because MkLinux only supported shared libraries with the
  12743. # GNU dynamic linker. Since this was broken with cross compilers,
  12744. # most powerpc-linux boxes support dynamic linking these days and
  12745. # people can always --disable-shared, the test was removed, and we
  12746. # assume the GNU/Linux dynamic linker is in use.
  12747. dynamic_linker='GNU/Linux ld.so'
  12748. ;;
  12749. netbsdelf*-gnu)
  12750. version_type=linux
  12751. need_lib_prefix=no
  12752. need_version=no
  12753. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12754. soname_spec='${libname}${release}${shared_ext}$major'
  12755. shlibpath_var=LD_LIBRARY_PATH
  12756. shlibpath_overrides_runpath=no
  12757. hardcode_into_libs=yes
  12758. dynamic_linker='NetBSD ld.elf_so'
  12759. ;;
  12760. netbsd*)
  12761. version_type=sunos
  12762. need_lib_prefix=no
  12763. need_version=no
  12764. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12765. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12766. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12767. dynamic_linker='NetBSD (a.out) ld.so'
  12768. else
  12769. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12770. soname_spec='${libname}${release}${shared_ext}$major'
  12771. dynamic_linker='NetBSD ld.elf_so'
  12772. fi
  12773. shlibpath_var=LD_LIBRARY_PATH
  12774. shlibpath_overrides_runpath=yes
  12775. hardcode_into_libs=yes
  12776. ;;
  12777. newsos6)
  12778. version_type=linux
  12779. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12780. shlibpath_var=LD_LIBRARY_PATH
  12781. shlibpath_overrides_runpath=yes
  12782. ;;
  12783. *nto* | *qnx*)
  12784. version_type=qnx
  12785. need_lib_prefix=no
  12786. need_version=no
  12787. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12788. soname_spec='${libname}${release}${shared_ext}$major'
  12789. shlibpath_var=LD_LIBRARY_PATH
  12790. shlibpath_overrides_runpath=no
  12791. hardcode_into_libs=yes
  12792. dynamic_linker='ldqnx.so'
  12793. ;;
  12794. openbsd*)
  12795. version_type=sunos
  12796. sys_lib_dlsearch_path_spec="/usr/lib"
  12797. need_lib_prefix=no
  12798. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12799. case $host_os in
  12800. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12801. *) need_version=no ;;
  12802. esac
  12803. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12804. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12805. shlibpath_var=LD_LIBRARY_PATH
  12806. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12807. case $host_os in
  12808. openbsd2.[89] | openbsd2.[89].*)
  12809. shlibpath_overrides_runpath=no
  12810. ;;
  12811. *)
  12812. shlibpath_overrides_runpath=yes
  12813. ;;
  12814. esac
  12815. else
  12816. shlibpath_overrides_runpath=yes
  12817. fi
  12818. ;;
  12819. os2*)
  12820. libname_spec='$name'
  12821. shrext_cmds=".dll"
  12822. need_lib_prefix=no
  12823. library_names_spec='$libname${shared_ext} $libname.a'
  12824. dynamic_linker='OS/2 ld.exe'
  12825. shlibpath_var=LIBPATH
  12826. ;;
  12827. osf3* | osf4* | osf5*)
  12828. version_type=osf
  12829. need_lib_prefix=no
  12830. need_version=no
  12831. soname_spec='${libname}${release}${shared_ext}$major'
  12832. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12833. shlibpath_var=LD_LIBRARY_PATH
  12834. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12835. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12836. ;;
  12837. rdos*)
  12838. dynamic_linker=no
  12839. ;;
  12840. solaris*)
  12841. version_type=linux
  12842. need_lib_prefix=no
  12843. need_version=no
  12844. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12845. soname_spec='${libname}${release}${shared_ext}$major'
  12846. shlibpath_var=LD_LIBRARY_PATH
  12847. shlibpath_overrides_runpath=yes
  12848. hardcode_into_libs=yes
  12849. # ldd complains unless libraries are executable
  12850. postinstall_cmds='chmod +x $lib'
  12851. ;;
  12852. sunos4*)
  12853. version_type=sunos
  12854. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12855. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12856. shlibpath_var=LD_LIBRARY_PATH
  12857. shlibpath_overrides_runpath=yes
  12858. if test "$with_gnu_ld" = yes; then
  12859. need_lib_prefix=no
  12860. fi
  12861. need_version=yes
  12862. ;;
  12863. sysv4 | sysv4.3*)
  12864. version_type=linux
  12865. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12866. soname_spec='${libname}${release}${shared_ext}$major'
  12867. shlibpath_var=LD_LIBRARY_PATH
  12868. case $host_vendor in
  12869. sni)
  12870. shlibpath_overrides_runpath=no
  12871. need_lib_prefix=no
  12872. runpath_var=LD_RUN_PATH
  12873. ;;
  12874. siemens)
  12875. need_lib_prefix=no
  12876. ;;
  12877. motorola)
  12878. need_lib_prefix=no
  12879. need_version=no
  12880. shlibpath_overrides_runpath=no
  12881. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12882. ;;
  12883. esac
  12884. ;;
  12885. sysv4*MP*)
  12886. if test -d /usr/nec ;then
  12887. version_type=linux
  12888. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12889. soname_spec='$libname${shared_ext}.$major'
  12890. shlibpath_var=LD_LIBRARY_PATH
  12891. fi
  12892. ;;
  12893. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12894. version_type=freebsd-elf
  12895. need_lib_prefix=no
  12896. need_version=no
  12897. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12898. soname_spec='${libname}${release}${shared_ext}$major'
  12899. shlibpath_var=LD_LIBRARY_PATH
  12900. shlibpath_overrides_runpath=yes
  12901. hardcode_into_libs=yes
  12902. if test "$with_gnu_ld" = yes; then
  12903. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12904. else
  12905. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12906. case $host_os in
  12907. sco3.2v5*)
  12908. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12909. ;;
  12910. esac
  12911. fi
  12912. sys_lib_dlsearch_path_spec='/usr/lib'
  12913. ;;
  12914. tpf*)
  12915. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12916. version_type=linux
  12917. need_lib_prefix=no
  12918. need_version=no
  12919. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12920. shlibpath_var=LD_LIBRARY_PATH
  12921. shlibpath_overrides_runpath=no
  12922. hardcode_into_libs=yes
  12923. ;;
  12924. uts4*)
  12925. version_type=linux
  12926. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12927. soname_spec='${libname}${release}${shared_ext}$major'
  12928. shlibpath_var=LD_LIBRARY_PATH
  12929. ;;
  12930. *)
  12931. dynamic_linker=no
  12932. ;;
  12933. esac
  12934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12935. $as_echo "$dynamic_linker" >&6; }
  12936. test "$dynamic_linker" = no && can_build_shared=no
  12937. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12938. if test "$GCC" = yes; then
  12939. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12940. fi
  12941. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12942. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12943. fi
  12944. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12945. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12946. fi
  12947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12948. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12949. hardcode_action_CXX=
  12950. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12951. test -n "$runpath_var_CXX" ||
  12952. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12953. # We can hardcode non-existent directories.
  12954. if test "$hardcode_direct_CXX" != no &&
  12955. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12956. # have to relink, otherwise we might link with an installed library
  12957. # when we should be linking with a yet-to-be-installed one
  12958. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12959. test "$hardcode_minus_L_CXX" != no; then
  12960. # Linking always hardcodes the temporary library directory.
  12961. hardcode_action_CXX=relink
  12962. else
  12963. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12964. hardcode_action_CXX=immediate
  12965. fi
  12966. else
  12967. # We cannot hardcode anything, or else we can only hardcode existing
  12968. # directories.
  12969. hardcode_action_CXX=unsupported
  12970. fi
  12971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12972. $as_echo "$hardcode_action_CXX" >&6; }
  12973. if test "$hardcode_action_CXX" = relink ||
  12974. test "$inherit_rpath_CXX" = yes; then
  12975. # Fast installation is not supported
  12976. enable_fast_install=no
  12977. elif test "$shlibpath_overrides_runpath" = yes ||
  12978. test "$enable_shared" = no; then
  12979. # Fast installation is not necessary
  12980. enable_fast_install=needless
  12981. fi
  12982. fi # test -n "$compiler"
  12983. CC=$lt_save_CC
  12984. CFLAGS=$lt_save_CFLAGS
  12985. LDCXX=$LD
  12986. LD=$lt_save_LD
  12987. GCC=$lt_save_GCC
  12988. with_gnu_ld=$lt_save_with_gnu_ld
  12989. lt_cv_path_LDCXX=$lt_cv_path_LD
  12990. lt_cv_path_LD=$lt_save_path_LD
  12991. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12992. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12993. fi # test "$_lt_caught_CXX_error" != yes
  12994. ac_ext=cpp
  12995. ac_cpp='$CXXCPP $CPPFLAGS'
  12996. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12997. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12998. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12999. ac_config_commands="$ac_config_commands libtool"
  13000. # Only expand once:
  13001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler vendor" >&5
  13002. $as_echo_n "checking for C++ compiler vendor... " >&6; }
  13003. if test "${ax_cv_cxx_compiler_vendor+set}" = set; then :
  13004. $as_echo_n "(cached) " >&6
  13005. else
  13006. ax_cv_cxx_compiler_vendor=unknown
  13007. # note: don't check for gcc first since some other compilers define __GNUC__
  13008. for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ clang:__clang__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
  13009. vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
  13010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13011. /* end confdefs.h. */
  13012. int
  13013. main ()
  13014. {
  13015. #if !($vencpp)
  13016. thisisanerror;
  13017. #endif
  13018. ;
  13019. return 0;
  13020. }
  13021. _ACEOF
  13022. if ac_fn_cxx_try_compile "$LINENO"; then :
  13023. ax_cv_cxx_compiler_vendor=`echo $ventest | cut -d: -f1`; break
  13024. fi
  13025. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13026. done
  13027. fi
  13028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compiler_vendor" >&5
  13029. $as_echo "$ax_cv_cxx_compiler_vendor" >&6; }
  13030. # Use silent rules if supported.
  13031. # Check whether --enable-silent-rules was given.
  13032. if test "${enable_silent_rules+set}" = set; then :
  13033. enableval=$enable_silent_rules;
  13034. fi
  13035. case $enable_silent_rules in
  13036. yes) AM_DEFAULT_VERBOSITY=0;;
  13037. no) AM_DEFAULT_VERBOSITY=1;;
  13038. *) AM_DEFAULT_VERBOSITY=0;;
  13039. esac
  13040. AM_BACKSLASH='\'
  13041. # Check whether --enable-debug was given.
  13042. if test "${enable_debug+set}" = set; then :
  13043. enableval=$enable_debug; if test x$enableval = xyes ; then
  13044. enable_debug="yes"
  13045. else
  13046. enable_debug="no"
  13047. fi
  13048. else
  13049. enable_debug="yes"
  13050. fi
  13051. if test "x$GXX" = "xyes" -a "x$enable_debug" = "xyes" ; then
  13052. CXXFLAGS="$CXXFLAGS -O0 -ggdb"
  13053. fi
  13054. # For gcc and compatible compilers, enable compilation warnings, but
  13055. # selectively disable some because too many are generated.
  13056. if test "x$GXX" = "xyes" ; then
  13057. CXXFLAGS="$CXXFLAGS -Wall -Wno-switch -Wno-sign-compare -Wcast-align -Wpointer-arith -Wno-unknown-pragmas"
  13058. fi
  13059. # extra clang parameters
  13060. if test "x${ax_cv_cxx_compiler_vendor}" = "xclang" ; then
  13061. CXXFLAGS="$CXXFLAGS -Wno-address-of-temporary -Wno-unused-value -Wno-cast-align"
  13062. fi
  13063. # extra Intel icc parameters
  13064. if test "x${ax_cv_cxx_compiler_vendor}" = "xintel" ; then
  13065. CXXFLAGS="$CXXFLAGS -diag-disable 383,981,1418,869,1563,2259,1782,444,271,1,10156,1419"
  13066. fi
  13067. # Check for Boost libraries
  13068. # Check whether --with-boost was given.
  13069. if test "${with_boost+set}" = set; then :
  13070. withval=$with_boost;
  13071. if test "$withval" = "no"; then
  13072. want_boost="no"
  13073. elif test "$withval" = "yes"; then
  13074. want_boost="yes"
  13075. ac_boost_path=""
  13076. else
  13077. want_boost="yes"
  13078. ac_boost_path="$withval"
  13079. fi
  13080. else
  13081. want_boost="yes"
  13082. fi
  13083. # Check whether --with-boost-libdir was given.
  13084. if test "${with_boost_libdir+set}" = set; then :
  13085. withval=$with_boost_libdir;
  13086. if test -d "$withval"
  13087. then
  13088. ac_boost_lib_path="$withval"
  13089. else
  13090. as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
  13091. fi
  13092. else
  13093. ac_boost_lib_path=""
  13094. fi
  13095. if test "x$want_boost" = "xyes"; then
  13096. boost_lib_version_req=1.36
  13097. boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
  13098. boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
  13099. boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
  13100. boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  13101. if test "x$boost_lib_version_req_sub_minor" = "x" ; then
  13102. boost_lib_version_req_sub_minor="0"
  13103. fi
  13104. WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
  13105. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
  13106. $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
  13107. succeeded=no
  13108. libsubdirs="lib"
  13109. ax_arch=`uname -m`
  13110. if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
  13111. libsubdirs="lib64 lib lib64"
  13112. fi
  13113. if test "$ac_boost_path" != ""; then
  13114. BOOST_CPPFLAGS="-I$ac_boost_path/include"
  13115. for ac_boost_path_tmp in $libsubdirs; do
  13116. if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
  13117. BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
  13118. break
  13119. fi
  13120. done
  13121. elif test "$cross_compiling" != yes; then
  13122. for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
  13123. if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
  13124. for libsubdir in $libsubdirs ; do
  13125. if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  13126. done
  13127. BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
  13128. BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
  13129. break;
  13130. fi
  13131. done
  13132. fi
  13133. if test "$ac_boost_lib_path" != ""; then
  13134. BOOST_LDFLAGS="-L$ac_boost_lib_path"
  13135. fi
  13136. CPPFLAGS_SAVED="$CPPFLAGS"
  13137. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13138. export CPPFLAGS
  13139. LDFLAGS_SAVED="$LDFLAGS"
  13140. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13141. export LDFLAGS
  13142. ac_ext=cpp
  13143. ac_cpp='$CXXCPP $CPPFLAGS'
  13144. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13145. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13146. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13147. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13148. /* end confdefs.h. */
  13149. #include <boost/version.hpp>
  13150. int
  13151. main ()
  13152. {
  13153. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  13154. // Everything is okay
  13155. #else
  13156. # error Boost version is too old
  13157. #endif
  13158. ;
  13159. return 0;
  13160. }
  13161. _ACEOF
  13162. if ac_fn_cxx_try_compile "$LINENO"; then :
  13163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13164. $as_echo "yes" >&6; }
  13165. succeeded=yes
  13166. found_system=yes
  13167. fi
  13168. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13169. ac_ext=cpp
  13170. ac_cpp='$CXXCPP $CPPFLAGS'
  13171. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13172. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13173. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13174. if test "x$succeeded" != "xyes"; then
  13175. _version=0
  13176. if test "$ac_boost_path" != ""; then
  13177. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  13178. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  13179. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  13180. V_CHECK=`expr $_version_tmp \> $_version`
  13181. if test "$V_CHECK" = "1" ; then
  13182. _version=$_version_tmp
  13183. fi
  13184. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  13185. BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
  13186. done
  13187. fi
  13188. else
  13189. if test "$cross_compiling" != yes; then
  13190. for ac_boost_path in /usr /usr/local /opt /opt/local ; do
  13191. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  13192. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  13193. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  13194. V_CHECK=`expr $_version_tmp \> $_version`
  13195. if test "$V_CHECK" = "1" ; then
  13196. _version=$_version_tmp
  13197. best_path=$ac_boost_path
  13198. fi
  13199. done
  13200. fi
  13201. done
  13202. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  13203. BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
  13204. if test "$ac_boost_lib_path" = ""; then
  13205. for libsubdir in $libsubdirs ; do
  13206. if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  13207. done
  13208. BOOST_LDFLAGS="-L$best_path/$libsubdir"
  13209. fi
  13210. fi
  13211. if test "x$BOOST_ROOT" != "x"; then
  13212. for libsubdir in $libsubdirs ; do
  13213. if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  13214. done
  13215. if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
  13216. version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
  13217. stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
  13218. stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
  13219. V_CHECK=`expr $stage_version_shorten \>\= $_version`
  13220. if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
  13221. { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
  13222. $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
  13223. BOOST_CPPFLAGS="-I$BOOST_ROOT"
  13224. BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
  13225. fi
  13226. fi
  13227. fi
  13228. fi
  13229. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13230. export CPPFLAGS
  13231. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13232. export LDFLAGS
  13233. ac_ext=cpp
  13234. ac_cpp='$CXXCPP $CPPFLAGS'
  13235. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13236. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13237. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13238. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13239. /* end confdefs.h. */
  13240. #include <boost/version.hpp>
  13241. int
  13242. main ()
  13243. {
  13244. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  13245. // Everything is okay
  13246. #else
  13247. # error Boost version is too old
  13248. #endif
  13249. ;
  13250. return 0;
  13251. }
  13252. _ACEOF
  13253. if ac_fn_cxx_try_compile "$LINENO"; then :
  13254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13255. $as_echo "yes" >&6; }
  13256. succeeded=yes
  13257. found_system=yes
  13258. fi
  13259. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13260. ac_ext=cpp
  13261. ac_cpp='$CXXCPP $CPPFLAGS'
  13262. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13263. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13264. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13265. fi
  13266. if test "$succeeded" != "yes" ; then
  13267. if test "$_version" = "0" ; then
  13268. { $as_echo "$as_me:${as_lineno-$LINENO}: 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." >&5
  13269. $as_echo "$as_me: 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." >&6;}
  13270. else
  13271. { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
  13272. $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
  13273. fi
  13274. # execute ACTION-IF-NOT-FOUND (if present):
  13275. :
  13276. else
  13277. $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
  13278. # execute ACTION-IF-FOUND (if present):
  13279. :
  13280. fi
  13281. CPPFLAGS="$CPPFLAGS_SAVED"
  13282. LDFLAGS="$LDFLAGS_SAVED"
  13283. fi
  13284. # Check whether --with-boost-system was given.
  13285. if test "${with_boost_system+set}" = set; then :
  13286. withval=$with_boost_system;
  13287. if test "$withval" = "no"; then
  13288. want_boost="no"
  13289. elif test "$withval" = "yes"; then
  13290. want_boost="yes"
  13291. ax_boost_user_system_lib=""
  13292. else
  13293. want_boost="yes"
  13294. ax_boost_user_system_lib="$withval"
  13295. fi
  13296. else
  13297. want_boost="yes"
  13298. fi
  13299. if test "x$want_boost" = "xyes"; then
  13300. CPPFLAGS_SAVED="$CPPFLAGS"
  13301. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13302. export CPPFLAGS
  13303. LDFLAGS_SAVED="$LDFLAGS"
  13304. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13305. export LDFLAGS
  13306. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
  13307. $as_echo_n "checking whether the Boost::System library is available... " >&6; }
  13308. if test "${ax_cv_boost_system+set}" = set; then :
  13309. $as_echo_n "(cached) " >&6
  13310. else
  13311. ac_ext=cpp
  13312. ac_cpp='$CXXCPP $CPPFLAGS'
  13313. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13314. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13315. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13316. CXXFLAGS_SAVE=$CXXFLAGS
  13317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13318. /* end confdefs.h. */
  13319. #include <boost/system/error_code.hpp>
  13320. int
  13321. main ()
  13322. {
  13323. boost::system::system_category
  13324. ;
  13325. return 0;
  13326. }
  13327. _ACEOF
  13328. if ac_fn_cxx_try_compile "$LINENO"; then :
  13329. ax_cv_boost_system=yes
  13330. else
  13331. ax_cv_boost_system=no
  13332. fi
  13333. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13334. CXXFLAGS=$CXXFLAGS_SAVE
  13335. ac_ext=cpp
  13336. ac_cpp='$CXXCPP $CPPFLAGS'
  13337. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13338. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13339. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13340. fi
  13341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
  13342. $as_echo "$ax_cv_boost_system" >&6; }
  13343. if test "x$ax_cv_boost_system" = "xyes"; then
  13344. $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
  13345. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13346. LDFLAGS_SAVE=$LDFLAGS
  13347. if test "x$ax_boost_user_system_lib" = "x"; then
  13348. for libextension in `ls $BOOSTLIBDIR/libboost_system*.so* $BOOSTLIBDIR/libboost_system*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.so.*$;\1;' -e 's;^lib\(boost_system.*\)\.a*$;\1;'` ; do
  13349. ax_lib=${libextension}
  13350. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13352. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13353. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13354. $as_echo_n "(cached) " >&6
  13355. else
  13356. ac_check_lib_save_LIBS=$LIBS
  13357. LIBS="-l$ax_lib $LIBS"
  13358. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13359. /* end confdefs.h. */
  13360. /* Override any GCC internal prototype to avoid an error.
  13361. Use char because int might match the return type of a GCC
  13362. builtin and then its argument prototype would still apply. */
  13363. #ifdef __cplusplus
  13364. extern "C"
  13365. #endif
  13366. char exit ();
  13367. int
  13368. main ()
  13369. {
  13370. return exit ();
  13371. ;
  13372. return 0;
  13373. }
  13374. _ACEOF
  13375. if ac_fn_cxx_try_link "$LINENO"; then :
  13376. eval "$as_ac_Lib=yes"
  13377. else
  13378. eval "$as_ac_Lib=no"
  13379. fi
  13380. rm -f core conftest.err conftest.$ac_objext \
  13381. conftest$ac_exeext conftest.$ac_ext
  13382. LIBS=$ac_check_lib_save_LIBS
  13383. fi
  13384. eval ac_res=\$$as_ac_Lib
  13385. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13386. $as_echo "$ac_res" >&6; }
  13387. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13388. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13389. else
  13390. link_system="no"
  13391. fi
  13392. done
  13393. if test "x$link_system" != "xyes"; then
  13394. 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
  13395. ax_lib=${libextension}
  13396. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13398. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13399. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13400. $as_echo_n "(cached) " >&6
  13401. else
  13402. ac_check_lib_save_LIBS=$LIBS
  13403. LIBS="-l$ax_lib $LIBS"
  13404. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13405. /* end confdefs.h. */
  13406. /* Override any GCC internal prototype to avoid an error.
  13407. Use char because int might match the return type of a GCC
  13408. builtin and then its argument prototype would still apply. */
  13409. #ifdef __cplusplus
  13410. extern "C"
  13411. #endif
  13412. char exit ();
  13413. int
  13414. main ()
  13415. {
  13416. return exit ();
  13417. ;
  13418. return 0;
  13419. }
  13420. _ACEOF
  13421. if ac_fn_cxx_try_link "$LINENO"; then :
  13422. eval "$as_ac_Lib=yes"
  13423. else
  13424. eval "$as_ac_Lib=no"
  13425. fi
  13426. rm -f core conftest.err conftest.$ac_objext \
  13427. conftest$ac_exeext conftest.$ac_ext
  13428. LIBS=$ac_check_lib_save_LIBS
  13429. fi
  13430. eval ac_res=\$$as_ac_Lib
  13431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13432. $as_echo "$ac_res" >&6; }
  13433. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13434. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13435. else
  13436. link_system="no"
  13437. fi
  13438. done
  13439. fi
  13440. else
  13441. for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
  13442. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13444. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13445. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13446. $as_echo_n "(cached) " >&6
  13447. else
  13448. ac_check_lib_save_LIBS=$LIBS
  13449. LIBS="-l$ax_lib $LIBS"
  13450. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13451. /* end confdefs.h. */
  13452. /* Override any GCC internal prototype to avoid an error.
  13453. Use char because int might match the return type of a GCC
  13454. builtin and then its argument prototype would still apply. */
  13455. #ifdef __cplusplus
  13456. extern "C"
  13457. #endif
  13458. char exit ();
  13459. int
  13460. main ()
  13461. {
  13462. return exit ();
  13463. ;
  13464. return 0;
  13465. }
  13466. _ACEOF
  13467. if ac_fn_cxx_try_link "$LINENO"; then :
  13468. eval "$as_ac_Lib=yes"
  13469. else
  13470. eval "$as_ac_Lib=no"
  13471. fi
  13472. rm -f core conftest.err conftest.$ac_objext \
  13473. conftest$ac_exeext conftest.$ac_ext
  13474. LIBS=$ac_check_lib_save_LIBS
  13475. fi
  13476. eval ac_res=\$$as_ac_Lib
  13477. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13478. $as_echo "$ac_res" >&6; }
  13479. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13480. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  13481. else
  13482. link_system="no"
  13483. fi
  13484. done
  13485. fi
  13486. if test "x$ax_lib" = "x"; then
  13487. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13488. fi
  13489. if test "x$link_system" = "xno"; then
  13490. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13491. fi
  13492. fi
  13493. CPPFLAGS="$CPPFLAGS_SAVED"
  13494. LDFLAGS="$LDFLAGS_SAVED"
  13495. fi
  13496. # Check whether --with-boost-filesystem was given.
  13497. if test "${with_boost_filesystem+set}" = set; then :
  13498. withval=$with_boost_filesystem;
  13499. if test "$withval" = "no"; then
  13500. want_boost="no"
  13501. elif test "$withval" = "yes"; then
  13502. want_boost="yes"
  13503. ax_boost_user_filesystem_lib=""
  13504. else
  13505. want_boost="yes"
  13506. ax_boost_user_filesystem_lib="$withval"
  13507. fi
  13508. else
  13509. want_boost="yes"
  13510. fi
  13511. if test "x$want_boost" = "xyes"; then
  13512. CPPFLAGS_SAVED="$CPPFLAGS"
  13513. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13514. export CPPFLAGS
  13515. LDFLAGS_SAVED="$LDFLAGS"
  13516. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13517. export LDFLAGS
  13518. LIBS_SAVED=$LIBS
  13519. LIBS="$LIBS $BOOST_SYSTEM_LIB"
  13520. export LIBS
  13521. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5
  13522. $as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
  13523. if test "${ax_cv_boost_filesystem+set}" = set; then :
  13524. $as_echo_n "(cached) " >&6
  13525. else
  13526. ac_ext=cpp
  13527. ac_cpp='$CXXCPP $CPPFLAGS'
  13528. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13529. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13530. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13532. /* end confdefs.h. */
  13533. #include <boost/filesystem/path.hpp>
  13534. int
  13535. main ()
  13536. {
  13537. using namespace boost::filesystem;
  13538. path my_path( "foo/bar/data.txt" );
  13539. return 0;
  13540. ;
  13541. return 0;
  13542. }
  13543. _ACEOF
  13544. if ac_fn_cxx_try_compile "$LINENO"; then :
  13545. ax_cv_boost_filesystem=yes
  13546. else
  13547. ax_cv_boost_filesystem=no
  13548. fi
  13549. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13550. ac_ext=cpp
  13551. ac_cpp='$CXXCPP $CPPFLAGS'
  13552. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13553. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13554. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13555. fi
  13556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_filesystem" >&5
  13557. $as_echo "$ax_cv_boost_filesystem" >&6; }
  13558. if test "x$ax_cv_boost_filesystem" = "xyes"; then
  13559. $as_echo "#define HAVE_BOOST_FILESYSTEM /**/" >>confdefs.h
  13560. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13561. if test "x$ax_boost_user_filesystem_lib" = "x"; then
  13562. for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.so* $BOOSTLIBDIR/libboost_filesystem*.dylib* $BOOSTLIBDIR/libboost_filesystem*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.so.*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.a*$;\1;' -e 's;^lib\(boost_filesystem.*\)\.dylib$;\1;'` ; do
  13563. ax_lib=${libextension}
  13564. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13566. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13567. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13568. $as_echo_n "(cached) " >&6
  13569. else
  13570. ac_check_lib_save_LIBS=$LIBS
  13571. LIBS="-l$ax_lib $LIBS"
  13572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13573. /* end confdefs.h. */
  13574. /* Override any GCC internal prototype to avoid an error.
  13575. Use char because int might match the return type of a GCC
  13576. builtin and then its argument prototype would still apply. */
  13577. #ifdef __cplusplus
  13578. extern "C"
  13579. #endif
  13580. char exit ();
  13581. int
  13582. main ()
  13583. {
  13584. return exit ();
  13585. ;
  13586. return 0;
  13587. }
  13588. _ACEOF
  13589. if ac_fn_cxx_try_link "$LINENO"; then :
  13590. eval "$as_ac_Lib=yes"
  13591. else
  13592. eval "$as_ac_Lib=no"
  13593. fi
  13594. rm -f core conftest.err conftest.$ac_objext \
  13595. conftest$ac_exeext conftest.$ac_ext
  13596. LIBS=$ac_check_lib_save_LIBS
  13597. fi
  13598. eval ac_res=\$$as_ac_Lib
  13599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13600. $as_echo "$ac_res" >&6; }
  13601. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13602. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13603. else
  13604. link_filesystem="no"
  13605. fi
  13606. done
  13607. if test "x$link_program_options" != "xyes"; then
  13608. 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
  13609. ax_lib=${libextension}
  13610. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13611. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13612. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13613. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13614. $as_echo_n "(cached) " >&6
  13615. else
  13616. ac_check_lib_save_LIBS=$LIBS
  13617. LIBS="-l$ax_lib $LIBS"
  13618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13619. /* end confdefs.h. */
  13620. /* Override any GCC internal prototype to avoid an error.
  13621. Use char because int might match the return type of a GCC
  13622. builtin and then its argument prototype would still apply. */
  13623. #ifdef __cplusplus
  13624. extern "C"
  13625. #endif
  13626. char exit ();
  13627. int
  13628. main ()
  13629. {
  13630. return exit ();
  13631. ;
  13632. return 0;
  13633. }
  13634. _ACEOF
  13635. if ac_fn_cxx_try_link "$LINENO"; then :
  13636. eval "$as_ac_Lib=yes"
  13637. else
  13638. eval "$as_ac_Lib=no"
  13639. fi
  13640. rm -f core conftest.err conftest.$ac_objext \
  13641. conftest$ac_exeext conftest.$ac_ext
  13642. LIBS=$ac_check_lib_save_LIBS
  13643. fi
  13644. eval ac_res=\$$as_ac_Lib
  13645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13646. $as_echo "$ac_res" >&6; }
  13647. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13648. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13649. else
  13650. link_filesystem="no"
  13651. fi
  13652. done
  13653. fi
  13654. else
  13655. for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
  13656. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13658. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13659. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13660. $as_echo_n "(cached) " >&6
  13661. else
  13662. ac_check_lib_save_LIBS=$LIBS
  13663. LIBS="-l$ax_lib $LIBS"
  13664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13665. /* end confdefs.h. */
  13666. /* Override any GCC internal prototype to avoid an error.
  13667. Use char because int might match the return type of a GCC
  13668. builtin and then its argument prototype would still apply. */
  13669. #ifdef __cplusplus
  13670. extern "C"
  13671. #endif
  13672. char exit ();
  13673. int
  13674. main ()
  13675. {
  13676. return exit ();
  13677. ;
  13678. return 0;
  13679. }
  13680. _ACEOF
  13681. if ac_fn_cxx_try_link "$LINENO"; then :
  13682. eval "$as_ac_Lib=yes"
  13683. else
  13684. eval "$as_ac_Lib=no"
  13685. fi
  13686. rm -f core conftest.err conftest.$ac_objext \
  13687. conftest$ac_exeext conftest.$ac_ext
  13688. LIBS=$ac_check_lib_save_LIBS
  13689. fi
  13690. eval ac_res=\$$as_ac_Lib
  13691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13692. $as_echo "$ac_res" >&6; }
  13693. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13694. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13695. else
  13696. link_filesystem="no"
  13697. fi
  13698. done
  13699. fi
  13700. if test "x$ax_lib" = "x"; then
  13701. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13702. fi
  13703. if test "x$link_filesystem" != "xyes"; then
  13704. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13705. fi
  13706. fi
  13707. CPPFLAGS="$CPPFLAGS_SAVED"
  13708. LDFLAGS="$LDFLAGS_SAVED"
  13709. LIBS="$LIBS_SAVED"
  13710. fi
  13711. # Check whether --with-boost-thread was given.
  13712. if test "${with_boost_thread+set}" = set; then :
  13713. withval=$with_boost_thread;
  13714. if test "$withval" = "no"; then
  13715. want_boost="no"
  13716. elif test "$withval" = "yes"; then
  13717. want_boost="yes"
  13718. ax_boost_user_thread_lib=""
  13719. else
  13720. want_boost="yes"
  13721. ax_boost_user_thread_lib="$withval"
  13722. fi
  13723. else
  13724. want_boost="yes"
  13725. fi
  13726. if test "x$want_boost" = "xyes"; then
  13727. CPPFLAGS_SAVED="$CPPFLAGS"
  13728. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13729. export CPPFLAGS
  13730. LDFLAGS_SAVED="$LDFLAGS"
  13731. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13732. export LDFLAGS
  13733. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5
  13734. $as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
  13735. if test "${ax_cv_boost_thread+set}" = set; then :
  13736. $as_echo_n "(cached) " >&6
  13737. else
  13738. ac_ext=cpp
  13739. ac_cpp='$CXXCPP $CPPFLAGS'
  13740. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13741. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13742. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13743. CXXFLAGS_SAVE=$CXXFLAGS
  13744. if test "x$build_os" = "xsolaris" ; then
  13745. CXXFLAGS="-pthreads $CXXFLAGS"
  13746. elif test "x$build_os" = "xming32" ; then
  13747. CXXFLAGS="-mthreads $CXXFLAGS"
  13748. else
  13749. CXXFLAGS="-pthread $CXXFLAGS"
  13750. fi
  13751. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13752. /* end confdefs.h. */
  13753. #include <boost/thread/thread.hpp>
  13754. int
  13755. main ()
  13756. {
  13757. boost::thread_group thrds;
  13758. return 0;
  13759. ;
  13760. return 0;
  13761. }
  13762. _ACEOF
  13763. if ac_fn_cxx_try_compile "$LINENO"; then :
  13764. ax_cv_boost_thread=yes
  13765. else
  13766. ax_cv_boost_thread=no
  13767. fi
  13768. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13769. CXXFLAGS=$CXXFLAGS_SAVE
  13770. ac_ext=cpp
  13771. ac_cpp='$CXXCPP $CPPFLAGS'
  13772. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13773. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13774. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13775. fi
  13776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
  13777. $as_echo "$ax_cv_boost_thread" >&6; }
  13778. if test "x$ax_cv_boost_thread" = "xyes"; then
  13779. if test "x$build_os" = "xsolaris" ; then
  13780. BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
  13781. elif test "x$build_os" = "xming32" ; then
  13782. BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
  13783. else
  13784. BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
  13785. fi
  13786. $as_echo "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
  13787. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13788. LDFLAGS_SAVE=$LDFLAGS
  13789. case "x$build_os" in
  13790. *bsd* )
  13791. LDFLAGS="-pthread $LDFLAGS"
  13792. break;
  13793. ;;
  13794. esac
  13795. if test "x$ax_boost_user_thread_lib" = "x"; then
  13796. for libextension in `ls $BOOSTLIBDIR/libboost_thread*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_thread.*\)\.a*$;\1;'`; do
  13797. ax_lib=${libextension}
  13798. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13800. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13801. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13802. $as_echo_n "(cached) " >&6
  13803. else
  13804. ac_check_lib_save_LIBS=$LIBS
  13805. LIBS="-l$ax_lib $LIBS"
  13806. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13807. /* end confdefs.h. */
  13808. /* Override any GCC internal prototype to avoid an error.
  13809. Use char because int might match the return type of a GCC
  13810. builtin and then its argument prototype would still apply. */
  13811. #ifdef __cplusplus
  13812. extern "C"
  13813. #endif
  13814. char exit ();
  13815. int
  13816. main ()
  13817. {
  13818. return exit ();
  13819. ;
  13820. return 0;
  13821. }
  13822. _ACEOF
  13823. if ac_fn_cxx_try_link "$LINENO"; then :
  13824. eval "$as_ac_Lib=yes"
  13825. else
  13826. eval "$as_ac_Lib=no"
  13827. fi
  13828. rm -f core conftest.err conftest.$ac_objext \
  13829. conftest$ac_exeext conftest.$ac_ext
  13830. LIBS=$ac_check_lib_save_LIBS
  13831. fi
  13832. eval ac_res=\$$as_ac_Lib
  13833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13834. $as_echo "$ac_res" >&6; }
  13835. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13836. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13837. else
  13838. link_thread="no"
  13839. fi
  13840. done
  13841. if test "x$link_thread" != "xyes"; then
  13842. for libextension in `ls $BOOSTLIBDIR/boost_thread*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_thread*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_thread.*\)\.a*$;\1;'` ; do
  13843. ax_lib=${libextension}
  13844. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13846. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13847. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13848. $as_echo_n "(cached) " >&6
  13849. else
  13850. ac_check_lib_save_LIBS=$LIBS
  13851. LIBS="-l$ax_lib $LIBS"
  13852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13853. /* end confdefs.h. */
  13854. /* Override any GCC internal prototype to avoid an error.
  13855. Use char because int might match the return type of a GCC
  13856. builtin and then its argument prototype would still apply. */
  13857. #ifdef __cplusplus
  13858. extern "C"
  13859. #endif
  13860. char exit ();
  13861. int
  13862. main ()
  13863. {
  13864. return exit ();
  13865. ;
  13866. return 0;
  13867. }
  13868. _ACEOF
  13869. if ac_fn_cxx_try_link "$LINENO"; then :
  13870. eval "$as_ac_Lib=yes"
  13871. else
  13872. eval "$as_ac_Lib=no"
  13873. fi
  13874. rm -f core conftest.err conftest.$ac_objext \
  13875. conftest$ac_exeext conftest.$ac_ext
  13876. LIBS=$ac_check_lib_save_LIBS
  13877. fi
  13878. eval ac_res=\$$as_ac_Lib
  13879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13880. $as_echo "$ac_res" >&6; }
  13881. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13882. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13883. else
  13884. link_thread="no"
  13885. fi
  13886. done
  13887. fi
  13888. else
  13889. for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
  13890. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13892. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13893. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13894. $as_echo_n "(cached) " >&6
  13895. else
  13896. ac_check_lib_save_LIBS=$LIBS
  13897. LIBS="-l$ax_lib $LIBS"
  13898. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13899. /* end confdefs.h. */
  13900. /* Override any GCC internal prototype to avoid an error.
  13901. Use char because int might match the return type of a GCC
  13902. builtin and then its argument prototype would still apply. */
  13903. #ifdef __cplusplus
  13904. extern "C"
  13905. #endif
  13906. char exit ();
  13907. int
  13908. main ()
  13909. {
  13910. return exit ();
  13911. ;
  13912. return 0;
  13913. }
  13914. _ACEOF
  13915. if ac_fn_cxx_try_link "$LINENO"; then :
  13916. eval "$as_ac_Lib=yes"
  13917. else
  13918. eval "$as_ac_Lib=no"
  13919. fi
  13920. rm -f core conftest.err conftest.$ac_objext \
  13921. conftest$ac_exeext conftest.$ac_ext
  13922. LIBS=$ac_check_lib_save_LIBS
  13923. fi
  13924. eval ac_res=\$$as_ac_Lib
  13925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13926. $as_echo "$ac_res" >&6; }
  13927. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13928. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13929. else
  13930. link_thread="no"
  13931. fi
  13932. done
  13933. fi
  13934. if test "x$ax_lib" = "x"; then
  13935. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13936. fi
  13937. if test "x$link_thread" = "xno"; then
  13938. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13939. else
  13940. case "x$build_os" in
  13941. *bsd* )
  13942. BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
  13943. break;
  13944. ;;
  13945. esac
  13946. fi
  13947. fi
  13948. CPPFLAGS="$CPPFLAGS_SAVED"
  13949. LDFLAGS="$LDFLAGS_SAVED"
  13950. fi
  13951. # Check whether --with-boost-iostreams was given.
  13952. if test "${with_boost_iostreams+set}" = set; then :
  13953. withval=$with_boost_iostreams;
  13954. if test "$withval" = "no"; then
  13955. want_boost="no"
  13956. elif test "$withval" = "yes"; then
  13957. want_boost="yes"
  13958. ax_boost_user_iostreams_lib=""
  13959. else
  13960. want_boost="yes"
  13961. ax_boost_user_iostreams_lib="$withval"
  13962. fi
  13963. else
  13964. want_boost="yes"
  13965. fi
  13966. if test "x$want_boost" = "xyes"; then
  13967. CPPFLAGS_SAVED="$CPPFLAGS"
  13968. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13969. export CPPFLAGS
  13970. LDFLAGS_SAVED="$LDFLAGS"
  13971. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13972. export LDFLAGS
  13973. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::IOStreams library is available" >&5
  13974. $as_echo_n "checking whether the Boost::IOStreams library is available... " >&6; }
  13975. if test "${ax_cv_boost_iostreams+set}" = set; then :
  13976. $as_echo_n "(cached) " >&6
  13977. else
  13978. ac_ext=cpp
  13979. ac_cpp='$CXXCPP $CPPFLAGS'
  13980. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13981. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13982. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13983. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13984. /* end confdefs.h. */
  13985. #include <boost/iostreams/filtering_stream.hpp>
  13986. #include <boost/range/iterator_range.hpp>
  13987. int
  13988. main ()
  13989. {
  13990. std::string input = "Hello World!";
  13991. namespace io = boost::iostreams;
  13992. io::filtering_istream in(boost::make_iterator_range(input));
  13993. return 0;
  13994. ;
  13995. return 0;
  13996. }
  13997. _ACEOF
  13998. if ac_fn_cxx_try_compile "$LINENO"; then :
  13999. ax_cv_boost_iostreams=yes
  14000. else
  14001. ax_cv_boost_iostreams=no
  14002. fi
  14003. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14004. ac_ext=cpp
  14005. ac_cpp='$CXXCPP $CPPFLAGS'
  14006. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14007. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14008. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14009. fi
  14010. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_iostreams" >&5
  14011. $as_echo "$ax_cv_boost_iostreams" >&6; }
  14012. if test "x$ax_cv_boost_iostreams" = "xyes"; then
  14013. $as_echo "#define HAVE_BOOST_IOSTREAMS /**/" >>confdefs.h
  14014. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  14015. if test "x$ax_boost_user_iostreams_lib" = "x"; then
  14016. for libextension in `ls $BOOSTLIBDIR/libboost_iostreams*.so* $BOOSTLIBDIR/libboost_iostreams*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_iostreams.*\)\.so.*$;\1;' -e 's;^lib\(boost_iostreams.*\)\.a*$;\1;'` ; do
  14017. ax_lib=${libextension}
  14018. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  14020. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14021. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  14022. $as_echo_n "(cached) " >&6
  14023. else
  14024. ac_check_lib_save_LIBS=$LIBS
  14025. LIBS="-l$ax_lib $LIBS"
  14026. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14027. /* end confdefs.h. */
  14028. /* Override any GCC internal prototype to avoid an error.
  14029. Use char because int might match the return type of a GCC
  14030. builtin and then its argument prototype would still apply. */
  14031. #ifdef __cplusplus
  14032. extern "C"
  14033. #endif
  14034. char exit ();
  14035. int
  14036. main ()
  14037. {
  14038. return exit ();
  14039. ;
  14040. return 0;
  14041. }
  14042. _ACEOF
  14043. if ac_fn_cxx_try_link "$LINENO"; then :
  14044. eval "$as_ac_Lib=yes"
  14045. else
  14046. eval "$as_ac_Lib=no"
  14047. fi
  14048. rm -f core conftest.err conftest.$ac_objext \
  14049. conftest$ac_exeext conftest.$ac_ext
  14050. LIBS=$ac_check_lib_save_LIBS
  14051. fi
  14052. eval ac_res=\$$as_ac_Lib
  14053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14054. $as_echo "$ac_res" >&6; }
  14055. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14056. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14057. else
  14058. link_iostreams="no"
  14059. fi
  14060. done
  14061. if test "x$link_iostreams" != "xyes"; then
  14062. 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
  14063. ax_lib=${libextension}
  14064. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14065. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  14066. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14067. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  14068. $as_echo_n "(cached) " >&6
  14069. else
  14070. ac_check_lib_save_LIBS=$LIBS
  14071. LIBS="-l$ax_lib $LIBS"
  14072. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14073. /* end confdefs.h. */
  14074. /* Override any GCC internal prototype to avoid an error.
  14075. Use char because int might match the return type of a GCC
  14076. builtin and then its argument prototype would still apply. */
  14077. #ifdef __cplusplus
  14078. extern "C"
  14079. #endif
  14080. char exit ();
  14081. int
  14082. main ()
  14083. {
  14084. return exit ();
  14085. ;
  14086. return 0;
  14087. }
  14088. _ACEOF
  14089. if ac_fn_cxx_try_link "$LINENO"; then :
  14090. eval "$as_ac_Lib=yes"
  14091. else
  14092. eval "$as_ac_Lib=no"
  14093. fi
  14094. rm -f core conftest.err conftest.$ac_objext \
  14095. conftest$ac_exeext conftest.$ac_ext
  14096. LIBS=$ac_check_lib_save_LIBS
  14097. fi
  14098. eval ac_res=\$$as_ac_Lib
  14099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14100. $as_echo "$ac_res" >&6; }
  14101. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14102. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14103. else
  14104. link_iostreams="no"
  14105. fi
  14106. done
  14107. fi
  14108. else
  14109. for ax_lib in $ax_boost_user_iostreams_lib boost_iostreams-$ax_boost_user_iostreams_lib; do
  14110. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  14111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
  14112. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  14113. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  14114. $as_echo_n "(cached) " >&6
  14115. else
  14116. ac_check_lib_save_LIBS=$LIBS
  14117. LIBS="-l$ax_lib $LIBS"
  14118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14119. /* end confdefs.h. */
  14120. int
  14121. main ()
  14122. {
  14123. return main ();
  14124. ;
  14125. return 0;
  14126. }
  14127. _ACEOF
  14128. if ac_fn_cxx_try_link "$LINENO"; then :
  14129. eval "$as_ac_Lib=yes"
  14130. else
  14131. eval "$as_ac_Lib=no"
  14132. fi
  14133. rm -f core conftest.err conftest.$ac_objext \
  14134. conftest$ac_exeext conftest.$ac_ext
  14135. LIBS=$ac_check_lib_save_LIBS
  14136. fi
  14137. eval ac_res=\$$as_ac_Lib
  14138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14139. $as_echo "$ac_res" >&6; }
  14140. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14141. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  14142. else
  14143. link_iostreams="no"
  14144. fi
  14145. done
  14146. fi
  14147. if test "x$ax_lib" = "x"; then
  14148. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  14149. fi
  14150. if test "x$link_iostreams" != "xyes"; then
  14151. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  14152. fi
  14153. fi
  14154. CPPFLAGS="$CPPFLAGS_SAVED"
  14155. LDFLAGS="$LDFLAGS_SAVED"
  14156. fi
  14157. # Check whether --with-boost-program-options was given.
  14158. if test "${with_boost_program_options+set}" = set; then :
  14159. withval=$with_boost_program_options;
  14160. if test "$withval" = "no"; then
  14161. want_boost="no"
  14162. elif test "$withval" = "yes"; then
  14163. want_boost="yes"
  14164. ax_boost_user_program_options_lib=""
  14165. else
  14166. want_boost="yes"
  14167. ax_boost_user_program_options_lib="$withval"
  14168. fi
  14169. else
  14170. want_boost="yes"
  14171. fi
  14172. if test "x$want_boost" = "xyes"; then
  14173. export want_boost
  14174. CPPFLAGS_SAVED="$CPPFLAGS"
  14175. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  14176. export CPPFLAGS
  14177. LDFLAGS_SAVED="$LDFLAGS"
  14178. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  14179. export LDFLAGS
  14180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Program_Options library is available" >&5
  14181. $as_echo_n "checking whether the Boost::Program_Options library is available... " >&6; }
  14182. if test "${ax_cv_boost_program_options+set}" = set; then :
  14183. $as_echo_n "(cached) " >&6
  14184. else
  14185. ac_ext=cpp
  14186. ac_cpp='$CXXCPP $CPPFLAGS'
  14187. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14188. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14189. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14191. /* end confdefs.h. */
  14192. #include <boost/program_options.hpp>
  14193. int
  14194. main ()
  14195. {
  14196. boost::program_options::options_description generic("Generic options");
  14197. return 0;
  14198. ;
  14199. return 0;
  14200. }
  14201. _ACEOF
  14202. if ac_fn_cxx_try_compile "$LINENO"; then :
  14203. ax_cv_boost_program_options=yes
  14204. else
  14205. ax_cv_boost_program_options=no
  14206. fi
  14207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14208. ac_ext=cpp
  14209. ac_cpp='$CXXCPP $CPPFLAGS'
  14210. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14211. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14212. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  14213. fi
  14214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_program_options" >&5
  14215. $as_echo "$ax_cv_boost_program_options" >&6; }
  14216. if test "$ax_cv_boost_program_options" = yes; then
  14217. $as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS /**/" >>confdefs.h
  14218. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  14219. if test "x$ax_boost_user_program_options_lib" = "x"; then
  14220. for libextension in `ls $BOOSTLIBDIR/libboost_program_options*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.so.*$;\1;'` `ls $BOOSTLIBDIR/libboost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_program_options.*\)\.a*$;\1;'` ; do
  14221. ax_lib=${libextension}
  14222. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  14224. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14225. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  14226. $as_echo_n "(cached) " >&6
  14227. else
  14228. ac_check_lib_save_LIBS=$LIBS
  14229. LIBS="-l$ax_lib $LIBS"
  14230. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14231. /* end confdefs.h. */
  14232. /* Override any GCC internal prototype to avoid an error.
  14233. Use char because int might match the return type of a GCC
  14234. builtin and then its argument prototype would still apply. */
  14235. #ifdef __cplusplus
  14236. extern "C"
  14237. #endif
  14238. char exit ();
  14239. int
  14240. main ()
  14241. {
  14242. return exit ();
  14243. ;
  14244. return 0;
  14245. }
  14246. _ACEOF
  14247. if ac_fn_cxx_try_link "$LINENO"; then :
  14248. eval "$as_ac_Lib=yes"
  14249. else
  14250. eval "$as_ac_Lib=no"
  14251. fi
  14252. rm -f core conftest.err conftest.$ac_objext \
  14253. conftest$ac_exeext conftest.$ac_ext
  14254. LIBS=$ac_check_lib_save_LIBS
  14255. fi
  14256. eval ac_res=\$$as_ac_Lib
  14257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14258. $as_echo "$ac_res" >&6; }
  14259. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14260. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  14261. else
  14262. link_program_options="no"
  14263. fi
  14264. done
  14265. if test "x$link_program_options" != "xyes"; then
  14266. for libextension in `ls $BOOSTLIBDIR/boost_program_options*.dll* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.dll.*$;\1;'` `ls $BOOSTLIBDIR/boost_program_options*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_program_options.*\)\.a*$;\1;'` ; do
  14267. ax_lib=${libextension}
  14268. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  14269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  14270. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  14271. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  14272. $as_echo_n "(cached) " >&6
  14273. else
  14274. ac_check_lib_save_LIBS=$LIBS
  14275. LIBS="-l$ax_lib $LIBS"
  14276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14277. /* end confdefs.h. */
  14278. /* Override any GCC internal prototype to avoid an error.
  14279. Use char because int might match the return type of a GCC
  14280. builtin and then its argument prototype would still apply. */
  14281. #ifdef __cplusplus
  14282. extern "C"
  14283. #endif
  14284. char exit ();
  14285. int
  14286. main ()
  14287. {
  14288. return exit ();
  14289. ;
  14290. return 0;
  14291. }
  14292. _ACEOF
  14293. if ac_fn_cxx_try_link "$LINENO"; then :
  14294. eval "$as_ac_Lib=yes"
  14295. else
  14296. eval "$as_ac_Lib=no"
  14297. fi
  14298. rm -f core conftest.err conftest.$ac_objext \
  14299. conftest$ac_exeext conftest.$ac_ext
  14300. LIBS=$ac_check_lib_save_LIBS
  14301. fi
  14302. eval ac_res=\$$as_ac_Lib
  14303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14304. $as_echo "$ac_res" >&6; }
  14305. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14306. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  14307. else
  14308. link_program_options="no"
  14309. fi
  14310. done
  14311. fi
  14312. else
  14313. for ax_lib in $ax_boost_user_program_options_lib boost_program_options-$ax_boost_user_program_options_lib; do
  14314. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  14315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
  14316. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  14317. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  14318. $as_echo_n "(cached) " >&6
  14319. else
  14320. ac_check_lib_save_LIBS=$LIBS
  14321. LIBS="-l$ax_lib $LIBS"
  14322. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14323. /* end confdefs.h. */
  14324. int
  14325. main ()
  14326. {
  14327. return main ();
  14328. ;
  14329. return 0;
  14330. }
  14331. _ACEOF
  14332. if ac_fn_cxx_try_link "$LINENO"; then :
  14333. eval "$as_ac_Lib=yes"
  14334. else
  14335. eval "$as_ac_Lib=no"
  14336. fi
  14337. rm -f core conftest.err conftest.$ac_objext \
  14338. conftest$ac_exeext conftest.$ac_ext
  14339. LIBS=$ac_check_lib_save_LIBS
  14340. fi
  14341. eval ac_res=\$$as_ac_Lib
  14342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  14343. $as_echo "$ac_res" >&6; }
  14344. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  14345. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  14346. else
  14347. link_program_options="no"
  14348. fi
  14349. done
  14350. fi
  14351. if test "x$ax_lib" = "x"; then
  14352. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  14353. fi
  14354. if test "x$link_program_options" != "xyes"; then
  14355. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  14356. fi
  14357. fi
  14358. CPPFLAGS="$CPPFLAGS_SAVED"
  14359. LDFLAGS="$LDFLAGS_SAVED"
  14360. fi
  14361. # Check whether librt is necessary
  14362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shm_open in -lrt" >&5
  14363. $as_echo_n "checking for shm_open in -lrt... " >&6; }
  14364. if test "${ac_cv_lib_rt_shm_open+set}" = set; then :
  14365. $as_echo_n "(cached) " >&6
  14366. else
  14367. ac_check_lib_save_LIBS=$LIBS
  14368. LIBS="-lrt $LIBS"
  14369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14370. /* end confdefs.h. */
  14371. /* Override any GCC internal prototype to avoid an error.
  14372. Use char because int might match the return type of a GCC
  14373. builtin and then its argument prototype would still apply. */
  14374. #ifdef __cplusplus
  14375. extern "C"
  14376. #endif
  14377. char shm_open ();
  14378. int
  14379. main ()
  14380. {
  14381. return shm_open ();
  14382. ;
  14383. return 0;
  14384. }
  14385. _ACEOF
  14386. if ac_fn_cxx_try_link "$LINENO"; then :
  14387. ac_cv_lib_rt_shm_open=yes
  14388. else
  14389. ac_cv_lib_rt_shm_open=no
  14390. fi
  14391. rm -f core conftest.err conftest.$ac_objext \
  14392. conftest$ac_exeext conftest.$ac_ext
  14393. LIBS=$ac_check_lib_save_LIBS
  14394. fi
  14395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_shm_open" >&5
  14396. $as_echo "$ac_cv_lib_rt_shm_open" >&6; }
  14397. if test "x$ac_cv_lib_rt_shm_open" = x""yes; then :
  14398. cat >>confdefs.h <<_ACEOF
  14399. #define HAVE_LIBRT 1
  14400. _ACEOF
  14401. LIBS="-lrt $LIBS"
  14402. fi
  14403. # Check for SDL - Will accept 1.2 and 1.3
  14404. # Check whether --with-sdl-prefix was given.
  14405. if test "${with_sdl_prefix+set}" = set; then :
  14406. withval=$with_sdl_prefix; sdl_prefix="$withval"
  14407. else
  14408. sdl_prefix=""
  14409. fi
  14410. # Check whether --with-sdl-exec-prefix was given.
  14411. if test "${with_sdl_exec_prefix+set}" = set; then :
  14412. withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
  14413. else
  14414. sdl_exec_prefix=""
  14415. fi
  14416. # Check whether --enable-sdltest was given.
  14417. if test "${enable_sdltest+set}" = set; then :
  14418. enableval=$enable_sdltest;
  14419. else
  14420. enable_sdltest=yes
  14421. fi
  14422. if test x$sdl_exec_prefix != x ; then
  14423. sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
  14424. if test x${SDL_CONFIG+set} != xset ; then
  14425. SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
  14426. fi
  14427. fi
  14428. if test x$sdl_prefix != x ; then
  14429. sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
  14430. if test x${SDL_CONFIG+set} != xset ; then
  14431. SDL_CONFIG=$sdl_prefix/bin/sdl-config
  14432. fi
  14433. fi
  14434. as_save_PATH="$PATH"
  14435. if test "x$prefix" != xNONE; then
  14436. PATH="$prefix/bin:$prefix/usr/bin:$PATH"
  14437. fi
  14438. # Extract the first word of "sdl-config", so it can be a program name with args.
  14439. set dummy sdl-config; ac_word=$2
  14440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  14441. $as_echo_n "checking for $ac_word... " >&6; }
  14442. if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
  14443. $as_echo_n "(cached) " >&6
  14444. else
  14445. case $SDL_CONFIG in
  14446. [\\/]* | ?:[\\/]*)
  14447. ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
  14448. ;;
  14449. *)
  14450. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14451. for as_dir in $PATH
  14452. do
  14453. IFS=$as_save_IFS
  14454. test -z "$as_dir" && as_dir=.
  14455. for ac_exec_ext in '' $ac_executable_extensions; do
  14456. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  14457. ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  14458. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  14459. break 2
  14460. fi
  14461. done
  14462. done
  14463. IFS=$as_save_IFS
  14464. test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
  14465. ;;
  14466. esac
  14467. fi
  14468. SDL_CONFIG=$ac_cv_path_SDL_CONFIG
  14469. if test -n "$SDL_CONFIG"; then
  14470. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
  14471. $as_echo "$SDL_CONFIG" >&6; }
  14472. else
  14473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14474. $as_echo "no" >&6; }
  14475. fi
  14476. PATH="$as_save_PATH"
  14477. min_sdl_version="1.2.0"
  14478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
  14479. $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
  14480. no_sdl=""
  14481. if test "$SDL_CONFIG" = "no" ; then
  14482. no_sdl=yes
  14483. else
  14484. SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
  14485. SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
  14486. sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
  14487. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  14488. sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
  14489. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  14490. sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
  14491. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  14492. if test "x$enable_sdltest" = "xyes" ; then
  14493. ac_save_CFLAGS="$CFLAGS"
  14494. ac_save_CXXFLAGS="$CXXFLAGS"
  14495. ac_save_LIBS="$LIBS"
  14496. CFLAGS="$CFLAGS $SDL_CFLAGS"
  14497. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  14498. LIBS="$LIBS $SDL_LIBS"
  14499. rm -f conf.sdltest
  14500. if test "$cross_compiling" = yes; then :
  14501. echo $ac_n "cross compiling; assumed OK... $ac_c"
  14502. else
  14503. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14504. /* end confdefs.h. */
  14505. #include <stdio.h>
  14506. #include <stdlib.h>
  14507. #include <string.h>
  14508. #include "SDL.h"
  14509. char*
  14510. my_strdup (char *str)
  14511. {
  14512. char *new_str;
  14513. if (str)
  14514. {
  14515. new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
  14516. strcpy (new_str, str);
  14517. }
  14518. else
  14519. new_str = NULL;
  14520. return new_str;
  14521. }
  14522. int main (int argc, char *argv[])
  14523. {
  14524. int major, minor, micro;
  14525. char *tmp_version;
  14526. /* This hangs on some systems (?)
  14527. system ("touch conf.sdltest");
  14528. */
  14529. { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
  14530. /* HP/UX 9 (%@#!) writes to sscanf strings */
  14531. tmp_version = my_strdup("$min_sdl_version");
  14532. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  14533. printf("%s, bad version string\n", "$min_sdl_version");
  14534. exit(1);
  14535. }
  14536. if (($sdl_major_version > major) ||
  14537. (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
  14538. (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
  14539. {
  14540. return 0;
  14541. }
  14542. else
  14543. {
  14544. printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
  14545. printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
  14546. printf("*** best to upgrade to the required version.\n");
  14547. printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
  14548. printf("*** to point to the correct copy of sdl-config, and remove the file\n");
  14549. printf("*** config.cache before re-running configure\n");
  14550. return 1;
  14551. }
  14552. }
  14553. _ACEOF
  14554. if ac_fn_cxx_try_run "$LINENO"; then :
  14555. else
  14556. no_sdl=yes
  14557. fi
  14558. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14559. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14560. fi
  14561. CFLAGS="$ac_save_CFLAGS"
  14562. CXXFLAGS="$ac_save_CXXFLAGS"
  14563. LIBS="$ac_save_LIBS"
  14564. fi
  14565. fi
  14566. if test "x$no_sdl" = x ; then
  14567. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  14568. $as_echo "yes" >&6; }
  14569. :
  14570. else
  14571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  14572. $as_echo "no" >&6; }
  14573. if test "$SDL_CONFIG" = "no" ; then
  14574. echo "*** The sdl-config script installed by SDL could not be found"
  14575. echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
  14576. echo "*** your path, or set the SDL_CONFIG environment variable to the"
  14577. echo "*** full path to sdl-config."
  14578. else
  14579. if test -f conf.sdltest ; then
  14580. :
  14581. else
  14582. echo "*** Could not run SDL test program, checking why..."
  14583. CFLAGS="$CFLAGS $SDL_CFLAGS"
  14584. CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
  14585. LIBS="$LIBS $SDL_LIBS"
  14586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14587. /* end confdefs.h. */
  14588. #include <stdio.h>
  14589. #include "SDL.h"
  14590. int main(int argc, char *argv[])
  14591. { return 0; }
  14592. #undef main
  14593. #define main K_and_R_C_main
  14594. int
  14595. main ()
  14596. {
  14597. return 0;
  14598. ;
  14599. return 0;
  14600. }
  14601. _ACEOF
  14602. if ac_fn_cxx_try_link "$LINENO"; then :
  14603. echo "*** The test program compiled, but did not run. This usually means"
  14604. echo "*** that the run-time linker is not finding SDL or finding the wrong"
  14605. echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
  14606. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  14607. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  14608. echo "*** is required on your system"
  14609. echo "***"
  14610. echo "*** If you have an old version installed, it is best to remove it, although"
  14611. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  14612. else
  14613. echo "*** The test program failed to compile or link. See the file config.log for the"
  14614. echo "*** exact error that occured. This usually means SDL was incorrectly installed"
  14615. echo "*** or that you have moved SDL since it was installed. In the latter case, you"
  14616. echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
  14617. fi
  14618. rm -f core conftest.err conftest.$ac_objext \
  14619. conftest$ac_exeext conftest.$ac_ext
  14620. CFLAGS="$ac_save_CFLAGS"
  14621. CXXFLAGS="$ac_save_CXXFLAGS"
  14622. LIBS="$ac_save_LIBS"
  14623. fi
  14624. fi
  14625. SDL_CFLAGS=""
  14626. SDL_LIBS=""
  14627. as_fn_error $? "*** SDL version $SDL_VERSION not found!" "$LINENO" 5
  14628. fi
  14629. rm -f conf.sdltest
  14630. # Check for SDL headers and libraries
  14631. for ac_header in SDL/SDL.h SDL/SDL_mixer.h SDL/SDL_image.h SDL/SDL_ttf.h
  14632. do :
  14633. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14634. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14635. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14636. cat >>confdefs.h <<_ACEOF
  14637. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14638. _ACEOF
  14639. else
  14640. as_fn_error $? "Header not found. Install missing devel package." "$LINENO" 5
  14641. fi
  14642. done
  14643. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
  14644. $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
  14645. if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then :
  14646. $as_echo_n "(cached) " >&6
  14647. else
  14648. ac_check_lib_save_LIBS=$LIBS
  14649. LIBS="-lSDL $LIBS"
  14650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14651. /* end confdefs.h. */
  14652. /* Override any GCC internal prototype to avoid an error.
  14653. Use char because int might match the return type of a GCC
  14654. builtin and then its argument prototype would still apply. */
  14655. #ifdef __cplusplus
  14656. extern "C"
  14657. #endif
  14658. char SDL_Init ();
  14659. int
  14660. main ()
  14661. {
  14662. return SDL_Init ();
  14663. ;
  14664. return 0;
  14665. }
  14666. _ACEOF
  14667. if ac_fn_cxx_try_link "$LINENO"; then :
  14668. ac_cv_lib_SDL_SDL_Init=yes
  14669. else
  14670. ac_cv_lib_SDL_SDL_Init=no
  14671. fi
  14672. rm -f core conftest.err conftest.$ac_objext \
  14673. conftest$ac_exeext conftest.$ac_ext
  14674. LIBS=$ac_check_lib_save_LIBS
  14675. fi
  14676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
  14677. $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
  14678. if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then :
  14679. cat >>confdefs.h <<_ACEOF
  14680. #define HAVE_LIBSDL 1
  14681. _ACEOF
  14682. LIBS="-lSDL $LIBS"
  14683. else
  14684. as_fn_error $? "SDL library not found. Please install it." "$LINENO" 5
  14685. fi
  14686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_mixer" >&5
  14687. $as_echo_n "checking for main in -lSDL_mixer... " >&6; }
  14688. if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then :
  14689. $as_echo_n "(cached) " >&6
  14690. else
  14691. ac_check_lib_save_LIBS=$LIBS
  14692. LIBS="-lSDL_mixer $LIBS"
  14693. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14694. /* end confdefs.h. */
  14695. int
  14696. main ()
  14697. {
  14698. return main ();
  14699. ;
  14700. return 0;
  14701. }
  14702. _ACEOF
  14703. if ac_fn_cxx_try_link "$LINENO"; then :
  14704. ac_cv_lib_SDL_mixer_main=yes
  14705. else
  14706. ac_cv_lib_SDL_mixer_main=no
  14707. fi
  14708. rm -f core conftest.err conftest.$ac_objext \
  14709. conftest$ac_exeext conftest.$ac_ext
  14710. LIBS=$ac_check_lib_save_LIBS
  14711. fi
  14712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_main" >&5
  14713. $as_echo "$ac_cv_lib_SDL_mixer_main" >&6; }
  14714. if test "x$ac_cv_lib_SDL_mixer_main" = x""yes; then :
  14715. cat >>confdefs.h <<_ACEOF
  14716. #define HAVE_LIBSDL_MIXER 1
  14717. _ACEOF
  14718. LIBS="-lSDL_mixer $LIBS"
  14719. else
  14720. as_fn_error $? "SDL_mixer library not found. Please install it." "$LINENO" 5
  14721. fi
  14722. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
  14723. $as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
  14724. if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then :
  14725. $as_echo_n "(cached) " >&6
  14726. else
  14727. ac_check_lib_save_LIBS=$LIBS
  14728. LIBS="-lSDL_image $LIBS"
  14729. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14730. /* end confdefs.h. */
  14731. /* Override any GCC internal prototype to avoid an error.
  14732. Use char because int might match the return type of a GCC
  14733. builtin and then its argument prototype would still apply. */
  14734. #ifdef __cplusplus
  14735. extern "C"
  14736. #endif
  14737. char IMG_Load ();
  14738. int
  14739. main ()
  14740. {
  14741. return IMG_Load ();
  14742. ;
  14743. return 0;
  14744. }
  14745. _ACEOF
  14746. if ac_fn_cxx_try_link "$LINENO"; then :
  14747. ac_cv_lib_SDL_image_IMG_Load=yes
  14748. else
  14749. ac_cv_lib_SDL_image_IMG_Load=no
  14750. fi
  14751. rm -f core conftest.err conftest.$ac_objext \
  14752. conftest$ac_exeext conftest.$ac_ext
  14753. LIBS=$ac_check_lib_save_LIBS
  14754. fi
  14755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
  14756. $as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
  14757. if test "x$ac_cv_lib_SDL_image_IMG_Load" = x""yes; then :
  14758. cat >>confdefs.h <<_ACEOF
  14759. #define HAVE_LIBSDL_IMAGE 1
  14760. _ACEOF
  14761. LIBS="-lSDL_image $LIBS"
  14762. else
  14763. as_fn_error $? "SDL_image library not found. Please install it." "$LINENO" 5
  14764. fi
  14765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_ttf" >&5
  14766. $as_echo_n "checking for main in -lSDL_ttf... " >&6; }
  14767. if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then :
  14768. $as_echo_n "(cached) " >&6
  14769. else
  14770. ac_check_lib_save_LIBS=$LIBS
  14771. LIBS="-lSDL_ttf $LIBS"
  14772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14773. /* end confdefs.h. */
  14774. int
  14775. main ()
  14776. {
  14777. return main ();
  14778. ;
  14779. return 0;
  14780. }
  14781. _ACEOF
  14782. if ac_fn_cxx_try_link "$LINENO"; then :
  14783. ac_cv_lib_SDL_ttf_main=yes
  14784. else
  14785. ac_cv_lib_SDL_ttf_main=no
  14786. fi
  14787. rm -f core conftest.err conftest.$ac_objext \
  14788. conftest$ac_exeext conftest.$ac_ext
  14789. LIBS=$ac_check_lib_save_LIBS
  14790. fi
  14791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_ttf_main" >&5
  14792. $as_echo "$ac_cv_lib_SDL_ttf_main" >&6; }
  14793. if test "x$ac_cv_lib_SDL_ttf_main" = x""yes; then :
  14794. cat >>confdefs.h <<_ACEOF
  14795. #define HAVE_LIBSDL_TTF 1
  14796. _ACEOF
  14797. LIBS="-lSDL_ttf $LIBS"
  14798. else
  14799. as_fn_error $? "SDL_ttf library not found. Please install it." "$LINENO" 5
  14800. fi
  14801. # Check for ffmpeg libraries
  14802. saved_LIBS=$LIBS
  14803. saved_CFLAGS=$CFLAGS
  14804. FFMPEG_CXXFLAGS=""
  14805. FFMPEG_LIBS=
  14806. LIBS="$LIBS `pkg-config --libs libavcodec libavformat libavutil libswscale`"
  14807. CFLAGS="$CFLAGS `pkg-config --cflags libavformat libswscale`"
  14808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_open_input_file in -lavformat" >&5
  14809. $as_echo_n "checking for av_open_input_file in -lavformat... " >&6; }
  14810. if test "${ac_cv_lib_avformat_av_open_input_file+set}" = set; then :
  14811. $as_echo_n "(cached) " >&6
  14812. else
  14813. ac_check_lib_save_LIBS=$LIBS
  14814. LIBS="-lavformat $LIBS"
  14815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14816. /* end confdefs.h. */
  14817. /* Override any GCC internal prototype to avoid an error.
  14818. Use char because int might match the return type of a GCC
  14819. builtin and then its argument prototype would still apply. */
  14820. #ifdef __cplusplus
  14821. extern "C"
  14822. #endif
  14823. char av_open_input_file ();
  14824. int
  14825. main ()
  14826. {
  14827. return av_open_input_file ();
  14828. ;
  14829. return 0;
  14830. }
  14831. _ACEOF
  14832. if ac_fn_cxx_try_link "$LINENO"; then :
  14833. ac_cv_lib_avformat_av_open_input_file=yes
  14834. else
  14835. ac_cv_lib_avformat_av_open_input_file=no
  14836. fi
  14837. rm -f core conftest.err conftest.$ac_objext \
  14838. conftest$ac_exeext conftest.$ac_ext
  14839. LIBS=$ac_check_lib_save_LIBS
  14840. fi
  14841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_open_input_file" >&5
  14842. $as_echo "$ac_cv_lib_avformat_av_open_input_file" >&6; }
  14843. if test "x$ac_cv_lib_avformat_av_open_input_file" = x""yes; then :
  14844. cat >>confdefs.h <<_ACEOF
  14845. #define HAVE_LIBAVFORMAT 1
  14846. _ACEOF
  14847. LIBS="-lavformat $LIBS"
  14848. else
  14849. as_fn_error $? "FFMpeg avformat library not found. Please install it." "$LINENO" 5
  14850. fi
  14851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_getContext in -lswscale" >&5
  14852. $as_echo_n "checking for sws_getContext in -lswscale... " >&6; }
  14853. if test "${ac_cv_lib_swscale_sws_getContext+set}" = set; then :
  14854. $as_echo_n "(cached) " >&6
  14855. else
  14856. ac_check_lib_save_LIBS=$LIBS
  14857. LIBS="-lswscale $LIBS"
  14858. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14859. /* end confdefs.h. */
  14860. /* Override any GCC internal prototype to avoid an error.
  14861. Use char because int might match the return type of a GCC
  14862. builtin and then its argument prototype would still apply. */
  14863. #ifdef __cplusplus
  14864. extern "C"
  14865. #endif
  14866. char sws_getContext ();
  14867. int
  14868. main ()
  14869. {
  14870. return sws_getContext ();
  14871. ;
  14872. return 0;
  14873. }
  14874. _ACEOF
  14875. if ac_fn_cxx_try_link "$LINENO"; then :
  14876. ac_cv_lib_swscale_sws_getContext=yes
  14877. else
  14878. ac_cv_lib_swscale_sws_getContext=no
  14879. fi
  14880. rm -f core conftest.err conftest.$ac_objext \
  14881. conftest$ac_exeext conftest.$ac_ext
  14882. LIBS=$ac_check_lib_save_LIBS
  14883. fi
  14884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_getContext" >&5
  14885. $as_echo "$ac_cv_lib_swscale_sws_getContext" >&6; }
  14886. if test "x$ac_cv_lib_swscale_sws_getContext" = x""yes; then :
  14887. cat >>confdefs.h <<_ACEOF
  14888. #define HAVE_LIBSWSCALE 1
  14889. _ACEOF
  14890. LIBS="-lswscale $LIBS"
  14891. else
  14892. as_fn_error $? "FFMpeg swscale library not found. Please install it." "$LINENO" 5
  14893. fi
  14894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_decode_video2 in -lavcodec" >&5
  14895. $as_echo_n "checking for avcodec_decode_video2 in -lavcodec... " >&6; }
  14896. if test "${ac_cv_lib_avcodec_avcodec_decode_video2+set}" = set; then :
  14897. $as_echo_n "(cached) " >&6
  14898. else
  14899. ac_check_lib_save_LIBS=$LIBS
  14900. LIBS="-lavcodec $LIBS"
  14901. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14902. /* end confdefs.h. */
  14903. /* Override any GCC internal prototype to avoid an error.
  14904. Use char because int might match the return type of a GCC
  14905. builtin and then its argument prototype would still apply. */
  14906. #ifdef __cplusplus
  14907. extern "C"
  14908. #endif
  14909. char avcodec_decode_video2 ();
  14910. int
  14911. main ()
  14912. {
  14913. return avcodec_decode_video2 ();
  14914. ;
  14915. return 0;
  14916. }
  14917. _ACEOF
  14918. if ac_fn_cxx_try_link "$LINENO"; then :
  14919. ac_cv_lib_avcodec_avcodec_decode_video2=yes
  14920. else
  14921. ac_cv_lib_avcodec_avcodec_decode_video2=no
  14922. fi
  14923. rm -f core conftest.err conftest.$ac_objext \
  14924. conftest$ac_exeext conftest.$ac_ext
  14925. LIBS=$ac_check_lib_save_LIBS
  14926. fi
  14927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_decode_video2" >&5
  14928. $as_echo "$ac_cv_lib_avcodec_avcodec_decode_video2" >&6; }
  14929. if test "x$ac_cv_lib_avcodec_avcodec_decode_video2" = x""yes; then :
  14930. AVCODEC_DECODE_VIDEO2="-DWITH_AVCODEC_DECODE_VIDEO2"
  14931. fi
  14932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_register_protocol2 in -lavcodec" >&5
  14933. $as_echo_n "checking for av_register_protocol2 in -lavcodec... " >&6; }
  14934. if test "${ac_cv_lib_avcodec_av_register_protocol2+set}" = set; then :
  14935. $as_echo_n "(cached) " >&6
  14936. else
  14937. ac_check_lib_save_LIBS=$LIBS
  14938. LIBS="-lavcodec $LIBS"
  14939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14940. /* end confdefs.h. */
  14941. /* Override any GCC internal prototype to avoid an error.
  14942. Use char because int might match the return type of a GCC
  14943. builtin and then its argument prototype would still apply. */
  14944. #ifdef __cplusplus
  14945. extern "C"
  14946. #endif
  14947. char av_register_protocol2 ();
  14948. int
  14949. main ()
  14950. {
  14951. return av_register_protocol2 ();
  14952. ;
  14953. return 0;
  14954. }
  14955. _ACEOF
  14956. if ac_fn_cxx_try_link "$LINENO"; then :
  14957. ac_cv_lib_avcodec_av_register_protocol2=yes
  14958. else
  14959. ac_cv_lib_avcodec_av_register_protocol2=no
  14960. fi
  14961. rm -f core conftest.err conftest.$ac_objext \
  14962. conftest$ac_exeext conftest.$ac_ext
  14963. LIBS=$ac_check_lib_save_LIBS
  14964. fi
  14965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_av_register_protocol2" >&5
  14966. $as_echo "$ac_cv_lib_avcodec_av_register_protocol2" >&6; }
  14967. if test "x$ac_cv_lib_avcodec_av_register_protocol2" = x""yes; then :
  14968. AV_REGISTER_PROTOCOL2="-DWITH_AV_REGISTER_PROTOCOL2"
  14969. fi
  14970. FFMPEG_LIBS="$LIBS"
  14971. FFMPEG_CXXFLAGS="$CFLAGS $AVCODEC_DECODE_VIDEO2 $AV_REGISTER_PROTOCOL2"
  14972. LIBS=$saved_LIBS
  14973. CFLAGS=$saved_CFLAGS
  14974. # Checks for header files.
  14975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14976. $as_echo_n "checking for ANSI C header files... " >&6; }
  14977. if test "${ac_cv_header_stdc+set}" = set; then :
  14978. $as_echo_n "(cached) " >&6
  14979. else
  14980. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14981. /* end confdefs.h. */
  14982. #include <stdlib.h>
  14983. #include <stdarg.h>
  14984. #include <string.h>
  14985. #include <float.h>
  14986. int
  14987. main ()
  14988. {
  14989. ;
  14990. return 0;
  14991. }
  14992. _ACEOF
  14993. if ac_fn_cxx_try_compile "$LINENO"; then :
  14994. ac_cv_header_stdc=yes
  14995. else
  14996. ac_cv_header_stdc=no
  14997. fi
  14998. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14999. if test $ac_cv_header_stdc = yes; then
  15000. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15001. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15002. /* end confdefs.h. */
  15003. #include <string.h>
  15004. _ACEOF
  15005. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15006. $EGREP "memchr" >/dev/null 2>&1; then :
  15007. else
  15008. ac_cv_header_stdc=no
  15009. fi
  15010. rm -f conftest*
  15011. fi
  15012. if test $ac_cv_header_stdc = yes; then
  15013. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15014. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15015. /* end confdefs.h. */
  15016. #include <stdlib.h>
  15017. _ACEOF
  15018. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15019. $EGREP "free" >/dev/null 2>&1; then :
  15020. else
  15021. ac_cv_header_stdc=no
  15022. fi
  15023. rm -f conftest*
  15024. fi
  15025. if test $ac_cv_header_stdc = yes; then
  15026. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15027. if test "$cross_compiling" = yes; then :
  15028. :
  15029. else
  15030. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15031. /* end confdefs.h. */
  15032. #include <ctype.h>
  15033. #include <stdlib.h>
  15034. #if ((' ' & 0x0FF) == 0x020)
  15035. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15036. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15037. #else
  15038. # define ISLOWER(c) \
  15039. (('a' <= (c) && (c) <= 'i') \
  15040. || ('j' <= (c) && (c) <= 'r') \
  15041. || ('s' <= (c) && (c) <= 'z'))
  15042. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  15043. #endif
  15044. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15045. int
  15046. main ()
  15047. {
  15048. int i;
  15049. for (i = 0; i < 256; i++)
  15050. if (XOR (islower (i), ISLOWER (i))
  15051. || toupper (i) != TOUPPER (i))
  15052. return 2;
  15053. return 0;
  15054. }
  15055. _ACEOF
  15056. if ac_fn_cxx_try_run "$LINENO"; then :
  15057. else
  15058. ac_cv_header_stdc=no
  15059. fi
  15060. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  15061. conftest.$ac_objext conftest.beam conftest.$ac_ext
  15062. fi
  15063. fi
  15064. fi
  15065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  15066. $as_echo "$ac_cv_header_stdc" >&6; }
  15067. if test $ac_cv_header_stdc = yes; then
  15068. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  15069. fi
  15070. for ac_header in fcntl.h stdlib.h string.h
  15071. do :
  15072. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15073. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15074. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15075. cat >>confdefs.h <<_ACEOF
  15076. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15077. _ACEOF
  15078. fi
  15079. done
  15080. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  15081. 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
  15082. do :
  15083. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  15084. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  15085. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  15086. cat >>confdefs.h <<_ACEOF
  15087. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  15088. _ACEOF
  15089. else
  15090. as_fn_error $? "Required boost headers not found. Please install it." "$LINENO" 5
  15091. fi
  15092. done
  15093. # Checks for library functions.
  15094. for ac_func in atexit memset pow select sqrt
  15095. do :
  15096. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  15097. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  15098. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  15099. cat >>confdefs.h <<_ACEOF
  15100. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  15101. _ACEOF
  15102. fi
  15103. done
  15104. CXXFLAGS="$CXXFLAGS -DM_DATA_DIR=\\\"\$(pkgdatadir)\\\" -DM_BIN_DIR=\\\"\$(bindir)\\\" -DM_LIB_DIR=\\\"\$(pkglibdir)\\\""
  15105. VCMI_AI_LIBS_DIR="$libdir/vcmi/AI"
  15106. VCMI_SCRIPTING_LIBS_DIR="$libdir/vcmi/Scripting"
  15107. ac_config_files="$ac_config_files Makefile lib/Makefile client/Makefile server/Makefile AI/Makefile AI/StupidAI/Makefile AI/GeniusAI/Makefile AI/EmptyAI/Makefile Scripting/ERM/Makefile"
  15108. cat >confcache <<\_ACEOF
  15109. # This file is a shell script that caches the results of configure
  15110. # tests run on this system so they can be shared between configure
  15111. # scripts and configure runs, see configure's option --config-cache.
  15112. # It is not useful on other systems. If it contains results you don't
  15113. # want to keep, you may remove or edit it.
  15114. #
  15115. # config.status only pays attention to the cache file if you give it
  15116. # the --recheck option to rerun configure.
  15117. #
  15118. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  15119. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  15120. # following values.
  15121. _ACEOF
  15122. # The following way of writing the cache mishandles newlines in values,
  15123. # but we know of no workaround that is simple, portable, and efficient.
  15124. # So, we kill variables containing newlines.
  15125. # Ultrix sh set writes to stderr and can't be redirected directly,
  15126. # and sets the high bit in the cache file unless we assign to the vars.
  15127. (
  15128. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  15129. eval ac_val=\$$ac_var
  15130. case $ac_val in #(
  15131. *${as_nl}*)
  15132. case $ac_var in #(
  15133. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  15134. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  15135. esac
  15136. case $ac_var in #(
  15137. _ | IFS | as_nl) ;; #(
  15138. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  15139. *) { eval $ac_var=; unset $ac_var;} ;;
  15140. esac ;;
  15141. esac
  15142. done
  15143. (set) 2>&1 |
  15144. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  15145. *${as_nl}ac_space=\ *)
  15146. # `set' does not quote correctly, so add quotes: double-quote
  15147. # substitution turns \\\\ into \\, and sed turns \\ into \.
  15148. sed -n \
  15149. "s/'/'\\\\''/g;
  15150. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  15151. ;; #(
  15152. *)
  15153. # `set' quotes correctly as required by POSIX, so do not add quotes.
  15154. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  15155. ;;
  15156. esac |
  15157. sort
  15158. ) |
  15159. sed '
  15160. /^ac_cv_env_/b end
  15161. t clear
  15162. :clear
  15163. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  15164. t end
  15165. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  15166. :end' >>confcache
  15167. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  15168. if test -w "$cache_file"; then
  15169. test "x$cache_file" != "x/dev/null" &&
  15170. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  15171. $as_echo "$as_me: updating cache $cache_file" >&6;}
  15172. cat confcache >$cache_file
  15173. else
  15174. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  15175. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  15176. fi
  15177. fi
  15178. rm -f confcache
  15179. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  15180. # Let make expand exec_prefix.
  15181. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  15182. # Transform confdefs.h into DEFS.
  15183. # Protect against shell expansion while executing Makefile rules.
  15184. # Protect against Makefile macro expansion.
  15185. #
  15186. # If the first sed substitution is executed (which looks for macros that
  15187. # take arguments), then branch to the quote section. Otherwise,
  15188. # look for a macro that doesn't take arguments.
  15189. ac_script='
  15190. :mline
  15191. /\\$/{
  15192. N
  15193. s,\\\n,,
  15194. b mline
  15195. }
  15196. t clear
  15197. :clear
  15198. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  15199. t quote
  15200. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  15201. t quote
  15202. b any
  15203. :quote
  15204. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  15205. s/\[/\\&/g
  15206. s/\]/\\&/g
  15207. s/\$/$$/g
  15208. H
  15209. :any
  15210. ${
  15211. g
  15212. s/^\n//
  15213. s/\n/ /g
  15214. p
  15215. }
  15216. '
  15217. DEFS=`sed -n "$ac_script" confdefs.h`
  15218. ac_libobjs=
  15219. ac_ltlibobjs=
  15220. U=
  15221. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  15222. # 1. Remove the extension, and $U if already installed.
  15223. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  15224. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  15225. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  15226. # will be set to the directory where LIBOBJS objects are built.
  15227. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  15228. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  15229. done
  15230. LIBOBJS=$ac_libobjs
  15231. LTLIBOBJS=$ac_ltlibobjs
  15232. if test -n "$EXEEXT"; then
  15233. am__EXEEXT_TRUE=
  15234. am__EXEEXT_FALSE='#'
  15235. else
  15236. am__EXEEXT_TRUE='#'
  15237. am__EXEEXT_FALSE=
  15238. fi
  15239. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  15240. as_fn_error $? "conditional \"AMDEP\" was never defined.
  15241. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15242. fi
  15243. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  15244. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  15245. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15246. fi
  15247. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  15248. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  15249. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  15250. fi
  15251. : ${CONFIG_STATUS=./config.status}
  15252. ac_write_fail=0
  15253. ac_clean_files_save=$ac_clean_files
  15254. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  15255. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  15256. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  15257. as_write_fail=0
  15258. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  15259. #! $SHELL
  15260. # Generated by $as_me.
  15261. # Run this file to recreate the current configuration.
  15262. # Compiler output produced by configure, useful for debugging
  15263. # configure, is in config.log if it exists.
  15264. debug=false
  15265. ac_cs_recheck=false
  15266. ac_cs_silent=false
  15267. SHELL=\${CONFIG_SHELL-$SHELL}
  15268. export SHELL
  15269. _ASEOF
  15270. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  15271. ## -------------------- ##
  15272. ## M4sh Initialization. ##
  15273. ## -------------------- ##
  15274. # Be more Bourne compatible
  15275. DUALCASE=1; export DUALCASE # for MKS sh
  15276. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15277. emulate sh
  15278. NULLCMD=:
  15279. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15280. # is contrary to our usage. Disable this feature.
  15281. alias -g '${1+"$@"}'='"$@"'
  15282. setopt NO_GLOB_SUBST
  15283. else
  15284. case `(set -o) 2>/dev/null` in #(
  15285. *posix*) :
  15286. set -o posix ;; #(
  15287. *) :
  15288. ;;
  15289. esac
  15290. fi
  15291. as_nl='
  15292. '
  15293. export as_nl
  15294. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  15295. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15296. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15297. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15298. # Prefer a ksh shell builtin over an external printf program on Solaris,
  15299. # but without wasting forks for bash or zsh.
  15300. if test -z "$BASH_VERSION$ZSH_VERSION" \
  15301. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15302. as_echo='print -r --'
  15303. as_echo_n='print -rn --'
  15304. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15305. as_echo='printf %s\n'
  15306. as_echo_n='printf %s'
  15307. else
  15308. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15309. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15310. as_echo_n='/usr/ucb/echo -n'
  15311. else
  15312. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15313. as_echo_n_body='eval
  15314. arg=$1;
  15315. case $arg in #(
  15316. *"$as_nl"*)
  15317. expr "X$arg" : "X\\(.*\\)$as_nl";
  15318. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15319. esac;
  15320. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15321. '
  15322. export as_echo_n_body
  15323. as_echo_n='sh -c $as_echo_n_body as_echo'
  15324. fi
  15325. export as_echo_body
  15326. as_echo='sh -c $as_echo_body as_echo'
  15327. fi
  15328. # The user is always right.
  15329. if test "${PATH_SEPARATOR+set}" != set; then
  15330. PATH_SEPARATOR=:
  15331. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15332. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15333. PATH_SEPARATOR=';'
  15334. }
  15335. fi
  15336. # IFS
  15337. # We need space, tab and new line, in precisely that order. Quoting is
  15338. # there to prevent editors from complaining about space-tab.
  15339. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15340. # splitting by setting IFS to empty value.)
  15341. IFS=" "" $as_nl"
  15342. # Find who we are. Look in the path if we contain no directory separator.
  15343. case $0 in #((
  15344. *[\\/]* ) as_myself=$0 ;;
  15345. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15346. for as_dir in $PATH
  15347. do
  15348. IFS=$as_save_IFS
  15349. test -z "$as_dir" && as_dir=.
  15350. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15351. done
  15352. IFS=$as_save_IFS
  15353. ;;
  15354. esac
  15355. # We did not find ourselves, most probably we were run as `sh COMMAND'
  15356. # in which case we are not to be found in the path.
  15357. if test "x$as_myself" = x; then
  15358. as_myself=$0
  15359. fi
  15360. if test ! -f "$as_myself"; then
  15361. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15362. exit 1
  15363. fi
  15364. # Unset variables that we do not need and which cause bugs (e.g. in
  15365. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15366. # suppresses any "Segmentation fault" message there. '((' could
  15367. # trigger a bug in pdksh 5.2.14.
  15368. for as_var in BASH_ENV ENV MAIL MAILPATH
  15369. do eval test x\${$as_var+set} = xset \
  15370. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15371. done
  15372. PS1='$ '
  15373. PS2='> '
  15374. PS4='+ '
  15375. # NLS nuisances.
  15376. LC_ALL=C
  15377. export LC_ALL
  15378. LANGUAGE=C
  15379. export LANGUAGE
  15380. # CDPATH.
  15381. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15382. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  15383. # ----------------------------------------
  15384. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  15385. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  15386. # script with STATUS, using 1 if that was 0.
  15387. as_fn_error ()
  15388. {
  15389. as_status=$1; test $as_status -eq 0 && as_status=1
  15390. if test "$4"; then
  15391. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15392. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  15393. fi
  15394. $as_echo "$as_me: error: $2" >&2
  15395. as_fn_exit $as_status
  15396. } # as_fn_error
  15397. # as_fn_set_status STATUS
  15398. # -----------------------
  15399. # Set $? to STATUS, without forking.
  15400. as_fn_set_status ()
  15401. {
  15402. return $1
  15403. } # as_fn_set_status
  15404. # as_fn_exit STATUS
  15405. # -----------------
  15406. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  15407. as_fn_exit ()
  15408. {
  15409. set +e
  15410. as_fn_set_status $1
  15411. exit $1
  15412. } # as_fn_exit
  15413. # as_fn_unset VAR
  15414. # ---------------
  15415. # Portably unset VAR.
  15416. as_fn_unset ()
  15417. {
  15418. { eval $1=; unset $1;}
  15419. }
  15420. as_unset=as_fn_unset
  15421. # as_fn_append VAR VALUE
  15422. # ----------------------
  15423. # Append the text in VALUE to the end of the definition contained in VAR. Take
  15424. # advantage of any shell optimizations that allow amortized linear growth over
  15425. # repeated appends, instead of the typical quadratic growth present in naive
  15426. # implementations.
  15427. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  15428. eval 'as_fn_append ()
  15429. {
  15430. eval $1+=\$2
  15431. }'
  15432. else
  15433. as_fn_append ()
  15434. {
  15435. eval $1=\$$1\$2
  15436. }
  15437. fi # as_fn_append
  15438. # as_fn_arith ARG...
  15439. # ------------------
  15440. # Perform arithmetic evaluation on the ARGs, and store the result in the
  15441. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  15442. # must be portable across $(()) and expr.
  15443. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  15444. eval 'as_fn_arith ()
  15445. {
  15446. as_val=$(( $* ))
  15447. }'
  15448. else
  15449. as_fn_arith ()
  15450. {
  15451. as_val=`expr "$@" || test $? -eq 1`
  15452. }
  15453. fi # as_fn_arith
  15454. if expr a : '\(a\)' >/dev/null 2>&1 &&
  15455. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  15456. as_expr=expr
  15457. else
  15458. as_expr=false
  15459. fi
  15460. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  15461. as_basename=basename
  15462. else
  15463. as_basename=false
  15464. fi
  15465. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  15466. as_dirname=dirname
  15467. else
  15468. as_dirname=false
  15469. fi
  15470. as_me=`$as_basename -- "$0" ||
  15471. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  15472. X"$0" : 'X\(//\)$' \| \
  15473. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  15474. $as_echo X/"$0" |
  15475. sed '/^.*\/\([^/][^/]*\)\/*$/{
  15476. s//\1/
  15477. q
  15478. }
  15479. /^X\/\(\/\/\)$/{
  15480. s//\1/
  15481. q
  15482. }
  15483. /^X\/\(\/\).*/{
  15484. s//\1/
  15485. q
  15486. }
  15487. s/.*/./; q'`
  15488. # Avoid depending upon Character Ranges.
  15489. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  15490. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  15491. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  15492. as_cr_digits='0123456789'
  15493. as_cr_alnum=$as_cr_Letters$as_cr_digits
  15494. ECHO_C= ECHO_N= ECHO_T=
  15495. case `echo -n x` in #(((((
  15496. -n*)
  15497. case `echo 'xy\c'` in
  15498. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  15499. xy) ECHO_C='\c';;
  15500. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  15501. ECHO_T=' ';;
  15502. esac;;
  15503. *)
  15504. ECHO_N='-n';;
  15505. esac
  15506. rm -f conf$$ conf$$.exe conf$$.file
  15507. if test -d conf$$.dir; then
  15508. rm -f conf$$.dir/conf$$.file
  15509. else
  15510. rm -f conf$$.dir
  15511. mkdir conf$$.dir 2>/dev/null
  15512. fi
  15513. if (echo >conf$$.file) 2>/dev/null; then
  15514. if ln -s conf$$.file conf$$ 2>/dev/null; then
  15515. as_ln_s='ln -s'
  15516. # ... but there are two gotchas:
  15517. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  15518. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  15519. # In both cases, we have to default to `cp -p'.
  15520. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  15521. as_ln_s='cp -p'
  15522. elif ln conf$$.file conf$$ 2>/dev/null; then
  15523. as_ln_s=ln
  15524. else
  15525. as_ln_s='cp -p'
  15526. fi
  15527. else
  15528. as_ln_s='cp -p'
  15529. fi
  15530. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  15531. rmdir conf$$.dir 2>/dev/null
  15532. # as_fn_mkdir_p
  15533. # -------------
  15534. # Create "$as_dir" as a directory, including parents if necessary.
  15535. as_fn_mkdir_p ()
  15536. {
  15537. case $as_dir in #(
  15538. -*) as_dir=./$as_dir;;
  15539. esac
  15540. test -d "$as_dir" || eval $as_mkdir_p || {
  15541. as_dirs=
  15542. while :; do
  15543. case $as_dir in #(
  15544. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  15545. *) as_qdir=$as_dir;;
  15546. esac
  15547. as_dirs="'$as_qdir' $as_dirs"
  15548. as_dir=`$as_dirname -- "$as_dir" ||
  15549. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15550. X"$as_dir" : 'X\(//\)[^/]' \| \
  15551. X"$as_dir" : 'X\(//\)$' \| \
  15552. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  15553. $as_echo X"$as_dir" |
  15554. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15555. s//\1/
  15556. q
  15557. }
  15558. /^X\(\/\/\)[^/].*/{
  15559. s//\1/
  15560. q
  15561. }
  15562. /^X\(\/\/\)$/{
  15563. s//\1/
  15564. q
  15565. }
  15566. /^X\(\/\).*/{
  15567. s//\1/
  15568. q
  15569. }
  15570. s/.*/./; q'`
  15571. test -d "$as_dir" && break
  15572. done
  15573. test -z "$as_dirs" || eval "mkdir $as_dirs"
  15574. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  15575. } # as_fn_mkdir_p
  15576. if mkdir -p . 2>/dev/null; then
  15577. as_mkdir_p='mkdir -p "$as_dir"'
  15578. else
  15579. test -d ./-p && rmdir ./-p
  15580. as_mkdir_p=false
  15581. fi
  15582. if test -x / >/dev/null 2>&1; then
  15583. as_test_x='test -x'
  15584. else
  15585. if ls -dL / >/dev/null 2>&1; then
  15586. as_ls_L_option=L
  15587. else
  15588. as_ls_L_option=
  15589. fi
  15590. as_test_x='
  15591. eval sh -c '\''
  15592. if test -d "$1"; then
  15593. test -d "$1/.";
  15594. else
  15595. case $1 in #(
  15596. -*)set "./$1";;
  15597. esac;
  15598. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  15599. ???[sx]*):;;*)false;;esac;fi
  15600. '\'' sh
  15601. '
  15602. fi
  15603. as_executable_p=$as_test_x
  15604. # Sed expression to map a string onto a valid CPP name.
  15605. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  15606. # Sed expression to map a string onto a valid variable name.
  15607. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  15608. exec 6>&1
  15609. ## ----------------------------------- ##
  15610. ## Main body of $CONFIG_STATUS script. ##
  15611. ## ----------------------------------- ##
  15612. _ASEOF
  15613. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  15614. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15615. # Save the log message, to keep $0 and so on meaningful, and to
  15616. # report actual input values of CONFIG_FILES etc. instead of their
  15617. # values after options handling.
  15618. ac_log="
  15619. This file was extended by vcmi $as_me 0.84b, which was
  15620. generated by GNU Autoconf 2.67. Invocation command line was
  15621. CONFIG_FILES = $CONFIG_FILES
  15622. CONFIG_HEADERS = $CONFIG_HEADERS
  15623. CONFIG_LINKS = $CONFIG_LINKS
  15624. CONFIG_COMMANDS = $CONFIG_COMMANDS
  15625. $ $0 $@
  15626. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  15627. "
  15628. _ACEOF
  15629. case $ac_config_files in *"
  15630. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  15631. esac
  15632. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15633. # Files that config.status was made for.
  15634. config_files="$ac_config_files"
  15635. config_commands="$ac_config_commands"
  15636. _ACEOF
  15637. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15638. ac_cs_usage="\
  15639. \`$as_me' instantiates files and other configuration actions
  15640. from templates according to the current configuration. Unless the files
  15641. and actions are specified as TAGs, all are instantiated by default.
  15642. Usage: $0 [OPTION]... [TAG]...
  15643. -h, --help print this help, then exit
  15644. -V, --version print version number and configuration settings, then exit
  15645. --config print configuration, then exit
  15646. -q, --quiet, --silent
  15647. do not print progress messages
  15648. -d, --debug don't remove temporary files
  15649. --recheck update $as_me by reconfiguring in the same conditions
  15650. --file=FILE[:TEMPLATE]
  15651. instantiate the configuration file FILE
  15652. Configuration files:
  15653. $config_files
  15654. Configuration commands:
  15655. $config_commands
  15656. Report bugs to the package provider."
  15657. _ACEOF
  15658. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15659. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  15660. ac_cs_version="\\
  15661. vcmi config.status 0.84b
  15662. configured by $0, generated by GNU Autoconf 2.67,
  15663. with options \\"\$ac_cs_config\\"
  15664. Copyright (C) 2010 Free Software Foundation, Inc.
  15665. This config.status script is free software; the Free Software Foundation
  15666. gives unlimited permission to copy, distribute and modify it."
  15667. ac_pwd='$ac_pwd'
  15668. srcdir='$srcdir'
  15669. INSTALL='$INSTALL'
  15670. MKDIR_P='$MKDIR_P'
  15671. AWK='$AWK'
  15672. test -n "\$AWK" || AWK=awk
  15673. _ACEOF
  15674. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15675. # The default lists apply if the user does not specify any file.
  15676. ac_need_defaults=:
  15677. while test $# != 0
  15678. do
  15679. case $1 in
  15680. --*=?*)
  15681. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15682. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  15683. ac_shift=:
  15684. ;;
  15685. --*=)
  15686. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  15687. ac_optarg=
  15688. ac_shift=:
  15689. ;;
  15690. *)
  15691. ac_option=$1
  15692. ac_optarg=$2
  15693. ac_shift=shift
  15694. ;;
  15695. esac
  15696. case $ac_option in
  15697. # Handling of the options.
  15698. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  15699. ac_cs_recheck=: ;;
  15700. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  15701. $as_echo "$ac_cs_version"; exit ;;
  15702. --config | --confi | --conf | --con | --co | --c )
  15703. $as_echo "$ac_cs_config"; exit ;;
  15704. --debug | --debu | --deb | --de | --d | -d )
  15705. debug=: ;;
  15706. --file | --fil | --fi | --f )
  15707. $ac_shift
  15708. case $ac_optarg in
  15709. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  15710. '') as_fn_error $? "missing file argument" ;;
  15711. esac
  15712. as_fn_append CONFIG_FILES " '$ac_optarg'"
  15713. ac_need_defaults=false;;
  15714. --he | --h | --help | --hel | -h )
  15715. $as_echo "$ac_cs_usage"; exit ;;
  15716. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15717. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  15718. ac_cs_silent=: ;;
  15719. # This is an error.
  15720. -*) as_fn_error $? "unrecognized option: \`$1'
  15721. Try \`$0 --help' for more information." ;;
  15722. *) as_fn_append ac_config_targets " $1"
  15723. ac_need_defaults=false ;;
  15724. esac
  15725. shift
  15726. done
  15727. ac_configure_extra_args=
  15728. if $ac_cs_silent; then
  15729. exec 6>/dev/null
  15730. ac_configure_extra_args="$ac_configure_extra_args --silent"
  15731. fi
  15732. _ACEOF
  15733. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15734. if \$ac_cs_recheck; then
  15735. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  15736. shift
  15737. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  15738. CONFIG_SHELL='$SHELL'
  15739. export CONFIG_SHELL
  15740. exec "\$@"
  15741. fi
  15742. _ACEOF
  15743. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15744. exec 5>>config.log
  15745. {
  15746. echo
  15747. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  15748. ## Running $as_me. ##
  15749. _ASBOX
  15750. $as_echo "$ac_log"
  15751. } >&5
  15752. _ACEOF
  15753. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15754. #
  15755. # INIT-COMMANDS
  15756. #
  15757. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15758. # The HP-UX ksh and POSIX shell print the target directory to stdout
  15759. # if CDPATH is set.
  15760. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  15761. sed_quote_subst='$sed_quote_subst'
  15762. double_quote_subst='$double_quote_subst'
  15763. delay_variable_subst='$delay_variable_subst'
  15764. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  15765. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  15766. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  15767. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  15768. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  15769. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  15770. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  15771. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  15772. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  15773. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  15774. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  15775. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  15776. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  15777. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  15778. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  15779. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  15780. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  15781. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  15782. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  15783. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  15784. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  15785. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  15786. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  15787. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  15788. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15789. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15790. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15791. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15792. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15793. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15794. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15795. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15796. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  15797. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15798. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15799. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15800. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15801. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  15802. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15803. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15804. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15805. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15806. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15807. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15808. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15809. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15810. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15811. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15812. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15813. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15814. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15815. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15816. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15817. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15818. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15819. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15820. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15821. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15822. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15823. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15824. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15825. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15826. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15827. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15828. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15829. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15830. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15831. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15832. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15833. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15834. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15835. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15836. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15837. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15838. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15839. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15840. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15841. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15842. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15843. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15844. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15845. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15846. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15847. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15848. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15849. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15850. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15851. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15852. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15853. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15854. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  15855. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15856. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15857. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15858. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15859. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15860. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15861. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15862. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15863. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15864. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15865. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15866. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15867. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15868. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15869. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15870. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15871. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15872. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15873. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15874. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15875. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15876. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15877. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15878. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15879. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15880. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15881. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15882. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15883. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15884. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15885. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15886. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15887. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15888. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15889. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15890. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15891. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15892. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15893. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15894. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15895. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15896. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15897. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15898. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15899. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15900. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15901. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15902. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15903. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15904. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15905. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15906. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15907. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15908. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15909. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15910. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15911. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15912. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15913. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15914. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15915. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15916. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15917. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15918. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15919. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15920. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15921. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15922. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15923. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15924. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15925. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15926. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15927. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15928. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15929. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15930. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15931. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15932. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15933. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15934. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15935. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15936. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15937. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15938. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15939. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15940. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15941. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15942. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15943. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15944. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15945. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15946. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15947. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15948. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15949. LTCC='$LTCC'
  15950. LTCFLAGS='$LTCFLAGS'
  15951. compiler='$compiler_DEFAULT'
  15952. # A function that is used when there is no print builtin or printf.
  15953. func_fallback_echo ()
  15954. {
  15955. eval 'cat <<_LTECHO_EOF
  15956. \$1
  15957. _LTECHO_EOF'
  15958. }
  15959. # Quote evaled strings.
  15960. for var in SHELL \
  15961. ECHO \
  15962. SED \
  15963. GREP \
  15964. EGREP \
  15965. FGREP \
  15966. LD \
  15967. NM \
  15968. LN_S \
  15969. lt_SP2NL \
  15970. lt_NL2SP \
  15971. reload_flag \
  15972. OBJDUMP \
  15973. deplibs_check_method \
  15974. file_magic_cmd \
  15975. file_magic_glob \
  15976. want_nocaseglob \
  15977. DLLTOOL \
  15978. sharedlib_from_linklib_cmd \
  15979. AR \
  15980. AR_FLAGS \
  15981. archiver_list_spec \
  15982. STRIP \
  15983. RANLIB \
  15984. CC \
  15985. CFLAGS \
  15986. compiler \
  15987. lt_cv_sys_global_symbol_pipe \
  15988. lt_cv_sys_global_symbol_to_cdecl \
  15989. lt_cv_sys_global_symbol_to_c_name_address \
  15990. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15991. nm_file_list_spec \
  15992. lt_prog_compiler_no_builtin_flag \
  15993. lt_prog_compiler_pic \
  15994. lt_prog_compiler_wl \
  15995. lt_prog_compiler_static \
  15996. lt_cv_prog_compiler_c_o \
  15997. need_locks \
  15998. MANIFEST_TOOL \
  15999. DSYMUTIL \
  16000. NMEDIT \
  16001. LIPO \
  16002. OTOOL \
  16003. OTOOL64 \
  16004. shrext_cmds \
  16005. export_dynamic_flag_spec \
  16006. whole_archive_flag_spec \
  16007. compiler_needs_object \
  16008. with_gnu_ld \
  16009. allow_undefined_flag \
  16010. no_undefined_flag \
  16011. hardcode_libdir_flag_spec \
  16012. hardcode_libdir_flag_spec_ld \
  16013. hardcode_libdir_separator \
  16014. exclude_expsyms \
  16015. include_expsyms \
  16016. file_list_spec \
  16017. variables_saved_for_relink \
  16018. libname_spec \
  16019. library_names_spec \
  16020. soname_spec \
  16021. install_override_mode \
  16022. finish_eval \
  16023. old_striplib \
  16024. striplib \
  16025. compiler_lib_search_dirs \
  16026. predep_objects \
  16027. postdep_objects \
  16028. predeps \
  16029. postdeps \
  16030. compiler_lib_search_path \
  16031. LD_CXX \
  16032. reload_flag_CXX \
  16033. compiler_CXX \
  16034. lt_prog_compiler_no_builtin_flag_CXX \
  16035. lt_prog_compiler_pic_CXX \
  16036. lt_prog_compiler_wl_CXX \
  16037. lt_prog_compiler_static_CXX \
  16038. lt_cv_prog_compiler_c_o_CXX \
  16039. export_dynamic_flag_spec_CXX \
  16040. whole_archive_flag_spec_CXX \
  16041. compiler_needs_object_CXX \
  16042. with_gnu_ld_CXX \
  16043. allow_undefined_flag_CXX \
  16044. no_undefined_flag_CXX \
  16045. hardcode_libdir_flag_spec_CXX \
  16046. hardcode_libdir_flag_spec_ld_CXX \
  16047. hardcode_libdir_separator_CXX \
  16048. exclude_expsyms_CXX \
  16049. include_expsyms_CXX \
  16050. file_list_spec_CXX \
  16051. compiler_lib_search_dirs_CXX \
  16052. predep_objects_CXX \
  16053. postdep_objects_CXX \
  16054. predeps_CXX \
  16055. postdeps_CXX \
  16056. compiler_lib_search_path_CXX; do
  16057. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16058. *[\\\\\\\`\\"\\\$]*)
  16059. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  16060. ;;
  16061. *)
  16062. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16063. ;;
  16064. esac
  16065. done
  16066. # Double-quote double-evaled strings.
  16067. for var in reload_cmds \
  16068. old_postinstall_cmds \
  16069. old_postuninstall_cmds \
  16070. old_archive_cmds \
  16071. extract_expsyms_cmds \
  16072. old_archive_from_new_cmds \
  16073. old_archive_from_expsyms_cmds \
  16074. archive_cmds \
  16075. archive_expsym_cmds \
  16076. module_cmds \
  16077. module_expsym_cmds \
  16078. export_symbols_cmds \
  16079. prelink_cmds \
  16080. postlink_cmds \
  16081. postinstall_cmds \
  16082. postuninstall_cmds \
  16083. finish_cmds \
  16084. sys_lib_search_path_spec \
  16085. sys_lib_dlsearch_path_spec \
  16086. reload_cmds_CXX \
  16087. old_archive_cmds_CXX \
  16088. old_archive_from_new_cmds_CXX \
  16089. old_archive_from_expsyms_cmds_CXX \
  16090. archive_cmds_CXX \
  16091. archive_expsym_cmds_CXX \
  16092. module_cmds_CXX \
  16093. module_expsym_cmds_CXX \
  16094. export_symbols_cmds_CXX \
  16095. prelink_cmds_CXX \
  16096. postlink_cmds_CXX; do
  16097. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  16098. *[\\\\\\\`\\"\\\$]*)
  16099. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  16100. ;;
  16101. *)
  16102. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  16103. ;;
  16104. esac
  16105. done
  16106. ac_aux_dir='$ac_aux_dir'
  16107. xsi_shell='$xsi_shell'
  16108. lt_shell_append='$lt_shell_append'
  16109. # See if we are running on zsh, and set the options which allow our
  16110. # commands through without removal of \ escapes INIT.
  16111. if test -n "\${ZSH_VERSION+set}" ; then
  16112. setopt NO_GLOB_SUBST
  16113. fi
  16114. PACKAGE='$PACKAGE'
  16115. VERSION='$VERSION'
  16116. TIMESTAMP='$TIMESTAMP'
  16117. RM='$RM'
  16118. ofile='$ofile'
  16119. _ACEOF
  16120. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16121. # Handling of arguments.
  16122. for ac_config_target in $ac_config_targets
  16123. do
  16124. case $ac_config_target in
  16125. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  16126. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  16127. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  16128. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  16129. "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
  16130. "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
  16131. "AI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/Makefile" ;;
  16132. "AI/StupidAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/StupidAI/Makefile" ;;
  16133. "AI/GeniusAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/GeniusAI/Makefile" ;;
  16134. "AI/EmptyAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/EmptyAI/Makefile" ;;
  16135. "Scripting/ERM/Makefile") CONFIG_FILES="$CONFIG_FILES Scripting/ERM/Makefile" ;;
  16136. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  16137. esac
  16138. done
  16139. # If the user did not use the arguments to specify the items to instantiate,
  16140. # then the envvar interface is used. Set only those that are not.
  16141. # We use the long form for the default assignment because of an extremely
  16142. # bizarre bug on SunOS 4.1.3.
  16143. if $ac_need_defaults; then
  16144. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  16145. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  16146. fi
  16147. # Have a temporary directory for convenience. Make it in the build tree
  16148. # simply because there is no reason against having it here, and in addition,
  16149. # creating and moving files from /tmp can sometimes cause problems.
  16150. # Hook for its removal unless debugging.
  16151. # Note that there is a small window in which the directory will not be cleaned:
  16152. # after its creation but before its name has been assigned to `$tmp'.
  16153. $debug ||
  16154. {
  16155. tmp=
  16156. trap 'exit_status=$?
  16157. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  16158. ' 0
  16159. trap 'as_fn_exit 1' 1 2 13 15
  16160. }
  16161. # Create a (secure) tmp directory for tmp files.
  16162. {
  16163. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  16164. test -n "$tmp" && test -d "$tmp"
  16165. } ||
  16166. {
  16167. tmp=./conf$$-$RANDOM
  16168. (umask 077 && mkdir "$tmp")
  16169. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  16170. # Set up the scripts for CONFIG_FILES section.
  16171. # No need to generate them if there are no CONFIG_FILES.
  16172. # This happens for instance with `./config.status config.h'.
  16173. if test -n "$CONFIG_FILES"; then
  16174. ac_cr=`echo X | tr X '\015'`
  16175. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  16176. # But we know of no other shell where ac_cr would be empty at this
  16177. # point, so we can use a bashism as a fallback.
  16178. if test "x$ac_cr" = x; then
  16179. eval ac_cr=\$\'\\r\'
  16180. fi
  16181. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  16182. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  16183. ac_cs_awk_cr='\\r'
  16184. else
  16185. ac_cs_awk_cr=$ac_cr
  16186. fi
  16187. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  16188. _ACEOF
  16189. {
  16190. echo "cat >conf$$subs.awk <<_ACEOF" &&
  16191. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  16192. echo "_ACEOF"
  16193. } >conf$$subs.sh ||
  16194. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16195. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  16196. ac_delim='%!_!# '
  16197. for ac_last_try in false false false false false :; do
  16198. . ./conf$$subs.sh ||
  16199. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16200. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  16201. if test $ac_delim_n = $ac_delim_num; then
  16202. break
  16203. elif $ac_last_try; then
  16204. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  16205. else
  16206. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  16207. fi
  16208. done
  16209. rm -f conf$$subs.sh
  16210. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16211. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  16212. _ACEOF
  16213. sed -n '
  16214. h
  16215. s/^/S["/; s/!.*/"]=/
  16216. p
  16217. g
  16218. s/^[^!]*!//
  16219. :repl
  16220. t repl
  16221. s/'"$ac_delim"'$//
  16222. t delim
  16223. :nl
  16224. h
  16225. s/\(.\{148\}\)..*/\1/
  16226. t more1
  16227. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  16228. p
  16229. n
  16230. b repl
  16231. :more1
  16232. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16233. p
  16234. g
  16235. s/.\{148\}//
  16236. t nl
  16237. :delim
  16238. h
  16239. s/\(.\{148\}\)..*/\1/
  16240. t more2
  16241. s/["\\]/\\&/g; s/^/"/; s/$/"/
  16242. p
  16243. b
  16244. :more2
  16245. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  16246. p
  16247. g
  16248. s/.\{148\}//
  16249. t delim
  16250. ' <conf$$subs.awk | sed '
  16251. /^[^""]/{
  16252. N
  16253. s/\n//
  16254. }
  16255. ' >>$CONFIG_STATUS || ac_write_fail=1
  16256. rm -f conf$$subs.awk
  16257. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16258. _ACAWK
  16259. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  16260. for (key in S) S_is_set[key] = 1
  16261. FS = ""
  16262. }
  16263. {
  16264. line = $ 0
  16265. nfields = split(line, field, "@")
  16266. substed = 0
  16267. len = length(field[1])
  16268. for (i = 2; i < nfields; i++) {
  16269. key = field[i]
  16270. keylen = length(key)
  16271. if (S_is_set[key]) {
  16272. value = S[key]
  16273. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  16274. len += length(value) + length(field[++i])
  16275. substed = 1
  16276. } else
  16277. len += 1 + keylen
  16278. }
  16279. print line
  16280. }
  16281. _ACAWK
  16282. _ACEOF
  16283. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16284. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  16285. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  16286. else
  16287. cat
  16288. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  16289. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  16290. _ACEOF
  16291. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  16292. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  16293. # trailing colons and then remove the whole line if VPATH becomes empty
  16294. # (actually we leave an empty line to preserve line numbers).
  16295. if test "x$srcdir" = x.; then
  16296. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  16297. h
  16298. s///
  16299. s/^/:/
  16300. s/[ ]*$/:/
  16301. s/:\$(srcdir):/:/g
  16302. s/:\${srcdir}:/:/g
  16303. s/:@srcdir@:/:/g
  16304. s/^:*//
  16305. s/:*$//
  16306. x
  16307. s/\(=[ ]*\).*/\1/
  16308. G
  16309. s/\n//
  16310. s/^[^=]*=[ ]*$//
  16311. }'
  16312. fi
  16313. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16314. fi # test -n "$CONFIG_FILES"
  16315. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  16316. shift
  16317. for ac_tag
  16318. do
  16319. case $ac_tag in
  16320. :[FHLC]) ac_mode=$ac_tag; continue;;
  16321. esac
  16322. case $ac_mode$ac_tag in
  16323. :[FHL]*:*);;
  16324. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  16325. :[FH]-) ac_tag=-:-;;
  16326. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  16327. esac
  16328. ac_save_IFS=$IFS
  16329. IFS=:
  16330. set x $ac_tag
  16331. IFS=$ac_save_IFS
  16332. shift
  16333. ac_file=$1
  16334. shift
  16335. case $ac_mode in
  16336. :L) ac_source=$1;;
  16337. :[FH])
  16338. ac_file_inputs=
  16339. for ac_f
  16340. do
  16341. case $ac_f in
  16342. -) ac_f="$tmp/stdin";;
  16343. *) # Look for the file first in the build tree, then in the source tree
  16344. # (if the path is not absolute). The absolute path cannot be DOS-style,
  16345. # because $ac_f cannot contain `:'.
  16346. test -f "$ac_f" ||
  16347. case $ac_f in
  16348. [\\/$]*) false;;
  16349. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  16350. esac ||
  16351. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  16352. esac
  16353. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  16354. as_fn_append ac_file_inputs " '$ac_f'"
  16355. done
  16356. # Let's still pretend it is `configure' which instantiates (i.e., don't
  16357. # use $as_me), people would be surprised to read:
  16358. # /* config.h. Generated by config.status. */
  16359. configure_input='Generated from '`
  16360. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  16361. `' by configure.'
  16362. if test x"$ac_file" != x-; then
  16363. configure_input="$ac_file. $configure_input"
  16364. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  16365. $as_echo "$as_me: creating $ac_file" >&6;}
  16366. fi
  16367. # Neutralize special characters interpreted by sed in replacement strings.
  16368. case $configure_input in #(
  16369. *\&* | *\|* | *\\* )
  16370. ac_sed_conf_input=`$as_echo "$configure_input" |
  16371. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  16372. *) ac_sed_conf_input=$configure_input;;
  16373. esac
  16374. case $ac_tag in
  16375. *:-:* | *:-) cat >"$tmp/stdin" \
  16376. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  16377. esac
  16378. ;;
  16379. esac
  16380. ac_dir=`$as_dirname -- "$ac_file" ||
  16381. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16382. X"$ac_file" : 'X\(//\)[^/]' \| \
  16383. X"$ac_file" : 'X\(//\)$' \| \
  16384. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  16385. $as_echo X"$ac_file" |
  16386. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16387. s//\1/
  16388. q
  16389. }
  16390. /^X\(\/\/\)[^/].*/{
  16391. s//\1/
  16392. q
  16393. }
  16394. /^X\(\/\/\)$/{
  16395. s//\1/
  16396. q
  16397. }
  16398. /^X\(\/\).*/{
  16399. s//\1/
  16400. q
  16401. }
  16402. s/.*/./; q'`
  16403. as_dir="$ac_dir"; as_fn_mkdir_p
  16404. ac_builddir=.
  16405. case "$ac_dir" in
  16406. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16407. *)
  16408. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  16409. # A ".." for each directory in $ac_dir_suffix.
  16410. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  16411. case $ac_top_builddir_sub in
  16412. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  16413. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  16414. esac ;;
  16415. esac
  16416. ac_abs_top_builddir=$ac_pwd
  16417. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  16418. # for backward compatibility:
  16419. ac_top_builddir=$ac_top_build_prefix
  16420. case $srcdir in
  16421. .) # We are building in place.
  16422. ac_srcdir=.
  16423. ac_top_srcdir=$ac_top_builddir_sub
  16424. ac_abs_top_srcdir=$ac_pwd ;;
  16425. [\\/]* | ?:[\\/]* ) # Absolute name.
  16426. ac_srcdir=$srcdir$ac_dir_suffix;
  16427. ac_top_srcdir=$srcdir
  16428. ac_abs_top_srcdir=$srcdir ;;
  16429. *) # Relative name.
  16430. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  16431. ac_top_srcdir=$ac_top_build_prefix$srcdir
  16432. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  16433. esac
  16434. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  16435. case $ac_mode in
  16436. :F)
  16437. #
  16438. # CONFIG_FILE
  16439. #
  16440. case $INSTALL in
  16441. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  16442. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  16443. esac
  16444. ac_MKDIR_P=$MKDIR_P
  16445. case $MKDIR_P in
  16446. [\\/$]* | ?:[\\/]* ) ;;
  16447. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  16448. esac
  16449. _ACEOF
  16450. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16451. # If the template does not know about datarootdir, expand it.
  16452. # FIXME: This hack should be removed a few years after 2.60.
  16453. ac_datarootdir_hack=; ac_datarootdir_seen=
  16454. ac_sed_dataroot='
  16455. /datarootdir/ {
  16456. p
  16457. q
  16458. }
  16459. /@datadir@/p
  16460. /@docdir@/p
  16461. /@infodir@/p
  16462. /@localedir@/p
  16463. /@mandir@/p'
  16464. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  16465. *datarootdir*) ac_datarootdir_seen=yes;;
  16466. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  16467. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  16468. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  16469. _ACEOF
  16470. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16471. ac_datarootdir_hack='
  16472. s&@datadir@&$datadir&g
  16473. s&@docdir@&$docdir&g
  16474. s&@infodir@&$infodir&g
  16475. s&@localedir@&$localedir&g
  16476. s&@mandir@&$mandir&g
  16477. s&\\\${datarootdir}&$datarootdir&g' ;;
  16478. esac
  16479. _ACEOF
  16480. # Neutralize VPATH when `$srcdir' = `.'.
  16481. # Shell code in configure.ac might set extrasub.
  16482. # FIXME: do we really want to maintain this feature?
  16483. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  16484. ac_sed_extra="$ac_vpsub
  16485. $extrasub
  16486. _ACEOF
  16487. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  16488. :t
  16489. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  16490. s|@configure_input@|$ac_sed_conf_input|;t t
  16491. s&@top_builddir@&$ac_top_builddir_sub&;t t
  16492. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  16493. s&@srcdir@&$ac_srcdir&;t t
  16494. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  16495. s&@top_srcdir@&$ac_top_srcdir&;t t
  16496. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  16497. s&@builddir@&$ac_builddir&;t t
  16498. s&@abs_builddir@&$ac_abs_builddir&;t t
  16499. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  16500. s&@INSTALL@&$ac_INSTALL&;t t
  16501. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  16502. $ac_datarootdir_hack
  16503. "
  16504. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  16505. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16506. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  16507. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  16508. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  16509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16510. which seems to be undefined. Please make sure it is defined" >&5
  16511. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  16512. which seems to be undefined. Please make sure it is defined" >&2;}
  16513. rm -f "$tmp/stdin"
  16514. case $ac_file in
  16515. -) cat "$tmp/out" && rm -f "$tmp/out";;
  16516. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  16517. esac \
  16518. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  16519. ;;
  16520. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  16521. $as_echo "$as_me: executing $ac_file commands" >&6;}
  16522. ;;
  16523. esac
  16524. case $ac_file$ac_mode in
  16525. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16526. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16527. # are listed without --file. Let's play safe and only enable the eval
  16528. # if we detect the quoting.
  16529. case $CONFIG_FILES in
  16530. *\'*) eval set x "$CONFIG_FILES" ;;
  16531. *) set x $CONFIG_FILES ;;
  16532. esac
  16533. shift
  16534. for mf
  16535. do
  16536. # Strip MF so we end up with the name of the file.
  16537. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16538. # Check whether this is an Automake generated Makefile or not.
  16539. # We used to match only the files named `Makefile.in', but
  16540. # some people rename them; so instead we look at the file content.
  16541. # Grep'ing the first line is not enough: some people post-process
  16542. # each Makefile.in and add a new line on top of each file to say so.
  16543. # Grep'ing the whole file is not good either: AIX grep has a line
  16544. # limit of 2048, but all sed's we know have understand at least 4000.
  16545. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16546. dirpart=`$as_dirname -- "$mf" ||
  16547. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16548. X"$mf" : 'X\(//\)[^/]' \| \
  16549. X"$mf" : 'X\(//\)$' \| \
  16550. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16551. $as_echo X"$mf" |
  16552. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16553. s//\1/
  16554. q
  16555. }
  16556. /^X\(\/\/\)[^/].*/{
  16557. s//\1/
  16558. q
  16559. }
  16560. /^X\(\/\/\)$/{
  16561. s//\1/
  16562. q
  16563. }
  16564. /^X\(\/\).*/{
  16565. s//\1/
  16566. q
  16567. }
  16568. s/.*/./; q'`
  16569. else
  16570. continue
  16571. fi
  16572. # Extract the definition of DEPDIR, am__include, and am__quote
  16573. # from the Makefile without running `make'.
  16574. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16575. test -z "$DEPDIR" && continue
  16576. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16577. test -z "am__include" && continue
  16578. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16579. # When using ansi2knr, U may be empty or an underscore; expand it
  16580. U=`sed -n 's/^U = //p' < "$mf"`
  16581. # Find all dependency output files, they are included files with
  16582. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16583. # simplest approach to changing $(DEPDIR) to its actual value in the
  16584. # expansion.
  16585. for file in `sed -n "
  16586. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16587. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  16588. # Make sure the directory exists.
  16589. test -f "$dirpart/$file" && continue
  16590. fdir=`$as_dirname -- "$file" ||
  16591. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16592. X"$file" : 'X\(//\)[^/]' \| \
  16593. X"$file" : 'X\(//\)$' \| \
  16594. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16595. $as_echo X"$file" |
  16596. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16597. s//\1/
  16598. q
  16599. }
  16600. /^X\(\/\/\)[^/].*/{
  16601. s//\1/
  16602. q
  16603. }
  16604. /^X\(\/\/\)$/{
  16605. s//\1/
  16606. q
  16607. }
  16608. /^X\(\/\).*/{
  16609. s//\1/
  16610. q
  16611. }
  16612. s/.*/./; q'`
  16613. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16614. # echo "creating $dirpart/$file"
  16615. echo '# dummy' > "$dirpart/$file"
  16616. done
  16617. done
  16618. }
  16619. ;;
  16620. "libtool":C)
  16621. # See if we are running on zsh, and set the options which allow our
  16622. # commands through without removal of \ escapes.
  16623. if test -n "${ZSH_VERSION+set}" ; then
  16624. setopt NO_GLOB_SUBST
  16625. fi
  16626. cfgfile="${ofile}T"
  16627. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  16628. $RM "$cfgfile"
  16629. cat <<_LT_EOF >> "$cfgfile"
  16630. #! $SHELL
  16631. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16632. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  16633. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  16634. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16635. #
  16636. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  16637. # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
  16638. # Inc.
  16639. # Written by Gordon Matzigkeit, 1996
  16640. #
  16641. # This file is part of GNU Libtool.
  16642. #
  16643. # GNU Libtool is free software; you can redistribute it and/or
  16644. # modify it under the terms of the GNU General Public License as
  16645. # published by the Free Software Foundation; either version 2 of
  16646. # the License, or (at your option) any later version.
  16647. #
  16648. # As a special exception to the GNU General Public License,
  16649. # if you distribute this file as part of a program or library that
  16650. # is built using GNU Libtool, you may include this file under the
  16651. # same distribution terms that you use for the rest of that program.
  16652. #
  16653. # GNU Libtool is distributed in the hope that it will be useful,
  16654. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16655. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16656. # GNU General Public License for more details.
  16657. #
  16658. # You should have received a copy of the GNU General Public License
  16659. # along with GNU Libtool; see the file COPYING. If not, a copy
  16660. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  16661. # obtained by writing to the Free Software Foundation, Inc.,
  16662. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  16663. # The names of the tagged configurations supported by this script.
  16664. available_tags="CXX "
  16665. # ### BEGIN LIBTOOL CONFIG
  16666. # Whether or not to build shared libraries.
  16667. build_libtool_libs=$enable_shared
  16668. # Whether or not to build static libraries.
  16669. build_old_libs=$enable_static
  16670. # Which release of libtool.m4 was used?
  16671. macro_version=$macro_version
  16672. macro_revision=$macro_revision
  16673. # What type of objects to build.
  16674. pic_mode=$pic_mode
  16675. # Whether or not to optimize for fast installation.
  16676. fast_install=$enable_fast_install
  16677. # Shell to use when invoking shell scripts.
  16678. SHELL=$lt_SHELL
  16679. # An echo program that protects backslashes.
  16680. ECHO=$lt_ECHO
  16681. # The host system.
  16682. host_alias=$host_alias
  16683. host=$host
  16684. host_os=$host_os
  16685. # The build system.
  16686. build_alias=$build_alias
  16687. build=$build
  16688. build_os=$build_os
  16689. # A sed program that does not truncate output.
  16690. SED=$lt_SED
  16691. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  16692. Xsed="\$SED -e 1s/^X//"
  16693. # A grep program that handles long lines.
  16694. GREP=$lt_GREP
  16695. # An ERE matcher.
  16696. EGREP=$lt_EGREP
  16697. # A literal string matcher.
  16698. FGREP=$lt_FGREP
  16699. # A BSD- or MS-compatible name lister.
  16700. NM=$lt_NM
  16701. # Whether we need soft or hard links.
  16702. LN_S=$lt_LN_S
  16703. # What is the maximum length of a command?
  16704. max_cmd_len=$max_cmd_len
  16705. # Object file suffix (normally "o").
  16706. objext=$ac_objext
  16707. # Executable file suffix (normally "").
  16708. exeext=$exeext
  16709. # whether the shell understands "unset".
  16710. lt_unset=$lt_unset
  16711. # turn spaces into newlines.
  16712. SP2NL=$lt_lt_SP2NL
  16713. # turn newlines into spaces.
  16714. NL2SP=$lt_lt_NL2SP
  16715. # convert \$build file names to \$host format.
  16716. to_host_file_cmd=$lt_cv_to_host_file_cmd
  16717. # convert \$build files to toolchain format.
  16718. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  16719. # An object symbol dumper.
  16720. OBJDUMP=$lt_OBJDUMP
  16721. # Method to check whether dependent libraries are shared objects.
  16722. deplibs_check_method=$lt_deplibs_check_method
  16723. # Command to use when deplibs_check_method = "file_magic".
  16724. file_magic_cmd=$lt_file_magic_cmd
  16725. # How to find potential files when deplibs_check_method = "file_magic".
  16726. file_magic_glob=$lt_file_magic_glob
  16727. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16728. want_nocaseglob=$lt_want_nocaseglob
  16729. # DLL creation program.
  16730. DLLTOOL=$lt_DLLTOOL
  16731. # Command to associate shared and link libraries.
  16732. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16733. # The archiver.
  16734. AR=$lt_AR
  16735. # Flags to create an archive.
  16736. AR_FLAGS=$lt_AR_FLAGS
  16737. # How to feed a file listing to the archiver.
  16738. archiver_list_spec=$lt_archiver_list_spec
  16739. # A symbol stripping program.
  16740. STRIP=$lt_STRIP
  16741. # Commands used to install an old-style archive.
  16742. RANLIB=$lt_RANLIB
  16743. old_postinstall_cmds=$lt_old_postinstall_cmds
  16744. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16745. # Whether to use a lock for old archive extraction.
  16746. lock_old_archive_extraction=$lock_old_archive_extraction
  16747. # A C compiler.
  16748. LTCC=$lt_CC
  16749. # LTCC compiler flags.
  16750. LTCFLAGS=$lt_CFLAGS
  16751. # Take the output of nm and produce a listing of raw symbols and C names.
  16752. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16753. # Transform the output of nm in a proper C declaration.
  16754. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16755. # Transform the output of nm in a C name address pair.
  16756. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16757. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16758. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16759. # Specify filename containing input files for \$NM.
  16760. nm_file_list_spec=$lt_nm_file_list_spec
  16761. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16762. lt_sysroot=$lt_sysroot
  16763. # The name of the directory that contains temporary libtool files.
  16764. objdir=$objdir
  16765. # Used to examine libraries when file_magic_cmd begins with "file".
  16766. MAGIC_CMD=$MAGIC_CMD
  16767. # Must we lock files when doing compilation?
  16768. need_locks=$lt_need_locks
  16769. # Manifest tool.
  16770. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16771. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16772. DSYMUTIL=$lt_DSYMUTIL
  16773. # Tool to change global to local symbols on Mac OS X.
  16774. NMEDIT=$lt_NMEDIT
  16775. # Tool to manipulate fat objects and archives on Mac OS X.
  16776. LIPO=$lt_LIPO
  16777. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16778. OTOOL=$lt_OTOOL
  16779. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16780. OTOOL64=$lt_OTOOL64
  16781. # Old archive suffix (normally "a").
  16782. libext=$libext
  16783. # Shared library suffix (normally ".so").
  16784. shrext_cmds=$lt_shrext_cmds
  16785. # The commands to extract the exported symbol list from a shared archive.
  16786. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16787. # Variables whose values should be saved in libtool wrapper scripts and
  16788. # restored at link time.
  16789. variables_saved_for_relink=$lt_variables_saved_for_relink
  16790. # Do we need the "lib" prefix for modules?
  16791. need_lib_prefix=$need_lib_prefix
  16792. # Do we need a version for libraries?
  16793. need_version=$need_version
  16794. # Library versioning type.
  16795. version_type=$version_type
  16796. # Shared library runtime path variable.
  16797. runpath_var=$runpath_var
  16798. # Shared library path variable.
  16799. shlibpath_var=$shlibpath_var
  16800. # Is shlibpath searched before the hard-coded library search path?
  16801. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16802. # Format of library name prefix.
  16803. libname_spec=$lt_libname_spec
  16804. # List of archive names. First name is the real one, the rest are links.
  16805. # The last name is the one that the linker finds with -lNAME
  16806. library_names_spec=$lt_library_names_spec
  16807. # The coded name of the library, if different from the real name.
  16808. soname_spec=$lt_soname_spec
  16809. # Permission mode override for installation of shared libraries.
  16810. install_override_mode=$lt_install_override_mode
  16811. # Command to use after installation of a shared archive.
  16812. postinstall_cmds=$lt_postinstall_cmds
  16813. # Command to use after uninstallation of a shared archive.
  16814. postuninstall_cmds=$lt_postuninstall_cmds
  16815. # Commands used to finish a libtool library installation in a directory.
  16816. finish_cmds=$lt_finish_cmds
  16817. # As "finish_cmds", except a single script fragment to be evaled but
  16818. # not shown.
  16819. finish_eval=$lt_finish_eval
  16820. # Whether we should hardcode library paths into libraries.
  16821. hardcode_into_libs=$hardcode_into_libs
  16822. # Compile-time system search path for libraries.
  16823. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16824. # Run-time system search path for libraries.
  16825. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16826. # Whether dlopen is supported.
  16827. dlopen_support=$enable_dlopen
  16828. # Whether dlopen of programs is supported.
  16829. dlopen_self=$enable_dlopen_self
  16830. # Whether dlopen of statically linked programs is supported.
  16831. dlopen_self_static=$enable_dlopen_self_static
  16832. # Commands to strip libraries.
  16833. old_striplib=$lt_old_striplib
  16834. striplib=$lt_striplib
  16835. # The linker used to build libraries.
  16836. LD=$lt_LD
  16837. # How to create reloadable object files.
  16838. reload_flag=$lt_reload_flag
  16839. reload_cmds=$lt_reload_cmds
  16840. # Commands used to build an old-style archive.
  16841. old_archive_cmds=$lt_old_archive_cmds
  16842. # A language specific compiler.
  16843. CC=$lt_compiler
  16844. # Is the compiler the GNU compiler?
  16845. with_gcc=$GCC
  16846. # Compiler flag to turn off builtin functions.
  16847. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16848. # Additional compiler flags for building library objects.
  16849. pic_flag=$lt_lt_prog_compiler_pic
  16850. # How to pass a linker flag through the compiler.
  16851. wl=$lt_lt_prog_compiler_wl
  16852. # Compiler flag to prevent dynamic linking.
  16853. link_static_flag=$lt_lt_prog_compiler_static
  16854. # Does compiler simultaneously support -c and -o options?
  16855. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16856. # Whether or not to add -lc for building shared libraries.
  16857. build_libtool_need_lc=$archive_cmds_need_lc
  16858. # Whether or not to disallow shared libs when runtime libs are static.
  16859. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16860. # Compiler flag to allow reflexive dlopens.
  16861. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16862. # Compiler flag to generate shared objects directly from archives.
  16863. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16864. # Whether the compiler copes with passing no objects directly.
  16865. compiler_needs_object=$lt_compiler_needs_object
  16866. # Create an old-style archive from a shared archive.
  16867. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16868. # Create a temporary old-style archive to link instead of a shared archive.
  16869. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16870. # Commands used to build a shared archive.
  16871. archive_cmds=$lt_archive_cmds
  16872. archive_expsym_cmds=$lt_archive_expsym_cmds
  16873. # Commands used to build a loadable module if different from building
  16874. # a shared archive.
  16875. module_cmds=$lt_module_cmds
  16876. module_expsym_cmds=$lt_module_expsym_cmds
  16877. # Whether we are building with GNU ld or not.
  16878. with_gnu_ld=$lt_with_gnu_ld
  16879. # Flag that allows shared libraries with undefined symbols to be built.
  16880. allow_undefined_flag=$lt_allow_undefined_flag
  16881. # Flag that enforces no undefined symbols.
  16882. no_undefined_flag=$lt_no_undefined_flag
  16883. # Flag to hardcode \$libdir into a binary during linking.
  16884. # This must work even if \$libdir does not exist
  16885. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16886. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16887. # during linking. This must work even if \$libdir does not exist.
  16888. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  16889. # Whether we need a single "-rpath" flag with a separated argument.
  16890. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16891. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16892. # DIR into the resulting binary.
  16893. hardcode_direct=$hardcode_direct
  16894. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16895. # DIR into the resulting binary and the resulting library dependency is
  16896. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16897. # library is relocated.
  16898. hardcode_direct_absolute=$hardcode_direct_absolute
  16899. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16900. # into the resulting binary.
  16901. hardcode_minus_L=$hardcode_minus_L
  16902. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16903. # into the resulting binary.
  16904. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16905. # Set to "yes" if building a shared library automatically hardcodes DIR
  16906. # into the library and all subsequent libraries and executables linked
  16907. # against it.
  16908. hardcode_automatic=$hardcode_automatic
  16909. # Set to yes if linker adds runtime paths of dependent libraries
  16910. # to runtime path list.
  16911. inherit_rpath=$inherit_rpath
  16912. # Whether libtool must link a program against all its dependency libraries.
  16913. link_all_deplibs=$link_all_deplibs
  16914. # Set to "yes" if exported symbols are required.
  16915. always_export_symbols=$always_export_symbols
  16916. # The commands to list exported symbols.
  16917. export_symbols_cmds=$lt_export_symbols_cmds
  16918. # Symbols that should not be listed in the preloaded symbols.
  16919. exclude_expsyms=$lt_exclude_expsyms
  16920. # Symbols that must always be exported.
  16921. include_expsyms=$lt_include_expsyms
  16922. # Commands necessary for linking programs (against libraries) with templates.
  16923. prelink_cmds=$lt_prelink_cmds
  16924. # Commands necessary for finishing linking programs.
  16925. postlink_cmds=$lt_postlink_cmds
  16926. # Specify filename containing input files.
  16927. file_list_spec=$lt_file_list_spec
  16928. # How to hardcode a shared library path into an executable.
  16929. hardcode_action=$hardcode_action
  16930. # The directories searched by this compiler when creating a shared library.
  16931. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16932. # Dependencies to place before and after the objects being linked to
  16933. # create a shared library.
  16934. predep_objects=$lt_predep_objects
  16935. postdep_objects=$lt_postdep_objects
  16936. predeps=$lt_predeps
  16937. postdeps=$lt_postdeps
  16938. # The library search path used internally by the compiler when linking
  16939. # a shared library.
  16940. compiler_lib_search_path=$lt_compiler_lib_search_path
  16941. # ### END LIBTOOL CONFIG
  16942. _LT_EOF
  16943. case $host_os in
  16944. aix3*)
  16945. cat <<\_LT_EOF >> "$cfgfile"
  16946. # AIX sometimes has problems with the GCC collect2 program. For some
  16947. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16948. # vanish in a puff of smoke.
  16949. if test "X${COLLECT_NAMES+set}" != Xset; then
  16950. COLLECT_NAMES=
  16951. export COLLECT_NAMES
  16952. fi
  16953. _LT_EOF
  16954. ;;
  16955. esac
  16956. ltmain="$ac_aux_dir/ltmain.sh"
  16957. # We use sed instead of cat because bash on DJGPP gets confused if
  16958. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16959. # text mode, it properly converts lines to CR/LF. This bash problem
  16960. # is reportedly fixed, but why not run on old versions too?
  16961. sed '$q' "$ltmain" >> "$cfgfile" \
  16962. || (rm -f "$cfgfile"; exit 1)
  16963. if test x"$xsi_shell" = xyes; then
  16964. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16965. func_dirname ()\
  16966. {\
  16967. \ case ${1} in\
  16968. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16969. \ * ) func_dirname_result="${3}" ;;\
  16970. \ esac\
  16971. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16972. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16973. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16974. test 0 -eq $? || _lt_function_replace_fail=:
  16975. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  16976. func_basename ()\
  16977. {\
  16978. \ func_basename_result="${1##*/}"\
  16979. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16980. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16981. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16982. test 0 -eq $? || _lt_function_replace_fail=:
  16983. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  16984. func_dirname_and_basename ()\
  16985. {\
  16986. \ case ${1} in\
  16987. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16988. \ * ) func_dirname_result="${3}" ;;\
  16989. \ esac\
  16990. \ func_basename_result="${1##*/}"\
  16991. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16992. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16993. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16994. test 0 -eq $? || _lt_function_replace_fail=:
  16995. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  16996. func_stripname ()\
  16997. {\
  16998. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  16999. \ # positional parameters, so assign one to ordinary parameter first.\
  17000. \ func_stripname_result=${3}\
  17001. \ func_stripname_result=${func_stripname_result#"${1}"}\
  17002. \ func_stripname_result=${func_stripname_result%"${2}"}\
  17003. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  17004. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17005. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17006. test 0 -eq $? || _lt_function_replace_fail=:
  17007. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  17008. func_split_long_opt ()\
  17009. {\
  17010. \ func_split_long_opt_name=${1%%=*}\
  17011. \ func_split_long_opt_arg=${1#*=}\
  17012. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  17013. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17014. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17015. test 0 -eq $? || _lt_function_replace_fail=:
  17016. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  17017. func_split_short_opt ()\
  17018. {\
  17019. \ func_split_short_opt_arg=${1#??}\
  17020. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  17021. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  17022. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17023. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17024. test 0 -eq $? || _lt_function_replace_fail=:
  17025. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  17026. func_lo2o ()\
  17027. {\
  17028. \ case ${1} in\
  17029. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  17030. \ *) func_lo2o_result=${1} ;;\
  17031. \ esac\
  17032. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  17033. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17034. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17035. test 0 -eq $? || _lt_function_replace_fail=:
  17036. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  17037. func_xform ()\
  17038. {\
  17039. func_xform_result=${1%.*}.lo\
  17040. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  17041. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17042. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17043. test 0 -eq $? || _lt_function_replace_fail=:
  17044. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  17045. func_arith ()\
  17046. {\
  17047. func_arith_result=$(( $* ))\
  17048. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  17049. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17050. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17051. test 0 -eq $? || _lt_function_replace_fail=:
  17052. sed -e '/^func_len ()$/,/^} # func_len /c\
  17053. func_len ()\
  17054. {\
  17055. func_len_result=${#1}\
  17056. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  17057. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17058. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17059. test 0 -eq $? || _lt_function_replace_fail=:
  17060. fi
  17061. if test x"$lt_shell_append" = xyes; then
  17062. sed -e '/^func_append ()$/,/^} # func_append /c\
  17063. func_append ()\
  17064. {\
  17065. eval "${1}+=\\${2}"\
  17066. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  17067. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17068. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17069. test 0 -eq $? || _lt_function_replace_fail=:
  17070. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  17071. func_append_quoted ()\
  17072. {\
  17073. \ func_quote_for_eval "${2}"\
  17074. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  17075. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  17076. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17077. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17078. test 0 -eq $? || _lt_function_replace_fail=:
  17079. # Save a `func_append' function call where possible by direct use of '+='
  17080. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  17081. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17082. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17083. test 0 -eq $? || _lt_function_replace_fail=:
  17084. else
  17085. # Save a `func_append' function call even when '+=' is not available
  17086. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  17087. && mv -f "$cfgfile.tmp" "$cfgfile" \
  17088. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  17089. test 0 -eq $? || _lt_function_replace_fail=:
  17090. fi
  17091. if test x"$_lt_function_replace_fail" = x":"; then
  17092. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  17093. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  17094. fi
  17095. mv -f "$cfgfile" "$ofile" ||
  17096. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  17097. chmod +x "$ofile"
  17098. cat <<_LT_EOF >> "$ofile"
  17099. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  17100. # The linker used to build libraries.
  17101. LD=$lt_LD_CXX
  17102. # How to create reloadable object files.
  17103. reload_flag=$lt_reload_flag_CXX
  17104. reload_cmds=$lt_reload_cmds_CXX
  17105. # Commands used to build an old-style archive.
  17106. old_archive_cmds=$lt_old_archive_cmds_CXX
  17107. # A language specific compiler.
  17108. CC=$lt_compiler_CXX
  17109. # Is the compiler the GNU compiler?
  17110. with_gcc=$GCC_CXX
  17111. # Compiler flag to turn off builtin functions.
  17112. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  17113. # Additional compiler flags for building library objects.
  17114. pic_flag=$lt_lt_prog_compiler_pic_CXX
  17115. # How to pass a linker flag through the compiler.
  17116. wl=$lt_lt_prog_compiler_wl_CXX
  17117. # Compiler flag to prevent dynamic linking.
  17118. link_static_flag=$lt_lt_prog_compiler_static_CXX
  17119. # Does compiler simultaneously support -c and -o options?
  17120. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  17121. # Whether or not to add -lc for building shared libraries.
  17122. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  17123. # Whether or not to disallow shared libs when runtime libs are static.
  17124. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  17125. # Compiler flag to allow reflexive dlopens.
  17126. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  17127. # Compiler flag to generate shared objects directly from archives.
  17128. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  17129. # Whether the compiler copes with passing no objects directly.
  17130. compiler_needs_object=$lt_compiler_needs_object_CXX
  17131. # Create an old-style archive from a shared archive.
  17132. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  17133. # Create a temporary old-style archive to link instead of a shared archive.
  17134. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  17135. # Commands used to build a shared archive.
  17136. archive_cmds=$lt_archive_cmds_CXX
  17137. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  17138. # Commands used to build a loadable module if different from building
  17139. # a shared archive.
  17140. module_cmds=$lt_module_cmds_CXX
  17141. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  17142. # Whether we are building with GNU ld or not.
  17143. with_gnu_ld=$lt_with_gnu_ld_CXX
  17144. # Flag that allows shared libraries with undefined symbols to be built.
  17145. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  17146. # Flag that enforces no undefined symbols.
  17147. no_undefined_flag=$lt_no_undefined_flag_CXX
  17148. # Flag to hardcode \$libdir into a binary during linking.
  17149. # This must work even if \$libdir does not exist
  17150. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  17151. # If ld is used when linking, flag to hardcode \$libdir into a binary
  17152. # during linking. This must work even if \$libdir does not exist.
  17153. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  17154. # Whether we need a single "-rpath" flag with a separated argument.
  17155. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  17156. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17157. # DIR into the resulting binary.
  17158. hardcode_direct=$hardcode_direct_CXX
  17159. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  17160. # DIR into the resulting binary and the resulting library dependency is
  17161. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  17162. # library is relocated.
  17163. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  17164. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  17165. # into the resulting binary.
  17166. hardcode_minus_L=$hardcode_minus_L_CXX
  17167. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  17168. # into the resulting binary.
  17169. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  17170. # Set to "yes" if building a shared library automatically hardcodes DIR
  17171. # into the library and all subsequent libraries and executables linked
  17172. # against it.
  17173. hardcode_automatic=$hardcode_automatic_CXX
  17174. # Set to yes if linker adds runtime paths of dependent libraries
  17175. # to runtime path list.
  17176. inherit_rpath=$inherit_rpath_CXX
  17177. # Whether libtool must link a program against all its dependency libraries.
  17178. link_all_deplibs=$link_all_deplibs_CXX
  17179. # Set to "yes" if exported symbols are required.
  17180. always_export_symbols=$always_export_symbols_CXX
  17181. # The commands to list exported symbols.
  17182. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  17183. # Symbols that should not be listed in the preloaded symbols.
  17184. exclude_expsyms=$lt_exclude_expsyms_CXX
  17185. # Symbols that must always be exported.
  17186. include_expsyms=$lt_include_expsyms_CXX
  17187. # Commands necessary for linking programs (against libraries) with templates.
  17188. prelink_cmds=$lt_prelink_cmds_CXX
  17189. # Commands necessary for finishing linking programs.
  17190. postlink_cmds=$lt_postlink_cmds_CXX
  17191. # Specify filename containing input files.
  17192. file_list_spec=$lt_file_list_spec_CXX
  17193. # How to hardcode a shared library path into an executable.
  17194. hardcode_action=$hardcode_action_CXX
  17195. # The directories searched by this compiler when creating a shared library.
  17196. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  17197. # Dependencies to place before and after the objects being linked to
  17198. # create a shared library.
  17199. predep_objects=$lt_predep_objects_CXX
  17200. postdep_objects=$lt_postdep_objects_CXX
  17201. predeps=$lt_predeps_CXX
  17202. postdeps=$lt_postdeps_CXX
  17203. # The library search path used internally by the compiler when linking
  17204. # a shared library.
  17205. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  17206. # ### END LIBTOOL TAG CONFIG: CXX
  17207. _LT_EOF
  17208. ;;
  17209. esac
  17210. done # for ac_tag
  17211. as_fn_exit 0
  17212. _ACEOF
  17213. ac_clean_files=$ac_clean_files_save
  17214. test $ac_write_fail = 0 ||
  17215. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  17216. # configure is writing to config.log, and then calls config.status.
  17217. # config.status does its own redirection, appending to config.log.
  17218. # Unfortunately, on DOS this fails, as config.log is still kept open
  17219. # by configure, so config.status won't be able to write to it; its
  17220. # output is simply discarded. So we exec the FD to /dev/null,
  17221. # effectively closing config.log, so it can be properly (re)opened and
  17222. # appended to by config.status. When coming back to configure, we
  17223. # need to make the FD available again.
  17224. if test "$no_create" != yes; then
  17225. ac_cs_success=:
  17226. ac_config_status_args=
  17227. test "$silent" = yes &&
  17228. ac_config_status_args="$ac_config_status_args --quiet"
  17229. exec 5>/dev/null
  17230. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  17231. exec 5>>config.log
  17232. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  17233. # would make configure fail if this is the last instruction.
  17234. $ac_cs_success || as_fn_exit 1
  17235. fi
  17236. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  17237. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  17238. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  17239. fi