configure 572 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026
  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 \$(( 1 + 1 )) = 2 || exit 1"
  161. if (eval "$as_required") 2>/dev/null; then :
  162. as_have_required=yes
  163. else
  164. as_have_required=no
  165. fi
  166. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  167. else
  168. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  169. as_found=false
  170. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  171. do
  172. IFS=$as_save_IFS
  173. test -z "$as_dir" && as_dir=.
  174. as_found=:
  175. case $as_dir in #(
  176. /*)
  177. for as_base in sh bash ksh sh5; do
  178. # Try only shells that exist, to save several forks.
  179. as_shell=$as_dir/$as_base
  180. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  181. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  182. CONFIG_SHELL=$as_shell as_have_required=yes
  183. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  184. break 2
  185. fi
  186. fi
  187. done;;
  188. esac
  189. as_found=false
  190. done
  191. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  192. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  193. CONFIG_SHELL=$SHELL as_have_required=yes
  194. fi; }
  195. IFS=$as_save_IFS
  196. if test "x$CONFIG_SHELL" != x; then :
  197. # We cannot yet assume a decent shell, so we have to provide a
  198. # neutralization value for shells without unset; and this also
  199. # works around shells that cannot unset nonexistent variables.
  200. BASH_ENV=/dev/null
  201. ENV=/dev/null
  202. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  203. export CONFIG_SHELL
  204. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  205. fi
  206. if test x$as_have_required = xno; then :
  207. $as_echo "$0: This script requires a shell more modern than all"
  208. $as_echo "$0: the shells that I found on your system."
  209. if test x${ZSH_VERSION+set} = xset ; then
  210. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  211. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  212. else
  213. $as_echo "$0: Please tell [email protected] about your system,
  214. $0: including any error possibly output before this
  215. $0: message. Then install a modern shell, or manually run
  216. $0: the script under such a shell if you do have one."
  217. fi
  218. exit 1
  219. fi
  220. fi
  221. fi
  222. SHELL=${CONFIG_SHELL-/bin/sh}
  223. export SHELL
  224. # Unset more variables known to interfere with behavior of common tools.
  225. CLICOLOR_FORCE= GREP_OPTIONS=
  226. unset CLICOLOR_FORCE GREP_OPTIONS
  227. ## --------------------- ##
  228. ## M4sh Shell Functions. ##
  229. ## --------------------- ##
  230. # as_fn_unset VAR
  231. # ---------------
  232. # Portably unset VAR.
  233. as_fn_unset ()
  234. {
  235. { eval $1=; unset $1;}
  236. }
  237. as_unset=as_fn_unset
  238. # as_fn_set_status STATUS
  239. # -----------------------
  240. # Set $? to STATUS, without forking.
  241. as_fn_set_status ()
  242. {
  243. return $1
  244. } # as_fn_set_status
  245. # as_fn_exit STATUS
  246. # -----------------
  247. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  248. as_fn_exit ()
  249. {
  250. set +e
  251. as_fn_set_status $1
  252. exit $1
  253. } # as_fn_exit
  254. # as_fn_mkdir_p
  255. # -------------
  256. # Create "$as_dir" as a directory, including parents if necessary.
  257. as_fn_mkdir_p ()
  258. {
  259. case $as_dir in #(
  260. -*) as_dir=./$as_dir;;
  261. esac
  262. test -d "$as_dir" || eval $as_mkdir_p || {
  263. as_dirs=
  264. while :; do
  265. case $as_dir in #(
  266. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  267. *) as_qdir=$as_dir;;
  268. esac
  269. as_dirs="'$as_qdir' $as_dirs"
  270. as_dir=`$as_dirname -- "$as_dir" ||
  271. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  272. X"$as_dir" : 'X\(//\)[^/]' \| \
  273. X"$as_dir" : 'X\(//\)$' \| \
  274. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  275. $as_echo X"$as_dir" |
  276. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  277. s//\1/
  278. q
  279. }
  280. /^X\(\/\/\)[^/].*/{
  281. s//\1/
  282. q
  283. }
  284. /^X\(\/\/\)$/{
  285. s//\1/
  286. q
  287. }
  288. /^X\(\/\).*/{
  289. s//\1/
  290. q
  291. }
  292. s/.*/./; q'`
  293. test -d "$as_dir" && break
  294. done
  295. test -z "$as_dirs" || eval "mkdir $as_dirs"
  296. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  297. } # as_fn_mkdir_p
  298. # as_fn_append VAR VALUE
  299. # ----------------------
  300. # Append the text in VALUE to the end of the definition contained in VAR. Take
  301. # advantage of any shell optimizations that allow amortized linear growth over
  302. # repeated appends, instead of the typical quadratic growth present in naive
  303. # implementations.
  304. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  305. eval 'as_fn_append ()
  306. {
  307. eval $1+=\$2
  308. }'
  309. else
  310. as_fn_append ()
  311. {
  312. eval $1=\$$1\$2
  313. }
  314. fi # as_fn_append
  315. # as_fn_arith ARG...
  316. # ------------------
  317. # Perform arithmetic evaluation on the ARGs, and store the result in the
  318. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  319. # must be portable across $(()) and expr.
  320. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  321. eval 'as_fn_arith ()
  322. {
  323. as_val=$(( $* ))
  324. }'
  325. else
  326. as_fn_arith ()
  327. {
  328. as_val=`expr "$@" || test $? -eq 1`
  329. }
  330. fi # as_fn_arith
  331. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  332. # ----------------------------------------
  333. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  334. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  335. # script with STATUS, using 1 if that was 0.
  336. as_fn_error ()
  337. {
  338. as_status=$1; test $as_status -eq 0 && as_status=1
  339. if test "$4"; then
  340. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  341. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  342. fi
  343. $as_echo "$as_me: error: $2" >&2
  344. as_fn_exit $as_status
  345. } # as_fn_error
  346. if expr a : '\(a\)' >/dev/null 2>&1 &&
  347. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  348. as_expr=expr
  349. else
  350. as_expr=false
  351. fi
  352. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  353. as_basename=basename
  354. else
  355. as_basename=false
  356. fi
  357. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  358. as_dirname=dirname
  359. else
  360. as_dirname=false
  361. fi
  362. as_me=`$as_basename -- "$0" ||
  363. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  364. X"$0" : 'X\(//\)$' \| \
  365. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  366. $as_echo X/"$0" |
  367. sed '/^.*\/\([^/][^/]*\)\/*$/{
  368. s//\1/
  369. q
  370. }
  371. /^X\/\(\/\/\)$/{
  372. s//\1/
  373. q
  374. }
  375. /^X\/\(\/\).*/{
  376. s//\1/
  377. q
  378. }
  379. s/.*/./; q'`
  380. # Avoid depending upon Character Ranges.
  381. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  382. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  383. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  384. as_cr_digits='0123456789'
  385. as_cr_alnum=$as_cr_Letters$as_cr_digits
  386. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  387. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  388. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  389. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  390. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  391. sed -n '
  392. p
  393. /[$]LINENO/=
  394. ' <$as_myself |
  395. sed '
  396. s/[$]LINENO.*/&-/
  397. t lineno
  398. b
  399. :lineno
  400. N
  401. :loop
  402. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  403. t loop
  404. s/-\n.*//
  405. ' >$as_me.lineno &&
  406. chmod +x "$as_me.lineno" ||
  407. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  408. # Don't try to exec as it changes $[0], causing all sort of problems
  409. # (the dirname of $[0] is not the place where we might find the
  410. # original and so on. Autoconf is especially sensitive to this).
  411. . "./$as_me.lineno"
  412. # Exit status is that of the last command.
  413. exit
  414. }
  415. ECHO_C= ECHO_N= ECHO_T=
  416. case `echo -n x` in #(((((
  417. -n*)
  418. case `echo 'xy\c'` in
  419. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  420. xy) ECHO_C='\c';;
  421. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  422. ECHO_T=' ';;
  423. esac;;
  424. *)
  425. ECHO_N='-n';;
  426. esac
  427. rm -f conf$$ conf$$.exe conf$$.file
  428. if test -d conf$$.dir; then
  429. rm -f conf$$.dir/conf$$.file
  430. else
  431. rm -f conf$$.dir
  432. mkdir conf$$.dir 2>/dev/null
  433. fi
  434. if (echo >conf$$.file) 2>/dev/null; then
  435. if ln -s conf$$.file conf$$ 2>/dev/null; then
  436. as_ln_s='ln -s'
  437. # ... but there are two gotchas:
  438. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  439. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  440. # In both cases, we have to default to `cp -p'.
  441. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  442. as_ln_s='cp -p'
  443. elif ln conf$$.file conf$$ 2>/dev/null; then
  444. as_ln_s=ln
  445. else
  446. as_ln_s='cp -p'
  447. fi
  448. else
  449. as_ln_s='cp -p'
  450. fi
  451. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  452. rmdir conf$$.dir 2>/dev/null
  453. if mkdir -p . 2>/dev/null; then
  454. as_mkdir_p='mkdir -p "$as_dir"'
  455. else
  456. test -d ./-p && rmdir ./-p
  457. as_mkdir_p=false
  458. fi
  459. if test -x / >/dev/null 2>&1; then
  460. as_test_x='test -x'
  461. else
  462. if ls -dL / >/dev/null 2>&1; then
  463. as_ls_L_option=L
  464. else
  465. as_ls_L_option=
  466. fi
  467. as_test_x='
  468. eval sh -c '\''
  469. if test -d "$1"; then
  470. test -d "$1/.";
  471. else
  472. case $1 in #(
  473. -*)set "./$1";;
  474. esac;
  475. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  476. ???[sx]*):;;*)false;;esac;fi
  477. '\'' sh
  478. '
  479. fi
  480. as_executable_p=$as_test_x
  481. # Sed expression to map a string onto a valid CPP name.
  482. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  483. # Sed expression to map a string onto a valid variable name.
  484. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  485. # Check that we are running under the correct shell.
  486. SHELL=${CONFIG_SHELL-/bin/sh}
  487. case X$lt_ECHO in
  488. X*--fallback-echo)
  489. # Remove one level of quotation (which was required for Make).
  490. ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  491. ;;
  492. esac
  493. ECHO=${lt_ECHO-echo}
  494. if test "X$1" = X--no-reexec; then
  495. # Discard the --no-reexec flag, and continue.
  496. shift
  497. elif test "X$1" = X--fallback-echo; then
  498. # Avoid inline document here, it may be left over
  499. :
  500. elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  501. # Yippee, $ECHO works!
  502. :
  503. else
  504. # Restart under the correct shell.
  505. exec $SHELL "$0" --no-reexec ${1+"$@"}
  506. fi
  507. if test "X$1" = X--fallback-echo; then
  508. # used as fallback echo
  509. shift
  510. cat <<_LT_EOF
  511. $*
  512. _LT_EOF
  513. exit 0
  514. fi
  515. # The HP-UX ksh and POSIX shell print the target directory to stdout
  516. # if CDPATH is set.
  517. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  518. if test -z "$lt_ECHO"; then
  519. if test "X${echo_test_string+set}" != Xset; then
  520. # find a string as large as possible, as long as the shell can cope with it
  521. for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  522. # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  523. if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  524. { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  525. then
  526. break
  527. fi
  528. done
  529. fi
  530. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  531. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  532. test "X$echo_testing_string" = "X$echo_test_string"; then
  533. :
  534. else
  535. # The Solaris, AIX, and Digital Unix default echo programs unquote
  536. # backslashes. This makes it impossible to quote backslashes using
  537. # echo "$something" | sed 's/\\/\\\\/g'
  538. #
  539. # So, first we look for a working echo in the user's PATH.
  540. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  541. for dir in $PATH /usr/ucb; do
  542. IFS="$lt_save_ifs"
  543. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  544. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  545. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  546. test "X$echo_testing_string" = "X$echo_test_string"; then
  547. ECHO="$dir/echo"
  548. break
  549. fi
  550. done
  551. IFS="$lt_save_ifs"
  552. if test "X$ECHO" = Xecho; then
  553. # We didn't find a better echo, so look for alternatives.
  554. if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  555. echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  556. test "X$echo_testing_string" = "X$echo_test_string"; then
  557. # This shell has a builtin print -r that does the trick.
  558. ECHO='print -r'
  559. elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  560. test "X$CONFIG_SHELL" != X/bin/ksh; then
  561. # If we have ksh, try running configure again with it.
  562. ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  563. export ORIGINAL_CONFIG_SHELL
  564. CONFIG_SHELL=/bin/ksh
  565. export CONFIG_SHELL
  566. exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  567. else
  568. # Try using printf.
  569. ECHO='printf %s\n'
  570. if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  571. echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  572. test "X$echo_testing_string" = "X$echo_test_string"; then
  573. # Cool, printf works
  574. :
  575. elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  576. test "X$echo_testing_string" = 'X\t' &&
  577. echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  578. test "X$echo_testing_string" = "X$echo_test_string"; then
  579. CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  580. export CONFIG_SHELL
  581. SHELL="$CONFIG_SHELL"
  582. export SHELL
  583. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  584. elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  585. test "X$echo_testing_string" = 'X\t' &&
  586. echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  587. test "X$echo_testing_string" = "X$echo_test_string"; then
  588. ECHO="$CONFIG_SHELL $0 --fallback-echo"
  589. else
  590. # maybe with a smaller string...
  591. prev=:
  592. for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  593. if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  594. then
  595. break
  596. fi
  597. prev="$cmd"
  598. done
  599. if test "$prev" != 'sed 50q "$0"'; then
  600. echo_test_string=`eval $prev`
  601. export echo_test_string
  602. exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  603. else
  604. # Oops. We lost completely, so just stick with echo.
  605. ECHO=echo
  606. fi
  607. fi
  608. fi
  609. fi
  610. fi
  611. fi
  612. # Copy echo and quote the copy suitably for passing to libtool from
  613. # the Makefile, instead of quoting the original, which is used later.
  614. lt_ECHO=$ECHO
  615. if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  616. lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  617. fi
  618. test -n "$DJDIR" || exec 7<&0 </dev/null
  619. exec 6>&1
  620. # Name of the host.
  621. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  622. # so uname gets run too.
  623. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  624. #
  625. # Initializations.
  626. #
  627. ac_default_prefix=/usr/local
  628. ac_clean_files=
  629. ac_config_libobj_dir=.
  630. LIBOBJS=
  631. cross_compiling=no
  632. subdirs=
  633. MFLAGS=
  634. MAKEFLAGS=
  635. # Identity of this package.
  636. PACKAGE_NAME='vcmi'
  637. PACKAGE_TARNAME='vcmi'
  638. PACKAGE_VERSION='0.84b'
  639. PACKAGE_STRING='vcmi 0.84b'
  640. PACKAGE_BUGREPORT=''
  641. PACKAGE_URL=''
  642. # Factoring default headers for most tests.
  643. ac_includes_default="\
  644. #include <stdio.h>
  645. #ifdef HAVE_SYS_TYPES_H
  646. # include <sys/types.h>
  647. #endif
  648. #ifdef HAVE_SYS_STAT_H
  649. # include <sys/stat.h>
  650. #endif
  651. #ifdef STDC_HEADERS
  652. # include <stdlib.h>
  653. # include <stddef.h>
  654. #else
  655. # ifdef HAVE_STDLIB_H
  656. # include <stdlib.h>
  657. # endif
  658. #endif
  659. #ifdef HAVE_STRING_H
  660. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  661. # include <memory.h>
  662. # endif
  663. # include <string.h>
  664. #endif
  665. #ifdef HAVE_STRINGS_H
  666. # include <strings.h>
  667. #endif
  668. #ifdef HAVE_INTTYPES_H
  669. # include <inttypes.h>
  670. #endif
  671. #ifdef HAVE_STDINT_H
  672. # include <stdint.h>
  673. #endif
  674. #ifdef HAVE_UNISTD_H
  675. # include <unistd.h>
  676. #endif"
  677. ac_subst_vars='am__EXEEXT_FALSE
  678. am__EXEEXT_TRUE
  679. LTLIBOBJS
  680. LIBOBJS
  681. FFMPEG_CXXFLAGS
  682. FFMPEG_LIBS
  683. SDL_CXXFLAGS
  684. SDL_LIBS
  685. HAVE_SDL_CONFIG
  686. BOOST_PROGRAM_OPTIONS_LIB
  687. BOOST_IOSTREAMS_LIB
  688. BOOST_THREAD_LIB
  689. BOOST_FILESYSTEM_LIB
  690. BOOST_SYSTEM_LIB
  691. BOOST_LDFLAGS
  692. BOOST_CPPFLAGS
  693. AM_BACKSLASH
  694. AM_DEFAULT_VERBOSITY
  695. CXXCPP
  696. CPP
  697. OTOOL64
  698. OTOOL
  699. LIPO
  700. NMEDIT
  701. DSYMUTIL
  702. lt_ECHO
  703. RANLIB
  704. AR
  705. OBJDUMP
  706. LN_S
  707. NM
  708. ac_ct_DUMPBIN
  709. DUMPBIN
  710. LD
  711. FGREP
  712. EGREP
  713. GREP
  714. SED
  715. am__fastdepCC_FALSE
  716. am__fastdepCC_TRUE
  717. CCDEPMODE
  718. ac_ct_CC
  719. CFLAGS
  720. CC
  721. host_os
  722. host_vendor
  723. host_cpu
  724. host
  725. build_os
  726. build_vendor
  727. build_cpu
  728. build
  729. LIBTOOL
  730. am__fastdepCXX_FALSE
  731. am__fastdepCXX_TRUE
  732. CXXDEPMODE
  733. AMDEPBACKSLASH
  734. AMDEP_FALSE
  735. AMDEP_TRUE
  736. am__quote
  737. am__include
  738. DEPDIR
  739. OBJEXT
  740. EXEEXT
  741. ac_ct_CXX
  742. CPPFLAGS
  743. LDFLAGS
  744. CXXFLAGS
  745. CXX
  746. am__untar
  747. am__tar
  748. AMTAR
  749. am__leading_dot
  750. SET_MAKE
  751. AWK
  752. mkdir_p
  753. MKDIR_P
  754. INSTALL_STRIP_PROGRAM
  755. STRIP
  756. install_sh
  757. MAKEINFO
  758. AUTOHEADER
  759. AUTOMAKE
  760. AUTOCONF
  761. ACLOCAL
  762. VERSION
  763. PACKAGE
  764. CYGPATH_W
  765. am__isrc
  766. INSTALL_DATA
  767. INSTALL_SCRIPT
  768. INSTALL_PROGRAM
  769. target_alias
  770. host_alias
  771. build_alias
  772. LIBS
  773. ECHO_T
  774. ECHO_N
  775. ECHO_C
  776. DEFS
  777. mandir
  778. localedir
  779. libdir
  780. psdir
  781. pdfdir
  782. dvidir
  783. htmldir
  784. infodir
  785. docdir
  786. oldincludedir
  787. includedir
  788. localstatedir
  789. sharedstatedir
  790. sysconfdir
  791. datadir
  792. datarootdir
  793. libexecdir
  794. sbindir
  795. bindir
  796. program_transform_name
  797. prefix
  798. exec_prefix
  799. PACKAGE_URL
  800. PACKAGE_BUGREPORT
  801. PACKAGE_STRING
  802. PACKAGE_VERSION
  803. PACKAGE_TARNAME
  804. PACKAGE_NAME
  805. PATH_SEPARATOR
  806. SHELL'
  807. ac_subst_files=''
  808. ac_user_opts='
  809. enable_option_checking
  810. enable_dependency_tracking
  811. enable_shared
  812. enable_static
  813. with_pic
  814. enable_fast_install
  815. with_gnu_ld
  816. enable_libtool_lock
  817. enable_silent_rules
  818. enable_debug
  819. with_boost
  820. with_boost_libdir
  821. with_boost_system
  822. with_boost_filesystem
  823. with_boost_thread
  824. with_boost_iostreams
  825. with_boost_program_options
  826. '
  827. ac_precious_vars='build_alias
  828. host_alias
  829. target_alias
  830. CXX
  831. CXXFLAGS
  832. LDFLAGS
  833. LIBS
  834. CPPFLAGS
  835. CCC
  836. CC
  837. CFLAGS
  838. CPP
  839. CXXCPP'
  840. # Initialize some variables set by options.
  841. ac_init_help=
  842. ac_init_version=false
  843. ac_unrecognized_opts=
  844. ac_unrecognized_sep=
  845. # The variables have the same names as the options, with
  846. # dashes changed to underlines.
  847. cache_file=/dev/null
  848. exec_prefix=NONE
  849. no_create=
  850. no_recursion=
  851. prefix=NONE
  852. program_prefix=NONE
  853. program_suffix=NONE
  854. program_transform_name=s,x,x,
  855. silent=
  856. site=
  857. srcdir=
  858. verbose=
  859. x_includes=NONE
  860. x_libraries=NONE
  861. # Installation directory options.
  862. # These are left unexpanded so users can "make install exec_prefix=/foo"
  863. # and all the variables that are supposed to be based on exec_prefix
  864. # by default will actually change.
  865. # Use braces instead of parens because sh, perl, etc. also accept them.
  866. # (The list follows the same order as the GNU Coding Standards.)
  867. bindir='${exec_prefix}/bin'
  868. sbindir='${exec_prefix}/sbin'
  869. libexecdir='${exec_prefix}/libexec'
  870. datarootdir='${prefix}/share'
  871. datadir='${datarootdir}'
  872. sysconfdir='${prefix}/etc'
  873. sharedstatedir='${prefix}/com'
  874. localstatedir='${prefix}/var'
  875. includedir='${prefix}/include'
  876. oldincludedir='/usr/include'
  877. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  878. infodir='${datarootdir}/info'
  879. htmldir='${docdir}'
  880. dvidir='${docdir}'
  881. pdfdir='${docdir}'
  882. psdir='${docdir}'
  883. libdir='${exec_prefix}/lib'
  884. localedir='${datarootdir}/locale'
  885. mandir='${datarootdir}/man'
  886. ac_prev=
  887. ac_dashdash=
  888. for ac_option
  889. do
  890. # If the previous option needs an argument, assign it.
  891. if test -n "$ac_prev"; then
  892. eval $ac_prev=\$ac_option
  893. ac_prev=
  894. continue
  895. fi
  896. case $ac_option in
  897. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  898. *=) ac_optarg= ;;
  899. *) ac_optarg=yes ;;
  900. esac
  901. # Accept the important Cygnus configure options, so we can diagnose typos.
  902. case $ac_dashdash$ac_option in
  903. --)
  904. ac_dashdash=yes ;;
  905. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  906. ac_prev=bindir ;;
  907. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  908. bindir=$ac_optarg ;;
  909. -build | --build | --buil | --bui | --bu)
  910. ac_prev=build_alias ;;
  911. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  912. build_alias=$ac_optarg ;;
  913. -cache-file | --cache-file | --cache-fil | --cache-fi \
  914. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  915. ac_prev=cache_file ;;
  916. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  917. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  918. cache_file=$ac_optarg ;;
  919. --config-cache | -C)
  920. cache_file=config.cache ;;
  921. -datadir | --datadir | --datadi | --datad)
  922. ac_prev=datadir ;;
  923. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  924. datadir=$ac_optarg ;;
  925. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  926. | --dataroo | --dataro | --datar)
  927. ac_prev=datarootdir ;;
  928. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  929. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  930. datarootdir=$ac_optarg ;;
  931. -disable-* | --disable-*)
  932. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  933. # Reject names that are not valid shell variable names.
  934. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  935. as_fn_error $? "invalid feature name: $ac_useropt"
  936. ac_useropt_orig=$ac_useropt
  937. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  938. case $ac_user_opts in
  939. *"
  940. "enable_$ac_useropt"
  941. "*) ;;
  942. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  943. ac_unrecognized_sep=', ';;
  944. esac
  945. eval enable_$ac_useropt=no ;;
  946. -docdir | --docdir | --docdi | --doc | --do)
  947. ac_prev=docdir ;;
  948. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  949. docdir=$ac_optarg ;;
  950. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  951. ac_prev=dvidir ;;
  952. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  953. dvidir=$ac_optarg ;;
  954. -enable-* | --enable-*)
  955. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  956. # Reject names that are not valid shell variable names.
  957. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  958. as_fn_error $? "invalid feature name: $ac_useropt"
  959. ac_useropt_orig=$ac_useropt
  960. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  961. case $ac_user_opts in
  962. *"
  963. "enable_$ac_useropt"
  964. "*) ;;
  965. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  966. ac_unrecognized_sep=', ';;
  967. esac
  968. eval enable_$ac_useropt=\$ac_optarg ;;
  969. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  970. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  971. | --exec | --exe | --ex)
  972. ac_prev=exec_prefix ;;
  973. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  974. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  975. | --exec=* | --exe=* | --ex=*)
  976. exec_prefix=$ac_optarg ;;
  977. -gas | --gas | --ga | --g)
  978. # Obsolete; use --with-gas.
  979. with_gas=yes ;;
  980. -help | --help | --hel | --he | -h)
  981. ac_init_help=long ;;
  982. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  983. ac_init_help=recursive ;;
  984. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  985. ac_init_help=short ;;
  986. -host | --host | --hos | --ho)
  987. ac_prev=host_alias ;;
  988. -host=* | --host=* | --hos=* | --ho=*)
  989. host_alias=$ac_optarg ;;
  990. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  991. ac_prev=htmldir ;;
  992. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  993. | --ht=*)
  994. htmldir=$ac_optarg ;;
  995. -includedir | --includedir | --includedi | --included | --include \
  996. | --includ | --inclu | --incl | --inc)
  997. ac_prev=includedir ;;
  998. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  999. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1000. includedir=$ac_optarg ;;
  1001. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1002. ac_prev=infodir ;;
  1003. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1004. infodir=$ac_optarg ;;
  1005. -libdir | --libdir | --libdi | --libd)
  1006. ac_prev=libdir ;;
  1007. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1008. libdir=$ac_optarg ;;
  1009. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1010. | --libexe | --libex | --libe)
  1011. ac_prev=libexecdir ;;
  1012. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1013. | --libexe=* | --libex=* | --libe=*)
  1014. libexecdir=$ac_optarg ;;
  1015. -localedir | --localedir | --localedi | --localed | --locale)
  1016. ac_prev=localedir ;;
  1017. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1018. localedir=$ac_optarg ;;
  1019. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1020. | --localstate | --localstat | --localsta | --localst | --locals)
  1021. ac_prev=localstatedir ;;
  1022. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1023. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1024. localstatedir=$ac_optarg ;;
  1025. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1026. ac_prev=mandir ;;
  1027. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1028. mandir=$ac_optarg ;;
  1029. -nfp | --nfp | --nf)
  1030. # Obsolete; use --without-fp.
  1031. with_fp=no ;;
  1032. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1033. | --no-cr | --no-c | -n)
  1034. no_create=yes ;;
  1035. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1036. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1037. no_recursion=yes ;;
  1038. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1039. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1040. | --oldin | --oldi | --old | --ol | --o)
  1041. ac_prev=oldincludedir ;;
  1042. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1043. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1044. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1045. oldincludedir=$ac_optarg ;;
  1046. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1047. ac_prev=prefix ;;
  1048. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1049. prefix=$ac_optarg ;;
  1050. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1051. | --program-pre | --program-pr | --program-p)
  1052. ac_prev=program_prefix ;;
  1053. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1054. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1055. program_prefix=$ac_optarg ;;
  1056. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1057. | --program-suf | --program-su | --program-s)
  1058. ac_prev=program_suffix ;;
  1059. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1060. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1061. program_suffix=$ac_optarg ;;
  1062. -program-transform-name | --program-transform-name \
  1063. | --program-transform-nam | --program-transform-na \
  1064. | --program-transform-n | --program-transform- \
  1065. | --program-transform | --program-transfor \
  1066. | --program-transfo | --program-transf \
  1067. | --program-trans | --program-tran \
  1068. | --progr-tra | --program-tr | --program-t)
  1069. ac_prev=program_transform_name ;;
  1070. -program-transform-name=* | --program-transform-name=* \
  1071. | --program-transform-nam=* | --program-transform-na=* \
  1072. | --program-transform-n=* | --program-transform-=* \
  1073. | --program-transform=* | --program-transfor=* \
  1074. | --program-transfo=* | --program-transf=* \
  1075. | --program-trans=* | --program-tran=* \
  1076. | --progr-tra=* | --program-tr=* | --program-t=*)
  1077. program_transform_name=$ac_optarg ;;
  1078. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1079. ac_prev=pdfdir ;;
  1080. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1081. pdfdir=$ac_optarg ;;
  1082. -psdir | --psdir | --psdi | --psd | --ps)
  1083. ac_prev=psdir ;;
  1084. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1085. psdir=$ac_optarg ;;
  1086. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1087. | -silent | --silent | --silen | --sile | --sil)
  1088. silent=yes ;;
  1089. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1090. ac_prev=sbindir ;;
  1091. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1092. | --sbi=* | --sb=*)
  1093. sbindir=$ac_optarg ;;
  1094. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1095. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1096. | --sharedst | --shareds | --shared | --share | --shar \
  1097. | --sha | --sh)
  1098. ac_prev=sharedstatedir ;;
  1099. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1100. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1101. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1102. | --sha=* | --sh=*)
  1103. sharedstatedir=$ac_optarg ;;
  1104. -site | --site | --sit)
  1105. ac_prev=site ;;
  1106. -site=* | --site=* | --sit=*)
  1107. site=$ac_optarg ;;
  1108. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1109. ac_prev=srcdir ;;
  1110. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1111. srcdir=$ac_optarg ;;
  1112. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1113. | --syscon | --sysco | --sysc | --sys | --sy)
  1114. ac_prev=sysconfdir ;;
  1115. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1116. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1117. sysconfdir=$ac_optarg ;;
  1118. -target | --target | --targe | --targ | --tar | --ta | --t)
  1119. ac_prev=target_alias ;;
  1120. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1121. target_alias=$ac_optarg ;;
  1122. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1123. verbose=yes ;;
  1124. -version | --version | --versio | --versi | --vers | -V)
  1125. ac_init_version=: ;;
  1126. -with-* | --with-*)
  1127. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1128. # Reject names that are not valid shell variable names.
  1129. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1130. as_fn_error $? "invalid package name: $ac_useropt"
  1131. ac_useropt_orig=$ac_useropt
  1132. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1133. case $ac_user_opts in
  1134. *"
  1135. "with_$ac_useropt"
  1136. "*) ;;
  1137. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1138. ac_unrecognized_sep=', ';;
  1139. esac
  1140. eval with_$ac_useropt=\$ac_optarg ;;
  1141. -without-* | --without-*)
  1142. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1143. # Reject names that are not valid shell variable names.
  1144. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1145. as_fn_error $? "invalid package name: $ac_useropt"
  1146. ac_useropt_orig=$ac_useropt
  1147. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1148. case $ac_user_opts in
  1149. *"
  1150. "with_$ac_useropt"
  1151. "*) ;;
  1152. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1153. ac_unrecognized_sep=', ';;
  1154. esac
  1155. eval with_$ac_useropt=no ;;
  1156. --x)
  1157. # Obsolete; use --with-x.
  1158. with_x=yes ;;
  1159. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1160. | --x-incl | --x-inc | --x-in | --x-i)
  1161. ac_prev=x_includes ;;
  1162. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1163. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1164. x_includes=$ac_optarg ;;
  1165. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1166. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1167. ac_prev=x_libraries ;;
  1168. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1169. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1170. x_libraries=$ac_optarg ;;
  1171. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1172. Try \`$0 --help' for more information"
  1173. ;;
  1174. *=*)
  1175. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1176. # Reject names that are not valid shell variable names.
  1177. case $ac_envvar in #(
  1178. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1179. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1180. esac
  1181. eval $ac_envvar=\$ac_optarg
  1182. export $ac_envvar ;;
  1183. *)
  1184. # FIXME: should be removed in autoconf 3.0.
  1185. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1186. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1187. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1188. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1189. ;;
  1190. esac
  1191. done
  1192. if test -n "$ac_prev"; then
  1193. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1194. as_fn_error $? "missing argument to $ac_option"
  1195. fi
  1196. if test -n "$ac_unrecognized_opts"; then
  1197. case $enable_option_checking in
  1198. no) ;;
  1199. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1200. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1201. esac
  1202. fi
  1203. # Check all directory arguments for consistency.
  1204. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1205. datadir sysconfdir sharedstatedir localstatedir includedir \
  1206. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1207. libdir localedir mandir
  1208. do
  1209. eval ac_val=\$$ac_var
  1210. # Remove trailing slashes.
  1211. case $ac_val in
  1212. */ )
  1213. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1214. eval $ac_var=\$ac_val;;
  1215. esac
  1216. # Be sure to have absolute directory names.
  1217. case $ac_val in
  1218. [\\/$]* | ?:[\\/]* ) continue;;
  1219. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1220. esac
  1221. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1222. done
  1223. # There might be people who depend on the old broken behavior: `$host'
  1224. # used to hold the argument of --host etc.
  1225. # FIXME: To remove some day.
  1226. build=$build_alias
  1227. host=$host_alias
  1228. target=$target_alias
  1229. # FIXME: To remove some day.
  1230. if test "x$host_alias" != x; then
  1231. if test "x$build_alias" = x; then
  1232. cross_compiling=maybe
  1233. $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
  1234. If a cross compiler is detected then cross compile mode will be used" >&2
  1235. elif test "x$build_alias" != "x$host_alias"; then
  1236. cross_compiling=yes
  1237. fi
  1238. fi
  1239. ac_tool_prefix=
  1240. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1241. test "$silent" = yes && exec 6>/dev/null
  1242. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1243. ac_ls_di=`ls -di .` &&
  1244. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1245. as_fn_error $? "working directory cannot be determined"
  1246. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1247. as_fn_error $? "pwd does not report name of working directory"
  1248. # Find the source files, if location was not specified.
  1249. if test -z "$srcdir"; then
  1250. ac_srcdir_defaulted=yes
  1251. # Try the directory containing this script, then the parent directory.
  1252. ac_confdir=`$as_dirname -- "$as_myself" ||
  1253. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1254. X"$as_myself" : 'X\(//\)[^/]' \| \
  1255. X"$as_myself" : 'X\(//\)$' \| \
  1256. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1257. $as_echo X"$as_myself" |
  1258. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1259. s//\1/
  1260. q
  1261. }
  1262. /^X\(\/\/\)[^/].*/{
  1263. s//\1/
  1264. q
  1265. }
  1266. /^X\(\/\/\)$/{
  1267. s//\1/
  1268. q
  1269. }
  1270. /^X\(\/\).*/{
  1271. s//\1/
  1272. q
  1273. }
  1274. s/.*/./; q'`
  1275. srcdir=$ac_confdir
  1276. if test ! -r "$srcdir/$ac_unique_file"; then
  1277. srcdir=..
  1278. fi
  1279. else
  1280. ac_srcdir_defaulted=no
  1281. fi
  1282. if test ! -r "$srcdir/$ac_unique_file"; then
  1283. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1284. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1285. fi
  1286. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1287. ac_abs_confdir=`(
  1288. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1289. pwd)`
  1290. # When building in place, set srcdir=.
  1291. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1292. srcdir=.
  1293. fi
  1294. # Remove unnecessary trailing slashes from srcdir.
  1295. # Double slashes in file names in object file debugging info
  1296. # mess up M-x gdb in Emacs.
  1297. case $srcdir in
  1298. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1299. esac
  1300. for ac_var in $ac_precious_vars; do
  1301. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1302. eval ac_env_${ac_var}_value=\$${ac_var}
  1303. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1304. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1305. done
  1306. #
  1307. # Report the --help message.
  1308. #
  1309. if test "$ac_init_help" = "long"; then
  1310. # Omit some internal or obsolete options to make the list less imposing.
  1311. # This message is too long to be a string in the A/UX 3.1 sh.
  1312. cat <<_ACEOF
  1313. \`configure' configures vcmi 0.84b to adapt to many kinds of systems.
  1314. Usage: $0 [OPTION]... [VAR=VALUE]...
  1315. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1316. VAR=VALUE. See below for descriptions of some of the useful variables.
  1317. Defaults for the options are specified in brackets.
  1318. Configuration:
  1319. -h, --help display this help and exit
  1320. --help=short display options specific to this package
  1321. --help=recursive display the short help of all the included packages
  1322. -V, --version display version information and exit
  1323. -q, --quiet, --silent do not print \`checking ...' messages
  1324. --cache-file=FILE cache test results in FILE [disabled]
  1325. -C, --config-cache alias for \`--cache-file=config.cache'
  1326. -n, --no-create do not create output files
  1327. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1328. Installation directories:
  1329. --prefix=PREFIX install architecture-independent files in PREFIX
  1330. [$ac_default_prefix]
  1331. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1332. [PREFIX]
  1333. By default, \`make install' will install all the files in
  1334. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1335. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1336. for instance \`--prefix=\$HOME'.
  1337. For better control, use the options below.
  1338. Fine tuning of the installation directories:
  1339. --bindir=DIR user executables [EPREFIX/bin]
  1340. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1341. --libexecdir=DIR program executables [EPREFIX/libexec]
  1342. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1343. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1344. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1345. --libdir=DIR object code libraries [EPREFIX/lib]
  1346. --includedir=DIR C header files [PREFIX/include]
  1347. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1348. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1349. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1350. --infodir=DIR info documentation [DATAROOTDIR/info]
  1351. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1352. --mandir=DIR man documentation [DATAROOTDIR/man]
  1353. --docdir=DIR documentation root [DATAROOTDIR/doc/vcmi]
  1354. --htmldir=DIR html documentation [DOCDIR]
  1355. --dvidir=DIR dvi documentation [DOCDIR]
  1356. --pdfdir=DIR pdf documentation [DOCDIR]
  1357. --psdir=DIR ps documentation [DOCDIR]
  1358. _ACEOF
  1359. cat <<\_ACEOF
  1360. Program names:
  1361. --program-prefix=PREFIX prepend PREFIX to installed program names
  1362. --program-suffix=SUFFIX append SUFFIX to installed program names
  1363. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1364. System types:
  1365. --build=BUILD configure for building on BUILD [guessed]
  1366. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1367. _ACEOF
  1368. fi
  1369. if test -n "$ac_init_help"; then
  1370. case $ac_init_help in
  1371. short | recursive ) echo "Configuration of vcmi 0.84b:";;
  1372. esac
  1373. cat <<\_ACEOF
  1374. Optional Features:
  1375. --disable-option-checking ignore unrecognized --enable/--with options
  1376. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1377. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1378. --disable-dependency-tracking speeds up one-time build
  1379. --enable-dependency-tracking do not reject slow dependency extractors
  1380. --enable-shared[=PKGS] build shared libraries [default=yes]
  1381. --enable-static[=PKGS] build static libraries [default=no]
  1382. --enable-fast-install[=PKGS]
  1383. optimize for fast installation [default=yes]
  1384. --disable-libtool-lock avoid locking (might break parallel builds)
  1385. --enable-silent-rules less verbose build output (undo: `make V=1')
  1386. --disable-silent-rules verbose build output (undo: `make V=0')
  1387. --disable-debug turn off debugging (default=enable)
  1388. Optional Packages:
  1389. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1390. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1391. --with-pic try to use only PIC/non-PIC objects [default=use
  1392. both]
  1393. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1394. --with-boost[=ARG] use Boost library from a standard location
  1395. (ARG=yes), from the specified location (ARG=<path>),
  1396. or disable it (ARG=no) [ARG=yes]
  1397. --with-boost-libdir=LIB_DIR
  1398. Force given directory for boost libraries. Note that
  1399. this will override library path detection, so use
  1400. this parameter only if default library detection
  1401. fails and you know exactly where your boost
  1402. libraries are located.
  1403. --with-boost-system[=special-lib]
  1404. use the System library from boost - it is possible
  1405. to specify a certain library for the linker e.g.
  1406. --with-boost-system=boost_system-gcc-mt
  1407. --with-boost-filesystem[=special-lib]
  1408. use the Filesystem library from boost - it is
  1409. possible to specify a certain library for the linker
  1410. e.g. --with-boost-filesystem=boost_filesystem-gcc-mt
  1411. --with-boost-thread[=special-lib]
  1412. use the Thread library from boost - it is possible
  1413. to specify a certain library for the linker e.g.
  1414. --with-boost-thread=boost_thread-gcc-mt
  1415. --with-boost-iostreams[=special-lib]
  1416. use the IOStreams library from boost - it is
  1417. possible to specify a certain library for the linker
  1418. e.g.
  1419. --with-boost-iostreams=boost_iostreams-gcc-mt-d-1_33_1
  1420. --with-boost-program-options[=special-lib]
  1421. use the program options library from boost - it is
  1422. possible to specify a certain library for the linker
  1423. e.g.
  1424. --with-boost-program-options=boost_program_options-gcc-mt-1_33_1
  1425. Some influential environment variables:
  1426. CXX C++ compiler command
  1427. CXXFLAGS C++ compiler flags
  1428. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1429. nonstandard directory <lib dir>
  1430. LIBS libraries to pass to the linker, e.g. -l<library>
  1431. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1432. you have headers in a nonstandard directory <include dir>
  1433. CC C compiler command
  1434. CFLAGS C compiler flags
  1435. CPP C preprocessor
  1436. CXXCPP C++ preprocessor
  1437. Use these variables to override the choices made by `configure' or to help
  1438. it to find libraries and programs with nonstandard names/locations.
  1439. Report bugs to the package provider.
  1440. _ACEOF
  1441. ac_status=$?
  1442. fi
  1443. if test "$ac_init_help" = "recursive"; then
  1444. # If there are subdirs, report their specific --help.
  1445. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1446. test -d "$ac_dir" ||
  1447. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1448. continue
  1449. ac_builddir=.
  1450. case "$ac_dir" in
  1451. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1452. *)
  1453. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1454. # A ".." for each directory in $ac_dir_suffix.
  1455. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1456. case $ac_top_builddir_sub in
  1457. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1458. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1459. esac ;;
  1460. esac
  1461. ac_abs_top_builddir=$ac_pwd
  1462. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1463. # for backward compatibility:
  1464. ac_top_builddir=$ac_top_build_prefix
  1465. case $srcdir in
  1466. .) # We are building in place.
  1467. ac_srcdir=.
  1468. ac_top_srcdir=$ac_top_builddir_sub
  1469. ac_abs_top_srcdir=$ac_pwd ;;
  1470. [\\/]* | ?:[\\/]* ) # Absolute name.
  1471. ac_srcdir=$srcdir$ac_dir_suffix;
  1472. ac_top_srcdir=$srcdir
  1473. ac_abs_top_srcdir=$srcdir ;;
  1474. *) # Relative name.
  1475. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1476. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1477. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1478. esac
  1479. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1480. cd "$ac_dir" || { ac_status=$?; continue; }
  1481. # Check for guested configure.
  1482. if test -f "$ac_srcdir/configure.gnu"; then
  1483. echo &&
  1484. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1485. elif test -f "$ac_srcdir/configure"; then
  1486. echo &&
  1487. $SHELL "$ac_srcdir/configure" --help=recursive
  1488. else
  1489. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1490. fi || ac_status=$?
  1491. cd "$ac_pwd" || { ac_status=$?; break; }
  1492. done
  1493. fi
  1494. test -n "$ac_init_help" && exit $ac_status
  1495. if $ac_init_version; then
  1496. cat <<\_ACEOF
  1497. vcmi configure 0.84b
  1498. generated by GNU Autoconf 2.67
  1499. Copyright (C) 2010 Free Software Foundation, Inc.
  1500. This configure script is free software; the Free Software Foundation
  1501. gives unlimited permission to copy, distribute and modify it.
  1502. _ACEOF
  1503. exit
  1504. fi
  1505. ## ------------------------ ##
  1506. ## Autoconf initialization. ##
  1507. ## ------------------------ ##
  1508. # ac_fn_cxx_try_compile LINENO
  1509. # ----------------------------
  1510. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1511. ac_fn_cxx_try_compile ()
  1512. {
  1513. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1514. rm -f conftest.$ac_objext
  1515. if { { ac_try="$ac_compile"
  1516. case "(($ac_try" in
  1517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1518. *) ac_try_echo=$ac_try;;
  1519. esac
  1520. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1521. $as_echo "$ac_try_echo"; } >&5
  1522. (eval "$ac_compile") 2>conftest.err
  1523. ac_status=$?
  1524. if test -s conftest.err; then
  1525. grep -v '^ *+' conftest.err >conftest.er1
  1526. cat conftest.er1 >&5
  1527. mv -f conftest.er1 conftest.err
  1528. fi
  1529. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1530. test $ac_status = 0; } && {
  1531. test -z "$ac_cxx_werror_flag" ||
  1532. test ! -s conftest.err
  1533. } && test -s conftest.$ac_objext; then :
  1534. ac_retval=0
  1535. else
  1536. $as_echo "$as_me: failed program was:" >&5
  1537. sed 's/^/| /' conftest.$ac_ext >&5
  1538. ac_retval=1
  1539. fi
  1540. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1541. as_fn_set_status $ac_retval
  1542. } # ac_fn_cxx_try_compile
  1543. # ac_fn_c_try_compile LINENO
  1544. # --------------------------
  1545. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1546. ac_fn_c_try_compile ()
  1547. {
  1548. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1549. rm -f conftest.$ac_objext
  1550. if { { ac_try="$ac_compile"
  1551. case "(($ac_try" in
  1552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1553. *) ac_try_echo=$ac_try;;
  1554. esac
  1555. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1556. $as_echo "$ac_try_echo"; } >&5
  1557. (eval "$ac_compile") 2>conftest.err
  1558. ac_status=$?
  1559. if test -s conftest.err; then
  1560. grep -v '^ *+' conftest.err >conftest.er1
  1561. cat conftest.er1 >&5
  1562. mv -f conftest.er1 conftest.err
  1563. fi
  1564. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1565. test $ac_status = 0; } && {
  1566. test -z "$ac_c_werror_flag" ||
  1567. test ! -s conftest.err
  1568. } && test -s conftest.$ac_objext; then :
  1569. ac_retval=0
  1570. else
  1571. $as_echo "$as_me: failed program was:" >&5
  1572. sed 's/^/| /' conftest.$ac_ext >&5
  1573. ac_retval=1
  1574. fi
  1575. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1576. as_fn_set_status $ac_retval
  1577. } # ac_fn_c_try_compile
  1578. # ac_fn_c_try_link LINENO
  1579. # -----------------------
  1580. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1581. ac_fn_c_try_link ()
  1582. {
  1583. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1584. rm -f conftest.$ac_objext conftest$ac_exeext
  1585. if { { ac_try="$ac_link"
  1586. case "(($ac_try" in
  1587. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1588. *) ac_try_echo=$ac_try;;
  1589. esac
  1590. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1591. $as_echo "$ac_try_echo"; } >&5
  1592. (eval "$ac_link") 2>conftest.err
  1593. ac_status=$?
  1594. if test -s conftest.err; then
  1595. grep -v '^ *+' conftest.err >conftest.er1
  1596. cat conftest.er1 >&5
  1597. mv -f conftest.er1 conftest.err
  1598. fi
  1599. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1600. test $ac_status = 0; } && {
  1601. test -z "$ac_c_werror_flag" ||
  1602. test ! -s conftest.err
  1603. } && test -s conftest$ac_exeext && {
  1604. test "$cross_compiling" = yes ||
  1605. $as_test_x conftest$ac_exeext
  1606. }; then :
  1607. ac_retval=0
  1608. else
  1609. $as_echo "$as_me: failed program was:" >&5
  1610. sed 's/^/| /' conftest.$ac_ext >&5
  1611. ac_retval=1
  1612. fi
  1613. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1614. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1615. # interfere with the next link command; also delete a directory that is
  1616. # left behind by Apple's compiler. We do this before executing the actions.
  1617. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1618. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1619. as_fn_set_status $ac_retval
  1620. } # ac_fn_c_try_link
  1621. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1622. # -------------------------------------------------------
  1623. # Tests whether HEADER exists and can be compiled using the include files in
  1624. # INCLUDES, setting the cache variable VAR accordingly.
  1625. ac_fn_c_check_header_compile ()
  1626. {
  1627. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1629. $as_echo_n "checking for $2... " >&6; }
  1630. if eval "test \"\${$3+set}\"" = set; then :
  1631. $as_echo_n "(cached) " >&6
  1632. else
  1633. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1634. /* end confdefs.h. */
  1635. $4
  1636. #include <$2>
  1637. _ACEOF
  1638. if ac_fn_c_try_compile "$LINENO"; then :
  1639. eval "$3=yes"
  1640. else
  1641. eval "$3=no"
  1642. fi
  1643. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1644. fi
  1645. eval ac_res=\$$3
  1646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1647. $as_echo "$ac_res" >&6; }
  1648. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1649. } # ac_fn_c_check_header_compile
  1650. # ac_fn_c_try_cpp LINENO
  1651. # ----------------------
  1652. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1653. ac_fn_c_try_cpp ()
  1654. {
  1655. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1656. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1657. case "(($ac_try" in
  1658. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1659. *) ac_try_echo=$ac_try;;
  1660. esac
  1661. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1662. $as_echo "$ac_try_echo"; } >&5
  1663. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1664. ac_status=$?
  1665. if test -s conftest.err; then
  1666. grep -v '^ *+' conftest.err >conftest.er1
  1667. cat conftest.er1 >&5
  1668. mv -f conftest.er1 conftest.err
  1669. fi
  1670. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1671. test $ac_status = 0; } > conftest.i && {
  1672. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1673. test ! -s conftest.err
  1674. }; then :
  1675. ac_retval=0
  1676. else
  1677. $as_echo "$as_me: failed program was:" >&5
  1678. sed 's/^/| /' conftest.$ac_ext >&5
  1679. ac_retval=1
  1680. fi
  1681. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1682. as_fn_set_status $ac_retval
  1683. } # ac_fn_c_try_cpp
  1684. # ac_fn_c_try_run LINENO
  1685. # ----------------------
  1686. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1687. # that executables *can* be run.
  1688. ac_fn_c_try_run ()
  1689. {
  1690. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1691. if { { ac_try="$ac_link"
  1692. case "(($ac_try" in
  1693. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1694. *) ac_try_echo=$ac_try;;
  1695. esac
  1696. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1697. $as_echo "$ac_try_echo"; } >&5
  1698. (eval "$ac_link") 2>&5
  1699. ac_status=$?
  1700. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1701. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1702. { { case "(($ac_try" in
  1703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1704. *) ac_try_echo=$ac_try;;
  1705. esac
  1706. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1707. $as_echo "$ac_try_echo"; } >&5
  1708. (eval "$ac_try") 2>&5
  1709. ac_status=$?
  1710. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1711. test $ac_status = 0; }; }; then :
  1712. ac_retval=0
  1713. else
  1714. $as_echo "$as_me: program exited with status $ac_status" >&5
  1715. $as_echo "$as_me: failed program was:" >&5
  1716. sed 's/^/| /' conftest.$ac_ext >&5
  1717. ac_retval=$ac_status
  1718. fi
  1719. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1720. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1721. as_fn_set_status $ac_retval
  1722. } # ac_fn_c_try_run
  1723. # ac_fn_c_check_func LINENO FUNC VAR
  1724. # ----------------------------------
  1725. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1726. ac_fn_c_check_func ()
  1727. {
  1728. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1729. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1730. $as_echo_n "checking for $2... " >&6; }
  1731. if eval "test \"\${$3+set}\"" = set; then :
  1732. $as_echo_n "(cached) " >&6
  1733. else
  1734. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1735. /* end confdefs.h. */
  1736. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1737. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1738. #define $2 innocuous_$2
  1739. /* System header to define __stub macros and hopefully few prototypes,
  1740. which can conflict with char $2 (); below.
  1741. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1742. <limits.h> exists even on freestanding compilers. */
  1743. #ifdef __STDC__
  1744. # include <limits.h>
  1745. #else
  1746. # include <assert.h>
  1747. #endif
  1748. #undef $2
  1749. /* Override any GCC internal prototype to avoid an error.
  1750. Use char because int might match the return type of a GCC
  1751. builtin and then its argument prototype would still apply. */
  1752. #ifdef __cplusplus
  1753. extern "C"
  1754. #endif
  1755. char $2 ();
  1756. /* The GNU C library defines this for functions which it implements
  1757. to always fail with ENOSYS. Some functions are actually named
  1758. something starting with __ and the normal name is an alias. */
  1759. #if defined __stub_$2 || defined __stub___$2
  1760. choke me
  1761. #endif
  1762. int
  1763. main ()
  1764. {
  1765. return $2 ();
  1766. ;
  1767. return 0;
  1768. }
  1769. _ACEOF
  1770. if ac_fn_c_try_link "$LINENO"; then :
  1771. eval "$3=yes"
  1772. else
  1773. eval "$3=no"
  1774. fi
  1775. rm -f core conftest.err conftest.$ac_objext \
  1776. conftest$ac_exeext conftest.$ac_ext
  1777. fi
  1778. eval ac_res=\$$3
  1779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1780. $as_echo "$ac_res" >&6; }
  1781. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1782. } # ac_fn_c_check_func
  1783. # ac_fn_cxx_try_cpp LINENO
  1784. # ------------------------
  1785. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1786. ac_fn_cxx_try_cpp ()
  1787. {
  1788. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1789. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1790. case "(($ac_try" in
  1791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1792. *) ac_try_echo=$ac_try;;
  1793. esac
  1794. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1795. $as_echo "$ac_try_echo"; } >&5
  1796. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1797. ac_status=$?
  1798. if test -s conftest.err; then
  1799. grep -v '^ *+' conftest.err >conftest.er1
  1800. cat conftest.er1 >&5
  1801. mv -f conftest.er1 conftest.err
  1802. fi
  1803. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1804. test $ac_status = 0; } > conftest.i && {
  1805. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1806. test ! -s conftest.err
  1807. }; then :
  1808. ac_retval=0
  1809. else
  1810. $as_echo "$as_me: failed program was:" >&5
  1811. sed 's/^/| /' conftest.$ac_ext >&5
  1812. ac_retval=1
  1813. fi
  1814. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1815. as_fn_set_status $ac_retval
  1816. } # ac_fn_cxx_try_cpp
  1817. # ac_fn_cxx_try_link LINENO
  1818. # -------------------------
  1819. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1820. ac_fn_cxx_try_link ()
  1821. {
  1822. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1823. rm -f conftest.$ac_objext conftest$ac_exeext
  1824. if { { ac_try="$ac_link"
  1825. case "(($ac_try" in
  1826. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1827. *) ac_try_echo=$ac_try;;
  1828. esac
  1829. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1830. $as_echo "$ac_try_echo"; } >&5
  1831. (eval "$ac_link") 2>conftest.err
  1832. ac_status=$?
  1833. if test -s conftest.err; then
  1834. grep -v '^ *+' conftest.err >conftest.er1
  1835. cat conftest.er1 >&5
  1836. mv -f conftest.er1 conftest.err
  1837. fi
  1838. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1839. test $ac_status = 0; } && {
  1840. test -z "$ac_cxx_werror_flag" ||
  1841. test ! -s conftest.err
  1842. } && test -s conftest$ac_exeext && {
  1843. test "$cross_compiling" = yes ||
  1844. $as_test_x conftest$ac_exeext
  1845. }; then :
  1846. ac_retval=0
  1847. else
  1848. $as_echo "$as_me: failed program was:" >&5
  1849. sed 's/^/| /' conftest.$ac_ext >&5
  1850. ac_retval=1
  1851. fi
  1852. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1853. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1854. # interfere with the next link command; also delete a directory that is
  1855. # left behind by Apple's compiler. We do this before executing the actions.
  1856. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1857. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1858. as_fn_set_status $ac_retval
  1859. } # ac_fn_cxx_try_link
  1860. # ac_fn_cxx_try_run LINENO
  1861. # ------------------------
  1862. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1863. # that executables *can* be run.
  1864. ac_fn_cxx_try_run ()
  1865. {
  1866. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1867. if { { ac_try="$ac_link"
  1868. case "(($ac_try" in
  1869. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1870. *) ac_try_echo=$ac_try;;
  1871. esac
  1872. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1873. $as_echo "$ac_try_echo"; } >&5
  1874. (eval "$ac_link") 2>&5
  1875. ac_status=$?
  1876. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1877. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1878. { { case "(($ac_try" in
  1879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1880. *) ac_try_echo=$ac_try;;
  1881. esac
  1882. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1883. $as_echo "$ac_try_echo"; } >&5
  1884. (eval "$ac_try") 2>&5
  1885. ac_status=$?
  1886. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1887. test $ac_status = 0; }; }; then :
  1888. ac_retval=0
  1889. else
  1890. $as_echo "$as_me: program exited with status $ac_status" >&5
  1891. $as_echo "$as_me: failed program was:" >&5
  1892. sed 's/^/| /' conftest.$ac_ext >&5
  1893. ac_retval=$ac_status
  1894. fi
  1895. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1896. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1897. as_fn_set_status $ac_retval
  1898. } # ac_fn_cxx_try_run
  1899. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  1900. # ---------------------------------------------------------
  1901. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1902. # the include files in INCLUDES and setting the cache variable VAR
  1903. # accordingly.
  1904. ac_fn_cxx_check_header_mongrel ()
  1905. {
  1906. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1907. if eval "test \"\${$3+set}\"" = set; then :
  1908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1909. $as_echo_n "checking for $2... " >&6; }
  1910. if eval "test \"\${$3+set}\"" = set; then :
  1911. $as_echo_n "(cached) " >&6
  1912. fi
  1913. eval ac_res=\$$3
  1914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1915. $as_echo "$ac_res" >&6; }
  1916. else
  1917. # Is the header compilable?
  1918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1919. $as_echo_n "checking $2 usability... " >&6; }
  1920. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1921. /* end confdefs.h. */
  1922. $4
  1923. #include <$2>
  1924. _ACEOF
  1925. if ac_fn_cxx_try_compile "$LINENO"; then :
  1926. ac_header_compiler=yes
  1927. else
  1928. ac_header_compiler=no
  1929. fi
  1930. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1932. $as_echo "$ac_header_compiler" >&6; }
  1933. # Is the header present?
  1934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1935. $as_echo_n "checking $2 presence... " >&6; }
  1936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1937. /* end confdefs.h. */
  1938. #include <$2>
  1939. _ACEOF
  1940. if ac_fn_cxx_try_cpp "$LINENO"; then :
  1941. ac_header_preproc=yes
  1942. else
  1943. ac_header_preproc=no
  1944. fi
  1945. rm -f conftest.err conftest.i conftest.$ac_ext
  1946. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1947. $as_echo "$ac_header_preproc" >&6; }
  1948. # So? What about this header?
  1949. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  1950. yes:no: )
  1951. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1952. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1953. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1954. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1955. ;;
  1956. no:yes:* )
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1958. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1959. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1960. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1962. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1963. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1964. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1965. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1966. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1967. ;;
  1968. esac
  1969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1970. $as_echo_n "checking for $2... " >&6; }
  1971. if eval "test \"\${$3+set}\"" = set; then :
  1972. $as_echo_n "(cached) " >&6
  1973. else
  1974. eval "$3=\$ac_header_compiler"
  1975. fi
  1976. eval ac_res=\$$3
  1977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1978. $as_echo "$ac_res" >&6; }
  1979. fi
  1980. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  1981. } # ac_fn_cxx_check_header_mongrel
  1982. # ac_fn_cxx_check_func LINENO FUNC VAR
  1983. # ------------------------------------
  1984. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1985. ac_fn_cxx_check_func ()
  1986. {
  1987. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1989. $as_echo_n "checking for $2... " >&6; }
  1990. if eval "test \"\${$3+set}\"" = set; then :
  1991. $as_echo_n "(cached) " >&6
  1992. else
  1993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1994. /* end confdefs.h. */
  1995. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1996. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1997. #define $2 innocuous_$2
  1998. /* System header to define __stub macros and hopefully few prototypes,
  1999. which can conflict with char $2 (); below.
  2000. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2001. <limits.h> exists even on freestanding compilers. */
  2002. #ifdef __STDC__
  2003. # include <limits.h>
  2004. #else
  2005. # include <assert.h>
  2006. #endif
  2007. #undef $2
  2008. /* Override any GCC internal prototype to avoid an error.
  2009. Use char because int might match the return type of a GCC
  2010. builtin and then its argument prototype would still apply. */
  2011. #ifdef __cplusplus
  2012. extern "C"
  2013. #endif
  2014. char $2 ();
  2015. /* The GNU C library defines this for functions which it implements
  2016. to always fail with ENOSYS. Some functions are actually named
  2017. something starting with __ and the normal name is an alias. */
  2018. #if defined __stub_$2 || defined __stub___$2
  2019. choke me
  2020. #endif
  2021. int
  2022. main ()
  2023. {
  2024. return $2 ();
  2025. ;
  2026. return 0;
  2027. }
  2028. _ACEOF
  2029. if ac_fn_cxx_try_link "$LINENO"; then :
  2030. eval "$3=yes"
  2031. else
  2032. eval "$3=no"
  2033. fi
  2034. rm -f core conftest.err conftest.$ac_objext \
  2035. conftest$ac_exeext conftest.$ac_ext
  2036. fi
  2037. eval ac_res=\$$3
  2038. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2039. $as_echo "$ac_res" >&6; }
  2040. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2041. } # ac_fn_cxx_check_func
  2042. cat >config.log <<_ACEOF
  2043. This file contains any messages produced by compilers while
  2044. running configure, to aid debugging if configure makes a mistake.
  2045. It was created by vcmi $as_me 0.84b, which was
  2046. generated by GNU Autoconf 2.67. Invocation command line was
  2047. $ $0 $@
  2048. _ACEOF
  2049. exec 5>>config.log
  2050. {
  2051. cat <<_ASUNAME
  2052. ## --------- ##
  2053. ## Platform. ##
  2054. ## --------- ##
  2055. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2056. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2057. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2058. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2059. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2060. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2061. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2062. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2063. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2064. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2065. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2066. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2067. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2068. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2069. _ASUNAME
  2070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2071. for as_dir in $PATH
  2072. do
  2073. IFS=$as_save_IFS
  2074. test -z "$as_dir" && as_dir=.
  2075. $as_echo "PATH: $as_dir"
  2076. done
  2077. IFS=$as_save_IFS
  2078. } >&5
  2079. cat >&5 <<_ACEOF
  2080. ## ----------- ##
  2081. ## Core tests. ##
  2082. ## ----------- ##
  2083. _ACEOF
  2084. # Keep a trace of the command line.
  2085. # Strip out --no-create and --no-recursion so they do not pile up.
  2086. # Strip out --silent because we don't want to record it for future runs.
  2087. # Also quote any args containing shell meta-characters.
  2088. # Make two passes to allow for proper duplicate-argument suppression.
  2089. ac_configure_args=
  2090. ac_configure_args0=
  2091. ac_configure_args1=
  2092. ac_must_keep_next=false
  2093. for ac_pass in 1 2
  2094. do
  2095. for ac_arg
  2096. do
  2097. case $ac_arg in
  2098. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2099. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2100. | -silent | --silent | --silen | --sile | --sil)
  2101. continue ;;
  2102. *\'*)
  2103. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2104. esac
  2105. case $ac_pass in
  2106. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2107. 2)
  2108. as_fn_append ac_configure_args1 " '$ac_arg'"
  2109. if test $ac_must_keep_next = true; then
  2110. ac_must_keep_next=false # Got value, back to normal.
  2111. else
  2112. case $ac_arg in
  2113. *=* | --config-cache | -C | -disable-* | --disable-* \
  2114. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2115. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2116. | -with-* | --with-* | -without-* | --without-* | --x)
  2117. case "$ac_configure_args0 " in
  2118. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2119. esac
  2120. ;;
  2121. -* ) ac_must_keep_next=true ;;
  2122. esac
  2123. fi
  2124. as_fn_append ac_configure_args " '$ac_arg'"
  2125. ;;
  2126. esac
  2127. done
  2128. done
  2129. { ac_configure_args0=; unset ac_configure_args0;}
  2130. { ac_configure_args1=; unset ac_configure_args1;}
  2131. # When interrupted or exit'd, cleanup temporary files, and complete
  2132. # config.log. We remove comments because anyway the quotes in there
  2133. # would cause problems or look ugly.
  2134. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2135. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2136. trap 'exit_status=$?
  2137. # Save into config.log some information that might help in debugging.
  2138. {
  2139. echo
  2140. $as_echo "## ---------------- ##
  2141. ## Cache variables. ##
  2142. ## ---------------- ##"
  2143. echo
  2144. # The following way of writing the cache mishandles newlines in values,
  2145. (
  2146. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2147. eval ac_val=\$$ac_var
  2148. case $ac_val in #(
  2149. *${as_nl}*)
  2150. case $ac_var in #(
  2151. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2152. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2153. esac
  2154. case $ac_var in #(
  2155. _ | IFS | as_nl) ;; #(
  2156. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2157. *) { eval $ac_var=; unset $ac_var;} ;;
  2158. esac ;;
  2159. esac
  2160. done
  2161. (set) 2>&1 |
  2162. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2163. *${as_nl}ac_space=\ *)
  2164. sed -n \
  2165. "s/'\''/'\''\\\\'\'''\''/g;
  2166. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2167. ;; #(
  2168. *)
  2169. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2170. ;;
  2171. esac |
  2172. sort
  2173. )
  2174. echo
  2175. $as_echo "## ----------------- ##
  2176. ## Output variables. ##
  2177. ## ----------------- ##"
  2178. echo
  2179. for ac_var in $ac_subst_vars
  2180. do
  2181. eval ac_val=\$$ac_var
  2182. case $ac_val in
  2183. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2184. esac
  2185. $as_echo "$ac_var='\''$ac_val'\''"
  2186. done | sort
  2187. echo
  2188. if test -n "$ac_subst_files"; then
  2189. $as_echo "## ------------------- ##
  2190. ## File substitutions. ##
  2191. ## ------------------- ##"
  2192. echo
  2193. for ac_var in $ac_subst_files
  2194. do
  2195. eval ac_val=\$$ac_var
  2196. case $ac_val in
  2197. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2198. esac
  2199. $as_echo "$ac_var='\''$ac_val'\''"
  2200. done | sort
  2201. echo
  2202. fi
  2203. if test -s confdefs.h; then
  2204. $as_echo "## ----------- ##
  2205. ## confdefs.h. ##
  2206. ## ----------- ##"
  2207. echo
  2208. cat confdefs.h
  2209. echo
  2210. fi
  2211. test "$ac_signal" != 0 &&
  2212. $as_echo "$as_me: caught signal $ac_signal"
  2213. $as_echo "$as_me: exit $exit_status"
  2214. } >&5
  2215. rm -f core *.core core.conftest.* &&
  2216. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2217. exit $exit_status
  2218. ' 0
  2219. for ac_signal in 1 2 13 15; do
  2220. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2221. done
  2222. ac_signal=0
  2223. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2224. rm -f -r conftest* confdefs.h
  2225. $as_echo "/* confdefs.h */" > confdefs.h
  2226. # Predefined preprocessor variables.
  2227. cat >>confdefs.h <<_ACEOF
  2228. #define PACKAGE_NAME "$PACKAGE_NAME"
  2229. _ACEOF
  2230. cat >>confdefs.h <<_ACEOF
  2231. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2232. _ACEOF
  2233. cat >>confdefs.h <<_ACEOF
  2234. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2235. _ACEOF
  2236. cat >>confdefs.h <<_ACEOF
  2237. #define PACKAGE_STRING "$PACKAGE_STRING"
  2238. _ACEOF
  2239. cat >>confdefs.h <<_ACEOF
  2240. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2241. _ACEOF
  2242. cat >>confdefs.h <<_ACEOF
  2243. #define PACKAGE_URL "$PACKAGE_URL"
  2244. _ACEOF
  2245. # Let the site file select an alternate cache file if it wants to.
  2246. # Prefer an explicitly selected file to automatically selected ones.
  2247. ac_site_file1=NONE
  2248. ac_site_file2=NONE
  2249. if test -n "$CONFIG_SITE"; then
  2250. # We do not want a PATH search for config.site.
  2251. case $CONFIG_SITE in #((
  2252. -*) ac_site_file1=./$CONFIG_SITE;;
  2253. */*) ac_site_file1=$CONFIG_SITE;;
  2254. *) ac_site_file1=./$CONFIG_SITE;;
  2255. esac
  2256. elif test "x$prefix" != xNONE; then
  2257. ac_site_file1=$prefix/share/config.site
  2258. ac_site_file2=$prefix/etc/config.site
  2259. else
  2260. ac_site_file1=$ac_default_prefix/share/config.site
  2261. ac_site_file2=$ac_default_prefix/etc/config.site
  2262. fi
  2263. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2264. do
  2265. test "x$ac_site_file" = xNONE && continue
  2266. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2267. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2268. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2269. sed 's/^/| /' "$ac_site_file" >&5
  2270. . "$ac_site_file" \
  2271. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2272. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2273. as_fn_error $? "failed to load site script $ac_site_file
  2274. See \`config.log' for more details" "$LINENO" 5 ; }
  2275. fi
  2276. done
  2277. if test -r "$cache_file"; then
  2278. # Some versions of bash will fail to source /dev/null (special files
  2279. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2280. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2281. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2282. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2283. case $cache_file in
  2284. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2285. *) . "./$cache_file";;
  2286. esac
  2287. fi
  2288. else
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2290. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2291. >$cache_file
  2292. fi
  2293. # Check that the precious variables saved in the cache have kept the same
  2294. # value.
  2295. ac_cache_corrupted=false
  2296. for ac_var in $ac_precious_vars; do
  2297. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2298. eval ac_new_set=\$ac_env_${ac_var}_set
  2299. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2300. eval ac_new_val=\$ac_env_${ac_var}_value
  2301. case $ac_old_set,$ac_new_set in
  2302. set,)
  2303. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2304. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2305. ac_cache_corrupted=: ;;
  2306. ,set)
  2307. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2308. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2309. ac_cache_corrupted=: ;;
  2310. ,);;
  2311. *)
  2312. if test "x$ac_old_val" != "x$ac_new_val"; then
  2313. # differences in whitespace do not lead to failure.
  2314. ac_old_val_w=`echo x $ac_old_val`
  2315. ac_new_val_w=`echo x $ac_new_val`
  2316. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2317. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2318. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2319. ac_cache_corrupted=:
  2320. else
  2321. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2322. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2323. eval $ac_var=\$ac_old_val
  2324. fi
  2325. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2326. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2327. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2328. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2329. fi;;
  2330. esac
  2331. # Pass precious variables to config.status.
  2332. if test "$ac_new_set" = set; then
  2333. case $ac_new_val in
  2334. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2335. *) ac_arg=$ac_var=$ac_new_val ;;
  2336. esac
  2337. case " $ac_configure_args " in
  2338. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2339. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2340. esac
  2341. fi
  2342. done
  2343. if $ac_cache_corrupted; then
  2344. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2345. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2346. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2347. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2348. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2349. fi
  2350. ## -------------------- ##
  2351. ## Main body of script. ##
  2352. ## -------------------- ##
  2353. ac_ext=c
  2354. ac_cpp='$CPP $CPPFLAGS'
  2355. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2356. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2357. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2358. # Follow NAME_VER in global.h
  2359. am__api_version='1.11'
  2360. ac_aux_dir=
  2361. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2362. if test -f "$ac_dir/install-sh"; then
  2363. ac_aux_dir=$ac_dir
  2364. ac_install_sh="$ac_aux_dir/install-sh -c"
  2365. break
  2366. elif test -f "$ac_dir/install.sh"; then
  2367. ac_aux_dir=$ac_dir
  2368. ac_install_sh="$ac_aux_dir/install.sh -c"
  2369. break
  2370. elif test -f "$ac_dir/shtool"; then
  2371. ac_aux_dir=$ac_dir
  2372. ac_install_sh="$ac_aux_dir/shtool install -c"
  2373. break
  2374. fi
  2375. done
  2376. if test -z "$ac_aux_dir"; then
  2377. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2378. fi
  2379. # These three variables are undocumented and unsupported,
  2380. # and are intended to be withdrawn in a future Autoconf release.
  2381. # They can cause serious problems if a builder's source tree is in a directory
  2382. # whose full name contains unusual characters.
  2383. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2384. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2385. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2386. # Find a good install program. We prefer a C program (faster),
  2387. # so one script is as good as another. But avoid the broken or
  2388. # incompatible versions:
  2389. # SysV /etc/install, /usr/sbin/install
  2390. # SunOS /usr/etc/install
  2391. # IRIX /sbin/install
  2392. # AIX /bin/install
  2393. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2394. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2395. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2396. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2397. # OS/2's system install, which has a completely different semantic
  2398. # ./install, which can be erroneously created by make from ./install.sh.
  2399. # Reject install programs that cannot install multiple files.
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2401. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2402. if test -z "$INSTALL"; then
  2403. if test "${ac_cv_path_install+set}" = set; then :
  2404. $as_echo_n "(cached) " >&6
  2405. else
  2406. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2407. for as_dir in $PATH
  2408. do
  2409. IFS=$as_save_IFS
  2410. test -z "$as_dir" && as_dir=.
  2411. # Account for people who put trailing slashes in PATH elements.
  2412. case $as_dir/ in #((
  2413. ./ | .// | /[cC]/* | \
  2414. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2415. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2416. /usr/ucb/* ) ;;
  2417. *)
  2418. # OSF1 and SCO ODT 3.0 have their own names for install.
  2419. # Don't use installbsd from OSF since it installs stuff as root
  2420. # by default.
  2421. for ac_prog in ginstall scoinst install; do
  2422. for ac_exec_ext in '' $ac_executable_extensions; do
  2423. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  2424. if test $ac_prog = install &&
  2425. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2426. # AIX install. It has an incompatible calling convention.
  2427. :
  2428. elif test $ac_prog = install &&
  2429. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2430. # program-specific install script used by HP pwplus--don't use.
  2431. :
  2432. else
  2433. rm -rf conftest.one conftest.two conftest.dir
  2434. echo one > conftest.one
  2435. echo two > conftest.two
  2436. mkdir conftest.dir
  2437. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2438. test -s conftest.one && test -s conftest.two &&
  2439. test -s conftest.dir/conftest.one &&
  2440. test -s conftest.dir/conftest.two
  2441. then
  2442. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2443. break 3
  2444. fi
  2445. fi
  2446. fi
  2447. done
  2448. done
  2449. ;;
  2450. esac
  2451. done
  2452. IFS=$as_save_IFS
  2453. rm -rf conftest.one conftest.two conftest.dir
  2454. fi
  2455. if test "${ac_cv_path_install+set}" = set; then
  2456. INSTALL=$ac_cv_path_install
  2457. else
  2458. # As a last resort, use the slow shell script. Don't cache a
  2459. # value for INSTALL within a source directory, because that will
  2460. # break other packages using the cache if that directory is
  2461. # removed, or if the value is a relative name.
  2462. INSTALL=$ac_install_sh
  2463. fi
  2464. fi
  2465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2466. $as_echo "$INSTALL" >&6; }
  2467. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2468. # It thinks the first close brace ends the variable substitution.
  2469. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2470. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2471. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2473. $as_echo_n "checking whether build environment is sane... " >&6; }
  2474. # Just in case
  2475. sleep 1
  2476. echo timestamp > conftest.file
  2477. # Reject unsafe characters in $srcdir or the absolute working directory
  2478. # name. Accept space and tab only in the latter.
  2479. am_lf='
  2480. '
  2481. case `pwd` in
  2482. *[\\\"\#\$\&\'\`$am_lf]*)
  2483. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
  2484. esac
  2485. case $srcdir in
  2486. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2487. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
  2488. esac
  2489. # Do `set' in a subshell so we don't clobber the current shell's
  2490. # arguments. Must try -L first in case configure is actually a
  2491. # symlink; some systems play weird games with the mod time of symlinks
  2492. # (eg FreeBSD returns the mod time of the symlink's containing
  2493. # directory).
  2494. if (
  2495. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2496. if test "$*" = "X"; then
  2497. # -L didn't work.
  2498. set X `ls -t "$srcdir/configure" conftest.file`
  2499. fi
  2500. rm -f conftest.file
  2501. if test "$*" != "X $srcdir/configure conftest.file" \
  2502. && test "$*" != "X conftest.file $srcdir/configure"; then
  2503. # If neither matched, then we have a broken ls. This can happen
  2504. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2505. # broken ls alias from the environment. This has actually
  2506. # happened. Such a system could not be considered "sane".
  2507. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2508. alias in your environment" "$LINENO" 5
  2509. fi
  2510. test "$2" = conftest.file
  2511. )
  2512. then
  2513. # Ok.
  2514. :
  2515. else
  2516. as_fn_error $? "newly created file is older than distributed files!
  2517. Check your system clock" "$LINENO" 5
  2518. fi
  2519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2520. $as_echo "yes" >&6; }
  2521. test "$program_prefix" != NONE &&
  2522. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2523. # Use a double $ so make ignores it.
  2524. test "$program_suffix" != NONE &&
  2525. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2526. # Double any \ or $.
  2527. # By default was `s,x,x', remove it if useless.
  2528. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2529. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2530. # expand $ac_aux_dir to an absolute path
  2531. am_aux_dir=`cd $ac_aux_dir && pwd`
  2532. if test x"${MISSING+set}" != xset; then
  2533. case $am_aux_dir in
  2534. *\ * | *\ *)
  2535. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2536. *)
  2537. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2538. esac
  2539. fi
  2540. # Use eval to expand $SHELL
  2541. if eval "$MISSING --run true"; then
  2542. am_missing_run="$MISSING --run "
  2543. else
  2544. am_missing_run=
  2545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2546. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2547. fi
  2548. if test x"${install_sh}" != xset; then
  2549. case $am_aux_dir in
  2550. *\ * | *\ *)
  2551. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2552. *)
  2553. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2554. esac
  2555. fi
  2556. # Installed binaries are usually stripped using `strip' when the user
  2557. # run `make install-strip'. However `strip' might not be the right
  2558. # tool to use in cross-compilation environments, therefore Automake
  2559. # will honor the `STRIP' environment variable to overrule this program.
  2560. if test "$cross_compiling" != no; then
  2561. if test -n "$ac_tool_prefix"; then
  2562. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2563. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2565. $as_echo_n "checking for $ac_word... " >&6; }
  2566. if test "${ac_cv_prog_STRIP+set}" = set; then :
  2567. $as_echo_n "(cached) " >&6
  2568. else
  2569. if test -n "$STRIP"; then
  2570. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2571. else
  2572. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2573. for as_dir in $PATH
  2574. do
  2575. IFS=$as_save_IFS
  2576. test -z "$as_dir" && as_dir=.
  2577. for ac_exec_ext in '' $ac_executable_extensions; do
  2578. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2579. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2580. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2581. break 2
  2582. fi
  2583. done
  2584. done
  2585. IFS=$as_save_IFS
  2586. fi
  2587. fi
  2588. STRIP=$ac_cv_prog_STRIP
  2589. if test -n "$STRIP"; then
  2590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2591. $as_echo "$STRIP" >&6; }
  2592. else
  2593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2594. $as_echo "no" >&6; }
  2595. fi
  2596. fi
  2597. if test -z "$ac_cv_prog_STRIP"; then
  2598. ac_ct_STRIP=$STRIP
  2599. # Extract the first word of "strip", so it can be a program name with args.
  2600. set dummy strip; ac_word=$2
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2602. $as_echo_n "checking for $ac_word... " >&6; }
  2603. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  2604. $as_echo_n "(cached) " >&6
  2605. else
  2606. if test -n "$ac_ct_STRIP"; then
  2607. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2608. else
  2609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2610. for as_dir in $PATH
  2611. do
  2612. IFS=$as_save_IFS
  2613. test -z "$as_dir" && as_dir=.
  2614. for ac_exec_ext in '' $ac_executable_extensions; do
  2615. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2616. ac_cv_prog_ac_ct_STRIP="strip"
  2617. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2618. break 2
  2619. fi
  2620. done
  2621. done
  2622. IFS=$as_save_IFS
  2623. fi
  2624. fi
  2625. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2626. if test -n "$ac_ct_STRIP"; then
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2628. $as_echo "$ac_ct_STRIP" >&6; }
  2629. else
  2630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2631. $as_echo "no" >&6; }
  2632. fi
  2633. if test "x$ac_ct_STRIP" = x; then
  2634. STRIP=":"
  2635. else
  2636. case $cross_compiling:$ac_tool_warned in
  2637. yes:)
  2638. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2639. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2640. ac_tool_warned=yes ;;
  2641. esac
  2642. STRIP=$ac_ct_STRIP
  2643. fi
  2644. else
  2645. STRIP="$ac_cv_prog_STRIP"
  2646. fi
  2647. fi
  2648. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2650. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2651. if test -z "$MKDIR_P"; then
  2652. if test "${ac_cv_path_mkdir+set}" = set; then :
  2653. $as_echo_n "(cached) " >&6
  2654. else
  2655. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2656. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2657. do
  2658. IFS=$as_save_IFS
  2659. test -z "$as_dir" && as_dir=.
  2660. for ac_prog in mkdir gmkdir; do
  2661. for ac_exec_ext in '' $ac_executable_extensions; do
  2662. { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  2663. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2664. 'mkdir (GNU coreutils) '* | \
  2665. 'mkdir (coreutils) '* | \
  2666. 'mkdir (fileutils) '4.1*)
  2667. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2668. break 3;;
  2669. esac
  2670. done
  2671. done
  2672. done
  2673. IFS=$as_save_IFS
  2674. fi
  2675. test -d ./--version && rmdir ./--version
  2676. if test "${ac_cv_path_mkdir+set}" = set; then
  2677. MKDIR_P="$ac_cv_path_mkdir -p"
  2678. else
  2679. # As a last resort, use the slow shell script. Don't cache a
  2680. # value for MKDIR_P within a source directory, because that will
  2681. # break other packages using the cache if that directory is
  2682. # removed, or if the value is a relative name.
  2683. MKDIR_P="$ac_install_sh -d"
  2684. fi
  2685. fi
  2686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2687. $as_echo "$MKDIR_P" >&6; }
  2688. mkdir_p="$MKDIR_P"
  2689. case $mkdir_p in
  2690. [\\/$]* | ?:[\\/]*) ;;
  2691. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2692. esac
  2693. for ac_prog in gawk mawk nawk awk
  2694. do
  2695. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2696. set dummy $ac_prog; ac_word=$2
  2697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2698. $as_echo_n "checking for $ac_word... " >&6; }
  2699. if test "${ac_cv_prog_AWK+set}" = set; then :
  2700. $as_echo_n "(cached) " >&6
  2701. else
  2702. if test -n "$AWK"; then
  2703. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2704. else
  2705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2706. for as_dir in $PATH
  2707. do
  2708. IFS=$as_save_IFS
  2709. test -z "$as_dir" && as_dir=.
  2710. for ac_exec_ext in '' $ac_executable_extensions; do
  2711. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2712. ac_cv_prog_AWK="$ac_prog"
  2713. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2714. break 2
  2715. fi
  2716. done
  2717. done
  2718. IFS=$as_save_IFS
  2719. fi
  2720. fi
  2721. AWK=$ac_cv_prog_AWK
  2722. if test -n "$AWK"; then
  2723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2724. $as_echo "$AWK" >&6; }
  2725. else
  2726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2727. $as_echo "no" >&6; }
  2728. fi
  2729. test -n "$AWK" && break
  2730. done
  2731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2732. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2733. set x ${MAKE-make}
  2734. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2735. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
  2736. $as_echo_n "(cached) " >&6
  2737. else
  2738. cat >conftest.make <<\_ACEOF
  2739. SHELL = /bin/sh
  2740. all:
  2741. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2742. _ACEOF
  2743. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2744. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2745. *@@@%%%=?*=@@@%%%*)
  2746. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2747. *)
  2748. eval ac_cv_prog_make_${ac_make}_set=no;;
  2749. esac
  2750. rm -f conftest.make
  2751. fi
  2752. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2754. $as_echo "yes" >&6; }
  2755. SET_MAKE=
  2756. else
  2757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2758. $as_echo "no" >&6; }
  2759. SET_MAKE="MAKE=${MAKE-make}"
  2760. fi
  2761. rm -rf .tst 2>/dev/null
  2762. mkdir .tst 2>/dev/null
  2763. if test -d .tst; then
  2764. am__leading_dot=.
  2765. else
  2766. am__leading_dot=_
  2767. fi
  2768. rmdir .tst 2>/dev/null
  2769. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2770. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2771. # is not polluted with repeated "-I."
  2772. am__isrc=' -I$(srcdir)'
  2773. # test to see if srcdir already configured
  2774. if test -f $srcdir/config.status; then
  2775. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2776. fi
  2777. fi
  2778. # test whether we have cygpath
  2779. if test -z "$CYGPATH_W"; then
  2780. if (cygpath --version) >/dev/null 2>/dev/null; then
  2781. CYGPATH_W='cygpath -w'
  2782. else
  2783. CYGPATH_W=echo
  2784. fi
  2785. fi
  2786. # Define the identity of the package.
  2787. PACKAGE='vcmi'
  2788. VERSION='0.84b'
  2789. cat >>confdefs.h <<_ACEOF
  2790. #define PACKAGE "$PACKAGE"
  2791. _ACEOF
  2792. cat >>confdefs.h <<_ACEOF
  2793. #define VERSION "$VERSION"
  2794. _ACEOF
  2795. # Some tools Automake needs.
  2796. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2797. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2798. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2799. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2800. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2801. # We need awk for the "check" target. The system "awk" is bad on
  2802. # some platforms.
  2803. # Always define AMTAR for backward compatibility.
  2804. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2805. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2806. # Checks for build toolchain
  2807. ac_ext=cpp
  2808. ac_cpp='$CXXCPP $CPPFLAGS'
  2809. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2810. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2811. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2812. ac_ext=cpp
  2813. ac_cpp='$CXXCPP $CPPFLAGS'
  2814. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2815. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2816. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2817. if test -z "$CXX"; then
  2818. if test -n "$CCC"; then
  2819. CXX=$CCC
  2820. else
  2821. if test -n "$ac_tool_prefix"; then
  2822. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2823. do
  2824. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2825. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2827. $as_echo_n "checking for $ac_word... " >&6; }
  2828. if test "${ac_cv_prog_CXX+set}" = set; then :
  2829. $as_echo_n "(cached) " >&6
  2830. else
  2831. if test -n "$CXX"; then
  2832. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2833. else
  2834. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2835. for as_dir in $PATH
  2836. do
  2837. IFS=$as_save_IFS
  2838. test -z "$as_dir" && as_dir=.
  2839. for ac_exec_ext in '' $ac_executable_extensions; do
  2840. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2841. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2842. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2843. break 2
  2844. fi
  2845. done
  2846. done
  2847. IFS=$as_save_IFS
  2848. fi
  2849. fi
  2850. CXX=$ac_cv_prog_CXX
  2851. if test -n "$CXX"; then
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  2853. $as_echo "$CXX" >&6; }
  2854. else
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2856. $as_echo "no" >&6; }
  2857. fi
  2858. test -n "$CXX" && break
  2859. done
  2860. fi
  2861. if test -z "$CXX"; then
  2862. ac_ct_CXX=$CXX
  2863. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2864. do
  2865. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2866. set dummy $ac_prog; ac_word=$2
  2867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2868. $as_echo_n "checking for $ac_word... " >&6; }
  2869. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  2870. $as_echo_n "(cached) " >&6
  2871. else
  2872. if test -n "$ac_ct_CXX"; then
  2873. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2874. else
  2875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2876. for as_dir in $PATH
  2877. do
  2878. IFS=$as_save_IFS
  2879. test -z "$as_dir" && as_dir=.
  2880. for ac_exec_ext in '' $ac_executable_extensions; do
  2881. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2882. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2883. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2884. break 2
  2885. fi
  2886. done
  2887. done
  2888. IFS=$as_save_IFS
  2889. fi
  2890. fi
  2891. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2892. if test -n "$ac_ct_CXX"; then
  2893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  2894. $as_echo "$ac_ct_CXX" >&6; }
  2895. else
  2896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2897. $as_echo "no" >&6; }
  2898. fi
  2899. test -n "$ac_ct_CXX" && break
  2900. done
  2901. if test "x$ac_ct_CXX" = x; then
  2902. CXX="g++"
  2903. else
  2904. case $cross_compiling:$ac_tool_warned in
  2905. yes:)
  2906. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2907. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2908. ac_tool_warned=yes ;;
  2909. esac
  2910. CXX=$ac_ct_CXX
  2911. fi
  2912. fi
  2913. fi
  2914. fi
  2915. # Provide some information about the compiler.
  2916. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  2917. set X $ac_compile
  2918. ac_compiler=$2
  2919. for ac_option in --version -v -V -qversion; do
  2920. { { ac_try="$ac_compiler $ac_option >&5"
  2921. case "(($ac_try" in
  2922. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2923. *) ac_try_echo=$ac_try;;
  2924. esac
  2925. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2926. $as_echo "$ac_try_echo"; } >&5
  2927. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2928. ac_status=$?
  2929. if test -s conftest.err; then
  2930. sed '10a\
  2931. ... rest of stderr output deleted ...
  2932. 10q' conftest.err >conftest.er1
  2933. cat conftest.er1 >&5
  2934. fi
  2935. rm -f conftest.er1 conftest.err
  2936. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2937. test $ac_status = 0; }
  2938. done
  2939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2940. /* end confdefs.h. */
  2941. int
  2942. main ()
  2943. {
  2944. ;
  2945. return 0;
  2946. }
  2947. _ACEOF
  2948. ac_clean_files_save=$ac_clean_files
  2949. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2950. # Try to create an executable without -o first, disregard a.out.
  2951. # It will help us diagnose broken compilers, and finding out an intuition
  2952. # of exeext.
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
  2954. $as_echo_n "checking whether the C++ compiler works... " >&6; }
  2955. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2956. # The possible output files:
  2957. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2958. ac_rmfiles=
  2959. for ac_file in $ac_files
  2960. do
  2961. case $ac_file in
  2962. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2963. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2964. esac
  2965. done
  2966. rm -f $ac_rmfiles
  2967. if { { ac_try="$ac_link_default"
  2968. case "(($ac_try" in
  2969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2970. *) ac_try_echo=$ac_try;;
  2971. esac
  2972. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2973. $as_echo "$ac_try_echo"; } >&5
  2974. (eval "$ac_link_default") 2>&5
  2975. ac_status=$?
  2976. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2977. test $ac_status = 0; }; then :
  2978. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2979. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2980. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2981. # so that the user can short-circuit this test for compilers unknown to
  2982. # Autoconf.
  2983. for ac_file in $ac_files ''
  2984. do
  2985. test -f "$ac_file" || continue
  2986. case $ac_file in
  2987. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2988. ;;
  2989. [ab].out )
  2990. # We found the default executable, but exeext='' is most
  2991. # certainly right.
  2992. break;;
  2993. *.* )
  2994. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2995. then :; else
  2996. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2997. fi
  2998. # We set ac_cv_exeext here because the later test for it is not
  2999. # safe: cross compilers may not add the suffix if given an `-o'
  3000. # argument, so we may need to know it at that point already.
  3001. # Even if this section looks crufty: it has the advantage of
  3002. # actually working.
  3003. break;;
  3004. * )
  3005. break;;
  3006. esac
  3007. done
  3008. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3009. else
  3010. ac_file=''
  3011. fi
  3012. if test -z "$ac_file"; then :
  3013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3014. $as_echo "no" >&6; }
  3015. $as_echo "$as_me: failed program was:" >&5
  3016. sed 's/^/| /' conftest.$ac_ext >&5
  3017. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3018. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3019. as_fn_error 77 "C++ compiler cannot create executables
  3020. See \`config.log' for more details" "$LINENO" 5 ; }
  3021. else
  3022. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3023. $as_echo "yes" >&6; }
  3024. fi
  3025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
  3026. $as_echo_n "checking for C++ compiler default output file name... " >&6; }
  3027. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3028. $as_echo "$ac_file" >&6; }
  3029. ac_exeext=$ac_cv_exeext
  3030. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3031. ac_clean_files=$ac_clean_files_save
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3033. $as_echo_n "checking for suffix of executables... " >&6; }
  3034. if { { ac_try="$ac_link"
  3035. case "(($ac_try" in
  3036. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3037. *) ac_try_echo=$ac_try;;
  3038. esac
  3039. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3040. $as_echo "$ac_try_echo"; } >&5
  3041. (eval "$ac_link") 2>&5
  3042. ac_status=$?
  3043. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3044. test $ac_status = 0; }; then :
  3045. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3046. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3047. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3048. # `rm'.
  3049. for ac_file in conftest.exe conftest conftest.*; do
  3050. test -f "$ac_file" || continue
  3051. case $ac_file in
  3052. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3053. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3054. break;;
  3055. * ) break;;
  3056. esac
  3057. done
  3058. else
  3059. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3060. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3061. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3062. See \`config.log' for more details" "$LINENO" 5 ; }
  3063. fi
  3064. rm -f conftest conftest$ac_cv_exeext
  3065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3066. $as_echo "$ac_cv_exeext" >&6; }
  3067. rm -f conftest.$ac_ext
  3068. EXEEXT=$ac_cv_exeext
  3069. ac_exeext=$EXEEXT
  3070. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3071. /* end confdefs.h. */
  3072. #include <stdio.h>
  3073. int
  3074. main ()
  3075. {
  3076. FILE *f = fopen ("conftest.out", "w");
  3077. return ferror (f) || fclose (f) != 0;
  3078. ;
  3079. return 0;
  3080. }
  3081. _ACEOF
  3082. ac_clean_files="$ac_clean_files conftest.out"
  3083. # Check that the compiler produces executables we can run. If not, either
  3084. # the compiler is broken, or we cross compile.
  3085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3086. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3087. if test "$cross_compiling" != yes; then
  3088. { { ac_try="$ac_link"
  3089. case "(($ac_try" in
  3090. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3091. *) ac_try_echo=$ac_try;;
  3092. esac
  3093. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3094. $as_echo "$ac_try_echo"; } >&5
  3095. (eval "$ac_link") 2>&5
  3096. ac_status=$?
  3097. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3098. test $ac_status = 0; }
  3099. if { ac_try='./conftest$ac_cv_exeext'
  3100. { { case "(($ac_try" in
  3101. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3102. *) ac_try_echo=$ac_try;;
  3103. esac
  3104. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3105. $as_echo "$ac_try_echo"; } >&5
  3106. (eval "$ac_try") 2>&5
  3107. ac_status=$?
  3108. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3109. test $ac_status = 0; }; }; then
  3110. cross_compiling=no
  3111. else
  3112. if test "$cross_compiling" = maybe; then
  3113. cross_compiling=yes
  3114. else
  3115. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3116. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3117. as_fn_error $? "cannot run C++ compiled programs.
  3118. If you meant to cross compile, use \`--host'.
  3119. See \`config.log' for more details" "$LINENO" 5 ; }
  3120. fi
  3121. fi
  3122. fi
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3124. $as_echo "$cross_compiling" >&6; }
  3125. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3126. ac_clean_files=$ac_clean_files_save
  3127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3128. $as_echo_n "checking for suffix of object files... " >&6; }
  3129. if test "${ac_cv_objext+set}" = set; then :
  3130. $as_echo_n "(cached) " >&6
  3131. else
  3132. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3133. /* end confdefs.h. */
  3134. int
  3135. main ()
  3136. {
  3137. ;
  3138. return 0;
  3139. }
  3140. _ACEOF
  3141. rm -f conftest.o conftest.obj
  3142. if { { ac_try="$ac_compile"
  3143. case "(($ac_try" in
  3144. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3145. *) ac_try_echo=$ac_try;;
  3146. esac
  3147. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3148. $as_echo "$ac_try_echo"; } >&5
  3149. (eval "$ac_compile") 2>&5
  3150. ac_status=$?
  3151. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3152. test $ac_status = 0; }; then :
  3153. for ac_file in conftest.o conftest.obj conftest.*; do
  3154. test -f "$ac_file" || continue;
  3155. case $ac_file in
  3156. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3157. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3158. break;;
  3159. esac
  3160. done
  3161. else
  3162. $as_echo "$as_me: failed program was:" >&5
  3163. sed 's/^/| /' conftest.$ac_ext >&5
  3164. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3165. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3166. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3167. See \`config.log' for more details" "$LINENO" 5 ; }
  3168. fi
  3169. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3170. fi
  3171. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3172. $as_echo "$ac_cv_objext" >&6; }
  3173. OBJEXT=$ac_cv_objext
  3174. ac_objext=$OBJEXT
  3175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  3176. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  3177. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  3178. $as_echo_n "(cached) " >&6
  3179. else
  3180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3181. /* end confdefs.h. */
  3182. int
  3183. main ()
  3184. {
  3185. #ifndef __GNUC__
  3186. choke me
  3187. #endif
  3188. ;
  3189. return 0;
  3190. }
  3191. _ACEOF
  3192. if ac_fn_cxx_try_compile "$LINENO"; then :
  3193. ac_compiler_gnu=yes
  3194. else
  3195. ac_compiler_gnu=no
  3196. fi
  3197. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3198. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3199. fi
  3200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  3201. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  3202. if test $ac_compiler_gnu = yes; then
  3203. GXX=yes
  3204. else
  3205. GXX=
  3206. fi
  3207. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3208. ac_save_CXXFLAGS=$CXXFLAGS
  3209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  3210. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  3211. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  3212. $as_echo_n "(cached) " >&6
  3213. else
  3214. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  3215. ac_cxx_werror_flag=yes
  3216. ac_cv_prog_cxx_g=no
  3217. CXXFLAGS="-g"
  3218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3219. /* end confdefs.h. */
  3220. int
  3221. main ()
  3222. {
  3223. ;
  3224. return 0;
  3225. }
  3226. _ACEOF
  3227. if ac_fn_cxx_try_compile "$LINENO"; then :
  3228. ac_cv_prog_cxx_g=yes
  3229. else
  3230. CXXFLAGS=""
  3231. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3232. /* end confdefs.h. */
  3233. int
  3234. main ()
  3235. {
  3236. ;
  3237. return 0;
  3238. }
  3239. _ACEOF
  3240. if ac_fn_cxx_try_compile "$LINENO"; then :
  3241. else
  3242. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3243. CXXFLAGS="-g"
  3244. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3245. /* end confdefs.h. */
  3246. int
  3247. main ()
  3248. {
  3249. ;
  3250. return 0;
  3251. }
  3252. _ACEOF
  3253. if ac_fn_cxx_try_compile "$LINENO"; then :
  3254. ac_cv_prog_cxx_g=yes
  3255. fi
  3256. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3257. fi
  3258. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3259. fi
  3260. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3261. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  3262. fi
  3263. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  3264. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  3265. if test "$ac_test_CXXFLAGS" = set; then
  3266. CXXFLAGS=$ac_save_CXXFLAGS
  3267. elif test $ac_cv_prog_cxx_g = yes; then
  3268. if test "$GXX" = yes; then
  3269. CXXFLAGS="-g -O2"
  3270. else
  3271. CXXFLAGS="-g"
  3272. fi
  3273. else
  3274. if test "$GXX" = yes; then
  3275. CXXFLAGS="-O2"
  3276. else
  3277. CXXFLAGS=
  3278. fi
  3279. fi
  3280. ac_ext=cpp
  3281. ac_cpp='$CXXCPP $CPPFLAGS'
  3282. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3283. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3284. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3285. DEPDIR="${am__leading_dot}deps"
  3286. ac_config_commands="$ac_config_commands depfiles"
  3287. am_make=${MAKE-make}
  3288. cat > confinc << 'END'
  3289. am__doit:
  3290. @echo this is the am__doit target
  3291. .PHONY: am__doit
  3292. END
  3293. # If we don't find an include directive, just comment out the code.
  3294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3295. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3296. am__include="#"
  3297. am__quote=
  3298. _am_result=none
  3299. # First try GNU make style include.
  3300. echo "include confinc" > confmf
  3301. # Ignore all kinds of additional output from `make'.
  3302. case `$am_make -s -f confmf 2> /dev/null` in #(
  3303. *the\ am__doit\ target*)
  3304. am__include=include
  3305. am__quote=
  3306. _am_result=GNU
  3307. ;;
  3308. esac
  3309. # Now try BSD make style include.
  3310. if test "$am__include" = "#"; then
  3311. echo '.include "confinc"' > confmf
  3312. case `$am_make -s -f confmf 2> /dev/null` in #(
  3313. *the\ am__doit\ target*)
  3314. am__include=.include
  3315. am__quote="\""
  3316. _am_result=BSD
  3317. ;;
  3318. esac
  3319. fi
  3320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3321. $as_echo "$_am_result" >&6; }
  3322. rm -f confinc confmf
  3323. # Check whether --enable-dependency-tracking was given.
  3324. if test "${enable_dependency_tracking+set}" = set; then :
  3325. enableval=$enable_dependency_tracking;
  3326. fi
  3327. if test "x$enable_dependency_tracking" != xno; then
  3328. am_depcomp="$ac_aux_dir/depcomp"
  3329. AMDEPBACKSLASH='\'
  3330. fi
  3331. if test "x$enable_dependency_tracking" != xno; then
  3332. AMDEP_TRUE=
  3333. AMDEP_FALSE='#'
  3334. else
  3335. AMDEP_TRUE='#'
  3336. AMDEP_FALSE=
  3337. fi
  3338. depcc="$CXX" am_compiler_list=
  3339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3340. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3341. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  3342. $as_echo_n "(cached) " >&6
  3343. else
  3344. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3345. # We make a subdir and do the tests there. Otherwise we can end up
  3346. # making bogus files that we don't know about and never remove. For
  3347. # instance it was reported that on HP-UX the gcc test will end up
  3348. # making a dummy file named `D' -- because `-MD' means `put the output
  3349. # in D'.
  3350. mkdir conftest.dir
  3351. # Copy depcomp to subdir because otherwise we won't find it if we're
  3352. # using a relative directory.
  3353. cp "$am_depcomp" conftest.dir
  3354. cd conftest.dir
  3355. # We will build objects and dependencies in a subdirectory because
  3356. # it helps to detect inapplicable dependency modes. For instance
  3357. # both Tru64's cc and ICC support -MD to output dependencies as a
  3358. # side effect of compilation, but ICC will put the dependencies in
  3359. # the current directory while Tru64 will put them in the object
  3360. # directory.
  3361. mkdir sub
  3362. am_cv_CXX_dependencies_compiler_type=none
  3363. if test "$am_compiler_list" = ""; then
  3364. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3365. fi
  3366. am__universal=false
  3367. case " $depcc " in #(
  3368. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3369. esac
  3370. for depmode in $am_compiler_list; do
  3371. # Setup a source with many dependencies, because some compilers
  3372. # like to wrap large dependency lists on column 80 (with \), and
  3373. # we should not choose a depcomp mode which is confused by this.
  3374. #
  3375. # We need to recreate these files for each test, as the compiler may
  3376. # overwrite some of them when testing with obscure command lines.
  3377. # This happens at least with the AIX C compiler.
  3378. : > sub/conftest.c
  3379. for i in 1 2 3 4 5 6; do
  3380. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3381. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3382. # Solaris 8's {/usr,}/bin/sh.
  3383. touch sub/conftst$i.h
  3384. done
  3385. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3386. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3387. # mode. It turns out that the SunPro C++ compiler does not properly
  3388. # handle `-M -o', and we need to detect this. Also, some Intel
  3389. # versions had trouble with output in subdirs
  3390. am__obj=sub/conftest.${OBJEXT-o}
  3391. am__minus_obj="-o $am__obj"
  3392. case $depmode in
  3393. gcc)
  3394. # This depmode causes a compiler race in universal mode.
  3395. test "$am__universal" = false || continue
  3396. ;;
  3397. nosideeffect)
  3398. # after this tag, mechanisms are not by side-effect, so they'll
  3399. # only be used when explicitly requested
  3400. if test "x$enable_dependency_tracking" = xyes; then
  3401. continue
  3402. else
  3403. break
  3404. fi
  3405. ;;
  3406. msvisualcpp | msvcmsys)
  3407. # This compiler won't grok `-c -o', but also, the minuso test has
  3408. # not run yet. These depmodes are late enough in the game, and
  3409. # so weak that their functioning should not be impacted.
  3410. am__obj=conftest.${OBJEXT-o}
  3411. am__minus_obj=
  3412. ;;
  3413. none) break ;;
  3414. esac
  3415. if depmode=$depmode \
  3416. source=sub/conftest.c object=$am__obj \
  3417. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3418. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3419. >/dev/null 2>conftest.err &&
  3420. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3421. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3422. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3423. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3424. # icc doesn't choke on unknown options, it will just issue warnings
  3425. # or remarks (even with -Werror). So we grep stderr for any message
  3426. # that says an option was ignored or not supported.
  3427. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3428. # icc: Command line warning: ignoring option '-M'; no argument required
  3429. # The diagnosis changed in icc 8.0:
  3430. # icc: Command line remark: option '-MP' not supported
  3431. if (grep 'ignoring option' conftest.err ||
  3432. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3433. am_cv_CXX_dependencies_compiler_type=$depmode
  3434. break
  3435. fi
  3436. fi
  3437. done
  3438. cd ..
  3439. rm -rf conftest.dir
  3440. else
  3441. am_cv_CXX_dependencies_compiler_type=none
  3442. fi
  3443. fi
  3444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3445. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  3446. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3447. if
  3448. test "x$enable_dependency_tracking" != xno \
  3449. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3450. am__fastdepCXX_TRUE=
  3451. am__fastdepCXX_FALSE='#'
  3452. else
  3453. am__fastdepCXX_TRUE='#'
  3454. am__fastdepCXX_FALSE=
  3455. fi
  3456. # Check whether --enable-shared was given.
  3457. if test "${enable_shared+set}" = set; then :
  3458. enableval=$enable_shared; p=${PACKAGE-default}
  3459. case $enableval in
  3460. yes) enable_shared=yes ;;
  3461. no) enable_shared=no ;;
  3462. *)
  3463. enable_shared=no
  3464. # Look at the argument we got. We use all the common list separators.
  3465. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3466. for pkg in $enableval; do
  3467. IFS="$lt_save_ifs"
  3468. if test "X$pkg" = "X$p"; then
  3469. enable_shared=yes
  3470. fi
  3471. done
  3472. IFS="$lt_save_ifs"
  3473. ;;
  3474. esac
  3475. else
  3476. enable_shared=yes
  3477. fi
  3478. # Check whether --enable-static was given.
  3479. if test "${enable_static+set}" = set; then :
  3480. enableval=$enable_static; p=${PACKAGE-default}
  3481. case $enableval in
  3482. yes) enable_static=yes ;;
  3483. no) enable_static=no ;;
  3484. *)
  3485. enable_static=no
  3486. # Look at the argument we got. We use all the common list separators.
  3487. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3488. for pkg in $enableval; do
  3489. IFS="$lt_save_ifs"
  3490. if test "X$pkg" = "X$p"; then
  3491. enable_static=yes
  3492. fi
  3493. done
  3494. IFS="$lt_save_ifs"
  3495. ;;
  3496. esac
  3497. else
  3498. enable_static=no
  3499. fi
  3500. case `pwd` in
  3501. *\ * | *\ *)
  3502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3503. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3504. esac
  3505. macro_version='2.2.6b'
  3506. macro_revision='1.3017'
  3507. ltmain="$ac_aux_dir/ltmain.sh"
  3508. # Make sure we can run config.sub.
  3509. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3510. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3512. $as_echo_n "checking build system type... " >&6; }
  3513. if test "${ac_cv_build+set}" = set; then :
  3514. $as_echo_n "(cached) " >&6
  3515. else
  3516. ac_build_alias=$build_alias
  3517. test "x$ac_build_alias" = x &&
  3518. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3519. test "x$ac_build_alias" = x &&
  3520. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3521. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3522. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3523. fi
  3524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3525. $as_echo "$ac_cv_build" >&6; }
  3526. case $ac_cv_build in
  3527. *-*-*) ;;
  3528. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
  3529. esac
  3530. build=$ac_cv_build
  3531. ac_save_IFS=$IFS; IFS='-'
  3532. set x $ac_cv_build
  3533. shift
  3534. build_cpu=$1
  3535. build_vendor=$2
  3536. shift; shift
  3537. # Remember, the first character of IFS is used to create $*,
  3538. # except with old shells:
  3539. build_os=$*
  3540. IFS=$ac_save_IFS
  3541. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3543. $as_echo_n "checking host system type... " >&6; }
  3544. if test "${ac_cv_host+set}" = set; then :
  3545. $as_echo_n "(cached) " >&6
  3546. else
  3547. if test "x$host_alias" = x; then
  3548. ac_cv_host=$ac_cv_build
  3549. else
  3550. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3551. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3552. fi
  3553. fi
  3554. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3555. $as_echo "$ac_cv_host" >&6; }
  3556. case $ac_cv_host in
  3557. *-*-*) ;;
  3558. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
  3559. esac
  3560. host=$ac_cv_host
  3561. ac_save_IFS=$IFS; IFS='-'
  3562. set x $ac_cv_host
  3563. shift
  3564. host_cpu=$1
  3565. host_vendor=$2
  3566. shift; shift
  3567. # Remember, the first character of IFS is used to create $*,
  3568. # except with old shells:
  3569. host_os=$*
  3570. IFS=$ac_save_IFS
  3571. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3572. ac_ext=c
  3573. ac_cpp='$CPP $CPPFLAGS'
  3574. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3575. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3576. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3577. if test -n "$ac_tool_prefix"; then
  3578. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3579. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3581. $as_echo_n "checking for $ac_word... " >&6; }
  3582. if test "${ac_cv_prog_CC+set}" = set; then :
  3583. $as_echo_n "(cached) " >&6
  3584. else
  3585. if test -n "$CC"; then
  3586. ac_cv_prog_CC="$CC" # Let the user override the test.
  3587. else
  3588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3589. for as_dir in $PATH
  3590. do
  3591. IFS=$as_save_IFS
  3592. test -z "$as_dir" && as_dir=.
  3593. for ac_exec_ext in '' $ac_executable_extensions; do
  3594. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3595. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3596. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3597. break 2
  3598. fi
  3599. done
  3600. done
  3601. IFS=$as_save_IFS
  3602. fi
  3603. fi
  3604. CC=$ac_cv_prog_CC
  3605. if test -n "$CC"; then
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3607. $as_echo "$CC" >&6; }
  3608. else
  3609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3610. $as_echo "no" >&6; }
  3611. fi
  3612. fi
  3613. if test -z "$ac_cv_prog_CC"; then
  3614. ac_ct_CC=$CC
  3615. # Extract the first word of "gcc", so it can be a program name with args.
  3616. set dummy gcc; ac_word=$2
  3617. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3618. $as_echo_n "checking for $ac_word... " >&6; }
  3619. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3620. $as_echo_n "(cached) " >&6
  3621. else
  3622. if test -n "$ac_ct_CC"; then
  3623. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3624. else
  3625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3626. for as_dir in $PATH
  3627. do
  3628. IFS=$as_save_IFS
  3629. test -z "$as_dir" && as_dir=.
  3630. for ac_exec_ext in '' $ac_executable_extensions; do
  3631. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3632. ac_cv_prog_ac_ct_CC="gcc"
  3633. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3634. break 2
  3635. fi
  3636. done
  3637. done
  3638. IFS=$as_save_IFS
  3639. fi
  3640. fi
  3641. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3642. if test -n "$ac_ct_CC"; then
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3644. $as_echo "$ac_ct_CC" >&6; }
  3645. else
  3646. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3647. $as_echo "no" >&6; }
  3648. fi
  3649. if test "x$ac_ct_CC" = x; then
  3650. CC=""
  3651. else
  3652. case $cross_compiling:$ac_tool_warned in
  3653. yes:)
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3655. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3656. ac_tool_warned=yes ;;
  3657. esac
  3658. CC=$ac_ct_CC
  3659. fi
  3660. else
  3661. CC="$ac_cv_prog_CC"
  3662. fi
  3663. if test -z "$CC"; then
  3664. if test -n "$ac_tool_prefix"; then
  3665. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3666. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3668. $as_echo_n "checking for $ac_word... " >&6; }
  3669. if test "${ac_cv_prog_CC+set}" = set; then :
  3670. $as_echo_n "(cached) " >&6
  3671. else
  3672. if test -n "$CC"; then
  3673. ac_cv_prog_CC="$CC" # Let the user override the test.
  3674. else
  3675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3676. for as_dir in $PATH
  3677. do
  3678. IFS=$as_save_IFS
  3679. test -z "$as_dir" && as_dir=.
  3680. for ac_exec_ext in '' $ac_executable_extensions; do
  3681. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3682. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3683. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3684. break 2
  3685. fi
  3686. done
  3687. done
  3688. IFS=$as_save_IFS
  3689. fi
  3690. fi
  3691. CC=$ac_cv_prog_CC
  3692. if test -n "$CC"; then
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3694. $as_echo "$CC" >&6; }
  3695. else
  3696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3697. $as_echo "no" >&6; }
  3698. fi
  3699. fi
  3700. fi
  3701. if test -z "$CC"; then
  3702. # Extract the first word of "cc", so it can be a program name with args.
  3703. set dummy cc; ac_word=$2
  3704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3705. $as_echo_n "checking for $ac_word... " >&6; }
  3706. if test "${ac_cv_prog_CC+set}" = set; then :
  3707. $as_echo_n "(cached) " >&6
  3708. else
  3709. if test -n "$CC"; then
  3710. ac_cv_prog_CC="$CC" # Let the user override the test.
  3711. else
  3712. ac_prog_rejected=no
  3713. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3714. for as_dir in $PATH
  3715. do
  3716. IFS=$as_save_IFS
  3717. test -z "$as_dir" && as_dir=.
  3718. for ac_exec_ext in '' $ac_executable_extensions; do
  3719. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3720. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3721. ac_prog_rejected=yes
  3722. continue
  3723. fi
  3724. ac_cv_prog_CC="cc"
  3725. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3726. break 2
  3727. fi
  3728. done
  3729. done
  3730. IFS=$as_save_IFS
  3731. if test $ac_prog_rejected = yes; then
  3732. # We found a bogon in the path, so make sure we never use it.
  3733. set dummy $ac_cv_prog_CC
  3734. shift
  3735. if test $# != 0; then
  3736. # We chose a different compiler from the bogus one.
  3737. # However, it has the same basename, so the bogon will be chosen
  3738. # first if we set CC to just the basename; use the full file name.
  3739. shift
  3740. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3741. fi
  3742. fi
  3743. fi
  3744. fi
  3745. CC=$ac_cv_prog_CC
  3746. if test -n "$CC"; then
  3747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3748. $as_echo "$CC" >&6; }
  3749. else
  3750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3751. $as_echo "no" >&6; }
  3752. fi
  3753. fi
  3754. if test -z "$CC"; then
  3755. if test -n "$ac_tool_prefix"; then
  3756. for ac_prog in cl.exe
  3757. do
  3758. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3759. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3761. $as_echo_n "checking for $ac_word... " >&6; }
  3762. if test "${ac_cv_prog_CC+set}" = set; then :
  3763. $as_echo_n "(cached) " >&6
  3764. else
  3765. if test -n "$CC"; then
  3766. ac_cv_prog_CC="$CC" # Let the user override the test.
  3767. else
  3768. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3769. for as_dir in $PATH
  3770. do
  3771. IFS=$as_save_IFS
  3772. test -z "$as_dir" && as_dir=.
  3773. for ac_exec_ext in '' $ac_executable_extensions; do
  3774. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3775. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3776. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3777. break 2
  3778. fi
  3779. done
  3780. done
  3781. IFS=$as_save_IFS
  3782. fi
  3783. fi
  3784. CC=$ac_cv_prog_CC
  3785. if test -n "$CC"; then
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3787. $as_echo "$CC" >&6; }
  3788. else
  3789. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3790. $as_echo "no" >&6; }
  3791. fi
  3792. test -n "$CC" && break
  3793. done
  3794. fi
  3795. if test -z "$CC"; then
  3796. ac_ct_CC=$CC
  3797. for ac_prog in cl.exe
  3798. do
  3799. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3800. set dummy $ac_prog; ac_word=$2
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3802. $as_echo_n "checking for $ac_word... " >&6; }
  3803. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  3804. $as_echo_n "(cached) " >&6
  3805. else
  3806. if test -n "$ac_ct_CC"; then
  3807. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3808. else
  3809. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3810. for as_dir in $PATH
  3811. do
  3812. IFS=$as_save_IFS
  3813. test -z "$as_dir" && as_dir=.
  3814. for ac_exec_ext in '' $ac_executable_extensions; do
  3815. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3816. ac_cv_prog_ac_ct_CC="$ac_prog"
  3817. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3818. break 2
  3819. fi
  3820. done
  3821. done
  3822. IFS=$as_save_IFS
  3823. fi
  3824. fi
  3825. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3826. if test -n "$ac_ct_CC"; then
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3828. $as_echo "$ac_ct_CC" >&6; }
  3829. else
  3830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3831. $as_echo "no" >&6; }
  3832. fi
  3833. test -n "$ac_ct_CC" && break
  3834. done
  3835. if test "x$ac_ct_CC" = x; then
  3836. CC=""
  3837. else
  3838. case $cross_compiling:$ac_tool_warned in
  3839. yes:)
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3841. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3842. ac_tool_warned=yes ;;
  3843. esac
  3844. CC=$ac_ct_CC
  3845. fi
  3846. fi
  3847. fi
  3848. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3849. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3850. as_fn_error $? "no acceptable C compiler found in \$PATH
  3851. See \`config.log' for more details" "$LINENO" 5 ; }
  3852. # Provide some information about the compiler.
  3853. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3854. set X $ac_compile
  3855. ac_compiler=$2
  3856. for ac_option in --version -v -V -qversion; do
  3857. { { ac_try="$ac_compiler $ac_option >&5"
  3858. case "(($ac_try" in
  3859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3860. *) ac_try_echo=$ac_try;;
  3861. esac
  3862. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3863. $as_echo "$ac_try_echo"; } >&5
  3864. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3865. ac_status=$?
  3866. if test -s conftest.err; then
  3867. sed '10a\
  3868. ... rest of stderr output deleted ...
  3869. 10q' conftest.err >conftest.er1
  3870. cat conftest.er1 >&5
  3871. fi
  3872. rm -f conftest.er1 conftest.err
  3873. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3874. test $ac_status = 0; }
  3875. done
  3876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3877. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3878. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  3879. $as_echo_n "(cached) " >&6
  3880. else
  3881. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3882. /* end confdefs.h. */
  3883. int
  3884. main ()
  3885. {
  3886. #ifndef __GNUC__
  3887. choke me
  3888. #endif
  3889. ;
  3890. return 0;
  3891. }
  3892. _ACEOF
  3893. if ac_fn_c_try_compile "$LINENO"; then :
  3894. ac_compiler_gnu=yes
  3895. else
  3896. ac_compiler_gnu=no
  3897. fi
  3898. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3899. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3900. fi
  3901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3902. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3903. if test $ac_compiler_gnu = yes; then
  3904. GCC=yes
  3905. else
  3906. GCC=
  3907. fi
  3908. ac_test_CFLAGS=${CFLAGS+set}
  3909. ac_save_CFLAGS=$CFLAGS
  3910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3911. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3912. if test "${ac_cv_prog_cc_g+set}" = set; then :
  3913. $as_echo_n "(cached) " >&6
  3914. else
  3915. ac_save_c_werror_flag=$ac_c_werror_flag
  3916. ac_c_werror_flag=yes
  3917. ac_cv_prog_cc_g=no
  3918. CFLAGS="-g"
  3919. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3920. /* end confdefs.h. */
  3921. int
  3922. main ()
  3923. {
  3924. ;
  3925. return 0;
  3926. }
  3927. _ACEOF
  3928. if ac_fn_c_try_compile "$LINENO"; then :
  3929. ac_cv_prog_cc_g=yes
  3930. else
  3931. CFLAGS=""
  3932. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3933. /* end confdefs.h. */
  3934. int
  3935. main ()
  3936. {
  3937. ;
  3938. return 0;
  3939. }
  3940. _ACEOF
  3941. if ac_fn_c_try_compile "$LINENO"; then :
  3942. else
  3943. ac_c_werror_flag=$ac_save_c_werror_flag
  3944. CFLAGS="-g"
  3945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3946. /* end confdefs.h. */
  3947. int
  3948. main ()
  3949. {
  3950. ;
  3951. return 0;
  3952. }
  3953. _ACEOF
  3954. if ac_fn_c_try_compile "$LINENO"; then :
  3955. ac_cv_prog_cc_g=yes
  3956. fi
  3957. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3958. fi
  3959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3960. fi
  3961. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3962. ac_c_werror_flag=$ac_save_c_werror_flag
  3963. fi
  3964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3965. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3966. if test "$ac_test_CFLAGS" = set; then
  3967. CFLAGS=$ac_save_CFLAGS
  3968. elif test $ac_cv_prog_cc_g = yes; then
  3969. if test "$GCC" = yes; then
  3970. CFLAGS="-g -O2"
  3971. else
  3972. CFLAGS="-g"
  3973. fi
  3974. else
  3975. if test "$GCC" = yes; then
  3976. CFLAGS="-O2"
  3977. else
  3978. CFLAGS=
  3979. fi
  3980. fi
  3981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3982. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3983. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  3984. $as_echo_n "(cached) " >&6
  3985. else
  3986. ac_cv_prog_cc_c89=no
  3987. ac_save_CC=$CC
  3988. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3989. /* end confdefs.h. */
  3990. #include <stdarg.h>
  3991. #include <stdio.h>
  3992. #include <sys/types.h>
  3993. #include <sys/stat.h>
  3994. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3995. struct buf { int x; };
  3996. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3997. static char *e (p, i)
  3998. char **p;
  3999. int i;
  4000. {
  4001. return p[i];
  4002. }
  4003. static char *f (char * (*g) (char **, int), char **p, ...)
  4004. {
  4005. char *s;
  4006. va_list v;
  4007. va_start (v,p);
  4008. s = g (p, va_arg (v,int));
  4009. va_end (v);
  4010. return s;
  4011. }
  4012. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4013. function prototypes and stuff, but not '\xHH' hex character constants.
  4014. These don't provoke an error unfortunately, instead are silently treated
  4015. as 'x'. The following induces an error, until -std is added to get
  4016. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4017. array size at least. It's necessary to write '\x00'==0 to get something
  4018. that's true only with -std. */
  4019. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4020. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4021. inside strings and character constants. */
  4022. #define FOO(x) 'x'
  4023. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4024. int test (int i, double x);
  4025. struct s1 {int (*f) (int a);};
  4026. struct s2 {int (*f) (double a);};
  4027. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4028. int argc;
  4029. char **argv;
  4030. int
  4031. main ()
  4032. {
  4033. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4034. ;
  4035. return 0;
  4036. }
  4037. _ACEOF
  4038. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4039. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4040. do
  4041. CC="$ac_save_CC $ac_arg"
  4042. if ac_fn_c_try_compile "$LINENO"; then :
  4043. ac_cv_prog_cc_c89=$ac_arg
  4044. fi
  4045. rm -f core conftest.err conftest.$ac_objext
  4046. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4047. done
  4048. rm -f conftest.$ac_ext
  4049. CC=$ac_save_CC
  4050. fi
  4051. # AC_CACHE_VAL
  4052. case "x$ac_cv_prog_cc_c89" in
  4053. x)
  4054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4055. $as_echo "none needed" >&6; } ;;
  4056. xno)
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4058. $as_echo "unsupported" >&6; } ;;
  4059. *)
  4060. CC="$CC $ac_cv_prog_cc_c89"
  4061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4062. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4063. esac
  4064. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4065. fi
  4066. ac_ext=cpp
  4067. ac_cpp='$CXXCPP $CPPFLAGS'
  4068. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4069. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4070. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  4071. depcc="$CC" am_compiler_list=
  4072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4073. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4074. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  4075. $as_echo_n "(cached) " >&6
  4076. else
  4077. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4078. # We make a subdir and do the tests there. Otherwise we can end up
  4079. # making bogus files that we don't know about and never remove. For
  4080. # instance it was reported that on HP-UX the gcc test will end up
  4081. # making a dummy file named `D' -- because `-MD' means `put the output
  4082. # in D'.
  4083. mkdir conftest.dir
  4084. # Copy depcomp to subdir because otherwise we won't find it if we're
  4085. # using a relative directory.
  4086. cp "$am_depcomp" conftest.dir
  4087. cd conftest.dir
  4088. # We will build objects and dependencies in a subdirectory because
  4089. # it helps to detect inapplicable dependency modes. For instance
  4090. # both Tru64's cc and ICC support -MD to output dependencies as a
  4091. # side effect of compilation, but ICC will put the dependencies in
  4092. # the current directory while Tru64 will put them in the object
  4093. # directory.
  4094. mkdir sub
  4095. am_cv_CC_dependencies_compiler_type=none
  4096. if test "$am_compiler_list" = ""; then
  4097. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4098. fi
  4099. am__universal=false
  4100. case " $depcc " in #(
  4101. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4102. esac
  4103. for depmode in $am_compiler_list; do
  4104. # Setup a source with many dependencies, because some compilers
  4105. # like to wrap large dependency lists on column 80 (with \), and
  4106. # we should not choose a depcomp mode which is confused by this.
  4107. #
  4108. # We need to recreate these files for each test, as the compiler may
  4109. # overwrite some of them when testing with obscure command lines.
  4110. # This happens at least with the AIX C compiler.
  4111. : > sub/conftest.c
  4112. for i in 1 2 3 4 5 6; do
  4113. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4114. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  4115. # Solaris 8's {/usr,}/bin/sh.
  4116. touch sub/conftst$i.h
  4117. done
  4118. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4119. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  4120. # mode. It turns out that the SunPro C++ compiler does not properly
  4121. # handle `-M -o', and we need to detect this. Also, some Intel
  4122. # versions had trouble with output in subdirs
  4123. am__obj=sub/conftest.${OBJEXT-o}
  4124. am__minus_obj="-o $am__obj"
  4125. case $depmode in
  4126. gcc)
  4127. # This depmode causes a compiler race in universal mode.
  4128. test "$am__universal" = false || continue
  4129. ;;
  4130. nosideeffect)
  4131. # after this tag, mechanisms are not by side-effect, so they'll
  4132. # only be used when explicitly requested
  4133. if test "x$enable_dependency_tracking" = xyes; then
  4134. continue
  4135. else
  4136. break
  4137. fi
  4138. ;;
  4139. msvisualcpp | msvcmsys)
  4140. # This compiler won't grok `-c -o', but also, the minuso test has
  4141. # not run yet. These depmodes are late enough in the game, and
  4142. # so weak that their functioning should not be impacted.
  4143. am__obj=conftest.${OBJEXT-o}
  4144. am__minus_obj=
  4145. ;;
  4146. none) break ;;
  4147. esac
  4148. if depmode=$depmode \
  4149. source=sub/conftest.c object=$am__obj \
  4150. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4151. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4152. >/dev/null 2>conftest.err &&
  4153. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4154. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4155. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4156. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4157. # icc doesn't choke on unknown options, it will just issue warnings
  4158. # or remarks (even with -Werror). So we grep stderr for any message
  4159. # that says an option was ignored or not supported.
  4160. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4161. # icc: Command line warning: ignoring option '-M'; no argument required
  4162. # The diagnosis changed in icc 8.0:
  4163. # icc: Command line remark: option '-MP' not supported
  4164. if (grep 'ignoring option' conftest.err ||
  4165. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4166. am_cv_CC_dependencies_compiler_type=$depmode
  4167. break
  4168. fi
  4169. fi
  4170. done
  4171. cd ..
  4172. rm -rf conftest.dir
  4173. else
  4174. am_cv_CC_dependencies_compiler_type=none
  4175. fi
  4176. fi
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4178. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4179. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4180. if
  4181. test "x$enable_dependency_tracking" != xno \
  4182. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4183. am__fastdepCC_TRUE=
  4184. am__fastdepCC_FALSE='#'
  4185. else
  4186. am__fastdepCC_TRUE='#'
  4187. am__fastdepCC_FALSE=
  4188. fi
  4189. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4190. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4191. if test "${ac_cv_path_SED+set}" = set; then :
  4192. $as_echo_n "(cached) " >&6
  4193. else
  4194. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4195. for ac_i in 1 2 3 4 5 6 7; do
  4196. ac_script="$ac_script$as_nl$ac_script"
  4197. done
  4198. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4199. { ac_script=; unset ac_script;}
  4200. if test -z "$SED"; then
  4201. ac_path_SED_found=false
  4202. # Loop through the user's path and test for each of PROGNAME-LIST
  4203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4204. for as_dir in $PATH
  4205. do
  4206. IFS=$as_save_IFS
  4207. test -z "$as_dir" && as_dir=.
  4208. for ac_prog in sed gsed; do
  4209. for ac_exec_ext in '' $ac_executable_extensions; do
  4210. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4211. { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  4212. # Check for GNU ac_path_SED and select it if it is found.
  4213. # Check for GNU $ac_path_SED
  4214. case `"$ac_path_SED" --version 2>&1` in
  4215. *GNU*)
  4216. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4217. *)
  4218. ac_count=0
  4219. $as_echo_n 0123456789 >"conftest.in"
  4220. while :
  4221. do
  4222. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4223. mv "conftest.tmp" "conftest.in"
  4224. cp "conftest.in" "conftest.nl"
  4225. $as_echo '' >> "conftest.nl"
  4226. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4227. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4228. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4229. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4230. # Best one so far, save it but keep looking for a better one
  4231. ac_cv_path_SED="$ac_path_SED"
  4232. ac_path_SED_max=$ac_count
  4233. fi
  4234. # 10*(2^10) chars as input seems more than enough
  4235. test $ac_count -gt 10 && break
  4236. done
  4237. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4238. esac
  4239. $ac_path_SED_found && break 3
  4240. done
  4241. done
  4242. done
  4243. IFS=$as_save_IFS
  4244. if test -z "$ac_cv_path_SED"; then
  4245. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4246. fi
  4247. else
  4248. ac_cv_path_SED=$SED
  4249. fi
  4250. fi
  4251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4252. $as_echo "$ac_cv_path_SED" >&6; }
  4253. SED="$ac_cv_path_SED"
  4254. rm -f conftest.sed
  4255. test -z "$SED" && SED=sed
  4256. Xsed="$SED -e 1s/^X//"
  4257. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4258. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4259. if test "${ac_cv_path_GREP+set}" = set; then :
  4260. $as_echo_n "(cached) " >&6
  4261. else
  4262. if test -z "$GREP"; then
  4263. ac_path_GREP_found=false
  4264. # Loop through the user's path and test for each of PROGNAME-LIST
  4265. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4266. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4267. do
  4268. IFS=$as_save_IFS
  4269. test -z "$as_dir" && as_dir=.
  4270. for ac_prog in grep ggrep; do
  4271. for ac_exec_ext in '' $ac_executable_extensions; do
  4272. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4273. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4274. # Check for GNU ac_path_GREP and select it if it is found.
  4275. # Check for GNU $ac_path_GREP
  4276. case `"$ac_path_GREP" --version 2>&1` in
  4277. *GNU*)
  4278. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4279. *)
  4280. ac_count=0
  4281. $as_echo_n 0123456789 >"conftest.in"
  4282. while :
  4283. do
  4284. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4285. mv "conftest.tmp" "conftest.in"
  4286. cp "conftest.in" "conftest.nl"
  4287. $as_echo 'GREP' >> "conftest.nl"
  4288. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4289. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4290. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4291. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4292. # Best one so far, save it but keep looking for a better one
  4293. ac_cv_path_GREP="$ac_path_GREP"
  4294. ac_path_GREP_max=$ac_count
  4295. fi
  4296. # 10*(2^10) chars as input seems more than enough
  4297. test $ac_count -gt 10 && break
  4298. done
  4299. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4300. esac
  4301. $ac_path_GREP_found && break 3
  4302. done
  4303. done
  4304. done
  4305. IFS=$as_save_IFS
  4306. if test -z "$ac_cv_path_GREP"; then
  4307. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4308. fi
  4309. else
  4310. ac_cv_path_GREP=$GREP
  4311. fi
  4312. fi
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4314. $as_echo "$ac_cv_path_GREP" >&6; }
  4315. GREP="$ac_cv_path_GREP"
  4316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4317. $as_echo_n "checking for egrep... " >&6; }
  4318. if test "${ac_cv_path_EGREP+set}" = set; then :
  4319. $as_echo_n "(cached) " >&6
  4320. else
  4321. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4322. then ac_cv_path_EGREP="$GREP -E"
  4323. else
  4324. if test -z "$EGREP"; then
  4325. ac_path_EGREP_found=false
  4326. # Loop through the user's path and test for each of PROGNAME-LIST
  4327. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4328. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4329. do
  4330. IFS=$as_save_IFS
  4331. test -z "$as_dir" && as_dir=.
  4332. for ac_prog in egrep; do
  4333. for ac_exec_ext in '' $ac_executable_extensions; do
  4334. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4335. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4336. # Check for GNU ac_path_EGREP and select it if it is found.
  4337. # Check for GNU $ac_path_EGREP
  4338. case `"$ac_path_EGREP" --version 2>&1` in
  4339. *GNU*)
  4340. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4341. *)
  4342. ac_count=0
  4343. $as_echo_n 0123456789 >"conftest.in"
  4344. while :
  4345. do
  4346. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4347. mv "conftest.tmp" "conftest.in"
  4348. cp "conftest.in" "conftest.nl"
  4349. $as_echo 'EGREP' >> "conftest.nl"
  4350. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4351. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4352. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4353. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4354. # Best one so far, save it but keep looking for a better one
  4355. ac_cv_path_EGREP="$ac_path_EGREP"
  4356. ac_path_EGREP_max=$ac_count
  4357. fi
  4358. # 10*(2^10) chars as input seems more than enough
  4359. test $ac_count -gt 10 && break
  4360. done
  4361. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4362. esac
  4363. $ac_path_EGREP_found && break 3
  4364. done
  4365. done
  4366. done
  4367. IFS=$as_save_IFS
  4368. if test -z "$ac_cv_path_EGREP"; then
  4369. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4370. fi
  4371. else
  4372. ac_cv_path_EGREP=$EGREP
  4373. fi
  4374. fi
  4375. fi
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4377. $as_echo "$ac_cv_path_EGREP" >&6; }
  4378. EGREP="$ac_cv_path_EGREP"
  4379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4380. $as_echo_n "checking for fgrep... " >&6; }
  4381. if test "${ac_cv_path_FGREP+set}" = set; then :
  4382. $as_echo_n "(cached) " >&6
  4383. else
  4384. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4385. then ac_cv_path_FGREP="$GREP -F"
  4386. else
  4387. if test -z "$FGREP"; then
  4388. ac_path_FGREP_found=false
  4389. # Loop through the user's path and test for each of PROGNAME-LIST
  4390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4391. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4392. do
  4393. IFS=$as_save_IFS
  4394. test -z "$as_dir" && as_dir=.
  4395. for ac_prog in fgrep; do
  4396. for ac_exec_ext in '' $ac_executable_extensions; do
  4397. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4398. { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  4399. # Check for GNU ac_path_FGREP and select it if it is found.
  4400. # Check for GNU $ac_path_FGREP
  4401. case `"$ac_path_FGREP" --version 2>&1` in
  4402. *GNU*)
  4403. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4404. *)
  4405. ac_count=0
  4406. $as_echo_n 0123456789 >"conftest.in"
  4407. while :
  4408. do
  4409. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4410. mv "conftest.tmp" "conftest.in"
  4411. cp "conftest.in" "conftest.nl"
  4412. $as_echo 'FGREP' >> "conftest.nl"
  4413. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4414. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4415. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4416. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4417. # Best one so far, save it but keep looking for a better one
  4418. ac_cv_path_FGREP="$ac_path_FGREP"
  4419. ac_path_FGREP_max=$ac_count
  4420. fi
  4421. # 10*(2^10) chars as input seems more than enough
  4422. test $ac_count -gt 10 && break
  4423. done
  4424. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4425. esac
  4426. $ac_path_FGREP_found && break 3
  4427. done
  4428. done
  4429. done
  4430. IFS=$as_save_IFS
  4431. if test -z "$ac_cv_path_FGREP"; then
  4432. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4433. fi
  4434. else
  4435. ac_cv_path_FGREP=$FGREP
  4436. fi
  4437. fi
  4438. fi
  4439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4440. $as_echo "$ac_cv_path_FGREP" >&6; }
  4441. FGREP="$ac_cv_path_FGREP"
  4442. test -z "$GREP" && GREP=grep
  4443. # Check whether --with-gnu-ld was given.
  4444. if test "${with_gnu_ld+set}" = set; then :
  4445. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4446. else
  4447. with_gnu_ld=no
  4448. fi
  4449. ac_prog=ld
  4450. if test "$GCC" = yes; then
  4451. # Check if gcc -print-prog-name=ld gives a path.
  4452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4453. $as_echo_n "checking for ld used by $CC... " >&6; }
  4454. case $host in
  4455. *-*-mingw*)
  4456. # gcc leaves a trailing carriage return which upsets mingw
  4457. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4458. *)
  4459. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4460. esac
  4461. case $ac_prog in
  4462. # Accept absolute paths.
  4463. [\\/]* | ?:[\\/]*)
  4464. re_direlt='/[^/][^/]*/\.\./'
  4465. # Canonicalize the pathname of ld
  4466. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4467. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4468. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4469. done
  4470. test -z "$LD" && LD="$ac_prog"
  4471. ;;
  4472. "")
  4473. # If it fails, then pretend we aren't using GCC.
  4474. ac_prog=ld
  4475. ;;
  4476. *)
  4477. # If it is relative, then search for the first ld in PATH.
  4478. with_gnu_ld=unknown
  4479. ;;
  4480. esac
  4481. elif test "$with_gnu_ld" = yes; then
  4482. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4483. $as_echo_n "checking for GNU ld... " >&6; }
  4484. else
  4485. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4486. $as_echo_n "checking for non-GNU ld... " >&6; }
  4487. fi
  4488. if test "${lt_cv_path_LD+set}" = set; then :
  4489. $as_echo_n "(cached) " >&6
  4490. else
  4491. if test -z "$LD"; then
  4492. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4493. for ac_dir in $PATH; do
  4494. IFS="$lt_save_ifs"
  4495. test -z "$ac_dir" && ac_dir=.
  4496. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4497. lt_cv_path_LD="$ac_dir/$ac_prog"
  4498. # Check to see if the program is GNU ld. I'd rather use --version,
  4499. # but apparently some variants of GNU ld only accept -v.
  4500. # Break only if it was the GNU/non-GNU ld that we prefer.
  4501. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4502. *GNU* | *'with BFD'*)
  4503. test "$with_gnu_ld" != no && break
  4504. ;;
  4505. *)
  4506. test "$with_gnu_ld" != yes && break
  4507. ;;
  4508. esac
  4509. fi
  4510. done
  4511. IFS="$lt_save_ifs"
  4512. else
  4513. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4514. fi
  4515. fi
  4516. LD="$lt_cv_path_LD"
  4517. if test -n "$LD"; then
  4518. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4519. $as_echo "$LD" >&6; }
  4520. else
  4521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4522. $as_echo "no" >&6; }
  4523. fi
  4524. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4526. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4527. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  4528. $as_echo_n "(cached) " >&6
  4529. else
  4530. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4531. case `$LD -v 2>&1 </dev/null` in
  4532. *GNU* | *'with BFD'*)
  4533. lt_cv_prog_gnu_ld=yes
  4534. ;;
  4535. *)
  4536. lt_cv_prog_gnu_ld=no
  4537. ;;
  4538. esac
  4539. fi
  4540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4541. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4542. with_gnu_ld=$lt_cv_prog_gnu_ld
  4543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4544. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4545. if test "${lt_cv_path_NM+set}" = set; then :
  4546. $as_echo_n "(cached) " >&6
  4547. else
  4548. if test -n "$NM"; then
  4549. # Let the user override the test.
  4550. lt_cv_path_NM="$NM"
  4551. else
  4552. lt_nm_to_check="${ac_tool_prefix}nm"
  4553. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4554. lt_nm_to_check="$lt_nm_to_check nm"
  4555. fi
  4556. for lt_tmp_nm in $lt_nm_to_check; do
  4557. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4558. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4559. IFS="$lt_save_ifs"
  4560. test -z "$ac_dir" && ac_dir=.
  4561. tmp_nm="$ac_dir/$lt_tmp_nm"
  4562. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4563. # Check to see if the nm accepts a BSD-compat flag.
  4564. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4565. # nm: unknown option "B" ignored
  4566. # Tru64's nm complains that /dev/null is an invalid object file
  4567. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4568. */dev/null* | *'Invalid file or object type'*)
  4569. lt_cv_path_NM="$tmp_nm -B"
  4570. break
  4571. ;;
  4572. *)
  4573. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4574. */dev/null*)
  4575. lt_cv_path_NM="$tmp_nm -p"
  4576. break
  4577. ;;
  4578. *)
  4579. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4580. continue # so that we can try to find one that supports BSD flags
  4581. ;;
  4582. esac
  4583. ;;
  4584. esac
  4585. fi
  4586. done
  4587. IFS="$lt_save_ifs"
  4588. done
  4589. : ${lt_cv_path_NM=no}
  4590. fi
  4591. fi
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4593. $as_echo "$lt_cv_path_NM" >&6; }
  4594. if test "$lt_cv_path_NM" != "no"; then
  4595. NM="$lt_cv_path_NM"
  4596. else
  4597. # Didn't find any BSD compatible name lister, look for dumpbin.
  4598. if test -n "$ac_tool_prefix"; then
  4599. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4600. do
  4601. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4602. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4603. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4604. $as_echo_n "checking for $ac_word... " >&6; }
  4605. if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  4606. $as_echo_n "(cached) " >&6
  4607. else
  4608. if test -n "$DUMPBIN"; then
  4609. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4610. else
  4611. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4612. for as_dir in $PATH
  4613. do
  4614. IFS=$as_save_IFS
  4615. test -z "$as_dir" && as_dir=.
  4616. for ac_exec_ext in '' $ac_executable_extensions; do
  4617. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4618. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4619. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4620. break 2
  4621. fi
  4622. done
  4623. done
  4624. IFS=$as_save_IFS
  4625. fi
  4626. fi
  4627. DUMPBIN=$ac_cv_prog_DUMPBIN
  4628. if test -n "$DUMPBIN"; then
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4630. $as_echo "$DUMPBIN" >&6; }
  4631. else
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4633. $as_echo "no" >&6; }
  4634. fi
  4635. test -n "$DUMPBIN" && break
  4636. done
  4637. fi
  4638. if test -z "$DUMPBIN"; then
  4639. ac_ct_DUMPBIN=$DUMPBIN
  4640. for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  4641. do
  4642. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4643. set dummy $ac_prog; ac_word=$2
  4644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4645. $as_echo_n "checking for $ac_word... " >&6; }
  4646. if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  4647. $as_echo_n "(cached) " >&6
  4648. else
  4649. if test -n "$ac_ct_DUMPBIN"; then
  4650. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4651. else
  4652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4653. for as_dir in $PATH
  4654. do
  4655. IFS=$as_save_IFS
  4656. test -z "$as_dir" && as_dir=.
  4657. for ac_exec_ext in '' $ac_executable_extensions; do
  4658. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4659. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4661. break 2
  4662. fi
  4663. done
  4664. done
  4665. IFS=$as_save_IFS
  4666. fi
  4667. fi
  4668. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4669. if test -n "$ac_ct_DUMPBIN"; then
  4670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4671. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4672. else
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4674. $as_echo "no" >&6; }
  4675. fi
  4676. test -n "$ac_ct_DUMPBIN" && break
  4677. done
  4678. if test "x$ac_ct_DUMPBIN" = x; then
  4679. DUMPBIN=":"
  4680. else
  4681. case $cross_compiling:$ac_tool_warned in
  4682. yes:)
  4683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4684. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4685. ac_tool_warned=yes ;;
  4686. esac
  4687. DUMPBIN=$ac_ct_DUMPBIN
  4688. fi
  4689. fi
  4690. if test "$DUMPBIN" != ":"; then
  4691. NM="$DUMPBIN"
  4692. fi
  4693. fi
  4694. test -z "$NM" && NM=nm
  4695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4696. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4697. if test "${lt_cv_nm_interface+set}" = set; then :
  4698. $as_echo_n "(cached) " >&6
  4699. else
  4700. lt_cv_nm_interface="BSD nm"
  4701. echo "int some_variable = 0;" > conftest.$ac_ext
  4702. (eval echo "\"\$as_me:5217: $ac_compile\"" >&5)
  4703. (eval "$ac_compile" 2>conftest.err)
  4704. cat conftest.err >&5
  4705. (eval echo "\"\$as_me:5220: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4706. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4707. cat conftest.err >&5
  4708. (eval echo "\"\$as_me:5223: output\"" >&5)
  4709. cat conftest.out >&5
  4710. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4711. lt_cv_nm_interface="MS dumpbin"
  4712. fi
  4713. rm -f conftest*
  4714. fi
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4716. $as_echo "$lt_cv_nm_interface" >&6; }
  4717. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4718. $as_echo_n "checking whether ln -s works... " >&6; }
  4719. LN_S=$as_ln_s
  4720. if test "$LN_S" = "ln -s"; then
  4721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4722. $as_echo "yes" >&6; }
  4723. else
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4725. $as_echo "no, using $LN_S" >&6; }
  4726. fi
  4727. # find the maximum length of command line arguments
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4729. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4730. if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  4731. $as_echo_n "(cached) " >&6
  4732. else
  4733. i=0
  4734. teststring="ABCD"
  4735. case $build_os in
  4736. msdosdjgpp*)
  4737. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4738. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4739. # during glob expansion). Even if it were fixed, the result of this
  4740. # check would be larger than it should be.
  4741. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4742. ;;
  4743. gnu*)
  4744. # Under GNU Hurd, this test is not required because there is
  4745. # no limit to the length of command line arguments.
  4746. # Libtool will interpret -1 as no limit whatsoever
  4747. lt_cv_sys_max_cmd_len=-1;
  4748. ;;
  4749. cygwin* | mingw* | cegcc*)
  4750. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4751. # about 5 minutes as the teststring grows exponentially.
  4752. # Worse, since 9x/ME are not pre-emptively multitasking,
  4753. # you end up with a "frozen" computer, even though with patience
  4754. # the test eventually succeeds (with a max line length of 256k).
  4755. # Instead, let's just punt: use the minimum linelength reported by
  4756. # all of the supported platforms: 8192 (on NT/2K/XP).
  4757. lt_cv_sys_max_cmd_len=8192;
  4758. ;;
  4759. amigaos*)
  4760. # On AmigaOS with pdksh, this test takes hours, literally.
  4761. # So we just punt and use a minimum line length of 8192.
  4762. lt_cv_sys_max_cmd_len=8192;
  4763. ;;
  4764. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4765. # This has been around since 386BSD, at least. Likely further.
  4766. if test -x /sbin/sysctl; then
  4767. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4768. elif test -x /usr/sbin/sysctl; then
  4769. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4770. else
  4771. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4772. fi
  4773. # And add a safety zone
  4774. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4775. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4776. ;;
  4777. interix*)
  4778. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4779. lt_cv_sys_max_cmd_len=196608
  4780. ;;
  4781. osf*)
  4782. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4783. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4784. # nice to cause kernel panics so lets avoid the loop below.
  4785. # First set a reasonable default.
  4786. lt_cv_sys_max_cmd_len=16384
  4787. #
  4788. if test -x /sbin/sysconfig; then
  4789. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4790. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4791. esac
  4792. fi
  4793. ;;
  4794. sco3.2v5*)
  4795. lt_cv_sys_max_cmd_len=102400
  4796. ;;
  4797. sysv5* | sco5v6* | sysv4.2uw2*)
  4798. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4799. if test -n "$kargmax"; then
  4800. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4801. else
  4802. lt_cv_sys_max_cmd_len=32768
  4803. fi
  4804. ;;
  4805. *)
  4806. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4807. if test -n "$lt_cv_sys_max_cmd_len"; then
  4808. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4809. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4810. else
  4811. # Make teststring a little bigger before we do anything with it.
  4812. # a 1K string should be a reasonable start.
  4813. for i in 1 2 3 4 5 6 7 8 ; do
  4814. teststring=$teststring$teststring
  4815. done
  4816. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4817. # If test is not a shell built-in, we'll probably end up computing a
  4818. # maximum length that is only half of the actual maximum length, but
  4819. # we can't tell.
  4820. while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  4821. = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  4822. test $i != 17 # 1/2 MB should be enough
  4823. do
  4824. i=`expr $i + 1`
  4825. teststring=$teststring$teststring
  4826. done
  4827. # Only check the string length outside the loop.
  4828. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4829. teststring=
  4830. # Add a significant safety factor because C++ compilers can tack on
  4831. # massive amounts of additional arguments before passing them to the
  4832. # linker. It appears as though 1/2 is a usable value.
  4833. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4834. fi
  4835. ;;
  4836. esac
  4837. fi
  4838. if test -n $lt_cv_sys_max_cmd_len ; then
  4839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4840. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4841. else
  4842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4843. $as_echo "none" >&6; }
  4844. fi
  4845. max_cmd_len=$lt_cv_sys_max_cmd_len
  4846. : ${CP="cp -f"}
  4847. : ${MV="mv -f"}
  4848. : ${RM="rm -f"}
  4849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4850. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4851. # Try some XSI features
  4852. xsi_shell=no
  4853. ( _lt_dummy="a/b/c"
  4854. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4855. = c,a/b,, \
  4856. && eval 'test $(( 1 + 1 )) -eq 2 \
  4857. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4858. && xsi_shell=yes
  4859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4860. $as_echo "$xsi_shell" >&6; }
  4861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4862. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4863. lt_shell_append=no
  4864. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4865. >/dev/null 2>&1 \
  4866. && lt_shell_append=yes
  4867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4868. $as_echo "$lt_shell_append" >&6; }
  4869. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4870. lt_unset=unset
  4871. else
  4872. lt_unset=false
  4873. fi
  4874. # test EBCDIC or ASCII
  4875. case `echo X|tr X '\101'` in
  4876. A) # ASCII based system
  4877. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4878. lt_SP2NL='tr \040 \012'
  4879. lt_NL2SP='tr \015\012 \040\040'
  4880. ;;
  4881. *) # EBCDIC based system
  4882. lt_SP2NL='tr \100 \n'
  4883. lt_NL2SP='tr \r\n \100\100'
  4884. ;;
  4885. esac
  4886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4887. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4888. if test "${lt_cv_ld_reload_flag+set}" = set; then :
  4889. $as_echo_n "(cached) " >&6
  4890. else
  4891. lt_cv_ld_reload_flag='-r'
  4892. fi
  4893. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4894. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4895. reload_flag=$lt_cv_ld_reload_flag
  4896. case $reload_flag in
  4897. "" | " "*) ;;
  4898. *) reload_flag=" $reload_flag" ;;
  4899. esac
  4900. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4901. case $host_os in
  4902. darwin*)
  4903. if test "$GCC" = yes; then
  4904. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4905. else
  4906. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4907. fi
  4908. ;;
  4909. esac
  4910. if test -n "$ac_tool_prefix"; then
  4911. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4912. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4914. $as_echo_n "checking for $ac_word... " >&6; }
  4915. if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  4916. $as_echo_n "(cached) " >&6
  4917. else
  4918. if test -n "$OBJDUMP"; then
  4919. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4920. else
  4921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4922. for as_dir in $PATH
  4923. do
  4924. IFS=$as_save_IFS
  4925. test -z "$as_dir" && as_dir=.
  4926. for ac_exec_ext in '' $ac_executable_extensions; do
  4927. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4928. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4930. break 2
  4931. fi
  4932. done
  4933. done
  4934. IFS=$as_save_IFS
  4935. fi
  4936. fi
  4937. OBJDUMP=$ac_cv_prog_OBJDUMP
  4938. if test -n "$OBJDUMP"; then
  4939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4940. $as_echo "$OBJDUMP" >&6; }
  4941. else
  4942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4943. $as_echo "no" >&6; }
  4944. fi
  4945. fi
  4946. if test -z "$ac_cv_prog_OBJDUMP"; then
  4947. ac_ct_OBJDUMP=$OBJDUMP
  4948. # Extract the first word of "objdump", so it can be a program name with args.
  4949. set dummy objdump; ac_word=$2
  4950. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4951. $as_echo_n "checking for $ac_word... " >&6; }
  4952. if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  4953. $as_echo_n "(cached) " >&6
  4954. else
  4955. if test -n "$ac_ct_OBJDUMP"; then
  4956. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4957. else
  4958. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4959. for as_dir in $PATH
  4960. do
  4961. IFS=$as_save_IFS
  4962. test -z "$as_dir" && as_dir=.
  4963. for ac_exec_ext in '' $ac_executable_extensions; do
  4964. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4965. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4966. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4967. break 2
  4968. fi
  4969. done
  4970. done
  4971. IFS=$as_save_IFS
  4972. fi
  4973. fi
  4974. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4975. if test -n "$ac_ct_OBJDUMP"; then
  4976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4977. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4978. else
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4980. $as_echo "no" >&6; }
  4981. fi
  4982. if test "x$ac_ct_OBJDUMP" = x; then
  4983. OBJDUMP="false"
  4984. else
  4985. case $cross_compiling:$ac_tool_warned in
  4986. yes:)
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4988. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4989. ac_tool_warned=yes ;;
  4990. esac
  4991. OBJDUMP=$ac_ct_OBJDUMP
  4992. fi
  4993. else
  4994. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4995. fi
  4996. test -z "$OBJDUMP" && OBJDUMP=objdump
  4997. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4998. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4999. if test "${lt_cv_deplibs_check_method+set}" = set; then :
  5000. $as_echo_n "(cached) " >&6
  5001. else
  5002. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5003. lt_cv_file_magic_test_file=
  5004. lt_cv_deplibs_check_method='unknown'
  5005. # Need to set the preceding variable on all platforms that support
  5006. # interlibrary dependencies.
  5007. # 'none' -- dependencies not supported.
  5008. # `unknown' -- same as none, but documents that we really don't know.
  5009. # 'pass_all' -- all dependencies passed with no checks.
  5010. # 'test_compile' -- check by making test program.
  5011. # 'file_magic [[regex]]' -- check by looking for files in library path
  5012. # which responds to the $file_magic_cmd with a given extended regex.
  5013. # If you have `file' or equivalent on your system and you're not sure
  5014. # whether `pass_all' will *always* work, you probably want this one.
  5015. case $host_os in
  5016. aix[4-9]*)
  5017. lt_cv_deplibs_check_method=pass_all
  5018. ;;
  5019. beos*)
  5020. lt_cv_deplibs_check_method=pass_all
  5021. ;;
  5022. bsdi[45]*)
  5023. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5024. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5025. lt_cv_file_magic_test_file=/shlib/libc.so
  5026. ;;
  5027. cygwin*)
  5028. # func_win32_libid is a shell function defined in ltmain.sh
  5029. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5030. lt_cv_file_magic_cmd='func_win32_libid'
  5031. ;;
  5032. mingw* | pw32*)
  5033. # Base MSYS/MinGW do not provide the 'file' command needed by
  5034. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5035. # unless we find 'file', for example because we are cross-compiling.
  5036. if ( file / ) >/dev/null 2>&1; then
  5037. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5038. lt_cv_file_magic_cmd='func_win32_libid'
  5039. else
  5040. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5041. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5042. fi
  5043. ;;
  5044. cegcc)
  5045. # use the weaker test based on 'objdump'. See mingw*.
  5046. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5047. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5048. ;;
  5049. darwin* | rhapsody*)
  5050. lt_cv_deplibs_check_method=pass_all
  5051. ;;
  5052. freebsd* | dragonfly*)
  5053. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5054. case $host_cpu in
  5055. i*86 )
  5056. # Not sure whether the presence of OpenBSD here was a mistake.
  5057. # Let's accept both of them until this is cleared up.
  5058. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5059. lt_cv_file_magic_cmd=/usr/bin/file
  5060. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5061. ;;
  5062. esac
  5063. else
  5064. lt_cv_deplibs_check_method=pass_all
  5065. fi
  5066. ;;
  5067. gnu*)
  5068. lt_cv_deplibs_check_method=pass_all
  5069. ;;
  5070. hpux10.20* | hpux11*)
  5071. lt_cv_file_magic_cmd=/usr/bin/file
  5072. case $host_cpu in
  5073. ia64*)
  5074. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5075. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5076. ;;
  5077. hppa*64*)
  5078. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  5079. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5080. ;;
  5081. *)
  5082. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  5083. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5084. ;;
  5085. esac
  5086. ;;
  5087. interix[3-9]*)
  5088. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5089. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5090. ;;
  5091. irix5* | irix6* | nonstopux*)
  5092. case $LD in
  5093. *-32|*"-32 ") libmagic=32-bit;;
  5094. *-n32|*"-n32 ") libmagic=N32;;
  5095. *-64|*"-64 ") libmagic=64-bit;;
  5096. *) libmagic=never-match;;
  5097. esac
  5098. lt_cv_deplibs_check_method=pass_all
  5099. ;;
  5100. # This must be Linux ELF.
  5101. linux* | k*bsd*-gnu)
  5102. lt_cv_deplibs_check_method=pass_all
  5103. ;;
  5104. netbsd* | netbsdelf*-gnu)
  5105. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5106. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5107. else
  5108. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5109. fi
  5110. ;;
  5111. newos6*)
  5112. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5113. lt_cv_file_magic_cmd=/usr/bin/file
  5114. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5115. ;;
  5116. *nto* | *qnx*)
  5117. lt_cv_deplibs_check_method=pass_all
  5118. ;;
  5119. openbsd*)
  5120. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5121. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5122. else
  5123. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5124. fi
  5125. ;;
  5126. osf3* | osf4* | osf5*)
  5127. lt_cv_deplibs_check_method=pass_all
  5128. ;;
  5129. rdos*)
  5130. lt_cv_deplibs_check_method=pass_all
  5131. ;;
  5132. solaris*)
  5133. lt_cv_deplibs_check_method=pass_all
  5134. ;;
  5135. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5136. lt_cv_deplibs_check_method=pass_all
  5137. ;;
  5138. sysv4 | sysv4.3*)
  5139. case $host_vendor in
  5140. motorola)
  5141. 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]'
  5142. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5143. ;;
  5144. ncr)
  5145. lt_cv_deplibs_check_method=pass_all
  5146. ;;
  5147. sequent)
  5148. lt_cv_file_magic_cmd='/bin/file'
  5149. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5150. ;;
  5151. sni)
  5152. lt_cv_file_magic_cmd='/bin/file'
  5153. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5154. lt_cv_file_magic_test_file=/lib/libc.so
  5155. ;;
  5156. siemens)
  5157. lt_cv_deplibs_check_method=pass_all
  5158. ;;
  5159. pc)
  5160. lt_cv_deplibs_check_method=pass_all
  5161. ;;
  5162. esac
  5163. ;;
  5164. tpf*)
  5165. lt_cv_deplibs_check_method=pass_all
  5166. ;;
  5167. esac
  5168. fi
  5169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5170. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5171. file_magic_cmd=$lt_cv_file_magic_cmd
  5172. deplibs_check_method=$lt_cv_deplibs_check_method
  5173. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5174. if test -n "$ac_tool_prefix"; then
  5175. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  5176. set dummy ${ac_tool_prefix}ar; ac_word=$2
  5177. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5178. $as_echo_n "checking for $ac_word... " >&6; }
  5179. if test "${ac_cv_prog_AR+set}" = set; then :
  5180. $as_echo_n "(cached) " >&6
  5181. else
  5182. if test -n "$AR"; then
  5183. ac_cv_prog_AR="$AR" # Let the user override the test.
  5184. else
  5185. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5186. for as_dir in $PATH
  5187. do
  5188. IFS=$as_save_IFS
  5189. test -z "$as_dir" && as_dir=.
  5190. for ac_exec_ext in '' $ac_executable_extensions; do
  5191. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5192. ac_cv_prog_AR="${ac_tool_prefix}ar"
  5193. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5194. break 2
  5195. fi
  5196. done
  5197. done
  5198. IFS=$as_save_IFS
  5199. fi
  5200. fi
  5201. AR=$ac_cv_prog_AR
  5202. if test -n "$AR"; then
  5203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5204. $as_echo "$AR" >&6; }
  5205. else
  5206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5207. $as_echo "no" >&6; }
  5208. fi
  5209. fi
  5210. if test -z "$ac_cv_prog_AR"; then
  5211. ac_ct_AR=$AR
  5212. # Extract the first word of "ar", so it can be a program name with args.
  5213. set dummy ar; ac_word=$2
  5214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5215. $as_echo_n "checking for $ac_word... " >&6; }
  5216. if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  5217. $as_echo_n "(cached) " >&6
  5218. else
  5219. if test -n "$ac_ct_AR"; then
  5220. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5221. else
  5222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5223. for as_dir in $PATH
  5224. do
  5225. IFS=$as_save_IFS
  5226. test -z "$as_dir" && as_dir=.
  5227. for ac_exec_ext in '' $ac_executable_extensions; do
  5228. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5229. ac_cv_prog_ac_ct_AR="ar"
  5230. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5231. break 2
  5232. fi
  5233. done
  5234. done
  5235. IFS=$as_save_IFS
  5236. fi
  5237. fi
  5238. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5239. if test -n "$ac_ct_AR"; then
  5240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5241. $as_echo "$ac_ct_AR" >&6; }
  5242. else
  5243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5244. $as_echo "no" >&6; }
  5245. fi
  5246. if test "x$ac_ct_AR" = x; then
  5247. AR="false"
  5248. else
  5249. case $cross_compiling:$ac_tool_warned in
  5250. yes:)
  5251. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5252. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5253. ac_tool_warned=yes ;;
  5254. esac
  5255. AR=$ac_ct_AR
  5256. fi
  5257. else
  5258. AR="$ac_cv_prog_AR"
  5259. fi
  5260. test -z "$AR" && AR=ar
  5261. test -z "$AR_FLAGS" && AR_FLAGS=cru
  5262. if test -n "$ac_tool_prefix"; then
  5263. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5264. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5266. $as_echo_n "checking for $ac_word... " >&6; }
  5267. if test "${ac_cv_prog_STRIP+set}" = set; then :
  5268. $as_echo_n "(cached) " >&6
  5269. else
  5270. if test -n "$STRIP"; then
  5271. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5272. else
  5273. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5274. for as_dir in $PATH
  5275. do
  5276. IFS=$as_save_IFS
  5277. test -z "$as_dir" && as_dir=.
  5278. for ac_exec_ext in '' $ac_executable_extensions; do
  5279. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5280. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5281. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5282. break 2
  5283. fi
  5284. done
  5285. done
  5286. IFS=$as_save_IFS
  5287. fi
  5288. fi
  5289. STRIP=$ac_cv_prog_STRIP
  5290. if test -n "$STRIP"; then
  5291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5292. $as_echo "$STRIP" >&6; }
  5293. else
  5294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5295. $as_echo "no" >&6; }
  5296. fi
  5297. fi
  5298. if test -z "$ac_cv_prog_STRIP"; then
  5299. ac_ct_STRIP=$STRIP
  5300. # Extract the first word of "strip", so it can be a program name with args.
  5301. set dummy strip; ac_word=$2
  5302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5303. $as_echo_n "checking for $ac_word... " >&6; }
  5304. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  5305. $as_echo_n "(cached) " >&6
  5306. else
  5307. if test -n "$ac_ct_STRIP"; then
  5308. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5309. else
  5310. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5311. for as_dir in $PATH
  5312. do
  5313. IFS=$as_save_IFS
  5314. test -z "$as_dir" && as_dir=.
  5315. for ac_exec_ext in '' $ac_executable_extensions; do
  5316. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5317. ac_cv_prog_ac_ct_STRIP="strip"
  5318. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5319. break 2
  5320. fi
  5321. done
  5322. done
  5323. IFS=$as_save_IFS
  5324. fi
  5325. fi
  5326. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5327. if test -n "$ac_ct_STRIP"; then
  5328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5329. $as_echo "$ac_ct_STRIP" >&6; }
  5330. else
  5331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5332. $as_echo "no" >&6; }
  5333. fi
  5334. if test "x$ac_ct_STRIP" = x; then
  5335. STRIP=":"
  5336. else
  5337. case $cross_compiling:$ac_tool_warned in
  5338. yes:)
  5339. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5340. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5341. ac_tool_warned=yes ;;
  5342. esac
  5343. STRIP=$ac_ct_STRIP
  5344. fi
  5345. else
  5346. STRIP="$ac_cv_prog_STRIP"
  5347. fi
  5348. test -z "$STRIP" && STRIP=:
  5349. if test -n "$ac_tool_prefix"; then
  5350. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5351. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5353. $as_echo_n "checking for $ac_word... " >&6; }
  5354. if test "${ac_cv_prog_RANLIB+set}" = set; then :
  5355. $as_echo_n "(cached) " >&6
  5356. else
  5357. if test -n "$RANLIB"; then
  5358. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5359. else
  5360. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5361. for as_dir in $PATH
  5362. do
  5363. IFS=$as_save_IFS
  5364. test -z "$as_dir" && as_dir=.
  5365. for ac_exec_ext in '' $ac_executable_extensions; do
  5366. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5367. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5368. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5369. break 2
  5370. fi
  5371. done
  5372. done
  5373. IFS=$as_save_IFS
  5374. fi
  5375. fi
  5376. RANLIB=$ac_cv_prog_RANLIB
  5377. if test -n "$RANLIB"; then
  5378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5379. $as_echo "$RANLIB" >&6; }
  5380. else
  5381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5382. $as_echo "no" >&6; }
  5383. fi
  5384. fi
  5385. if test -z "$ac_cv_prog_RANLIB"; then
  5386. ac_ct_RANLIB=$RANLIB
  5387. # Extract the first word of "ranlib", so it can be a program name with args.
  5388. set dummy ranlib; ac_word=$2
  5389. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5390. $as_echo_n "checking for $ac_word... " >&6; }
  5391. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  5392. $as_echo_n "(cached) " >&6
  5393. else
  5394. if test -n "$ac_ct_RANLIB"; then
  5395. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5396. else
  5397. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5398. for as_dir in $PATH
  5399. do
  5400. IFS=$as_save_IFS
  5401. test -z "$as_dir" && as_dir=.
  5402. for ac_exec_ext in '' $ac_executable_extensions; do
  5403. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5404. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5405. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5406. break 2
  5407. fi
  5408. done
  5409. done
  5410. IFS=$as_save_IFS
  5411. fi
  5412. fi
  5413. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5414. if test -n "$ac_ct_RANLIB"; then
  5415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5416. $as_echo "$ac_ct_RANLIB" >&6; }
  5417. else
  5418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5419. $as_echo "no" >&6; }
  5420. fi
  5421. if test "x$ac_ct_RANLIB" = x; then
  5422. RANLIB=":"
  5423. else
  5424. case $cross_compiling:$ac_tool_warned in
  5425. yes:)
  5426. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5427. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5428. ac_tool_warned=yes ;;
  5429. esac
  5430. RANLIB=$ac_ct_RANLIB
  5431. fi
  5432. else
  5433. RANLIB="$ac_cv_prog_RANLIB"
  5434. fi
  5435. test -z "$RANLIB" && RANLIB=:
  5436. # Determine commands to create old-style static archives.
  5437. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5438. old_postinstall_cmds='chmod 644 $oldlib'
  5439. old_postuninstall_cmds=
  5440. if test -n "$RANLIB"; then
  5441. case $host_os in
  5442. openbsd*)
  5443. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5444. ;;
  5445. *)
  5446. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5447. ;;
  5448. esac
  5449. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5450. fi
  5451. # If no C compiler was specified, use CC.
  5452. LTCC=${LTCC-"$CC"}
  5453. # If no C compiler flags were specified, use CFLAGS.
  5454. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5455. # Allow CC to be a program name with arguments.
  5456. compiler=$CC
  5457. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5458. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5459. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5460. if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  5461. $as_echo_n "(cached) " >&6
  5462. else
  5463. # These are sane defaults that work on at least a few old systems.
  5464. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5465. # Character class describing NM global symbol codes.
  5466. symcode='[BCDEGRST]'
  5467. # Regexp to match symbols that can be accessed directly from C.
  5468. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5469. # Define system-specific variables.
  5470. case $host_os in
  5471. aix*)
  5472. symcode='[BCDT]'
  5473. ;;
  5474. cygwin* | mingw* | pw32* | cegcc*)
  5475. symcode='[ABCDGISTW]'
  5476. ;;
  5477. hpux*)
  5478. if test "$host_cpu" = ia64; then
  5479. symcode='[ABCDEGRST]'
  5480. fi
  5481. ;;
  5482. irix* | nonstopux*)
  5483. symcode='[BCDEGRST]'
  5484. ;;
  5485. osf*)
  5486. symcode='[BCDEGQRST]'
  5487. ;;
  5488. solaris*)
  5489. symcode='[BDRT]'
  5490. ;;
  5491. sco3.2v5*)
  5492. symcode='[DT]'
  5493. ;;
  5494. sysv4.2uw2*)
  5495. symcode='[DT]'
  5496. ;;
  5497. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5498. symcode='[ABDT]'
  5499. ;;
  5500. sysv4)
  5501. symcode='[DFNSTU]'
  5502. ;;
  5503. esac
  5504. # If we're using GNU nm, then use its standard symbol codes.
  5505. case `$NM -V 2>&1` in
  5506. *GNU* | *'with BFD'*)
  5507. symcode='[ABCDGIRSTW]' ;;
  5508. esac
  5509. # Transform an extracted symbol line into a proper C declaration.
  5510. # Some systems (esp. on ia64) link data and code symbols differently,
  5511. # so use this general approach.
  5512. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5513. # Transform an extracted symbol line into symbol name and symbol address
  5514. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5515. 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'"
  5516. # Handle CRLF in mingw tool chain
  5517. opt_cr=
  5518. case $build_os in
  5519. mingw*)
  5520. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5521. ;;
  5522. esac
  5523. # Try without a prefix underscore, then with it.
  5524. for ac_symprfx in "" "_"; do
  5525. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5526. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5527. # Write the raw and C identifiers.
  5528. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5529. # Fake it for dumpbin and say T for any non-static function
  5530. # and D for any global variable.
  5531. # Also find C++ and __fastcall symbols from MSVC++,
  5532. # which start with @ or ?.
  5533. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5534. " {last_section=section; section=\$ 3};"\
  5535. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5536. " \$ 0!~/External *\|/{next};"\
  5537. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5538. " {if(hide[section]) next};"\
  5539. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5540. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5541. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5542. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5543. " ' prfx=^$ac_symprfx"
  5544. else
  5545. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5546. fi
  5547. # Check to see that the pipe works correctly.
  5548. pipe_works=no
  5549. rm -f conftest*
  5550. cat > conftest.$ac_ext <<_LT_EOF
  5551. #ifdef __cplusplus
  5552. extern "C" {
  5553. #endif
  5554. char nm_test_var;
  5555. void nm_test_func(void);
  5556. void nm_test_func(void){}
  5557. #ifdef __cplusplus
  5558. }
  5559. #endif
  5560. int main(){nm_test_var='a';nm_test_func();return(0);}
  5561. _LT_EOF
  5562. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5563. (eval $ac_compile) 2>&5
  5564. ac_status=$?
  5565. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5566. test $ac_status = 0; }; then
  5567. # Now try to grab the symbols.
  5568. nlist=conftest.nm
  5569. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  5570. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  5571. ac_status=$?
  5572. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5573. test $ac_status = 0; } && test -s "$nlist"; then
  5574. # Try sorting and uniquifying the output.
  5575. if sort "$nlist" | uniq > "$nlist"T; then
  5576. mv -f "$nlist"T "$nlist"
  5577. else
  5578. rm -f "$nlist"T
  5579. fi
  5580. # Make sure that we snagged all the symbols we need.
  5581. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5582. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5583. cat <<_LT_EOF > conftest.$ac_ext
  5584. #ifdef __cplusplus
  5585. extern "C" {
  5586. #endif
  5587. _LT_EOF
  5588. # Now generate the symbol file.
  5589. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5590. cat <<_LT_EOF >> conftest.$ac_ext
  5591. /* The mapping between symbol names and symbols. */
  5592. const struct {
  5593. const char *name;
  5594. void *address;
  5595. }
  5596. lt__PROGRAM__LTX_preloaded_symbols[] =
  5597. {
  5598. { "@PROGRAM@", (void *) 0 },
  5599. _LT_EOF
  5600. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5601. cat <<\_LT_EOF >> conftest.$ac_ext
  5602. {0, (void *) 0}
  5603. };
  5604. /* This works around a problem in FreeBSD linker */
  5605. #ifdef FREEBSD_WORKAROUND
  5606. static const void *lt_preloaded_setup() {
  5607. return lt__PROGRAM__LTX_preloaded_symbols;
  5608. }
  5609. #endif
  5610. #ifdef __cplusplus
  5611. }
  5612. #endif
  5613. _LT_EOF
  5614. # Now try linking the two files.
  5615. mv conftest.$ac_objext conftstm.$ac_objext
  5616. lt_save_LIBS="$LIBS"
  5617. lt_save_CFLAGS="$CFLAGS"
  5618. LIBS="conftstm.$ac_objext"
  5619. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5620. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5621. (eval $ac_link) 2>&5
  5622. ac_status=$?
  5623. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5624. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5625. pipe_works=yes
  5626. fi
  5627. LIBS="$lt_save_LIBS"
  5628. CFLAGS="$lt_save_CFLAGS"
  5629. else
  5630. echo "cannot find nm_test_func in $nlist" >&5
  5631. fi
  5632. else
  5633. echo "cannot find nm_test_var in $nlist" >&5
  5634. fi
  5635. else
  5636. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5637. fi
  5638. else
  5639. echo "$progname: failed program was:" >&5
  5640. cat conftest.$ac_ext >&5
  5641. fi
  5642. rm -rf conftest* conftst*
  5643. # Do not use the global_symbol_pipe unless it works.
  5644. if test "$pipe_works" = yes; then
  5645. break
  5646. else
  5647. lt_cv_sys_global_symbol_pipe=
  5648. fi
  5649. done
  5650. fi
  5651. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5652. lt_cv_sys_global_symbol_to_cdecl=
  5653. fi
  5654. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5656. $as_echo "failed" >&6; }
  5657. else
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5659. $as_echo "ok" >&6; }
  5660. fi
  5661. # Check whether --enable-libtool-lock was given.
  5662. if test "${enable_libtool_lock+set}" = set; then :
  5663. enableval=$enable_libtool_lock;
  5664. fi
  5665. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5666. # Some flags need to be propagated to the compiler or linker for good
  5667. # libtool support.
  5668. case $host in
  5669. ia64-*-hpux*)
  5670. # Find out which ABI we are using.
  5671. echo 'int i;' > conftest.$ac_ext
  5672. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5673. (eval $ac_compile) 2>&5
  5674. ac_status=$?
  5675. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5676. test $ac_status = 0; }; then
  5677. case `/usr/bin/file conftest.$ac_objext` in
  5678. *ELF-32*)
  5679. HPUX_IA64_MODE="32"
  5680. ;;
  5681. *ELF-64*)
  5682. HPUX_IA64_MODE="64"
  5683. ;;
  5684. esac
  5685. fi
  5686. rm -rf conftest*
  5687. ;;
  5688. *-*-irix6*)
  5689. # Find out which ABI we are using.
  5690. echo '#line 6429 "configure"' > conftest.$ac_ext
  5691. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5692. (eval $ac_compile) 2>&5
  5693. ac_status=$?
  5694. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5695. test $ac_status = 0; }; then
  5696. if test "$lt_cv_prog_gnu_ld" = yes; then
  5697. case `/usr/bin/file conftest.$ac_objext` in
  5698. *32-bit*)
  5699. LD="${LD-ld} -melf32bsmip"
  5700. ;;
  5701. *N32*)
  5702. LD="${LD-ld} -melf32bmipn32"
  5703. ;;
  5704. *64-bit*)
  5705. LD="${LD-ld} -melf64bmip"
  5706. ;;
  5707. esac
  5708. else
  5709. case `/usr/bin/file conftest.$ac_objext` in
  5710. *32-bit*)
  5711. LD="${LD-ld} -32"
  5712. ;;
  5713. *N32*)
  5714. LD="${LD-ld} -n32"
  5715. ;;
  5716. *64-bit*)
  5717. LD="${LD-ld} -64"
  5718. ;;
  5719. esac
  5720. fi
  5721. fi
  5722. rm -rf conftest*
  5723. ;;
  5724. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5725. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5726. # Find out which ABI we are using.
  5727. echo 'int i;' > conftest.$ac_ext
  5728. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5729. (eval $ac_compile) 2>&5
  5730. ac_status=$?
  5731. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5732. test $ac_status = 0; }; then
  5733. case `/usr/bin/file conftest.o` in
  5734. *32-bit*)
  5735. case $host in
  5736. x86_64-*kfreebsd*-gnu)
  5737. LD="${LD-ld} -m elf_i386_fbsd"
  5738. ;;
  5739. x86_64-*linux*)
  5740. LD="${LD-ld} -m elf_i386"
  5741. ;;
  5742. ppc64-*linux*|powerpc64-*linux*)
  5743. LD="${LD-ld} -m elf32ppclinux"
  5744. ;;
  5745. s390x-*linux*)
  5746. LD="${LD-ld} -m elf_s390"
  5747. ;;
  5748. sparc64-*linux*)
  5749. LD="${LD-ld} -m elf32_sparc"
  5750. ;;
  5751. esac
  5752. ;;
  5753. *64-bit*)
  5754. case $host in
  5755. x86_64-*kfreebsd*-gnu)
  5756. LD="${LD-ld} -m elf_x86_64_fbsd"
  5757. ;;
  5758. x86_64-*linux*)
  5759. LD="${LD-ld} -m elf_x86_64"
  5760. ;;
  5761. ppc*-*linux*|powerpc*-*linux*)
  5762. LD="${LD-ld} -m elf64ppc"
  5763. ;;
  5764. s390*-*linux*|s390*-*tpf*)
  5765. LD="${LD-ld} -m elf64_s390"
  5766. ;;
  5767. sparc*-*linux*)
  5768. LD="${LD-ld} -m elf64_sparc"
  5769. ;;
  5770. esac
  5771. ;;
  5772. esac
  5773. fi
  5774. rm -rf conftest*
  5775. ;;
  5776. *-*-sco3.2v5*)
  5777. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5778. SAVE_CFLAGS="$CFLAGS"
  5779. CFLAGS="$CFLAGS -belf"
  5780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5781. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5782. if test "${lt_cv_cc_needs_belf+set}" = set; then :
  5783. $as_echo_n "(cached) " >&6
  5784. else
  5785. ac_ext=c
  5786. ac_cpp='$CPP $CPPFLAGS'
  5787. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5788. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5789. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5790. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5791. /* end confdefs.h. */
  5792. int
  5793. main ()
  5794. {
  5795. ;
  5796. return 0;
  5797. }
  5798. _ACEOF
  5799. if ac_fn_c_try_link "$LINENO"; then :
  5800. lt_cv_cc_needs_belf=yes
  5801. else
  5802. lt_cv_cc_needs_belf=no
  5803. fi
  5804. rm -f core conftest.err conftest.$ac_objext \
  5805. conftest$ac_exeext conftest.$ac_ext
  5806. ac_ext=c
  5807. ac_cpp='$CPP $CPPFLAGS'
  5808. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5809. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5810. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5811. fi
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5813. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5814. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5815. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5816. CFLAGS="$SAVE_CFLAGS"
  5817. fi
  5818. ;;
  5819. sparc*-*solaris*)
  5820. # Find out which ABI we are using.
  5821. echo 'int i;' > conftest.$ac_ext
  5822. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5823. (eval $ac_compile) 2>&5
  5824. ac_status=$?
  5825. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5826. test $ac_status = 0; }; then
  5827. case `/usr/bin/file conftest.o` in
  5828. *64-bit*)
  5829. case $lt_cv_prog_gnu_ld in
  5830. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5831. *)
  5832. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5833. LD="${LD-ld} -64"
  5834. fi
  5835. ;;
  5836. esac
  5837. ;;
  5838. esac
  5839. fi
  5840. rm -rf conftest*
  5841. ;;
  5842. esac
  5843. need_locks="$enable_libtool_lock"
  5844. case $host_os in
  5845. rhapsody* | darwin*)
  5846. if test -n "$ac_tool_prefix"; then
  5847. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5848. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5849. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5850. $as_echo_n "checking for $ac_word... " >&6; }
  5851. if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  5852. $as_echo_n "(cached) " >&6
  5853. else
  5854. if test -n "$DSYMUTIL"; then
  5855. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5856. else
  5857. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5858. for as_dir in $PATH
  5859. do
  5860. IFS=$as_save_IFS
  5861. test -z "$as_dir" && as_dir=.
  5862. for ac_exec_ext in '' $ac_executable_extensions; do
  5863. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5864. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5865. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5866. break 2
  5867. fi
  5868. done
  5869. done
  5870. IFS=$as_save_IFS
  5871. fi
  5872. fi
  5873. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5874. if test -n "$DSYMUTIL"; then
  5875. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5876. $as_echo "$DSYMUTIL" >&6; }
  5877. else
  5878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5879. $as_echo "no" >&6; }
  5880. fi
  5881. fi
  5882. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5883. ac_ct_DSYMUTIL=$DSYMUTIL
  5884. # Extract the first word of "dsymutil", so it can be a program name with args.
  5885. set dummy dsymutil; ac_word=$2
  5886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5887. $as_echo_n "checking for $ac_word... " >&6; }
  5888. if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  5889. $as_echo_n "(cached) " >&6
  5890. else
  5891. if test -n "$ac_ct_DSYMUTIL"; then
  5892. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5893. else
  5894. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5895. for as_dir in $PATH
  5896. do
  5897. IFS=$as_save_IFS
  5898. test -z "$as_dir" && as_dir=.
  5899. for ac_exec_ext in '' $ac_executable_extensions; do
  5900. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5901. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5902. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5903. break 2
  5904. fi
  5905. done
  5906. done
  5907. IFS=$as_save_IFS
  5908. fi
  5909. fi
  5910. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5911. if test -n "$ac_ct_DSYMUTIL"; then
  5912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5913. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5914. else
  5915. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5916. $as_echo "no" >&6; }
  5917. fi
  5918. if test "x$ac_ct_DSYMUTIL" = x; then
  5919. DSYMUTIL=":"
  5920. else
  5921. case $cross_compiling:$ac_tool_warned in
  5922. yes:)
  5923. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5924. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5925. ac_tool_warned=yes ;;
  5926. esac
  5927. DSYMUTIL=$ac_ct_DSYMUTIL
  5928. fi
  5929. else
  5930. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5931. fi
  5932. if test -n "$ac_tool_prefix"; then
  5933. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5934. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5936. $as_echo_n "checking for $ac_word... " >&6; }
  5937. if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  5938. $as_echo_n "(cached) " >&6
  5939. else
  5940. if test -n "$NMEDIT"; then
  5941. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5942. else
  5943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5944. for as_dir in $PATH
  5945. do
  5946. IFS=$as_save_IFS
  5947. test -z "$as_dir" && as_dir=.
  5948. for ac_exec_ext in '' $ac_executable_extensions; do
  5949. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5950. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5951. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5952. break 2
  5953. fi
  5954. done
  5955. done
  5956. IFS=$as_save_IFS
  5957. fi
  5958. fi
  5959. NMEDIT=$ac_cv_prog_NMEDIT
  5960. if test -n "$NMEDIT"; then
  5961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5962. $as_echo "$NMEDIT" >&6; }
  5963. else
  5964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5965. $as_echo "no" >&6; }
  5966. fi
  5967. fi
  5968. if test -z "$ac_cv_prog_NMEDIT"; then
  5969. ac_ct_NMEDIT=$NMEDIT
  5970. # Extract the first word of "nmedit", so it can be a program name with args.
  5971. set dummy nmedit; ac_word=$2
  5972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5973. $as_echo_n "checking for $ac_word... " >&6; }
  5974. if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  5975. $as_echo_n "(cached) " >&6
  5976. else
  5977. if test -n "$ac_ct_NMEDIT"; then
  5978. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5979. else
  5980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5981. for as_dir in $PATH
  5982. do
  5983. IFS=$as_save_IFS
  5984. test -z "$as_dir" && as_dir=.
  5985. for ac_exec_ext in '' $ac_executable_extensions; do
  5986. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5987. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5988. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5989. break 2
  5990. fi
  5991. done
  5992. done
  5993. IFS=$as_save_IFS
  5994. fi
  5995. fi
  5996. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5997. if test -n "$ac_ct_NMEDIT"; then
  5998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5999. $as_echo "$ac_ct_NMEDIT" >&6; }
  6000. else
  6001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6002. $as_echo "no" >&6; }
  6003. fi
  6004. if test "x$ac_ct_NMEDIT" = x; then
  6005. NMEDIT=":"
  6006. else
  6007. case $cross_compiling:$ac_tool_warned in
  6008. yes:)
  6009. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6010. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6011. ac_tool_warned=yes ;;
  6012. esac
  6013. NMEDIT=$ac_ct_NMEDIT
  6014. fi
  6015. else
  6016. NMEDIT="$ac_cv_prog_NMEDIT"
  6017. fi
  6018. if test -n "$ac_tool_prefix"; then
  6019. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6020. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6021. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6022. $as_echo_n "checking for $ac_word... " >&6; }
  6023. if test "${ac_cv_prog_LIPO+set}" = set; then :
  6024. $as_echo_n "(cached) " >&6
  6025. else
  6026. if test -n "$LIPO"; then
  6027. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6028. else
  6029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6030. for as_dir in $PATH
  6031. do
  6032. IFS=$as_save_IFS
  6033. test -z "$as_dir" && as_dir=.
  6034. for ac_exec_ext in '' $ac_executable_extensions; do
  6035. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6036. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6037. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6038. break 2
  6039. fi
  6040. done
  6041. done
  6042. IFS=$as_save_IFS
  6043. fi
  6044. fi
  6045. LIPO=$ac_cv_prog_LIPO
  6046. if test -n "$LIPO"; then
  6047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6048. $as_echo "$LIPO" >&6; }
  6049. else
  6050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6051. $as_echo "no" >&6; }
  6052. fi
  6053. fi
  6054. if test -z "$ac_cv_prog_LIPO"; then
  6055. ac_ct_LIPO=$LIPO
  6056. # Extract the first word of "lipo", so it can be a program name with args.
  6057. set dummy lipo; ac_word=$2
  6058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6059. $as_echo_n "checking for $ac_word... " >&6; }
  6060. if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  6061. $as_echo_n "(cached) " >&6
  6062. else
  6063. if test -n "$ac_ct_LIPO"; then
  6064. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6065. else
  6066. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6067. for as_dir in $PATH
  6068. do
  6069. IFS=$as_save_IFS
  6070. test -z "$as_dir" && as_dir=.
  6071. for ac_exec_ext in '' $ac_executable_extensions; do
  6072. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6073. ac_cv_prog_ac_ct_LIPO="lipo"
  6074. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6075. break 2
  6076. fi
  6077. done
  6078. done
  6079. IFS=$as_save_IFS
  6080. fi
  6081. fi
  6082. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6083. if test -n "$ac_ct_LIPO"; then
  6084. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6085. $as_echo "$ac_ct_LIPO" >&6; }
  6086. else
  6087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6088. $as_echo "no" >&6; }
  6089. fi
  6090. if test "x$ac_ct_LIPO" = x; then
  6091. LIPO=":"
  6092. else
  6093. case $cross_compiling:$ac_tool_warned in
  6094. yes:)
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6096. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6097. ac_tool_warned=yes ;;
  6098. esac
  6099. LIPO=$ac_ct_LIPO
  6100. fi
  6101. else
  6102. LIPO="$ac_cv_prog_LIPO"
  6103. fi
  6104. if test -n "$ac_tool_prefix"; then
  6105. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6106. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6107. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6108. $as_echo_n "checking for $ac_word... " >&6; }
  6109. if test "${ac_cv_prog_OTOOL+set}" = set; then :
  6110. $as_echo_n "(cached) " >&6
  6111. else
  6112. if test -n "$OTOOL"; then
  6113. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6114. else
  6115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6116. for as_dir in $PATH
  6117. do
  6118. IFS=$as_save_IFS
  6119. test -z "$as_dir" && as_dir=.
  6120. for ac_exec_ext in '' $ac_executable_extensions; do
  6121. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6122. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6123. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6124. break 2
  6125. fi
  6126. done
  6127. done
  6128. IFS=$as_save_IFS
  6129. fi
  6130. fi
  6131. OTOOL=$ac_cv_prog_OTOOL
  6132. if test -n "$OTOOL"; then
  6133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6134. $as_echo "$OTOOL" >&6; }
  6135. else
  6136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6137. $as_echo "no" >&6; }
  6138. fi
  6139. fi
  6140. if test -z "$ac_cv_prog_OTOOL"; then
  6141. ac_ct_OTOOL=$OTOOL
  6142. # Extract the first word of "otool", so it can be a program name with args.
  6143. set dummy otool; ac_word=$2
  6144. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6145. $as_echo_n "checking for $ac_word... " >&6; }
  6146. if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  6147. $as_echo_n "(cached) " >&6
  6148. else
  6149. if test -n "$ac_ct_OTOOL"; then
  6150. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6151. else
  6152. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6153. for as_dir in $PATH
  6154. do
  6155. IFS=$as_save_IFS
  6156. test -z "$as_dir" && as_dir=.
  6157. for ac_exec_ext in '' $ac_executable_extensions; do
  6158. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6159. ac_cv_prog_ac_ct_OTOOL="otool"
  6160. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6161. break 2
  6162. fi
  6163. done
  6164. done
  6165. IFS=$as_save_IFS
  6166. fi
  6167. fi
  6168. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6169. if test -n "$ac_ct_OTOOL"; then
  6170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6171. $as_echo "$ac_ct_OTOOL" >&6; }
  6172. else
  6173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6174. $as_echo "no" >&6; }
  6175. fi
  6176. if test "x$ac_ct_OTOOL" = x; then
  6177. OTOOL=":"
  6178. else
  6179. case $cross_compiling:$ac_tool_warned in
  6180. yes:)
  6181. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6182. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6183. ac_tool_warned=yes ;;
  6184. esac
  6185. OTOOL=$ac_ct_OTOOL
  6186. fi
  6187. else
  6188. OTOOL="$ac_cv_prog_OTOOL"
  6189. fi
  6190. if test -n "$ac_tool_prefix"; then
  6191. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6192. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6194. $as_echo_n "checking for $ac_word... " >&6; }
  6195. if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  6196. $as_echo_n "(cached) " >&6
  6197. else
  6198. if test -n "$OTOOL64"; then
  6199. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6200. else
  6201. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6202. for as_dir in $PATH
  6203. do
  6204. IFS=$as_save_IFS
  6205. test -z "$as_dir" && as_dir=.
  6206. for ac_exec_ext in '' $ac_executable_extensions; do
  6207. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6208. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6209. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6210. break 2
  6211. fi
  6212. done
  6213. done
  6214. IFS=$as_save_IFS
  6215. fi
  6216. fi
  6217. OTOOL64=$ac_cv_prog_OTOOL64
  6218. if test -n "$OTOOL64"; then
  6219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6220. $as_echo "$OTOOL64" >&6; }
  6221. else
  6222. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6223. $as_echo "no" >&6; }
  6224. fi
  6225. fi
  6226. if test -z "$ac_cv_prog_OTOOL64"; then
  6227. ac_ct_OTOOL64=$OTOOL64
  6228. # Extract the first word of "otool64", so it can be a program name with args.
  6229. set dummy otool64; ac_word=$2
  6230. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6231. $as_echo_n "checking for $ac_word... " >&6; }
  6232. if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  6233. $as_echo_n "(cached) " >&6
  6234. else
  6235. if test -n "$ac_ct_OTOOL64"; then
  6236. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6237. else
  6238. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6239. for as_dir in $PATH
  6240. do
  6241. IFS=$as_save_IFS
  6242. test -z "$as_dir" && as_dir=.
  6243. for ac_exec_ext in '' $ac_executable_extensions; do
  6244. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6245. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6246. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6247. break 2
  6248. fi
  6249. done
  6250. done
  6251. IFS=$as_save_IFS
  6252. fi
  6253. fi
  6254. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6255. if test -n "$ac_ct_OTOOL64"; then
  6256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6257. $as_echo "$ac_ct_OTOOL64" >&6; }
  6258. else
  6259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6260. $as_echo "no" >&6; }
  6261. fi
  6262. if test "x$ac_ct_OTOOL64" = x; then
  6263. OTOOL64=":"
  6264. else
  6265. case $cross_compiling:$ac_tool_warned in
  6266. yes:)
  6267. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6268. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6269. ac_tool_warned=yes ;;
  6270. esac
  6271. OTOOL64=$ac_ct_OTOOL64
  6272. fi
  6273. else
  6274. OTOOL64="$ac_cv_prog_OTOOL64"
  6275. fi
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6277. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6278. if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  6279. $as_echo_n "(cached) " >&6
  6280. else
  6281. lt_cv_apple_cc_single_mod=no
  6282. if test -z "${LT_MULTI_MODULE}"; then
  6283. # By default we will add the -single_module flag. You can override
  6284. # by either setting the environment variable LT_MULTI_MODULE
  6285. # non-empty at configure time, or by adding -multi_module to the
  6286. # link flags.
  6287. rm -rf libconftest.dylib*
  6288. echo "int foo(void){return 1;}" > conftest.c
  6289. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6290. -dynamiclib -Wl,-single_module conftest.c" >&5
  6291. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6292. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6293. _lt_result=$?
  6294. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6295. lt_cv_apple_cc_single_mod=yes
  6296. else
  6297. cat conftest.err >&5
  6298. fi
  6299. rm -rf libconftest.dylib*
  6300. rm -f conftest.*
  6301. fi
  6302. fi
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6304. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6306. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6307. if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  6308. $as_echo_n "(cached) " >&6
  6309. else
  6310. lt_cv_ld_exported_symbols_list=no
  6311. save_LDFLAGS=$LDFLAGS
  6312. echo "_main" > conftest.sym
  6313. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6315. /* end confdefs.h. */
  6316. int
  6317. main ()
  6318. {
  6319. ;
  6320. return 0;
  6321. }
  6322. _ACEOF
  6323. if ac_fn_c_try_link "$LINENO"; then :
  6324. lt_cv_ld_exported_symbols_list=yes
  6325. else
  6326. lt_cv_ld_exported_symbols_list=no
  6327. fi
  6328. rm -f core conftest.err conftest.$ac_objext \
  6329. conftest$ac_exeext conftest.$ac_ext
  6330. LDFLAGS="$save_LDFLAGS"
  6331. fi
  6332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6333. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6334. case $host_os in
  6335. rhapsody* | darwin1.[012])
  6336. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6337. darwin1.*)
  6338. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6339. darwin*) # darwin 5.x on
  6340. # if running on 10.5 or later, the deployment target defaults
  6341. # to the OS version, if on x86, and 10.4, the deployment
  6342. # target defaults to 10.4. Don't you love it?
  6343. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6344. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6345. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6346. 10.[012]*)
  6347. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6348. 10.*)
  6349. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6350. esac
  6351. ;;
  6352. esac
  6353. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6354. _lt_dar_single_mod='$single_module'
  6355. fi
  6356. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6357. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6358. else
  6359. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6360. fi
  6361. if test "$DSYMUTIL" != ":"; then
  6362. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6363. else
  6364. _lt_dsymutil=
  6365. fi
  6366. ;;
  6367. esac
  6368. ac_ext=c
  6369. ac_cpp='$CPP $CPPFLAGS'
  6370. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6371. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6372. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6374. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6375. # On Suns, sometimes $CPP names a directory.
  6376. if test -n "$CPP" && test -d "$CPP"; then
  6377. CPP=
  6378. fi
  6379. if test -z "$CPP"; then
  6380. if test "${ac_cv_prog_CPP+set}" = set; then :
  6381. $as_echo_n "(cached) " >&6
  6382. else
  6383. # Double quotes because CPP needs to be expanded
  6384. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6385. do
  6386. ac_preproc_ok=false
  6387. for ac_c_preproc_warn_flag in '' yes
  6388. do
  6389. # Use a header file that comes with gcc, so configuring glibc
  6390. # with a fresh cross-compiler works.
  6391. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6392. # <limits.h> exists even on freestanding compilers.
  6393. # On the NeXT, cc -E runs the code through the compiler's parser,
  6394. # not just through cpp. "Syntax error" is here to catch this case.
  6395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6396. /* end confdefs.h. */
  6397. #ifdef __STDC__
  6398. # include <limits.h>
  6399. #else
  6400. # include <assert.h>
  6401. #endif
  6402. Syntax error
  6403. _ACEOF
  6404. if ac_fn_c_try_cpp "$LINENO"; then :
  6405. else
  6406. # Broken: fails on valid input.
  6407. continue
  6408. fi
  6409. rm -f conftest.err conftest.i conftest.$ac_ext
  6410. # OK, works on sane cases. Now check whether nonexistent headers
  6411. # can be detected and how.
  6412. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6413. /* end confdefs.h. */
  6414. #include <ac_nonexistent.h>
  6415. _ACEOF
  6416. if ac_fn_c_try_cpp "$LINENO"; then :
  6417. # Broken: success on invalid input.
  6418. continue
  6419. else
  6420. # Passes both tests.
  6421. ac_preproc_ok=:
  6422. break
  6423. fi
  6424. rm -f conftest.err conftest.i conftest.$ac_ext
  6425. done
  6426. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6427. rm -f conftest.i conftest.err conftest.$ac_ext
  6428. if $ac_preproc_ok; then :
  6429. break
  6430. fi
  6431. done
  6432. ac_cv_prog_CPP=$CPP
  6433. fi
  6434. CPP=$ac_cv_prog_CPP
  6435. else
  6436. ac_cv_prog_CPP=$CPP
  6437. fi
  6438. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6439. $as_echo "$CPP" >&6; }
  6440. ac_preproc_ok=false
  6441. for ac_c_preproc_warn_flag in '' yes
  6442. do
  6443. # Use a header file that comes with gcc, so configuring glibc
  6444. # with a fresh cross-compiler works.
  6445. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6446. # <limits.h> exists even on freestanding compilers.
  6447. # On the NeXT, cc -E runs the code through the compiler's parser,
  6448. # not just through cpp. "Syntax error" is here to catch this case.
  6449. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6450. /* end confdefs.h. */
  6451. #ifdef __STDC__
  6452. # include <limits.h>
  6453. #else
  6454. # include <assert.h>
  6455. #endif
  6456. Syntax error
  6457. _ACEOF
  6458. if ac_fn_c_try_cpp "$LINENO"; then :
  6459. else
  6460. # Broken: fails on valid input.
  6461. continue
  6462. fi
  6463. rm -f conftest.err conftest.i conftest.$ac_ext
  6464. # OK, works on sane cases. Now check whether nonexistent headers
  6465. # can be detected and how.
  6466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6467. /* end confdefs.h. */
  6468. #include <ac_nonexistent.h>
  6469. _ACEOF
  6470. if ac_fn_c_try_cpp "$LINENO"; then :
  6471. # Broken: success on invalid input.
  6472. continue
  6473. else
  6474. # Passes both tests.
  6475. ac_preproc_ok=:
  6476. break
  6477. fi
  6478. rm -f conftest.err conftest.i conftest.$ac_ext
  6479. done
  6480. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6481. rm -f conftest.i conftest.err conftest.$ac_ext
  6482. if $ac_preproc_ok; then :
  6483. else
  6484. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6485. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6486. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6487. See \`config.log' for more details" "$LINENO" 5 ; }
  6488. fi
  6489. ac_ext=c
  6490. ac_cpp='$CPP $CPPFLAGS'
  6491. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6492. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6493. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6495. $as_echo_n "checking for ANSI C header files... " >&6; }
  6496. if test "${ac_cv_header_stdc+set}" = set; then :
  6497. $as_echo_n "(cached) " >&6
  6498. else
  6499. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6500. /* end confdefs.h. */
  6501. #include <stdlib.h>
  6502. #include <stdarg.h>
  6503. #include <string.h>
  6504. #include <float.h>
  6505. int
  6506. main ()
  6507. {
  6508. ;
  6509. return 0;
  6510. }
  6511. _ACEOF
  6512. if ac_fn_c_try_compile "$LINENO"; then :
  6513. ac_cv_header_stdc=yes
  6514. else
  6515. ac_cv_header_stdc=no
  6516. fi
  6517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6518. if test $ac_cv_header_stdc = yes; then
  6519. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6520. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6521. /* end confdefs.h. */
  6522. #include <string.h>
  6523. _ACEOF
  6524. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6525. $EGREP "memchr" >/dev/null 2>&1; then :
  6526. else
  6527. ac_cv_header_stdc=no
  6528. fi
  6529. rm -f conftest*
  6530. fi
  6531. if test $ac_cv_header_stdc = yes; then
  6532. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6533. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6534. /* end confdefs.h. */
  6535. #include <stdlib.h>
  6536. _ACEOF
  6537. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6538. $EGREP "free" >/dev/null 2>&1; then :
  6539. else
  6540. ac_cv_header_stdc=no
  6541. fi
  6542. rm -f conftest*
  6543. fi
  6544. if test $ac_cv_header_stdc = yes; then
  6545. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6546. if test "$cross_compiling" = yes; then :
  6547. :
  6548. else
  6549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6550. /* end confdefs.h. */
  6551. #include <ctype.h>
  6552. #include <stdlib.h>
  6553. #if ((' ' & 0x0FF) == 0x020)
  6554. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6555. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6556. #else
  6557. # define ISLOWER(c) \
  6558. (('a' <= (c) && (c) <= 'i') \
  6559. || ('j' <= (c) && (c) <= 'r') \
  6560. || ('s' <= (c) && (c) <= 'z'))
  6561. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6562. #endif
  6563. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6564. int
  6565. main ()
  6566. {
  6567. int i;
  6568. for (i = 0; i < 256; i++)
  6569. if (XOR (islower (i), ISLOWER (i))
  6570. || toupper (i) != TOUPPER (i))
  6571. return 2;
  6572. return 0;
  6573. }
  6574. _ACEOF
  6575. if ac_fn_c_try_run "$LINENO"; then :
  6576. else
  6577. ac_cv_header_stdc=no
  6578. fi
  6579. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6580. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6581. fi
  6582. fi
  6583. fi
  6584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6585. $as_echo "$ac_cv_header_stdc" >&6; }
  6586. if test $ac_cv_header_stdc = yes; then
  6587. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6588. fi
  6589. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6590. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6591. inttypes.h stdint.h unistd.h
  6592. do :
  6593. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6594. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6595. "
  6596. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6597. cat >>confdefs.h <<_ACEOF
  6598. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6599. _ACEOF
  6600. fi
  6601. done
  6602. for ac_header in dlfcn.h
  6603. do :
  6604. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6605. "
  6606. if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  6607. cat >>confdefs.h <<_ACEOF
  6608. #define HAVE_DLFCN_H 1
  6609. _ACEOF
  6610. fi
  6611. done
  6612. ac_ext=cpp
  6613. ac_cpp='$CXXCPP $CPPFLAGS'
  6614. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6615. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6616. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6617. if test -z "$CXX"; then
  6618. if test -n "$CCC"; then
  6619. CXX=$CCC
  6620. else
  6621. if test -n "$ac_tool_prefix"; then
  6622. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6623. do
  6624. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6625. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6626. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6627. $as_echo_n "checking for $ac_word... " >&6; }
  6628. if test "${ac_cv_prog_CXX+set}" = set; then :
  6629. $as_echo_n "(cached) " >&6
  6630. else
  6631. if test -n "$CXX"; then
  6632. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6633. else
  6634. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6635. for as_dir in $PATH
  6636. do
  6637. IFS=$as_save_IFS
  6638. test -z "$as_dir" && as_dir=.
  6639. for ac_exec_ext in '' $ac_executable_extensions; do
  6640. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6641. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6642. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6643. break 2
  6644. fi
  6645. done
  6646. done
  6647. IFS=$as_save_IFS
  6648. fi
  6649. fi
  6650. CXX=$ac_cv_prog_CXX
  6651. if test -n "$CXX"; then
  6652. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  6653. $as_echo "$CXX" >&6; }
  6654. else
  6655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6656. $as_echo "no" >&6; }
  6657. fi
  6658. test -n "$CXX" && break
  6659. done
  6660. fi
  6661. if test -z "$CXX"; then
  6662. ac_ct_CXX=$CXX
  6663. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6664. do
  6665. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6666. set dummy $ac_prog; ac_word=$2
  6667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6668. $as_echo_n "checking for $ac_word... " >&6; }
  6669. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  6670. $as_echo_n "(cached) " >&6
  6671. else
  6672. if test -n "$ac_ct_CXX"; then
  6673. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6674. else
  6675. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6676. for as_dir in $PATH
  6677. do
  6678. IFS=$as_save_IFS
  6679. test -z "$as_dir" && as_dir=.
  6680. for ac_exec_ext in '' $ac_executable_extensions; do
  6681. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6682. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6683. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6684. break 2
  6685. fi
  6686. done
  6687. done
  6688. IFS=$as_save_IFS
  6689. fi
  6690. fi
  6691. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6692. if test -n "$ac_ct_CXX"; then
  6693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  6694. $as_echo "$ac_ct_CXX" >&6; }
  6695. else
  6696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6697. $as_echo "no" >&6; }
  6698. fi
  6699. test -n "$ac_ct_CXX" && break
  6700. done
  6701. if test "x$ac_ct_CXX" = x; then
  6702. CXX="g++"
  6703. else
  6704. case $cross_compiling:$ac_tool_warned in
  6705. yes:)
  6706. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6707. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6708. ac_tool_warned=yes ;;
  6709. esac
  6710. CXX=$ac_ct_CXX
  6711. fi
  6712. fi
  6713. fi
  6714. fi
  6715. # Provide some information about the compiler.
  6716. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  6717. set X $ac_compile
  6718. ac_compiler=$2
  6719. for ac_option in --version -v -V -qversion; do
  6720. { { ac_try="$ac_compiler $ac_option >&5"
  6721. case "(($ac_try" in
  6722. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6723. *) ac_try_echo=$ac_try;;
  6724. esac
  6725. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6726. $as_echo "$ac_try_echo"; } >&5
  6727. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6728. ac_status=$?
  6729. if test -s conftest.err; then
  6730. sed '10a\
  6731. ... rest of stderr output deleted ...
  6732. 10q' conftest.err >conftest.er1
  6733. cat conftest.er1 >&5
  6734. fi
  6735. rm -f conftest.er1 conftest.err
  6736. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6737. test $ac_status = 0; }
  6738. done
  6739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  6740. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6741. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  6742. $as_echo_n "(cached) " >&6
  6743. else
  6744. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6745. /* end confdefs.h. */
  6746. int
  6747. main ()
  6748. {
  6749. #ifndef __GNUC__
  6750. choke me
  6751. #endif
  6752. ;
  6753. return 0;
  6754. }
  6755. _ACEOF
  6756. if ac_fn_cxx_try_compile "$LINENO"; then :
  6757. ac_compiler_gnu=yes
  6758. else
  6759. ac_compiler_gnu=no
  6760. fi
  6761. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6762. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6763. fi
  6764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  6765. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6766. if test $ac_compiler_gnu = yes; then
  6767. GXX=yes
  6768. else
  6769. GXX=
  6770. fi
  6771. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6772. ac_save_CXXFLAGS=$CXXFLAGS
  6773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  6774. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6775. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  6776. $as_echo_n "(cached) " >&6
  6777. else
  6778. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6779. ac_cxx_werror_flag=yes
  6780. ac_cv_prog_cxx_g=no
  6781. CXXFLAGS="-g"
  6782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6783. /* end confdefs.h. */
  6784. int
  6785. main ()
  6786. {
  6787. ;
  6788. return 0;
  6789. }
  6790. _ACEOF
  6791. if ac_fn_cxx_try_compile "$LINENO"; then :
  6792. ac_cv_prog_cxx_g=yes
  6793. else
  6794. CXXFLAGS=""
  6795. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6796. /* end confdefs.h. */
  6797. int
  6798. main ()
  6799. {
  6800. ;
  6801. return 0;
  6802. }
  6803. _ACEOF
  6804. if ac_fn_cxx_try_compile "$LINENO"; then :
  6805. else
  6806. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6807. CXXFLAGS="-g"
  6808. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6809. /* end confdefs.h. */
  6810. int
  6811. main ()
  6812. {
  6813. ;
  6814. return 0;
  6815. }
  6816. _ACEOF
  6817. if ac_fn_cxx_try_compile "$LINENO"; then :
  6818. ac_cv_prog_cxx_g=yes
  6819. fi
  6820. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6821. fi
  6822. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6823. fi
  6824. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6825. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6826. fi
  6827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  6828. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6829. if test "$ac_test_CXXFLAGS" = set; then
  6830. CXXFLAGS=$ac_save_CXXFLAGS
  6831. elif test $ac_cv_prog_cxx_g = yes; then
  6832. if test "$GXX" = yes; then
  6833. CXXFLAGS="-g -O2"
  6834. else
  6835. CXXFLAGS="-g"
  6836. fi
  6837. else
  6838. if test "$GXX" = yes; then
  6839. CXXFLAGS="-O2"
  6840. else
  6841. CXXFLAGS=
  6842. fi
  6843. fi
  6844. ac_ext=cpp
  6845. ac_cpp='$CXXCPP $CPPFLAGS'
  6846. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6847. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6848. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6849. depcc="$CXX" am_compiler_list=
  6850. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  6851. $as_echo_n "checking dependency style of $depcc... " >&6; }
  6852. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
  6853. $as_echo_n "(cached) " >&6
  6854. else
  6855. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  6856. # We make a subdir and do the tests there. Otherwise we can end up
  6857. # making bogus files that we don't know about and never remove. For
  6858. # instance it was reported that on HP-UX the gcc test will end up
  6859. # making a dummy file named `D' -- because `-MD' means `put the output
  6860. # in D'.
  6861. mkdir conftest.dir
  6862. # Copy depcomp to subdir because otherwise we won't find it if we're
  6863. # using a relative directory.
  6864. cp "$am_depcomp" conftest.dir
  6865. cd conftest.dir
  6866. # We will build objects and dependencies in a subdirectory because
  6867. # it helps to detect inapplicable dependency modes. For instance
  6868. # both Tru64's cc and ICC support -MD to output dependencies as a
  6869. # side effect of compilation, but ICC will put the dependencies in
  6870. # the current directory while Tru64 will put them in the object
  6871. # directory.
  6872. mkdir sub
  6873. am_cv_CXX_dependencies_compiler_type=none
  6874. if test "$am_compiler_list" = ""; then
  6875. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  6876. fi
  6877. am__universal=false
  6878. case " $depcc " in #(
  6879. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  6880. esac
  6881. for depmode in $am_compiler_list; do
  6882. # Setup a source with many dependencies, because some compilers
  6883. # like to wrap large dependency lists on column 80 (with \), and
  6884. # we should not choose a depcomp mode which is confused by this.
  6885. #
  6886. # We need to recreate these files for each test, as the compiler may
  6887. # overwrite some of them when testing with obscure command lines.
  6888. # This happens at least with the AIX C compiler.
  6889. : > sub/conftest.c
  6890. for i in 1 2 3 4 5 6; do
  6891. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  6892. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  6893. # Solaris 8's {/usr,}/bin/sh.
  6894. touch sub/conftst$i.h
  6895. done
  6896. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  6897. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  6898. # mode. It turns out that the SunPro C++ compiler does not properly
  6899. # handle `-M -o', and we need to detect this. Also, some Intel
  6900. # versions had trouble with output in subdirs
  6901. am__obj=sub/conftest.${OBJEXT-o}
  6902. am__minus_obj="-o $am__obj"
  6903. case $depmode in
  6904. gcc)
  6905. # This depmode causes a compiler race in universal mode.
  6906. test "$am__universal" = false || continue
  6907. ;;
  6908. nosideeffect)
  6909. # after this tag, mechanisms are not by side-effect, so they'll
  6910. # only be used when explicitly requested
  6911. if test "x$enable_dependency_tracking" = xyes; then
  6912. continue
  6913. else
  6914. break
  6915. fi
  6916. ;;
  6917. msvisualcpp | msvcmsys)
  6918. # This compiler won't grok `-c -o', but also, the minuso test has
  6919. # not run yet. These depmodes are late enough in the game, and
  6920. # so weak that their functioning should not be impacted.
  6921. am__obj=conftest.${OBJEXT-o}
  6922. am__minus_obj=
  6923. ;;
  6924. none) break ;;
  6925. esac
  6926. if depmode=$depmode \
  6927. source=sub/conftest.c object=$am__obj \
  6928. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  6929. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  6930. >/dev/null 2>conftest.err &&
  6931. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  6932. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  6933. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  6934. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  6935. # icc doesn't choke on unknown options, it will just issue warnings
  6936. # or remarks (even with -Werror). So we grep stderr for any message
  6937. # that says an option was ignored or not supported.
  6938. # When given -MP, icc 7.0 and 7.1 complain thusly:
  6939. # icc: Command line warning: ignoring option '-M'; no argument required
  6940. # The diagnosis changed in icc 8.0:
  6941. # icc: Command line remark: option '-MP' not supported
  6942. if (grep 'ignoring option' conftest.err ||
  6943. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  6944. am_cv_CXX_dependencies_compiler_type=$depmode
  6945. break
  6946. fi
  6947. fi
  6948. done
  6949. cd ..
  6950. rm -rf conftest.dir
  6951. else
  6952. am_cv_CXX_dependencies_compiler_type=none
  6953. fi
  6954. fi
  6955. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  6956. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  6957. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  6958. if
  6959. test "x$enable_dependency_tracking" != xno \
  6960. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  6961. am__fastdepCXX_TRUE=
  6962. am__fastdepCXX_FALSE='#'
  6963. else
  6964. am__fastdepCXX_TRUE='#'
  6965. am__fastdepCXX_FALSE=
  6966. fi
  6967. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  6968. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  6969. (test "X$CXX" != "Xg++"))) ; then
  6970. ac_ext=cpp
  6971. ac_cpp='$CXXCPP $CPPFLAGS'
  6972. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6973. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6974. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  6976. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  6977. if test -z "$CXXCPP"; then
  6978. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  6979. $as_echo_n "(cached) " >&6
  6980. else
  6981. # Double quotes because CXXCPP needs to be expanded
  6982. for CXXCPP in "$CXX -E" "/lib/cpp"
  6983. do
  6984. ac_preproc_ok=false
  6985. for ac_cxx_preproc_warn_flag in '' yes
  6986. do
  6987. # Use a header file that comes with gcc, so configuring glibc
  6988. # with a fresh cross-compiler works.
  6989. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6990. # <limits.h> exists even on freestanding compilers.
  6991. # On the NeXT, cc -E runs the code through the compiler's parser,
  6992. # not just through cpp. "Syntax error" is here to catch this case.
  6993. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6994. /* end confdefs.h. */
  6995. #ifdef __STDC__
  6996. # include <limits.h>
  6997. #else
  6998. # include <assert.h>
  6999. #endif
  7000. Syntax error
  7001. _ACEOF
  7002. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7003. else
  7004. # Broken: fails on valid input.
  7005. continue
  7006. fi
  7007. rm -f conftest.err conftest.i conftest.$ac_ext
  7008. # OK, works on sane cases. Now check whether nonexistent headers
  7009. # can be detected and how.
  7010. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7011. /* end confdefs.h. */
  7012. #include <ac_nonexistent.h>
  7013. _ACEOF
  7014. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7015. # Broken: success on invalid input.
  7016. continue
  7017. else
  7018. # Passes both tests.
  7019. ac_preproc_ok=:
  7020. break
  7021. fi
  7022. rm -f conftest.err conftest.i conftest.$ac_ext
  7023. done
  7024. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7025. rm -f conftest.i conftest.err conftest.$ac_ext
  7026. if $ac_preproc_ok; then :
  7027. break
  7028. fi
  7029. done
  7030. ac_cv_prog_CXXCPP=$CXXCPP
  7031. fi
  7032. CXXCPP=$ac_cv_prog_CXXCPP
  7033. else
  7034. ac_cv_prog_CXXCPP=$CXXCPP
  7035. fi
  7036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  7037. $as_echo "$CXXCPP" >&6; }
  7038. ac_preproc_ok=false
  7039. for ac_cxx_preproc_warn_flag in '' yes
  7040. do
  7041. # Use a header file that comes with gcc, so configuring glibc
  7042. # with a fresh cross-compiler works.
  7043. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7044. # <limits.h> exists even on freestanding compilers.
  7045. # On the NeXT, cc -E runs the code through the compiler's parser,
  7046. # not just through cpp. "Syntax error" is here to catch this case.
  7047. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7048. /* end confdefs.h. */
  7049. #ifdef __STDC__
  7050. # include <limits.h>
  7051. #else
  7052. # include <assert.h>
  7053. #endif
  7054. Syntax error
  7055. _ACEOF
  7056. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7057. else
  7058. # Broken: fails on valid input.
  7059. continue
  7060. fi
  7061. rm -f conftest.err conftest.i conftest.$ac_ext
  7062. # OK, works on sane cases. Now check whether nonexistent headers
  7063. # can be detected and how.
  7064. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7065. /* end confdefs.h. */
  7066. #include <ac_nonexistent.h>
  7067. _ACEOF
  7068. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7069. # Broken: success on invalid input.
  7070. continue
  7071. else
  7072. # Passes both tests.
  7073. ac_preproc_ok=:
  7074. break
  7075. fi
  7076. rm -f conftest.err conftest.i conftest.$ac_ext
  7077. done
  7078. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7079. rm -f conftest.i conftest.err conftest.$ac_ext
  7080. if $ac_preproc_ok; then :
  7081. else
  7082. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7083. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7084. _lt_caught_CXX_error=yes; }
  7085. fi
  7086. ac_ext=cpp
  7087. ac_cpp='$CXXCPP $CPPFLAGS'
  7088. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7089. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7090. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7091. else
  7092. _lt_caught_CXX_error=yes
  7093. fi
  7094. # Set options
  7095. enable_dlopen=no
  7096. enable_win32_dll=no
  7097. # Check whether --with-pic was given.
  7098. if test "${with_pic+set}" = set; then :
  7099. withval=$with_pic; pic_mode="$withval"
  7100. else
  7101. pic_mode=default
  7102. fi
  7103. test -z "$pic_mode" && pic_mode=default
  7104. # Check whether --enable-fast-install was given.
  7105. if test "${enable_fast_install+set}" = set; then :
  7106. enableval=$enable_fast_install; p=${PACKAGE-default}
  7107. case $enableval in
  7108. yes) enable_fast_install=yes ;;
  7109. no) enable_fast_install=no ;;
  7110. *)
  7111. enable_fast_install=no
  7112. # Look at the argument we got. We use all the common list separators.
  7113. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7114. for pkg in $enableval; do
  7115. IFS="$lt_save_ifs"
  7116. if test "X$pkg" = "X$p"; then
  7117. enable_fast_install=yes
  7118. fi
  7119. done
  7120. IFS="$lt_save_ifs"
  7121. ;;
  7122. esac
  7123. else
  7124. enable_fast_install=yes
  7125. fi
  7126. # This can be used to rebuild libtool when needed
  7127. LIBTOOL_DEPS="$ltmain"
  7128. # Always use our own libtool.
  7129. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7130. test -z "$LN_S" && LN_S="ln -s"
  7131. if test -n "${ZSH_VERSION+set}" ; then
  7132. setopt NO_GLOB_SUBST
  7133. fi
  7134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7135. $as_echo_n "checking for objdir... " >&6; }
  7136. if test "${lt_cv_objdir+set}" = set; then :
  7137. $as_echo_n "(cached) " >&6
  7138. else
  7139. rm -f .libs 2>/dev/null
  7140. mkdir .libs 2>/dev/null
  7141. if test -d .libs; then
  7142. lt_cv_objdir=.libs
  7143. else
  7144. # MS-DOS does not allow filenames that begin with a dot.
  7145. lt_cv_objdir=_libs
  7146. fi
  7147. rmdir .libs 2>/dev/null
  7148. fi
  7149. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7150. $as_echo "$lt_cv_objdir" >&6; }
  7151. objdir=$lt_cv_objdir
  7152. cat >>confdefs.h <<_ACEOF
  7153. #define LT_OBJDIR "$lt_cv_objdir/"
  7154. _ACEOF
  7155. case $host_os in
  7156. aix3*)
  7157. # AIX sometimes has problems with the GCC collect2 program. For some
  7158. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7159. # vanish in a puff of smoke.
  7160. if test "X${COLLECT_NAMES+set}" != Xset; then
  7161. COLLECT_NAMES=
  7162. export COLLECT_NAMES
  7163. fi
  7164. ;;
  7165. esac
  7166. # Sed substitution that helps us do robust quoting. It backslashifies
  7167. # metacharacters that are still active within double-quoted strings.
  7168. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  7169. # Same as above, but do not quote variable references.
  7170. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  7171. # Sed substitution to delay expansion of an escaped shell variable in a
  7172. # double_quote_subst'ed string.
  7173. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  7174. # Sed substitution to delay expansion of an escaped single quote.
  7175. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  7176. # Sed substitution to avoid accidental globbing in evaled expressions
  7177. no_glob_subst='s/\*/\\\*/g'
  7178. # Global variables:
  7179. ofile=libtool
  7180. can_build_shared=yes
  7181. # All known linkers require a `.a' archive for static linking (except MSVC,
  7182. # which needs '.lib').
  7183. libext=a
  7184. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7185. old_CC="$CC"
  7186. old_CFLAGS="$CFLAGS"
  7187. # Set sane defaults for various variables
  7188. test -z "$CC" && CC=cc
  7189. test -z "$LTCC" && LTCC=$CC
  7190. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7191. test -z "$LD" && LD=ld
  7192. test -z "$ac_objext" && ac_objext=o
  7193. for cc_temp in $compiler""; do
  7194. case $cc_temp in
  7195. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7196. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7197. \-*) ;;
  7198. *) break;;
  7199. esac
  7200. done
  7201. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  7202. # Only perform the check for file, if the check method requires it
  7203. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7204. case $deplibs_check_method in
  7205. file_magic*)
  7206. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7208. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7209. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7210. $as_echo_n "(cached) " >&6
  7211. else
  7212. case $MAGIC_CMD in
  7213. [\\/*] | ?:[\\/]*)
  7214. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7215. ;;
  7216. *)
  7217. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7218. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7219. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7220. for ac_dir in $ac_dummy; do
  7221. IFS="$lt_save_ifs"
  7222. test -z "$ac_dir" && ac_dir=.
  7223. if test -f $ac_dir/${ac_tool_prefix}file; then
  7224. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7225. if test -n "$file_magic_test_file"; then
  7226. case $deplibs_check_method in
  7227. "file_magic "*)
  7228. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7229. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7230. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7231. $EGREP "$file_magic_regex" > /dev/null; then
  7232. :
  7233. else
  7234. cat <<_LT_EOF 1>&2
  7235. *** Warning: the command libtool uses to detect shared libraries,
  7236. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7237. *** The result is that libtool may fail to recognize shared libraries
  7238. *** as such. This will affect the creation of libtool libraries that
  7239. *** depend on shared libraries, but programs linked with such libtool
  7240. *** libraries will work regardless of this problem. Nevertheless, you
  7241. *** may want to report the problem to your system manager and/or to
  7242. *** [email protected]
  7243. _LT_EOF
  7244. fi ;;
  7245. esac
  7246. fi
  7247. break
  7248. fi
  7249. done
  7250. IFS="$lt_save_ifs"
  7251. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7252. ;;
  7253. esac
  7254. fi
  7255. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7256. if test -n "$MAGIC_CMD"; then
  7257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7258. $as_echo "$MAGIC_CMD" >&6; }
  7259. else
  7260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7261. $as_echo "no" >&6; }
  7262. fi
  7263. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7264. if test -n "$ac_tool_prefix"; then
  7265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7266. $as_echo_n "checking for file... " >&6; }
  7267. if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  7268. $as_echo_n "(cached) " >&6
  7269. else
  7270. case $MAGIC_CMD in
  7271. [\\/*] | ?:[\\/]*)
  7272. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7273. ;;
  7274. *)
  7275. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7276. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7277. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7278. for ac_dir in $ac_dummy; do
  7279. IFS="$lt_save_ifs"
  7280. test -z "$ac_dir" && ac_dir=.
  7281. if test -f $ac_dir/file; then
  7282. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7283. if test -n "$file_magic_test_file"; then
  7284. case $deplibs_check_method in
  7285. "file_magic "*)
  7286. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7287. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7288. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7289. $EGREP "$file_magic_regex" > /dev/null; then
  7290. :
  7291. else
  7292. cat <<_LT_EOF 1>&2
  7293. *** Warning: the command libtool uses to detect shared libraries,
  7294. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7295. *** The result is that libtool may fail to recognize shared libraries
  7296. *** as such. This will affect the creation of libtool libraries that
  7297. *** depend on shared libraries, but programs linked with such libtool
  7298. *** libraries will work regardless of this problem. Nevertheless, you
  7299. *** may want to report the problem to your system manager and/or to
  7300. *** [email protected]
  7301. _LT_EOF
  7302. fi ;;
  7303. esac
  7304. fi
  7305. break
  7306. fi
  7307. done
  7308. IFS="$lt_save_ifs"
  7309. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7310. ;;
  7311. esac
  7312. fi
  7313. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7314. if test -n "$MAGIC_CMD"; then
  7315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7316. $as_echo "$MAGIC_CMD" >&6; }
  7317. else
  7318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7319. $as_echo "no" >&6; }
  7320. fi
  7321. else
  7322. MAGIC_CMD=:
  7323. fi
  7324. fi
  7325. fi
  7326. ;;
  7327. esac
  7328. # Use C for the default configuration in the libtool script
  7329. lt_save_CC="$CC"
  7330. ac_ext=c
  7331. ac_cpp='$CPP $CPPFLAGS'
  7332. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7333. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7334. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7335. # Source file extension for C test sources.
  7336. ac_ext=c
  7337. # Object file extension for compiled C test sources.
  7338. objext=o
  7339. objext=$objext
  7340. # Code to be used in simple compile tests
  7341. lt_simple_compile_test_code="int some_variable = 0;"
  7342. # Code to be used in simple link tests
  7343. lt_simple_link_test_code='int main(){return(0);}'
  7344. # If no C compiler was specified, use CC.
  7345. LTCC=${LTCC-"$CC"}
  7346. # If no C compiler flags were specified, use CFLAGS.
  7347. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7348. # Allow CC to be a program name with arguments.
  7349. compiler=$CC
  7350. # Save the default compiler, since it gets overwritten when the other
  7351. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7352. compiler_DEFAULT=$CC
  7353. # save warnings/boilerplate of simple test code
  7354. ac_outfile=conftest.$ac_objext
  7355. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7356. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7357. _lt_compiler_boilerplate=`cat conftest.err`
  7358. $RM conftest*
  7359. ac_outfile=conftest.$ac_objext
  7360. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7361. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7362. _lt_linker_boilerplate=`cat conftest.err`
  7363. $RM -r conftest*
  7364. ## CAVEAT EMPTOR:
  7365. ## There is no encapsulation within the following macros, do not change
  7366. ## the running order or otherwise move them around unless you know exactly
  7367. ## what you are doing...
  7368. if test -n "$compiler"; then
  7369. lt_prog_compiler_no_builtin_flag=
  7370. if test "$GCC" = yes; then
  7371. lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  7372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7373. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7374. if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  7375. $as_echo_n "(cached) " >&6
  7376. else
  7377. lt_cv_prog_compiler_rtti_exceptions=no
  7378. ac_outfile=conftest.$ac_objext
  7379. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7380. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7381. # Insert the option either (1) after the last *FLAGS variable, or
  7382. # (2) before a word containing "conftest.", or (3) at the end.
  7383. # Note that $ac_compile itself does not contain backslashes and begins
  7384. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7385. # The option is referenced via a variable to avoid confusing sed.
  7386. lt_compile=`echo "$ac_compile" | $SED \
  7387. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7388. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7389. -e 's:$: $lt_compiler_flag:'`
  7390. (eval echo "\"\$as_me:8425: $lt_compile\"" >&5)
  7391. (eval "$lt_compile" 2>conftest.err)
  7392. ac_status=$?
  7393. cat conftest.err >&5
  7394. echo "$as_me:8429: \$? = $ac_status" >&5
  7395. if (exit $ac_status) && test -s "$ac_outfile"; then
  7396. # The compiler can only warn and ignore the option if not recognized
  7397. # So say no if there are warnings other than the usual output.
  7398. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7399. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7400. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7401. lt_cv_prog_compiler_rtti_exceptions=yes
  7402. fi
  7403. fi
  7404. $RM conftest*
  7405. fi
  7406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7407. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7408. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7409. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7410. else
  7411. :
  7412. fi
  7413. fi
  7414. lt_prog_compiler_wl=
  7415. lt_prog_compiler_pic=
  7416. lt_prog_compiler_static=
  7417. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7418. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7419. if test "$GCC" = yes; then
  7420. lt_prog_compiler_wl='-Wl,'
  7421. lt_prog_compiler_static='-static'
  7422. case $host_os in
  7423. aix*)
  7424. # All AIX code is PIC.
  7425. if test "$host_cpu" = ia64; then
  7426. # AIX 5 now supports IA64 processor
  7427. lt_prog_compiler_static='-Bstatic'
  7428. fi
  7429. ;;
  7430. amigaos*)
  7431. case $host_cpu in
  7432. powerpc)
  7433. # see comment about AmigaOS4 .so support
  7434. lt_prog_compiler_pic='-fPIC'
  7435. ;;
  7436. m68k)
  7437. # FIXME: we need at least 68020 code to build shared libraries, but
  7438. # adding the `-m68020' flag to GCC prevents building anything better,
  7439. # like `-m68040'.
  7440. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7441. ;;
  7442. esac
  7443. ;;
  7444. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7445. # PIC is the default for these OSes.
  7446. ;;
  7447. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7448. # This hack is so that the source file can tell whether it is being
  7449. # built for inclusion in a dll (and should export symbols for example).
  7450. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7451. # (--disable-auto-import) libraries
  7452. lt_prog_compiler_pic='-DDLL_EXPORT'
  7453. ;;
  7454. darwin* | rhapsody*)
  7455. # PIC is the default on this platform
  7456. # Common symbols not allowed in MH_DYLIB files
  7457. lt_prog_compiler_pic='-fno-common'
  7458. ;;
  7459. hpux*)
  7460. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7461. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7462. # sets the default TLS model and affects inlining.
  7463. case $host_cpu in
  7464. hppa*64*)
  7465. # +Z the default
  7466. ;;
  7467. *)
  7468. lt_prog_compiler_pic='-fPIC'
  7469. ;;
  7470. esac
  7471. ;;
  7472. interix[3-9]*)
  7473. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7474. # Instead, we relocate shared libraries at runtime.
  7475. ;;
  7476. msdosdjgpp*)
  7477. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7478. # on systems that don't support them.
  7479. lt_prog_compiler_can_build_shared=no
  7480. enable_shared=no
  7481. ;;
  7482. *nto* | *qnx*)
  7483. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7484. # it will coredump.
  7485. lt_prog_compiler_pic='-fPIC -shared'
  7486. ;;
  7487. sysv4*MP*)
  7488. if test -d /usr/nec; then
  7489. lt_prog_compiler_pic=-Kconform_pic
  7490. fi
  7491. ;;
  7492. *)
  7493. lt_prog_compiler_pic='-fPIC'
  7494. ;;
  7495. esac
  7496. else
  7497. # PORTME Check for flag to pass linker flags through the system compiler.
  7498. case $host_os in
  7499. aix*)
  7500. lt_prog_compiler_wl='-Wl,'
  7501. if test "$host_cpu" = ia64; then
  7502. # AIX 5 now supports IA64 processor
  7503. lt_prog_compiler_static='-Bstatic'
  7504. else
  7505. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7506. fi
  7507. ;;
  7508. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7509. # This hack is so that the source file can tell whether it is being
  7510. # built for inclusion in a dll (and should export symbols for example).
  7511. lt_prog_compiler_pic='-DDLL_EXPORT'
  7512. ;;
  7513. hpux9* | hpux10* | hpux11*)
  7514. lt_prog_compiler_wl='-Wl,'
  7515. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7516. # not for PA HP-UX.
  7517. case $host_cpu in
  7518. hppa*64*|ia64*)
  7519. # +Z the default
  7520. ;;
  7521. *)
  7522. lt_prog_compiler_pic='+Z'
  7523. ;;
  7524. esac
  7525. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7526. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7527. ;;
  7528. irix5* | irix6* | nonstopux*)
  7529. lt_prog_compiler_wl='-Wl,'
  7530. # PIC (with -KPIC) is the default.
  7531. lt_prog_compiler_static='-non_shared'
  7532. ;;
  7533. linux* | k*bsd*-gnu)
  7534. case $cc_basename in
  7535. # old Intel for x86_64 which still supported -KPIC.
  7536. ecc*)
  7537. lt_prog_compiler_wl='-Wl,'
  7538. lt_prog_compiler_pic='-KPIC'
  7539. lt_prog_compiler_static='-static'
  7540. ;;
  7541. # icc used to be incompatible with GCC.
  7542. # ICC 10 doesn't accept -KPIC any more.
  7543. icc* | ifort*)
  7544. lt_prog_compiler_wl='-Wl,'
  7545. lt_prog_compiler_pic='-fPIC'
  7546. lt_prog_compiler_static='-static'
  7547. ;;
  7548. # Lahey Fortran 8.1.
  7549. lf95*)
  7550. lt_prog_compiler_wl='-Wl,'
  7551. lt_prog_compiler_pic='--shared'
  7552. lt_prog_compiler_static='--static'
  7553. ;;
  7554. pgcc* | pgf77* | pgf90* | pgf95*)
  7555. # Portland Group compilers (*not* the Pentium gcc compiler,
  7556. # which looks to be a dead project)
  7557. lt_prog_compiler_wl='-Wl,'
  7558. lt_prog_compiler_pic='-fpic'
  7559. lt_prog_compiler_static='-Bstatic'
  7560. ;;
  7561. ccc*)
  7562. lt_prog_compiler_wl='-Wl,'
  7563. # All Alpha code is PIC.
  7564. lt_prog_compiler_static='-non_shared'
  7565. ;;
  7566. xl*)
  7567. # IBM XL C 8.0/Fortran 10.1 on PPC
  7568. lt_prog_compiler_wl='-Wl,'
  7569. lt_prog_compiler_pic='-qpic'
  7570. lt_prog_compiler_static='-qstaticlink'
  7571. ;;
  7572. *)
  7573. case `$CC -V 2>&1 | sed 5q` in
  7574. *Sun\ C*)
  7575. # Sun C 5.9
  7576. lt_prog_compiler_pic='-KPIC'
  7577. lt_prog_compiler_static='-Bstatic'
  7578. lt_prog_compiler_wl='-Wl,'
  7579. ;;
  7580. *Sun\ F*)
  7581. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7582. lt_prog_compiler_pic='-KPIC'
  7583. lt_prog_compiler_static='-Bstatic'
  7584. lt_prog_compiler_wl=''
  7585. ;;
  7586. esac
  7587. ;;
  7588. esac
  7589. ;;
  7590. newsos6)
  7591. lt_prog_compiler_pic='-KPIC'
  7592. lt_prog_compiler_static='-Bstatic'
  7593. ;;
  7594. *nto* | *qnx*)
  7595. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7596. # it will coredump.
  7597. lt_prog_compiler_pic='-fPIC -shared'
  7598. ;;
  7599. osf3* | osf4* | osf5*)
  7600. lt_prog_compiler_wl='-Wl,'
  7601. # All OSF/1 code is PIC.
  7602. lt_prog_compiler_static='-non_shared'
  7603. ;;
  7604. rdos*)
  7605. lt_prog_compiler_static='-non_shared'
  7606. ;;
  7607. solaris*)
  7608. lt_prog_compiler_pic='-KPIC'
  7609. lt_prog_compiler_static='-Bstatic'
  7610. case $cc_basename in
  7611. f77* | f90* | f95*)
  7612. lt_prog_compiler_wl='-Qoption ld ';;
  7613. *)
  7614. lt_prog_compiler_wl='-Wl,';;
  7615. esac
  7616. ;;
  7617. sunos4*)
  7618. lt_prog_compiler_wl='-Qoption ld '
  7619. lt_prog_compiler_pic='-PIC'
  7620. lt_prog_compiler_static='-Bstatic'
  7621. ;;
  7622. sysv4 | sysv4.2uw2* | sysv4.3*)
  7623. lt_prog_compiler_wl='-Wl,'
  7624. lt_prog_compiler_pic='-KPIC'
  7625. lt_prog_compiler_static='-Bstatic'
  7626. ;;
  7627. sysv4*MP*)
  7628. if test -d /usr/nec ;then
  7629. lt_prog_compiler_pic='-Kconform_pic'
  7630. lt_prog_compiler_static='-Bstatic'
  7631. fi
  7632. ;;
  7633. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7634. lt_prog_compiler_wl='-Wl,'
  7635. lt_prog_compiler_pic='-KPIC'
  7636. lt_prog_compiler_static='-Bstatic'
  7637. ;;
  7638. unicos*)
  7639. lt_prog_compiler_wl='-Wl,'
  7640. lt_prog_compiler_can_build_shared=no
  7641. ;;
  7642. uts4*)
  7643. lt_prog_compiler_pic='-pic'
  7644. lt_prog_compiler_static='-Bstatic'
  7645. ;;
  7646. *)
  7647. lt_prog_compiler_can_build_shared=no
  7648. ;;
  7649. esac
  7650. fi
  7651. case $host_os in
  7652. # For platforms which do not support PIC, -DPIC is meaningless:
  7653. *djgpp*)
  7654. lt_prog_compiler_pic=
  7655. ;;
  7656. *)
  7657. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7658. ;;
  7659. esac
  7660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  7661. $as_echo "$lt_prog_compiler_pic" >&6; }
  7662. #
  7663. # Check to make sure the PIC flag actually works.
  7664. #
  7665. if test -n "$lt_prog_compiler_pic"; then
  7666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7667. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7668. if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  7669. $as_echo_n "(cached) " >&6
  7670. else
  7671. lt_cv_prog_compiler_pic_works=no
  7672. ac_outfile=conftest.$ac_objext
  7673. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7674. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7675. # Insert the option either (1) after the last *FLAGS variable, or
  7676. # (2) before a word containing "conftest.", or (3) at the end.
  7677. # Note that $ac_compile itself does not contain backslashes and begins
  7678. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7679. # The option is referenced via a variable to avoid confusing sed.
  7680. lt_compile=`echo "$ac_compile" | $SED \
  7681. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7682. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7683. -e 's:$: $lt_compiler_flag:'`
  7684. (eval echo "\"\$as_me:8764: $lt_compile\"" >&5)
  7685. (eval "$lt_compile" 2>conftest.err)
  7686. ac_status=$?
  7687. cat conftest.err >&5
  7688. echo "$as_me:8768: \$? = $ac_status" >&5
  7689. if (exit $ac_status) && test -s "$ac_outfile"; then
  7690. # The compiler can only warn and ignore the option if not recognized
  7691. # So say no if there are warnings other than the usual output.
  7692. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  7693. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7694. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7695. lt_cv_prog_compiler_pic_works=yes
  7696. fi
  7697. fi
  7698. $RM conftest*
  7699. fi
  7700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7701. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7702. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7703. case $lt_prog_compiler_pic in
  7704. "" | " "*) ;;
  7705. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7706. esac
  7707. else
  7708. lt_prog_compiler_pic=
  7709. lt_prog_compiler_can_build_shared=no
  7710. fi
  7711. fi
  7712. #
  7713. # Check to make sure the static flag actually works.
  7714. #
  7715. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7717. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7718. if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  7719. $as_echo_n "(cached) " >&6
  7720. else
  7721. lt_cv_prog_compiler_static_works=no
  7722. save_LDFLAGS="$LDFLAGS"
  7723. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7724. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7725. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7726. # The linker can only warn and ignore the option if not recognized
  7727. # So say no if there are warnings
  7728. if test -s conftest.err; then
  7729. # Append any errors to the config.log.
  7730. cat conftest.err 1>&5
  7731. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  7732. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7733. if diff conftest.exp conftest.er2 >/dev/null; then
  7734. lt_cv_prog_compiler_static_works=yes
  7735. fi
  7736. else
  7737. lt_cv_prog_compiler_static_works=yes
  7738. fi
  7739. fi
  7740. $RM -r conftest*
  7741. LDFLAGS="$save_LDFLAGS"
  7742. fi
  7743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7744. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7745. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7746. :
  7747. else
  7748. lt_prog_compiler_static=
  7749. fi
  7750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7751. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7752. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7753. $as_echo_n "(cached) " >&6
  7754. else
  7755. lt_cv_prog_compiler_c_o=no
  7756. $RM -r conftest 2>/dev/null
  7757. mkdir conftest
  7758. cd conftest
  7759. mkdir out
  7760. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7761. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7762. # Insert the option either (1) after the last *FLAGS variable, or
  7763. # (2) before a word containing "conftest.", or (3) at the end.
  7764. # Note that $ac_compile itself does not contain backslashes and begins
  7765. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7766. lt_compile=`echo "$ac_compile" | $SED \
  7767. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7768. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7769. -e 's:$: $lt_compiler_flag:'`
  7770. (eval echo "\"\$as_me:8869: $lt_compile\"" >&5)
  7771. (eval "$lt_compile" 2>out/conftest.err)
  7772. ac_status=$?
  7773. cat out/conftest.err >&5
  7774. echo "$as_me:8873: \$? = $ac_status" >&5
  7775. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7776. then
  7777. # The compiler can only warn and ignore the option if not recognized
  7778. # So say no if there are warnings
  7779. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7780. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7781. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7782. lt_cv_prog_compiler_c_o=yes
  7783. fi
  7784. fi
  7785. chmod u+w . 2>&5
  7786. $RM conftest*
  7787. # SGI C++ compiler will create directory out/ii_files/ for
  7788. # template instantiation
  7789. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7790. $RM out/* && rmdir out
  7791. cd ..
  7792. $RM -r conftest
  7793. $RM conftest*
  7794. fi
  7795. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7796. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7798. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7799. if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  7800. $as_echo_n "(cached) " >&6
  7801. else
  7802. lt_cv_prog_compiler_c_o=no
  7803. $RM -r conftest 2>/dev/null
  7804. mkdir conftest
  7805. cd conftest
  7806. mkdir out
  7807. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7808. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7809. # Insert the option either (1) after the last *FLAGS variable, or
  7810. # (2) before a word containing "conftest.", or (3) at the end.
  7811. # Note that $ac_compile itself does not contain backslashes and begins
  7812. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7813. lt_compile=`echo "$ac_compile" | $SED \
  7814. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7815. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7816. -e 's:$: $lt_compiler_flag:'`
  7817. (eval echo "\"\$as_me:8924: $lt_compile\"" >&5)
  7818. (eval "$lt_compile" 2>out/conftest.err)
  7819. ac_status=$?
  7820. cat out/conftest.err >&5
  7821. echo "$as_me:8928: \$? = $ac_status" >&5
  7822. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7823. then
  7824. # The compiler can only warn and ignore the option if not recognized
  7825. # So say no if there are warnings
  7826. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  7827. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7828. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7829. lt_cv_prog_compiler_c_o=yes
  7830. fi
  7831. fi
  7832. chmod u+w . 2>&5
  7833. $RM conftest*
  7834. # SGI C++ compiler will create directory out/ii_files/ for
  7835. # template instantiation
  7836. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7837. $RM out/* && rmdir out
  7838. cd ..
  7839. $RM -r conftest
  7840. $RM conftest*
  7841. fi
  7842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7843. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7844. hard_links="nottested"
  7845. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7846. # do not overwrite the value of need_locks provided by the user
  7847. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7848. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7849. hard_links=yes
  7850. $RM conftest*
  7851. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7852. touch conftest.a
  7853. ln conftest.a conftest.b 2>&5 || hard_links=no
  7854. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7856. $as_echo "$hard_links" >&6; }
  7857. if test "$hard_links" = no; then
  7858. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7859. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7860. need_locks=warn
  7861. fi
  7862. else
  7863. need_locks=no
  7864. fi
  7865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7866. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7867. runpath_var=
  7868. allow_undefined_flag=
  7869. always_export_symbols=no
  7870. archive_cmds=
  7871. archive_expsym_cmds=
  7872. compiler_needs_object=no
  7873. enable_shared_with_static_runtimes=no
  7874. export_dynamic_flag_spec=
  7875. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7876. hardcode_automatic=no
  7877. hardcode_direct=no
  7878. hardcode_direct_absolute=no
  7879. hardcode_libdir_flag_spec=
  7880. hardcode_libdir_flag_spec_ld=
  7881. hardcode_libdir_separator=
  7882. hardcode_minus_L=no
  7883. hardcode_shlibpath_var=unsupported
  7884. inherit_rpath=no
  7885. link_all_deplibs=unknown
  7886. module_cmds=
  7887. module_expsym_cmds=
  7888. old_archive_from_new_cmds=
  7889. old_archive_from_expsyms_cmds=
  7890. thread_safe_flag_spec=
  7891. whole_archive_flag_spec=
  7892. # include_expsyms should be a list of space-separated symbols to be *always*
  7893. # included in the symbol list
  7894. include_expsyms=
  7895. # exclude_expsyms can be an extended regexp of symbols to exclude
  7896. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7897. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7898. # as well as any symbol that contains `d'.
  7899. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7900. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7901. # platforms (ab)use it in PIC code, but their linkers get confused if
  7902. # the symbol is explicitly referenced. Since portable code cannot
  7903. # rely on this symbol name, it's probably fine to never include it in
  7904. # preloaded symbol tables.
  7905. # Exclude shared library initialization/finalization symbols.
  7906. extract_expsyms_cmds=
  7907. case $host_os in
  7908. cygwin* | mingw* | pw32* | cegcc*)
  7909. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7910. # When not using gcc, we currently assume that we are using
  7911. # Microsoft Visual C++.
  7912. if test "$GCC" != yes; then
  7913. with_gnu_ld=no
  7914. fi
  7915. ;;
  7916. interix*)
  7917. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7918. with_gnu_ld=yes
  7919. ;;
  7920. openbsd*)
  7921. with_gnu_ld=no
  7922. ;;
  7923. esac
  7924. ld_shlibs=yes
  7925. if test "$with_gnu_ld" = yes; then
  7926. # If archive_cmds runs LD, not CC, wlarc should be empty
  7927. wlarc='${wl}'
  7928. # Set some defaults for GNU ld with shared library support. These
  7929. # are reset later if shared libraries are not supported. Putting them
  7930. # here allows them to be overridden if necessary.
  7931. runpath_var=LD_RUN_PATH
  7932. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7933. export_dynamic_flag_spec='${wl}--export-dynamic'
  7934. # ancient GNU ld didn't support --whole-archive et. al.
  7935. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7936. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7937. else
  7938. whole_archive_flag_spec=
  7939. fi
  7940. supports_anon_versioning=no
  7941. case `$LD -v 2>&1` in
  7942. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7943. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7944. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7945. *\ 2.11.*) ;; # other 2.11 versions
  7946. *) supports_anon_versioning=yes ;;
  7947. esac
  7948. # See if GNU ld supports shared libraries.
  7949. case $host_os in
  7950. aix[3-9]*)
  7951. # On AIX/PPC, the GNU linker is very broken
  7952. if test "$host_cpu" != ia64; then
  7953. ld_shlibs=no
  7954. cat <<_LT_EOF 1>&2
  7955. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7956. *** to be unable to reliably create shared libraries on AIX.
  7957. *** Therefore, libtool is disabling shared libraries support. If you
  7958. *** really care for shared libraries, you may want to modify your PATH
  7959. *** so that a non-GNU linker is found, and then restart.
  7960. _LT_EOF
  7961. fi
  7962. ;;
  7963. amigaos*)
  7964. case $host_cpu in
  7965. powerpc)
  7966. # see comment about AmigaOS4 .so support
  7967. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7968. archive_expsym_cmds=''
  7969. ;;
  7970. m68k)
  7971. 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)'
  7972. hardcode_libdir_flag_spec='-L$libdir'
  7973. hardcode_minus_L=yes
  7974. ;;
  7975. esac
  7976. ;;
  7977. beos*)
  7978. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7979. allow_undefined_flag=unsupported
  7980. # Joseph Beckenbach <[email protected]> says some releases of gcc
  7981. # support --undefined. This deserves some investigation. FIXME
  7982. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7983. else
  7984. ld_shlibs=no
  7985. fi
  7986. ;;
  7987. cygwin* | mingw* | pw32* | cegcc*)
  7988. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7989. # as there is no search path for DLLs.
  7990. hardcode_libdir_flag_spec='-L$libdir'
  7991. allow_undefined_flag=unsupported
  7992. always_export_symbols=no
  7993. enable_shared_with_static_runtimes=yes
  7994. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7995. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7996. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7997. # If the export-symbols file already is a .def file (1st line
  7998. # is EXPORTS), use it as is; otherwise, prepend...
  7999. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8000. cp $export_symbols $output_objdir/$soname.def;
  8001. else
  8002. echo EXPORTS > $output_objdir/$soname.def;
  8003. cat $export_symbols >> $output_objdir/$soname.def;
  8004. fi~
  8005. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8006. else
  8007. ld_shlibs=no
  8008. fi
  8009. ;;
  8010. interix[3-9]*)
  8011. hardcode_direct=no
  8012. hardcode_shlibpath_var=no
  8013. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8014. export_dynamic_flag_spec='${wl}-E'
  8015. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8016. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8017. # default) and relocated if they conflict, which is a slow very memory
  8018. # consuming and fragmenting process. To avoid this, we pick a random,
  8019. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8020. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8021. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8022. 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'
  8023. ;;
  8024. gnu* | linux* | tpf* | k*bsd*-gnu)
  8025. tmp_diet=no
  8026. if test "$host_os" = linux-dietlibc; then
  8027. case $cc_basename in
  8028. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8029. esac
  8030. fi
  8031. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8032. && test "$tmp_diet" = no
  8033. then
  8034. tmp_addflag=
  8035. tmp_sharedflag='-shared'
  8036. case $cc_basename,$host_cpu in
  8037. pgcc*) # Portland Group C compiler
  8038. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8039. tmp_addflag=' $pic_flag'
  8040. ;;
  8041. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  8042. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8043. tmp_addflag=' $pic_flag -Mnomain' ;;
  8044. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8045. tmp_addflag=' -i_dynamic' ;;
  8046. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8047. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8048. ifc* | ifort*) # Intel Fortran compiler
  8049. tmp_addflag=' -nofor_main' ;;
  8050. lf95*) # Lahey Fortran 8.1
  8051. whole_archive_flag_spec=
  8052. tmp_sharedflag='--shared' ;;
  8053. xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8054. tmp_sharedflag='-qmkshrobj'
  8055. tmp_addflag= ;;
  8056. esac
  8057. case `$CC -V 2>&1 | sed 5q` in
  8058. *Sun\ C*) # Sun C 5.9
  8059. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8060. compiler_needs_object=yes
  8061. tmp_sharedflag='-G' ;;
  8062. *Sun\ F*) # Sun Fortran 8.3
  8063. tmp_sharedflag='-G' ;;
  8064. esac
  8065. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8066. if test "x$supports_anon_versioning" = xyes; then
  8067. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8068. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8069. echo "local: *; };" >> $output_objdir/$libname.ver~
  8070. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8071. fi
  8072. case $cc_basename in
  8073. xlf*)
  8074. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8075. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8076. hardcode_libdir_flag_spec=
  8077. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8078. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8079. if test "x$supports_anon_versioning" = xyes; then
  8080. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8081. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8082. echo "local: *; };" >> $output_objdir/$libname.ver~
  8083. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8084. fi
  8085. ;;
  8086. esac
  8087. else
  8088. ld_shlibs=no
  8089. fi
  8090. ;;
  8091. netbsd* | netbsdelf*-gnu)
  8092. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8093. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8094. wlarc=
  8095. else
  8096. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8097. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8098. fi
  8099. ;;
  8100. solaris*)
  8101. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8102. ld_shlibs=no
  8103. cat <<_LT_EOF 1>&2
  8104. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8105. *** create shared libraries on Solaris systems. Therefore, libtool
  8106. *** is disabling shared libraries support. We urge you to upgrade GNU
  8107. *** binutils to release 2.9.1 or newer. Another option is to modify
  8108. *** your PATH or compiler configuration so that the native linker is
  8109. *** used, and then restart.
  8110. _LT_EOF
  8111. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8112. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8113. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8114. else
  8115. ld_shlibs=no
  8116. fi
  8117. ;;
  8118. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8119. case `$LD -v 2>&1` in
  8120. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8121. ld_shlibs=no
  8122. cat <<_LT_EOF 1>&2
  8123. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8124. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8125. *** is disabling shared libraries support. We urge you to upgrade GNU
  8126. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8127. *** your PATH or compiler configuration so that the native linker is
  8128. *** used, and then restart.
  8129. _LT_EOF
  8130. ;;
  8131. *)
  8132. # For security reasons, it is highly recommended that you always
  8133. # use absolute paths for naming shared libraries, and exclude the
  8134. # DT_RUNPATH tag from executables and libraries. But doing so
  8135. # requires that you compile everything twice, which is a pain.
  8136. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8137. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8138. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8139. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8140. else
  8141. ld_shlibs=no
  8142. fi
  8143. ;;
  8144. esac
  8145. ;;
  8146. sunos4*)
  8147. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8148. wlarc=
  8149. hardcode_direct=yes
  8150. hardcode_shlibpath_var=no
  8151. ;;
  8152. *)
  8153. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8154. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8155. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8156. else
  8157. ld_shlibs=no
  8158. fi
  8159. ;;
  8160. esac
  8161. if test "$ld_shlibs" = no; then
  8162. runpath_var=
  8163. hardcode_libdir_flag_spec=
  8164. export_dynamic_flag_spec=
  8165. whole_archive_flag_spec=
  8166. fi
  8167. else
  8168. # PORTME fill in a description of your system's linker (not GNU ld)
  8169. case $host_os in
  8170. aix3*)
  8171. allow_undefined_flag=unsupported
  8172. always_export_symbols=yes
  8173. 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'
  8174. # Note: this linker hardcodes the directories in LIBPATH if there
  8175. # are no directories specified by -L.
  8176. hardcode_minus_L=yes
  8177. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8178. # Neither direct hardcoding nor static linking is supported with a
  8179. # broken collect2.
  8180. hardcode_direct=unsupported
  8181. fi
  8182. ;;
  8183. aix[4-9]*)
  8184. if test "$host_cpu" = ia64; then
  8185. # On IA64, the linker does run time linking by default, so we don't
  8186. # have to do anything special.
  8187. aix_use_runtimelinking=no
  8188. exp_sym_flag='-Bexport'
  8189. no_entry_flag=""
  8190. else
  8191. # If we're using GNU nm, then we don't want the "-C" option.
  8192. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8193. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8194. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8195. else
  8196. 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'
  8197. fi
  8198. aix_use_runtimelinking=no
  8199. # Test if we are trying to use run time linking or normal
  8200. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8201. # need to do runtime linking.
  8202. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8203. for ld_flag in $LDFLAGS; do
  8204. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8205. aix_use_runtimelinking=yes
  8206. break
  8207. fi
  8208. done
  8209. ;;
  8210. esac
  8211. exp_sym_flag='-bexport'
  8212. no_entry_flag='-bnoentry'
  8213. fi
  8214. # When large executables or shared objects are built, AIX ld can
  8215. # have problems creating the table of contents. If linking a library
  8216. # or program results in "error TOC overflow" add -mminimal-toc to
  8217. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8218. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8219. archive_cmds=''
  8220. hardcode_direct=yes
  8221. hardcode_direct_absolute=yes
  8222. hardcode_libdir_separator=':'
  8223. link_all_deplibs=yes
  8224. file_list_spec='${wl}-f,'
  8225. if test "$GCC" = yes; then
  8226. case $host_os in aix4.[012]|aix4.[012].*)
  8227. # We only want to do this on AIX 4.2 and lower, the check
  8228. # below for broken collect2 doesn't work under 4.3+
  8229. collect2name=`${CC} -print-prog-name=collect2`
  8230. if test -f "$collect2name" &&
  8231. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8232. then
  8233. # We have reworked collect2
  8234. :
  8235. else
  8236. # We have old collect2
  8237. hardcode_direct=unsupported
  8238. # It fails to find uninstalled libraries when the uninstalled
  8239. # path is not listed in the libpath. Setting hardcode_minus_L
  8240. # to unsupported forces relinking
  8241. hardcode_minus_L=yes
  8242. hardcode_libdir_flag_spec='-L$libdir'
  8243. hardcode_libdir_separator=
  8244. fi
  8245. ;;
  8246. esac
  8247. shared_flag='-shared'
  8248. if test "$aix_use_runtimelinking" = yes; then
  8249. shared_flag="$shared_flag "'${wl}-G'
  8250. fi
  8251. link_all_deplibs=no
  8252. else
  8253. # not using gcc
  8254. if test "$host_cpu" = ia64; then
  8255. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8256. # chokes on -Wl,-G. The following line is correct:
  8257. shared_flag='-G'
  8258. else
  8259. if test "$aix_use_runtimelinking" = yes; then
  8260. shared_flag='${wl}-G'
  8261. else
  8262. shared_flag='${wl}-bM:SRE'
  8263. fi
  8264. fi
  8265. fi
  8266. export_dynamic_flag_spec='${wl}-bexpall'
  8267. # It seems that -bexpall does not export symbols beginning with
  8268. # underscore (_), so it is better to generate a list of symbols to export.
  8269. always_export_symbols=yes
  8270. if test "$aix_use_runtimelinking" = yes; then
  8271. # Warning - without using the other runtime loading flags (-brtl),
  8272. # -berok will link without error, but may produce a broken library.
  8273. allow_undefined_flag='-berok'
  8274. # Determine the default libpath from the value encoded in an
  8275. # empty executable.
  8276. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8277. /* end confdefs.h. */
  8278. int
  8279. main ()
  8280. {
  8281. ;
  8282. return 0;
  8283. }
  8284. _ACEOF
  8285. if ac_fn_c_try_link "$LINENO"; then :
  8286. lt_aix_libpath_sed='
  8287. /Import File Strings/,/^$/ {
  8288. /^0/ {
  8289. s/^0 *\(.*\)$/\1/
  8290. p
  8291. }
  8292. }'
  8293. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8294. # Check for a 64-bit object if we didn't find anything.
  8295. if test -z "$aix_libpath"; then
  8296. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8297. fi
  8298. fi
  8299. rm -f core conftest.err conftest.$ac_objext \
  8300. conftest$ac_exeext conftest.$ac_ext
  8301. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8302. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8303. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8304. else
  8305. if test "$host_cpu" = ia64; then
  8306. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8307. allow_undefined_flag="-z nodefs"
  8308. 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"
  8309. else
  8310. # Determine the default libpath from the value encoded in an
  8311. # empty executable.
  8312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8313. /* end confdefs.h. */
  8314. int
  8315. main ()
  8316. {
  8317. ;
  8318. return 0;
  8319. }
  8320. _ACEOF
  8321. if ac_fn_c_try_link "$LINENO"; then :
  8322. lt_aix_libpath_sed='
  8323. /Import File Strings/,/^$/ {
  8324. /^0/ {
  8325. s/^0 *\(.*\)$/\1/
  8326. p
  8327. }
  8328. }'
  8329. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8330. # Check for a 64-bit object if we didn't find anything.
  8331. if test -z "$aix_libpath"; then
  8332. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8333. fi
  8334. fi
  8335. rm -f core conftest.err conftest.$ac_objext \
  8336. conftest$ac_exeext conftest.$ac_ext
  8337. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8338. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8339. # Warning - without using the other run time loading flags,
  8340. # -berok will link without error, but may produce a broken library.
  8341. no_undefined_flag=' ${wl}-bernotok'
  8342. allow_undefined_flag=' ${wl}-berok'
  8343. # Exported symbols can be pulled into shared objects from archives
  8344. whole_archive_flag_spec='$convenience'
  8345. archive_cmds_need_lc=yes
  8346. # This is similar to how AIX traditionally builds its shared libraries.
  8347. 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'
  8348. fi
  8349. fi
  8350. ;;
  8351. amigaos*)
  8352. case $host_cpu in
  8353. powerpc)
  8354. # see comment about AmigaOS4 .so support
  8355. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8356. archive_expsym_cmds=''
  8357. ;;
  8358. m68k)
  8359. 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)'
  8360. hardcode_libdir_flag_spec='-L$libdir'
  8361. hardcode_minus_L=yes
  8362. ;;
  8363. esac
  8364. ;;
  8365. bsdi[45]*)
  8366. export_dynamic_flag_spec=-rdynamic
  8367. ;;
  8368. cygwin* | mingw* | pw32* | cegcc*)
  8369. # When not using gcc, we currently assume that we are using
  8370. # Microsoft Visual C++.
  8371. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8372. # no search path for DLLs.
  8373. hardcode_libdir_flag_spec=' '
  8374. allow_undefined_flag=unsupported
  8375. # Tell ltmain to make .lib files, not .a files.
  8376. libext=lib
  8377. # Tell ltmain to make .dll files, not .so files.
  8378. shrext_cmds=".dll"
  8379. # FIXME: Setting linknames here is a bad hack.
  8380. archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8381. # The linker will automatically build a .lib file if we build a DLL.
  8382. old_archive_from_new_cmds='true'
  8383. # FIXME: Should let the user specify the lib program.
  8384. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8385. fix_srcfile_path='`cygpath -w "$srcfile"`'
  8386. enable_shared_with_static_runtimes=yes
  8387. ;;
  8388. darwin* | rhapsody*)
  8389. archive_cmds_need_lc=no
  8390. hardcode_direct=no
  8391. hardcode_automatic=yes
  8392. hardcode_shlibpath_var=unsupported
  8393. whole_archive_flag_spec=''
  8394. link_all_deplibs=yes
  8395. allow_undefined_flag="$_lt_dar_allow_undefined"
  8396. case $cc_basename in
  8397. ifort*) _lt_dar_can_shared=yes ;;
  8398. *) _lt_dar_can_shared=$GCC ;;
  8399. esac
  8400. if test "$_lt_dar_can_shared" = "yes"; then
  8401. output_verbose_link_cmd=echo
  8402. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8403. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8404. 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}"
  8405. 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}"
  8406. else
  8407. ld_shlibs=no
  8408. fi
  8409. ;;
  8410. dgux*)
  8411. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8412. hardcode_libdir_flag_spec='-L$libdir'
  8413. hardcode_shlibpath_var=no
  8414. ;;
  8415. freebsd1*)
  8416. ld_shlibs=no
  8417. ;;
  8418. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8419. # support. Future versions do this automatically, but an explicit c++rt0.o
  8420. # does not break anything, and helps significantly (at the cost of a little
  8421. # extra space).
  8422. freebsd2.2*)
  8423. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8424. hardcode_libdir_flag_spec='-R$libdir'
  8425. hardcode_direct=yes
  8426. hardcode_shlibpath_var=no
  8427. ;;
  8428. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8429. freebsd2*)
  8430. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8431. hardcode_direct=yes
  8432. hardcode_minus_L=yes
  8433. hardcode_shlibpath_var=no
  8434. ;;
  8435. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8436. freebsd* | dragonfly*)
  8437. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8438. hardcode_libdir_flag_spec='-R$libdir'
  8439. hardcode_direct=yes
  8440. hardcode_shlibpath_var=no
  8441. ;;
  8442. hpux9*)
  8443. if test "$GCC" = yes; then
  8444. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8445. else
  8446. 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'
  8447. fi
  8448. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8449. hardcode_libdir_separator=:
  8450. hardcode_direct=yes
  8451. # hardcode_minus_L: Not really in the search PATH,
  8452. # but as the default location of the library.
  8453. hardcode_minus_L=yes
  8454. export_dynamic_flag_spec='${wl}-E'
  8455. ;;
  8456. hpux10*)
  8457. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8458. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8459. else
  8460. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8461. fi
  8462. if test "$with_gnu_ld" = no; then
  8463. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8464. hardcode_libdir_flag_spec_ld='+b $libdir'
  8465. hardcode_libdir_separator=:
  8466. hardcode_direct=yes
  8467. hardcode_direct_absolute=yes
  8468. export_dynamic_flag_spec='${wl}-E'
  8469. # hardcode_minus_L: Not really in the search PATH,
  8470. # but as the default location of the library.
  8471. hardcode_minus_L=yes
  8472. fi
  8473. ;;
  8474. hpux11*)
  8475. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8476. case $host_cpu in
  8477. hppa*64*)
  8478. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8479. ;;
  8480. ia64*)
  8481. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8482. ;;
  8483. *)
  8484. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8485. ;;
  8486. esac
  8487. else
  8488. case $host_cpu in
  8489. hppa*64*)
  8490. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8491. ;;
  8492. ia64*)
  8493. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8494. ;;
  8495. *)
  8496. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8497. ;;
  8498. esac
  8499. fi
  8500. if test "$with_gnu_ld" = no; then
  8501. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8502. hardcode_libdir_separator=:
  8503. case $host_cpu in
  8504. hppa*64*|ia64*)
  8505. hardcode_direct=no
  8506. hardcode_shlibpath_var=no
  8507. ;;
  8508. *)
  8509. hardcode_direct=yes
  8510. hardcode_direct_absolute=yes
  8511. export_dynamic_flag_spec='${wl}-E'
  8512. # hardcode_minus_L: Not really in the search PATH,
  8513. # but as the default location of the library.
  8514. hardcode_minus_L=yes
  8515. ;;
  8516. esac
  8517. fi
  8518. ;;
  8519. irix5* | irix6* | nonstopux*)
  8520. if test "$GCC" = yes; then
  8521. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8522. # Try to use the -exported_symbol ld option, if it does not
  8523. # work, assume that -exports_file does not work either and
  8524. # implicitly export all symbols.
  8525. save_LDFLAGS="$LDFLAGS"
  8526. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8527. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8528. /* end confdefs.h. */
  8529. int foo(void) {}
  8530. _ACEOF
  8531. if ac_fn_c_try_link "$LINENO"; then :
  8532. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8533. fi
  8534. rm -f core conftest.err conftest.$ac_objext \
  8535. conftest$ac_exeext conftest.$ac_ext
  8536. LDFLAGS="$save_LDFLAGS"
  8537. else
  8538. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8539. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8540. fi
  8541. archive_cmds_need_lc='no'
  8542. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8543. hardcode_libdir_separator=:
  8544. inherit_rpath=yes
  8545. link_all_deplibs=yes
  8546. ;;
  8547. netbsd* | netbsdelf*-gnu)
  8548. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8549. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8550. else
  8551. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8552. fi
  8553. hardcode_libdir_flag_spec='-R$libdir'
  8554. hardcode_direct=yes
  8555. hardcode_shlibpath_var=no
  8556. ;;
  8557. newsos6)
  8558. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8559. hardcode_direct=yes
  8560. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8561. hardcode_libdir_separator=:
  8562. hardcode_shlibpath_var=no
  8563. ;;
  8564. *nto* | *qnx*)
  8565. ;;
  8566. openbsd*)
  8567. if test -f /usr/libexec/ld.so; then
  8568. hardcode_direct=yes
  8569. hardcode_shlibpath_var=no
  8570. hardcode_direct_absolute=yes
  8571. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8572. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8573. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8574. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8575. export_dynamic_flag_spec='${wl}-E'
  8576. else
  8577. case $host_os in
  8578. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8579. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8580. hardcode_libdir_flag_spec='-R$libdir'
  8581. ;;
  8582. *)
  8583. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8584. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8585. ;;
  8586. esac
  8587. fi
  8588. else
  8589. ld_shlibs=no
  8590. fi
  8591. ;;
  8592. os2*)
  8593. hardcode_libdir_flag_spec='-L$libdir'
  8594. hardcode_minus_L=yes
  8595. allow_undefined_flag=unsupported
  8596. 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'
  8597. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8598. ;;
  8599. osf3*)
  8600. if test "$GCC" = yes; then
  8601. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8602. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8603. else
  8604. allow_undefined_flag=' -expect_unresolved \*'
  8605. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8606. fi
  8607. archive_cmds_need_lc='no'
  8608. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8609. hardcode_libdir_separator=:
  8610. ;;
  8611. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8612. if test "$GCC" = yes; then
  8613. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8614. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8615. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8616. else
  8617. allow_undefined_flag=' -expect_unresolved \*'
  8618. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8619. 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~
  8620. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8621. # Both c and cxx compiler support -rpath directly
  8622. hardcode_libdir_flag_spec='-rpath $libdir'
  8623. fi
  8624. archive_cmds_need_lc='no'
  8625. hardcode_libdir_separator=:
  8626. ;;
  8627. solaris*)
  8628. no_undefined_flag=' -z defs'
  8629. if test "$GCC" = yes; then
  8630. wlarc='${wl}'
  8631. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8632. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8633. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8634. else
  8635. case `$CC -V 2>&1` in
  8636. *"Compilers 5.0"*)
  8637. wlarc=''
  8638. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8639. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8640. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8641. ;;
  8642. *)
  8643. wlarc='${wl}'
  8644. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8645. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8646. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8647. ;;
  8648. esac
  8649. fi
  8650. hardcode_libdir_flag_spec='-R$libdir'
  8651. hardcode_shlibpath_var=no
  8652. case $host_os in
  8653. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8654. *)
  8655. # The compiler driver will combine and reorder linker options,
  8656. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8657. # but is careful enough not to reorder.
  8658. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8659. if test "$GCC" = yes; then
  8660. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8661. else
  8662. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8663. fi
  8664. ;;
  8665. esac
  8666. link_all_deplibs=yes
  8667. ;;
  8668. sunos4*)
  8669. if test "x$host_vendor" = xsequent; then
  8670. # Use $CC to link under sequent, because it throws in some extra .o
  8671. # files that make .init and .fini sections work.
  8672. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8673. else
  8674. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8675. fi
  8676. hardcode_libdir_flag_spec='-L$libdir'
  8677. hardcode_direct=yes
  8678. hardcode_minus_L=yes
  8679. hardcode_shlibpath_var=no
  8680. ;;
  8681. sysv4)
  8682. case $host_vendor in
  8683. sni)
  8684. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8685. hardcode_direct=yes # is this really true???
  8686. ;;
  8687. siemens)
  8688. ## LD is ld it makes a PLAMLIB
  8689. ## CC just makes a GrossModule.
  8690. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8691. reload_cmds='$CC -r -o $output$reload_objs'
  8692. hardcode_direct=no
  8693. ;;
  8694. motorola)
  8695. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8696. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8697. ;;
  8698. esac
  8699. runpath_var='LD_RUN_PATH'
  8700. hardcode_shlibpath_var=no
  8701. ;;
  8702. sysv4.3*)
  8703. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8704. hardcode_shlibpath_var=no
  8705. export_dynamic_flag_spec='-Bexport'
  8706. ;;
  8707. sysv4*MP*)
  8708. if test -d /usr/nec; then
  8709. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8710. hardcode_shlibpath_var=no
  8711. runpath_var=LD_RUN_PATH
  8712. hardcode_runpath_var=yes
  8713. ld_shlibs=yes
  8714. fi
  8715. ;;
  8716. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8717. no_undefined_flag='${wl}-z,text'
  8718. archive_cmds_need_lc=no
  8719. hardcode_shlibpath_var=no
  8720. runpath_var='LD_RUN_PATH'
  8721. if test "$GCC" = yes; then
  8722. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8723. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8724. else
  8725. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8726. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8727. fi
  8728. ;;
  8729. sysv5* | sco3.2v5* | sco5v6*)
  8730. # Note: We can NOT use -z defs as we might desire, because we do not
  8731. # link with -lc, and that would cause any symbols used from libc to
  8732. # always be unresolved, which means just about no library would
  8733. # ever link correctly. If we're not using GNU ld we use -z text
  8734. # though, which does catch some bad symbols but isn't as heavy-handed
  8735. # as -z defs.
  8736. no_undefined_flag='${wl}-z,text'
  8737. allow_undefined_flag='${wl}-z,nodefs'
  8738. archive_cmds_need_lc=no
  8739. hardcode_shlibpath_var=no
  8740. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8741. hardcode_libdir_separator=':'
  8742. link_all_deplibs=yes
  8743. export_dynamic_flag_spec='${wl}-Bexport'
  8744. runpath_var='LD_RUN_PATH'
  8745. if test "$GCC" = yes; then
  8746. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8747. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8748. else
  8749. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8750. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8751. fi
  8752. ;;
  8753. uts4*)
  8754. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8755. hardcode_libdir_flag_spec='-L$libdir'
  8756. hardcode_shlibpath_var=no
  8757. ;;
  8758. *)
  8759. ld_shlibs=no
  8760. ;;
  8761. esac
  8762. if test x$host_vendor = xsni; then
  8763. case $host in
  8764. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8765. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8766. ;;
  8767. esac
  8768. fi
  8769. fi
  8770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8771. $as_echo "$ld_shlibs" >&6; }
  8772. test "$ld_shlibs" = no && can_build_shared=no
  8773. with_gnu_ld=$with_gnu_ld
  8774. #
  8775. # Do we need to explicitly link libc?
  8776. #
  8777. case "x$archive_cmds_need_lc" in
  8778. x|xyes)
  8779. # Assume -lc should be added
  8780. archive_cmds_need_lc=yes
  8781. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8782. case $archive_cmds in
  8783. *'~'*)
  8784. # FIXME: we may have to deal with multi-command sequences.
  8785. ;;
  8786. '$CC '*)
  8787. # Test whether the compiler implicitly links with -lc since on some
  8788. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8789. # to ld, don't add -lc before -lgcc.
  8790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8791. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8792. $RM conftest*
  8793. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8794. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8795. (eval $ac_compile) 2>&5
  8796. ac_status=$?
  8797. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8798. test $ac_status = 0; } 2>conftest.err; then
  8799. soname=conftest
  8800. lib=conftest
  8801. libobjs=conftest.$ac_objext
  8802. deplibs=
  8803. wl=$lt_prog_compiler_wl
  8804. pic_flag=$lt_prog_compiler_pic
  8805. compiler_flags=-v
  8806. linker_flags=-v
  8807. verstring=
  8808. output_objdir=.
  8809. libname=conftest
  8810. lt_save_allow_undefined_flag=$allow_undefined_flag
  8811. allow_undefined_flag=
  8812. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8813. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8814. ac_status=$?
  8815. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8816. test $ac_status = 0; }
  8817. then
  8818. archive_cmds_need_lc=no
  8819. else
  8820. archive_cmds_need_lc=yes
  8821. fi
  8822. allow_undefined_flag=$lt_save_allow_undefined_flag
  8823. else
  8824. cat conftest.err 1>&5
  8825. fi
  8826. $RM conftest*
  8827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  8828. $as_echo "$archive_cmds_need_lc" >&6; }
  8829. ;;
  8830. esac
  8831. fi
  8832. ;;
  8833. esac
  8834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8835. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8836. if test "$GCC" = yes; then
  8837. case $host_os in
  8838. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8839. *) lt_awk_arg="/^libraries:/" ;;
  8840. esac
  8841. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  8842. if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  8843. # if the path contains ";" then we assume it to be the separator
  8844. # otherwise default to the standard path separator (i.e. ":") - it is
  8845. # assumed that no part of a normal pathname contains ";" but that should
  8846. # okay in the real world where ";" in dirpaths is itself problematic.
  8847. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  8848. else
  8849. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8850. fi
  8851. # Ok, now we have the path, separated by spaces, we can step through it
  8852. # and add multilib dir if necessary.
  8853. lt_tmp_lt_search_path_spec=
  8854. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8855. for lt_sys_path in $lt_search_path_spec; do
  8856. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8857. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8858. else
  8859. test -d "$lt_sys_path" && \
  8860. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8861. fi
  8862. done
  8863. lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  8864. BEGIN {RS=" "; FS="/|\n";} {
  8865. lt_foo="";
  8866. lt_count=0;
  8867. for (lt_i = NF; lt_i > 0; lt_i--) {
  8868. if ($lt_i != "" && $lt_i != ".") {
  8869. if ($lt_i == "..") {
  8870. lt_count++;
  8871. } else {
  8872. if (lt_count == 0) {
  8873. lt_foo="/" $lt_i lt_foo;
  8874. } else {
  8875. lt_count--;
  8876. }
  8877. }
  8878. }
  8879. }
  8880. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8881. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8882. }'`
  8883. sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  8884. else
  8885. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8886. fi
  8887. library_names_spec=
  8888. libname_spec='lib$name'
  8889. soname_spec=
  8890. shrext_cmds=".so"
  8891. postinstall_cmds=
  8892. postuninstall_cmds=
  8893. finish_cmds=
  8894. finish_eval=
  8895. shlibpath_var=
  8896. shlibpath_overrides_runpath=unknown
  8897. version_type=none
  8898. dynamic_linker="$host_os ld.so"
  8899. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8900. need_lib_prefix=unknown
  8901. hardcode_into_libs=no
  8902. # when you set need_version to no, make sure it does not cause -set_version
  8903. # flags to be left without arguments
  8904. need_version=unknown
  8905. case $host_os in
  8906. aix3*)
  8907. version_type=linux
  8908. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8909. shlibpath_var=LIBPATH
  8910. # AIX 3 has no versioning support, so we append a major version to the name.
  8911. soname_spec='${libname}${release}${shared_ext}$major'
  8912. ;;
  8913. aix[4-9]*)
  8914. version_type=linux
  8915. need_lib_prefix=no
  8916. need_version=no
  8917. hardcode_into_libs=yes
  8918. if test "$host_cpu" = ia64; then
  8919. # AIX 5 supports IA64
  8920. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8921. shlibpath_var=LD_LIBRARY_PATH
  8922. else
  8923. # With GCC up to 2.95.x, collect2 would create an import file
  8924. # for dependence libraries. The import file would start with
  8925. # the line `#! .'. This would cause the generated library to
  8926. # depend on `.', always an invalid library. This was fixed in
  8927. # development snapshots of GCC prior to 3.0.
  8928. case $host_os in
  8929. aix4 | aix4.[01] | aix4.[01].*)
  8930. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8931. echo ' yes '
  8932. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8933. :
  8934. else
  8935. can_build_shared=no
  8936. fi
  8937. ;;
  8938. esac
  8939. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8940. # soname into executable. Probably we can add versioning support to
  8941. # collect2, so additional links can be useful in future.
  8942. if test "$aix_use_runtimelinking" = yes; then
  8943. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8944. # instead of lib<name>.a to let people know that these are not
  8945. # typical AIX shared libraries.
  8946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8947. else
  8948. # We preserve .a as extension for shared libraries through AIX4.2
  8949. # and later when we are not doing run time linking.
  8950. library_names_spec='${libname}${release}.a $libname.a'
  8951. soname_spec='${libname}${release}${shared_ext}$major'
  8952. fi
  8953. shlibpath_var=LIBPATH
  8954. fi
  8955. ;;
  8956. amigaos*)
  8957. case $host_cpu in
  8958. powerpc)
  8959. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8960. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8961. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8962. ;;
  8963. m68k)
  8964. library_names_spec='$libname.ixlibrary $libname.a'
  8965. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8966. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  8967. ;;
  8968. esac
  8969. ;;
  8970. beos*)
  8971. library_names_spec='${libname}${shared_ext}'
  8972. dynamic_linker="$host_os ld.so"
  8973. shlibpath_var=LIBRARY_PATH
  8974. ;;
  8975. bsdi[45]*)
  8976. version_type=linux
  8977. need_version=no
  8978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8979. soname_spec='${libname}${release}${shared_ext}$major'
  8980. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8981. shlibpath_var=LD_LIBRARY_PATH
  8982. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8983. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8984. # the default ld.so.conf also contains /usr/contrib/lib and
  8985. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8986. # libtool to hard-code these into programs
  8987. ;;
  8988. cygwin* | mingw* | pw32* | cegcc*)
  8989. version_type=windows
  8990. shrext_cmds=".dll"
  8991. need_version=no
  8992. need_lib_prefix=no
  8993. case $GCC,$host_os in
  8994. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8995. library_names_spec='$libname.dll.a'
  8996. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8997. postinstall_cmds='base_file=`basename \${file}`~
  8998. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8999. dldir=$destdir/`dirname \$dlpath`~
  9000. test -d \$dldir || mkdir -p \$dldir~
  9001. $install_prog $dir/$dlname \$dldir/$dlname~
  9002. chmod a+x \$dldir/$dlname~
  9003. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9004. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9005. fi'
  9006. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9007. dlpath=$dir/\$dldll~
  9008. $RM \$dlpath'
  9009. shlibpath_overrides_runpath=yes
  9010. case $host_os in
  9011. cygwin*)
  9012. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9013. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9014. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  9015. ;;
  9016. mingw* | cegcc*)
  9017. # MinGW DLLs use traditional 'lib' prefix
  9018. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9019. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  9020. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9021. # It is most probably a Windows format PATH printed by
  9022. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  9023. # path with ; separators, and with drive letters. We can handle the
  9024. # drive letters (cygwin fileutils understands them), so leave them,
  9025. # especially as we might pass files found there to a mingw objdump,
  9026. # which wouldn't understand a cygwinified path. Ahh.
  9027. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9028. else
  9029. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9030. fi
  9031. ;;
  9032. pw32*)
  9033. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9034. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9035. ;;
  9036. esac
  9037. ;;
  9038. *)
  9039. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9040. ;;
  9041. esac
  9042. dynamic_linker='Win32 ld.exe'
  9043. # FIXME: first we should search . and the directory the executable is in
  9044. shlibpath_var=PATH
  9045. ;;
  9046. darwin* | rhapsody*)
  9047. dynamic_linker="$host_os dyld"
  9048. version_type=darwin
  9049. need_lib_prefix=no
  9050. need_version=no
  9051. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9052. soname_spec='${libname}${release}${major}$shared_ext'
  9053. shlibpath_overrides_runpath=yes
  9054. shlibpath_var=DYLD_LIBRARY_PATH
  9055. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9056. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9057. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9058. ;;
  9059. dgux*)
  9060. version_type=linux
  9061. need_lib_prefix=no
  9062. need_version=no
  9063. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9064. soname_spec='${libname}${release}${shared_ext}$major'
  9065. shlibpath_var=LD_LIBRARY_PATH
  9066. ;;
  9067. freebsd1*)
  9068. dynamic_linker=no
  9069. ;;
  9070. freebsd* | dragonfly*)
  9071. # DragonFly does not have aout. When/if they implement a new
  9072. # versioning mechanism, adjust this.
  9073. if test -x /usr/bin/objformat; then
  9074. objformat=`/usr/bin/objformat`
  9075. else
  9076. case $host_os in
  9077. freebsd[123]*) objformat=aout ;;
  9078. *) objformat=elf ;;
  9079. esac
  9080. fi
  9081. version_type=freebsd-$objformat
  9082. case $version_type in
  9083. freebsd-elf*)
  9084. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9085. need_version=no
  9086. need_lib_prefix=no
  9087. ;;
  9088. freebsd-*)
  9089. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9090. need_version=yes
  9091. ;;
  9092. esac
  9093. shlibpath_var=LD_LIBRARY_PATH
  9094. case $host_os in
  9095. freebsd2*)
  9096. shlibpath_overrides_runpath=yes
  9097. ;;
  9098. freebsd3.[01]* | freebsdelf3.[01]*)
  9099. shlibpath_overrides_runpath=yes
  9100. hardcode_into_libs=yes
  9101. ;;
  9102. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9103. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9104. shlibpath_overrides_runpath=no
  9105. hardcode_into_libs=yes
  9106. ;;
  9107. *) # from 4.6 on, and DragonFly
  9108. shlibpath_overrides_runpath=yes
  9109. hardcode_into_libs=yes
  9110. ;;
  9111. esac
  9112. ;;
  9113. gnu*)
  9114. version_type=linux
  9115. need_lib_prefix=no
  9116. need_version=no
  9117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9118. soname_spec='${libname}${release}${shared_ext}$major'
  9119. shlibpath_var=LD_LIBRARY_PATH
  9120. hardcode_into_libs=yes
  9121. ;;
  9122. hpux9* | hpux10* | hpux11*)
  9123. # Give a soname corresponding to the major version so that dld.sl refuses to
  9124. # link against other versions.
  9125. version_type=sunos
  9126. need_lib_prefix=no
  9127. need_version=no
  9128. case $host_cpu in
  9129. ia64*)
  9130. shrext_cmds='.so'
  9131. hardcode_into_libs=yes
  9132. dynamic_linker="$host_os dld.so"
  9133. shlibpath_var=LD_LIBRARY_PATH
  9134. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9135. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9136. soname_spec='${libname}${release}${shared_ext}$major'
  9137. if test "X$HPUX_IA64_MODE" = X32; then
  9138. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9139. else
  9140. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9141. fi
  9142. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9143. ;;
  9144. hppa*64*)
  9145. shrext_cmds='.sl'
  9146. hardcode_into_libs=yes
  9147. dynamic_linker="$host_os dld.sl"
  9148. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9149. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9150. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9151. soname_spec='${libname}${release}${shared_ext}$major'
  9152. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9153. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9154. ;;
  9155. *)
  9156. shrext_cmds='.sl'
  9157. dynamic_linker="$host_os dld.sl"
  9158. shlibpath_var=SHLIB_PATH
  9159. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9160. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9161. soname_spec='${libname}${release}${shared_ext}$major'
  9162. ;;
  9163. esac
  9164. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  9165. postinstall_cmds='chmod 555 $lib'
  9166. ;;
  9167. interix[3-9]*)
  9168. version_type=linux
  9169. need_lib_prefix=no
  9170. need_version=no
  9171. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9172. soname_spec='${libname}${release}${shared_ext}$major'
  9173. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9174. shlibpath_var=LD_LIBRARY_PATH
  9175. shlibpath_overrides_runpath=no
  9176. hardcode_into_libs=yes
  9177. ;;
  9178. irix5* | irix6* | nonstopux*)
  9179. case $host_os in
  9180. nonstopux*) version_type=nonstopux ;;
  9181. *)
  9182. if test "$lt_cv_prog_gnu_ld" = yes; then
  9183. version_type=linux
  9184. else
  9185. version_type=irix
  9186. fi ;;
  9187. esac
  9188. need_lib_prefix=no
  9189. need_version=no
  9190. soname_spec='${libname}${release}${shared_ext}$major'
  9191. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9192. case $host_os in
  9193. irix5* | nonstopux*)
  9194. libsuff= shlibsuff=
  9195. ;;
  9196. *)
  9197. case $LD in # libtool.m4 will add one of these switches to LD
  9198. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9199. libsuff= shlibsuff= libmagic=32-bit;;
  9200. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9201. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9202. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9203. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9204. *) libsuff= shlibsuff= libmagic=never-match;;
  9205. esac
  9206. ;;
  9207. esac
  9208. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9209. shlibpath_overrides_runpath=no
  9210. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9211. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9212. hardcode_into_libs=yes
  9213. ;;
  9214. # No shared lib support for Linux oldld, aout, or coff.
  9215. linux*oldld* | linux*aout* | linux*coff*)
  9216. dynamic_linker=no
  9217. ;;
  9218. # This must be Linux ELF.
  9219. linux* | k*bsd*-gnu)
  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. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9226. shlibpath_var=LD_LIBRARY_PATH
  9227. shlibpath_overrides_runpath=no
  9228. # Some binutils ld are patched to set DT_RUNPATH
  9229. save_LDFLAGS=$LDFLAGS
  9230. save_libdir=$libdir
  9231. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9232. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9233. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9234. /* end confdefs.h. */
  9235. int
  9236. main ()
  9237. {
  9238. ;
  9239. return 0;
  9240. }
  9241. _ACEOF
  9242. if ac_fn_c_try_link "$LINENO"; then :
  9243. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9244. shlibpath_overrides_runpath=yes
  9245. fi
  9246. fi
  9247. rm -f core conftest.err conftest.$ac_objext \
  9248. conftest$ac_exeext conftest.$ac_ext
  9249. LDFLAGS=$save_LDFLAGS
  9250. libdir=$save_libdir
  9251. # This implies no fast_install, which is unacceptable.
  9252. # Some rework will be needed to allow for fast_install
  9253. # before this can be enabled.
  9254. hardcode_into_libs=yes
  9255. # Append ld.so.conf contents to the search path
  9256. if test -f /etc/ld.so.conf; then
  9257. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  9258. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9259. fi
  9260. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9261. # powerpc, because MkLinux only supported shared libraries with the
  9262. # GNU dynamic linker. Since this was broken with cross compilers,
  9263. # most powerpc-linux boxes support dynamic linking these days and
  9264. # people can always --disable-shared, the test was removed, and we
  9265. # assume the GNU/Linux dynamic linker is in use.
  9266. dynamic_linker='GNU/Linux ld.so'
  9267. ;;
  9268. netbsdelf*-gnu)
  9269. version_type=linux
  9270. need_lib_prefix=no
  9271. need_version=no
  9272. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9273. soname_spec='${libname}${release}${shared_ext}$major'
  9274. shlibpath_var=LD_LIBRARY_PATH
  9275. shlibpath_overrides_runpath=no
  9276. hardcode_into_libs=yes
  9277. dynamic_linker='NetBSD ld.elf_so'
  9278. ;;
  9279. netbsd*)
  9280. version_type=sunos
  9281. need_lib_prefix=no
  9282. need_version=no
  9283. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9284. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9285. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9286. dynamic_linker='NetBSD (a.out) ld.so'
  9287. else
  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. dynamic_linker='NetBSD ld.elf_so'
  9291. fi
  9292. shlibpath_var=LD_LIBRARY_PATH
  9293. shlibpath_overrides_runpath=yes
  9294. hardcode_into_libs=yes
  9295. ;;
  9296. newsos6)
  9297. version_type=linux
  9298. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9299. shlibpath_var=LD_LIBRARY_PATH
  9300. shlibpath_overrides_runpath=yes
  9301. ;;
  9302. *nto* | *qnx*)
  9303. version_type=qnx
  9304. need_lib_prefix=no
  9305. need_version=no
  9306. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9307. soname_spec='${libname}${release}${shared_ext}$major'
  9308. shlibpath_var=LD_LIBRARY_PATH
  9309. shlibpath_overrides_runpath=no
  9310. hardcode_into_libs=yes
  9311. dynamic_linker='ldqnx.so'
  9312. ;;
  9313. openbsd*)
  9314. version_type=sunos
  9315. sys_lib_dlsearch_path_spec="/usr/lib"
  9316. need_lib_prefix=no
  9317. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9318. case $host_os in
  9319. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9320. *) need_version=no ;;
  9321. esac
  9322. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9323. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9324. shlibpath_var=LD_LIBRARY_PATH
  9325. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9326. case $host_os in
  9327. openbsd2.[89] | openbsd2.[89].*)
  9328. shlibpath_overrides_runpath=no
  9329. ;;
  9330. *)
  9331. shlibpath_overrides_runpath=yes
  9332. ;;
  9333. esac
  9334. else
  9335. shlibpath_overrides_runpath=yes
  9336. fi
  9337. ;;
  9338. os2*)
  9339. libname_spec='$name'
  9340. shrext_cmds=".dll"
  9341. need_lib_prefix=no
  9342. library_names_spec='$libname${shared_ext} $libname.a'
  9343. dynamic_linker='OS/2 ld.exe'
  9344. shlibpath_var=LIBPATH
  9345. ;;
  9346. osf3* | osf4* | osf5*)
  9347. version_type=osf
  9348. need_lib_prefix=no
  9349. need_version=no
  9350. soname_spec='${libname}${release}${shared_ext}$major'
  9351. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9352. shlibpath_var=LD_LIBRARY_PATH
  9353. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9354. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9355. ;;
  9356. rdos*)
  9357. dynamic_linker=no
  9358. ;;
  9359. solaris*)
  9360. version_type=linux
  9361. need_lib_prefix=no
  9362. need_version=no
  9363. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9364. soname_spec='${libname}${release}${shared_ext}$major'
  9365. shlibpath_var=LD_LIBRARY_PATH
  9366. shlibpath_overrides_runpath=yes
  9367. hardcode_into_libs=yes
  9368. # ldd complains unless libraries are executable
  9369. postinstall_cmds='chmod +x $lib'
  9370. ;;
  9371. sunos4*)
  9372. version_type=sunos
  9373. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9374. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9375. shlibpath_var=LD_LIBRARY_PATH
  9376. shlibpath_overrides_runpath=yes
  9377. if test "$with_gnu_ld" = yes; then
  9378. need_lib_prefix=no
  9379. fi
  9380. need_version=yes
  9381. ;;
  9382. sysv4 | sysv4.3*)
  9383. version_type=linux
  9384. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9385. soname_spec='${libname}${release}${shared_ext}$major'
  9386. shlibpath_var=LD_LIBRARY_PATH
  9387. case $host_vendor in
  9388. sni)
  9389. shlibpath_overrides_runpath=no
  9390. need_lib_prefix=no
  9391. runpath_var=LD_RUN_PATH
  9392. ;;
  9393. siemens)
  9394. need_lib_prefix=no
  9395. ;;
  9396. motorola)
  9397. need_lib_prefix=no
  9398. need_version=no
  9399. shlibpath_overrides_runpath=no
  9400. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9401. ;;
  9402. esac
  9403. ;;
  9404. sysv4*MP*)
  9405. if test -d /usr/nec ;then
  9406. version_type=linux
  9407. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9408. soname_spec='$libname${shared_ext}.$major'
  9409. shlibpath_var=LD_LIBRARY_PATH
  9410. fi
  9411. ;;
  9412. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9413. version_type=freebsd-elf
  9414. need_lib_prefix=no
  9415. need_version=no
  9416. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9417. soname_spec='${libname}${release}${shared_ext}$major'
  9418. shlibpath_var=LD_LIBRARY_PATH
  9419. shlibpath_overrides_runpath=yes
  9420. hardcode_into_libs=yes
  9421. if test "$with_gnu_ld" = yes; then
  9422. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9423. else
  9424. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9425. case $host_os in
  9426. sco3.2v5*)
  9427. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9428. ;;
  9429. esac
  9430. fi
  9431. sys_lib_dlsearch_path_spec='/usr/lib'
  9432. ;;
  9433. tpf*)
  9434. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9435. version_type=linux
  9436. need_lib_prefix=no
  9437. need_version=no
  9438. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9439. shlibpath_var=LD_LIBRARY_PATH
  9440. shlibpath_overrides_runpath=no
  9441. hardcode_into_libs=yes
  9442. ;;
  9443. uts4*)
  9444. version_type=linux
  9445. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9446. soname_spec='${libname}${release}${shared_ext}$major'
  9447. shlibpath_var=LD_LIBRARY_PATH
  9448. ;;
  9449. *)
  9450. dynamic_linker=no
  9451. ;;
  9452. esac
  9453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9454. $as_echo "$dynamic_linker" >&6; }
  9455. test "$dynamic_linker" = no && can_build_shared=no
  9456. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9457. if test "$GCC" = yes; then
  9458. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9459. fi
  9460. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9461. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9462. fi
  9463. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9464. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9465. fi
  9466. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9467. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9468. hardcode_action=
  9469. if test -n "$hardcode_libdir_flag_spec" ||
  9470. test -n "$runpath_var" ||
  9471. test "X$hardcode_automatic" = "Xyes" ; then
  9472. # We can hardcode non-existent directories.
  9473. if test "$hardcode_direct" != no &&
  9474. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9475. # have to relink, otherwise we might link with an installed library
  9476. # when we should be linking with a yet-to-be-installed one
  9477. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9478. test "$hardcode_minus_L" != no; then
  9479. # Linking always hardcodes the temporary library directory.
  9480. hardcode_action=relink
  9481. else
  9482. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9483. hardcode_action=immediate
  9484. fi
  9485. else
  9486. # We cannot hardcode anything, or else we can only hardcode existing
  9487. # directories.
  9488. hardcode_action=unsupported
  9489. fi
  9490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9491. $as_echo "$hardcode_action" >&6; }
  9492. if test "$hardcode_action" = relink ||
  9493. test "$inherit_rpath" = yes; then
  9494. # Fast installation is not supported
  9495. enable_fast_install=no
  9496. elif test "$shlibpath_overrides_runpath" = yes ||
  9497. test "$enable_shared" = no; then
  9498. # Fast installation is not necessary
  9499. enable_fast_install=needless
  9500. fi
  9501. if test "x$enable_dlopen" != xyes; then
  9502. enable_dlopen=unknown
  9503. enable_dlopen_self=unknown
  9504. enable_dlopen_self_static=unknown
  9505. else
  9506. lt_cv_dlopen=no
  9507. lt_cv_dlopen_libs=
  9508. case $host_os in
  9509. beos*)
  9510. lt_cv_dlopen="load_add_on"
  9511. lt_cv_dlopen_libs=
  9512. lt_cv_dlopen_self=yes
  9513. ;;
  9514. mingw* | pw32* | cegcc*)
  9515. lt_cv_dlopen="LoadLibrary"
  9516. lt_cv_dlopen_libs=
  9517. ;;
  9518. cygwin*)
  9519. lt_cv_dlopen="dlopen"
  9520. lt_cv_dlopen_libs=
  9521. ;;
  9522. darwin*)
  9523. # if libdl is installed we need to link against it
  9524. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9525. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9526. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9527. $as_echo_n "(cached) " >&6
  9528. else
  9529. ac_check_lib_save_LIBS=$LIBS
  9530. LIBS="-ldl $LIBS"
  9531. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9532. /* end confdefs.h. */
  9533. /* Override any GCC internal prototype to avoid an error.
  9534. Use char because int might match the return type of a GCC
  9535. builtin and then its argument prototype would still apply. */
  9536. #ifdef __cplusplus
  9537. extern "C"
  9538. #endif
  9539. char dlopen ();
  9540. int
  9541. main ()
  9542. {
  9543. return dlopen ();
  9544. ;
  9545. return 0;
  9546. }
  9547. _ACEOF
  9548. if ac_fn_c_try_link "$LINENO"; then :
  9549. ac_cv_lib_dl_dlopen=yes
  9550. else
  9551. ac_cv_lib_dl_dlopen=no
  9552. fi
  9553. rm -f core conftest.err conftest.$ac_objext \
  9554. conftest$ac_exeext conftest.$ac_ext
  9555. LIBS=$ac_check_lib_save_LIBS
  9556. fi
  9557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9558. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9559. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9560. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9561. else
  9562. lt_cv_dlopen="dyld"
  9563. lt_cv_dlopen_libs=
  9564. lt_cv_dlopen_self=yes
  9565. fi
  9566. ;;
  9567. *)
  9568. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9569. if test "x$ac_cv_func_shl_load" = x""yes; then :
  9570. lt_cv_dlopen="shl_load"
  9571. else
  9572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9573. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9574. if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  9575. $as_echo_n "(cached) " >&6
  9576. else
  9577. ac_check_lib_save_LIBS=$LIBS
  9578. LIBS="-ldld $LIBS"
  9579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9580. /* end confdefs.h. */
  9581. /* Override any GCC internal prototype to avoid an error.
  9582. Use char because int might match the return type of a GCC
  9583. builtin and then its argument prototype would still apply. */
  9584. #ifdef __cplusplus
  9585. extern "C"
  9586. #endif
  9587. char shl_load ();
  9588. int
  9589. main ()
  9590. {
  9591. return shl_load ();
  9592. ;
  9593. return 0;
  9594. }
  9595. _ACEOF
  9596. if ac_fn_c_try_link "$LINENO"; then :
  9597. ac_cv_lib_dld_shl_load=yes
  9598. else
  9599. ac_cv_lib_dld_shl_load=no
  9600. fi
  9601. rm -f core conftest.err conftest.$ac_objext \
  9602. conftest$ac_exeext conftest.$ac_ext
  9603. LIBS=$ac_check_lib_save_LIBS
  9604. fi
  9605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9606. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9607. if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  9608. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9609. else
  9610. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9611. if test "x$ac_cv_func_dlopen" = x""yes; then :
  9612. lt_cv_dlopen="dlopen"
  9613. else
  9614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9615. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9616. if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  9617. $as_echo_n "(cached) " >&6
  9618. else
  9619. ac_check_lib_save_LIBS=$LIBS
  9620. LIBS="-ldl $LIBS"
  9621. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9622. /* end confdefs.h. */
  9623. /* Override any GCC internal prototype to avoid an error.
  9624. Use char because int might match the return type of a GCC
  9625. builtin and then its argument prototype would still apply. */
  9626. #ifdef __cplusplus
  9627. extern "C"
  9628. #endif
  9629. char dlopen ();
  9630. int
  9631. main ()
  9632. {
  9633. return dlopen ();
  9634. ;
  9635. return 0;
  9636. }
  9637. _ACEOF
  9638. if ac_fn_c_try_link "$LINENO"; then :
  9639. ac_cv_lib_dl_dlopen=yes
  9640. else
  9641. ac_cv_lib_dl_dlopen=no
  9642. fi
  9643. rm -f core conftest.err conftest.$ac_objext \
  9644. conftest$ac_exeext conftest.$ac_ext
  9645. LIBS=$ac_check_lib_save_LIBS
  9646. fi
  9647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9648. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9649. if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  9650. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9651. else
  9652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9653. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9654. if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  9655. $as_echo_n "(cached) " >&6
  9656. else
  9657. ac_check_lib_save_LIBS=$LIBS
  9658. LIBS="-lsvld $LIBS"
  9659. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9660. /* end confdefs.h. */
  9661. /* Override any GCC internal prototype to avoid an error.
  9662. Use char because int might match the return type of a GCC
  9663. builtin and then its argument prototype would still apply. */
  9664. #ifdef __cplusplus
  9665. extern "C"
  9666. #endif
  9667. char dlopen ();
  9668. int
  9669. main ()
  9670. {
  9671. return dlopen ();
  9672. ;
  9673. return 0;
  9674. }
  9675. _ACEOF
  9676. if ac_fn_c_try_link "$LINENO"; then :
  9677. ac_cv_lib_svld_dlopen=yes
  9678. else
  9679. ac_cv_lib_svld_dlopen=no
  9680. fi
  9681. rm -f core conftest.err conftest.$ac_objext \
  9682. conftest$ac_exeext conftest.$ac_ext
  9683. LIBS=$ac_check_lib_save_LIBS
  9684. fi
  9685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9686. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9687. if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  9688. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9689. else
  9690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9691. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9692. if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  9693. $as_echo_n "(cached) " >&6
  9694. else
  9695. ac_check_lib_save_LIBS=$LIBS
  9696. LIBS="-ldld $LIBS"
  9697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9698. /* end confdefs.h. */
  9699. /* Override any GCC internal prototype to avoid an error.
  9700. Use char because int might match the return type of a GCC
  9701. builtin and then its argument prototype would still apply. */
  9702. #ifdef __cplusplus
  9703. extern "C"
  9704. #endif
  9705. char dld_link ();
  9706. int
  9707. main ()
  9708. {
  9709. return dld_link ();
  9710. ;
  9711. return 0;
  9712. }
  9713. _ACEOF
  9714. if ac_fn_c_try_link "$LINENO"; then :
  9715. ac_cv_lib_dld_dld_link=yes
  9716. else
  9717. ac_cv_lib_dld_dld_link=no
  9718. fi
  9719. rm -f core conftest.err conftest.$ac_objext \
  9720. conftest$ac_exeext conftest.$ac_ext
  9721. LIBS=$ac_check_lib_save_LIBS
  9722. fi
  9723. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9724. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9725. if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  9726. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9727. fi
  9728. fi
  9729. fi
  9730. fi
  9731. fi
  9732. fi
  9733. ;;
  9734. esac
  9735. if test "x$lt_cv_dlopen" != xno; then
  9736. enable_dlopen=yes
  9737. else
  9738. enable_dlopen=no
  9739. fi
  9740. case $lt_cv_dlopen in
  9741. dlopen)
  9742. save_CPPFLAGS="$CPPFLAGS"
  9743. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9744. save_LDFLAGS="$LDFLAGS"
  9745. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9746. save_LIBS="$LIBS"
  9747. LIBS="$lt_cv_dlopen_libs $LIBS"
  9748. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9749. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9750. if test "${lt_cv_dlopen_self+set}" = set; then :
  9751. $as_echo_n "(cached) " >&6
  9752. else
  9753. if test "$cross_compiling" = yes; then :
  9754. lt_cv_dlopen_self=cross
  9755. else
  9756. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9757. lt_status=$lt_dlunknown
  9758. cat > conftest.$ac_ext <<_LT_EOF
  9759. #line 11304 "configure"
  9760. #include "confdefs.h"
  9761. #if HAVE_DLFCN_H
  9762. #include <dlfcn.h>
  9763. #endif
  9764. #include <stdio.h>
  9765. #ifdef RTLD_GLOBAL
  9766. # define LT_DLGLOBAL RTLD_GLOBAL
  9767. #else
  9768. # ifdef DL_GLOBAL
  9769. # define LT_DLGLOBAL DL_GLOBAL
  9770. # else
  9771. # define LT_DLGLOBAL 0
  9772. # endif
  9773. #endif
  9774. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9775. find out it does not work in some platform. */
  9776. #ifndef LT_DLLAZY_OR_NOW
  9777. # ifdef RTLD_LAZY
  9778. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9779. # else
  9780. # ifdef DL_LAZY
  9781. # define LT_DLLAZY_OR_NOW DL_LAZY
  9782. # else
  9783. # ifdef RTLD_NOW
  9784. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9785. # else
  9786. # ifdef DL_NOW
  9787. # define LT_DLLAZY_OR_NOW DL_NOW
  9788. # else
  9789. # define LT_DLLAZY_OR_NOW 0
  9790. # endif
  9791. # endif
  9792. # endif
  9793. # endif
  9794. #endif
  9795. void fnord() { int i=42;}
  9796. int main ()
  9797. {
  9798. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9799. int status = $lt_dlunknown;
  9800. if (self)
  9801. {
  9802. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9803. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9804. /* dlclose (self); */
  9805. }
  9806. else
  9807. puts (dlerror ());
  9808. return status;
  9809. }
  9810. _LT_EOF
  9811. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9812. (eval $ac_link) 2>&5
  9813. ac_status=$?
  9814. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9815. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9816. (./conftest; exit; ) >&5 2>/dev/null
  9817. lt_status=$?
  9818. case x$lt_status in
  9819. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9820. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9821. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9822. esac
  9823. else :
  9824. # compilation failed
  9825. lt_cv_dlopen_self=no
  9826. fi
  9827. fi
  9828. rm -fr conftest*
  9829. fi
  9830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9831. $as_echo "$lt_cv_dlopen_self" >&6; }
  9832. if test "x$lt_cv_dlopen_self" = xyes; then
  9833. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9835. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9836. if test "${lt_cv_dlopen_self_static+set}" = set; then :
  9837. $as_echo_n "(cached) " >&6
  9838. else
  9839. if test "$cross_compiling" = yes; then :
  9840. lt_cv_dlopen_self_static=cross
  9841. else
  9842. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9843. lt_status=$lt_dlunknown
  9844. cat > conftest.$ac_ext <<_LT_EOF
  9845. #line 11400 "configure"
  9846. #include "confdefs.h"
  9847. #if HAVE_DLFCN_H
  9848. #include <dlfcn.h>
  9849. #endif
  9850. #include <stdio.h>
  9851. #ifdef RTLD_GLOBAL
  9852. # define LT_DLGLOBAL RTLD_GLOBAL
  9853. #else
  9854. # ifdef DL_GLOBAL
  9855. # define LT_DLGLOBAL DL_GLOBAL
  9856. # else
  9857. # define LT_DLGLOBAL 0
  9858. # endif
  9859. #endif
  9860. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9861. find out it does not work in some platform. */
  9862. #ifndef LT_DLLAZY_OR_NOW
  9863. # ifdef RTLD_LAZY
  9864. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9865. # else
  9866. # ifdef DL_LAZY
  9867. # define LT_DLLAZY_OR_NOW DL_LAZY
  9868. # else
  9869. # ifdef RTLD_NOW
  9870. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9871. # else
  9872. # ifdef DL_NOW
  9873. # define LT_DLLAZY_OR_NOW DL_NOW
  9874. # else
  9875. # define LT_DLLAZY_OR_NOW 0
  9876. # endif
  9877. # endif
  9878. # endif
  9879. # endif
  9880. #endif
  9881. void fnord() { int i=42;}
  9882. int main ()
  9883. {
  9884. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9885. int status = $lt_dlunknown;
  9886. if (self)
  9887. {
  9888. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9889. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9890. /* dlclose (self); */
  9891. }
  9892. else
  9893. puts (dlerror ());
  9894. return status;
  9895. }
  9896. _LT_EOF
  9897. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9898. (eval $ac_link) 2>&5
  9899. ac_status=$?
  9900. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9901. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9902. (./conftest; exit; ) >&5 2>/dev/null
  9903. lt_status=$?
  9904. case x$lt_status in
  9905. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9906. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9907. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9908. esac
  9909. else :
  9910. # compilation failed
  9911. lt_cv_dlopen_self_static=no
  9912. fi
  9913. fi
  9914. rm -fr conftest*
  9915. fi
  9916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9917. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9918. fi
  9919. CPPFLAGS="$save_CPPFLAGS"
  9920. LDFLAGS="$save_LDFLAGS"
  9921. LIBS="$save_LIBS"
  9922. ;;
  9923. esac
  9924. case $lt_cv_dlopen_self in
  9925. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9926. *) enable_dlopen_self=unknown ;;
  9927. esac
  9928. case $lt_cv_dlopen_self_static in
  9929. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9930. *) enable_dlopen_self_static=unknown ;;
  9931. esac
  9932. fi
  9933. striplib=
  9934. old_striplib=
  9935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9936. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9937. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9938. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9939. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9940. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9941. $as_echo "yes" >&6; }
  9942. else
  9943. # FIXME - insert some real tests, host_os isn't really good enough
  9944. case $host_os in
  9945. darwin*)
  9946. if test -n "$STRIP" ; then
  9947. striplib="$STRIP -x"
  9948. old_striplib="$STRIP -S"
  9949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9950. $as_echo "yes" >&6; }
  9951. else
  9952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9953. $as_echo "no" >&6; }
  9954. fi
  9955. ;;
  9956. *)
  9957. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9958. $as_echo "no" >&6; }
  9959. ;;
  9960. esac
  9961. fi
  9962. # Report which library types will actually be built
  9963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9964. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9966. $as_echo "$can_build_shared" >&6; }
  9967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9968. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9969. test "$can_build_shared" = "no" && enable_shared=no
  9970. # On AIX, shared libraries and static libraries use the same namespace, and
  9971. # are all built from PIC.
  9972. case $host_os in
  9973. aix3*)
  9974. test "$enable_shared" = yes && enable_static=no
  9975. if test -n "$RANLIB"; then
  9976. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9977. postinstall_cmds='$RANLIB $lib'
  9978. fi
  9979. ;;
  9980. aix[4-9]*)
  9981. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9982. test "$enable_shared" = yes && enable_static=no
  9983. fi
  9984. ;;
  9985. esac
  9986. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9987. $as_echo "$enable_shared" >&6; }
  9988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9989. $as_echo_n "checking whether to build static libraries... " >&6; }
  9990. # Make sure either enable_shared or enable_static is yes.
  9991. test "$enable_shared" = yes || enable_static=yes
  9992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9993. $as_echo "$enable_static" >&6; }
  9994. fi
  9995. ac_ext=cpp
  9996. ac_cpp='$CXXCPP $CPPFLAGS'
  9997. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9998. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9999. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10000. CC="$lt_save_CC"
  10001. ac_ext=cpp
  10002. ac_cpp='$CXXCPP $CPPFLAGS'
  10003. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10004. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10005. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10006. archive_cmds_need_lc_CXX=no
  10007. allow_undefined_flag_CXX=
  10008. always_export_symbols_CXX=no
  10009. archive_expsym_cmds_CXX=
  10010. compiler_needs_object_CXX=no
  10011. export_dynamic_flag_spec_CXX=
  10012. hardcode_direct_CXX=no
  10013. hardcode_direct_absolute_CXX=no
  10014. hardcode_libdir_flag_spec_CXX=
  10015. hardcode_libdir_flag_spec_ld_CXX=
  10016. hardcode_libdir_separator_CXX=
  10017. hardcode_minus_L_CXX=no
  10018. hardcode_shlibpath_var_CXX=unsupported
  10019. hardcode_automatic_CXX=no
  10020. inherit_rpath_CXX=no
  10021. module_cmds_CXX=
  10022. module_expsym_cmds_CXX=
  10023. link_all_deplibs_CXX=unknown
  10024. old_archive_cmds_CXX=$old_archive_cmds
  10025. no_undefined_flag_CXX=
  10026. whole_archive_flag_spec_CXX=
  10027. enable_shared_with_static_runtimes_CXX=no
  10028. # Source file extension for C++ test sources.
  10029. ac_ext=cpp
  10030. # Object file extension for compiled C++ test sources.
  10031. objext=o
  10032. objext_CXX=$objext
  10033. # No sense in running all these tests if we already determined that
  10034. # the CXX compiler isn't working. Some variables (like enable_shared)
  10035. # are currently assumed to apply to all compilers on this platform,
  10036. # and will be corrupted by setting them based on a non-working compiler.
  10037. if test "$_lt_caught_CXX_error" != yes; then
  10038. # Code to be used in simple compile tests
  10039. lt_simple_compile_test_code="int some_variable = 0;"
  10040. # Code to be used in simple link tests
  10041. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10042. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10043. # If no C compiler was specified, use CC.
  10044. LTCC=${LTCC-"$CC"}
  10045. # If no C compiler flags were specified, use CFLAGS.
  10046. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10047. # Allow CC to be a program name with arguments.
  10048. compiler=$CC
  10049. # save warnings/boilerplate of simple test code
  10050. ac_outfile=conftest.$ac_objext
  10051. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10052. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10053. _lt_compiler_boilerplate=`cat conftest.err`
  10054. $RM conftest*
  10055. ac_outfile=conftest.$ac_objext
  10056. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10057. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10058. _lt_linker_boilerplate=`cat conftest.err`
  10059. $RM -r conftest*
  10060. # Allow CC to be a program name with arguments.
  10061. lt_save_CC=$CC
  10062. lt_save_LD=$LD
  10063. lt_save_GCC=$GCC
  10064. GCC=$GXX
  10065. lt_save_with_gnu_ld=$with_gnu_ld
  10066. lt_save_path_LD=$lt_cv_path_LD
  10067. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10068. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10069. else
  10070. $as_unset lt_cv_prog_gnu_ld
  10071. fi
  10072. if test -n "${lt_cv_path_LDCXX+set}"; then
  10073. lt_cv_path_LD=$lt_cv_path_LDCXX
  10074. else
  10075. $as_unset lt_cv_path_LD
  10076. fi
  10077. test -z "${LDCXX+set}" || LD=$LDCXX
  10078. CC=${CXX-"c++"}
  10079. compiler=$CC
  10080. compiler_CXX=$CC
  10081. for cc_temp in $compiler""; do
  10082. case $cc_temp in
  10083. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10084. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10085. \-*) ;;
  10086. *) break;;
  10087. esac
  10088. done
  10089. cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  10090. if test -n "$compiler"; then
  10091. # We don't want -fno-exception when compiling C++ code, so set the
  10092. # no_builtin_flag separately
  10093. if test "$GXX" = yes; then
  10094. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10095. else
  10096. lt_prog_compiler_no_builtin_flag_CXX=
  10097. fi
  10098. if test "$GXX" = yes; then
  10099. # Set up default GNU C++ configuration
  10100. # Check whether --with-gnu-ld was given.
  10101. if test "${with_gnu_ld+set}" = set; then :
  10102. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10103. else
  10104. with_gnu_ld=no
  10105. fi
  10106. ac_prog=ld
  10107. if test "$GCC" = yes; then
  10108. # Check if gcc -print-prog-name=ld gives a path.
  10109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10110. $as_echo_n "checking for ld used by $CC... " >&6; }
  10111. case $host in
  10112. *-*-mingw*)
  10113. # gcc leaves a trailing carriage return which upsets mingw
  10114. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10115. *)
  10116. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10117. esac
  10118. case $ac_prog in
  10119. # Accept absolute paths.
  10120. [\\/]* | ?:[\\/]*)
  10121. re_direlt='/[^/][^/]*/\.\./'
  10122. # Canonicalize the pathname of ld
  10123. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10124. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10125. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10126. done
  10127. test -z "$LD" && LD="$ac_prog"
  10128. ;;
  10129. "")
  10130. # If it fails, then pretend we aren't using GCC.
  10131. ac_prog=ld
  10132. ;;
  10133. *)
  10134. # If it is relative, then search for the first ld in PATH.
  10135. with_gnu_ld=unknown
  10136. ;;
  10137. esac
  10138. elif test "$with_gnu_ld" = yes; then
  10139. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10140. $as_echo_n "checking for GNU ld... " >&6; }
  10141. else
  10142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10143. $as_echo_n "checking for non-GNU ld... " >&6; }
  10144. fi
  10145. if test "${lt_cv_path_LD+set}" = set; then :
  10146. $as_echo_n "(cached) " >&6
  10147. else
  10148. if test -z "$LD"; then
  10149. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10150. for ac_dir in $PATH; do
  10151. IFS="$lt_save_ifs"
  10152. test -z "$ac_dir" && ac_dir=.
  10153. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10154. lt_cv_path_LD="$ac_dir/$ac_prog"
  10155. # Check to see if the program is GNU ld. I'd rather use --version,
  10156. # but apparently some variants of GNU ld only accept -v.
  10157. # Break only if it was the GNU/non-GNU ld that we prefer.
  10158. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10159. *GNU* | *'with BFD'*)
  10160. test "$with_gnu_ld" != no && break
  10161. ;;
  10162. *)
  10163. test "$with_gnu_ld" != yes && break
  10164. ;;
  10165. esac
  10166. fi
  10167. done
  10168. IFS="$lt_save_ifs"
  10169. else
  10170. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10171. fi
  10172. fi
  10173. LD="$lt_cv_path_LD"
  10174. if test -n "$LD"; then
  10175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10176. $as_echo "$LD" >&6; }
  10177. else
  10178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10179. $as_echo "no" >&6; }
  10180. fi
  10181. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10183. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10184. if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  10185. $as_echo_n "(cached) " >&6
  10186. else
  10187. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10188. case `$LD -v 2>&1 </dev/null` in
  10189. *GNU* | *'with BFD'*)
  10190. lt_cv_prog_gnu_ld=yes
  10191. ;;
  10192. *)
  10193. lt_cv_prog_gnu_ld=no
  10194. ;;
  10195. esac
  10196. fi
  10197. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10198. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10199. with_gnu_ld=$lt_cv_prog_gnu_ld
  10200. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10201. # archiving commands below assume that GNU ld is being used.
  10202. if test "$with_gnu_ld" = yes; then
  10203. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10204. archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10205. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10206. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10207. # If archive_cmds runs LD, not CC, wlarc should be empty
  10208. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10209. # investigate it a little bit more. (MM)
  10210. wlarc='${wl}'
  10211. # ancient GNU ld didn't support --whole-archive et. al.
  10212. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10213. $GREP 'no-whole-archive' > /dev/null; then
  10214. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10215. else
  10216. whole_archive_flag_spec_CXX=
  10217. fi
  10218. else
  10219. with_gnu_ld=no
  10220. wlarc=
  10221. # A generic and very simple default shared library creation
  10222. # command for GNU C++ for the case where it uses the native
  10223. # linker, instead of GNU ld. If possible, this setting should
  10224. # overridden to take advantage of the native linker features on
  10225. # the platform it is being used on.
  10226. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10227. fi
  10228. # Commands to make compiler produce verbose output that lists
  10229. # what "hidden" libraries, object files and flags are used when
  10230. # linking a shared library.
  10231. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10232. else
  10233. GXX=no
  10234. with_gnu_ld=no
  10235. wlarc=
  10236. fi
  10237. # PORTME: fill in a description of your system's C++ link characteristics
  10238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10239. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10240. ld_shlibs_CXX=yes
  10241. case $host_os in
  10242. aix3*)
  10243. # FIXME: insert proper C++ library support
  10244. ld_shlibs_CXX=no
  10245. ;;
  10246. aix[4-9]*)
  10247. if test "$host_cpu" = ia64; then
  10248. # On IA64, the linker does run time linking by default, so we don't
  10249. # have to do anything special.
  10250. aix_use_runtimelinking=no
  10251. exp_sym_flag='-Bexport'
  10252. no_entry_flag=""
  10253. else
  10254. aix_use_runtimelinking=no
  10255. # Test if we are trying to use run time linking or normal
  10256. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10257. # need to do runtime linking.
  10258. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10259. for ld_flag in $LDFLAGS; do
  10260. case $ld_flag in
  10261. *-brtl*)
  10262. aix_use_runtimelinking=yes
  10263. break
  10264. ;;
  10265. esac
  10266. done
  10267. ;;
  10268. esac
  10269. exp_sym_flag='-bexport'
  10270. no_entry_flag='-bnoentry'
  10271. fi
  10272. # When large executables or shared objects are built, AIX ld can
  10273. # have problems creating the table of contents. If linking a library
  10274. # or program results in "error TOC overflow" add -mminimal-toc to
  10275. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10276. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10277. archive_cmds_CXX=''
  10278. hardcode_direct_CXX=yes
  10279. hardcode_direct_absolute_CXX=yes
  10280. hardcode_libdir_separator_CXX=':'
  10281. link_all_deplibs_CXX=yes
  10282. file_list_spec_CXX='${wl}-f,'
  10283. if test "$GXX" = yes; then
  10284. case $host_os in aix4.[012]|aix4.[012].*)
  10285. # We only want to do this on AIX 4.2 and lower, the check
  10286. # below for broken collect2 doesn't work under 4.3+
  10287. collect2name=`${CC} -print-prog-name=collect2`
  10288. if test -f "$collect2name" &&
  10289. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10290. then
  10291. # We have reworked collect2
  10292. :
  10293. else
  10294. # We have old collect2
  10295. hardcode_direct_CXX=unsupported
  10296. # It fails to find uninstalled libraries when the uninstalled
  10297. # path is not listed in the libpath. Setting hardcode_minus_L
  10298. # to unsupported forces relinking
  10299. hardcode_minus_L_CXX=yes
  10300. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10301. hardcode_libdir_separator_CXX=
  10302. fi
  10303. esac
  10304. shared_flag='-shared'
  10305. if test "$aix_use_runtimelinking" = yes; then
  10306. shared_flag="$shared_flag "'${wl}-G'
  10307. fi
  10308. else
  10309. # not using gcc
  10310. if test "$host_cpu" = ia64; then
  10311. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10312. # chokes on -Wl,-G. The following line is correct:
  10313. shared_flag='-G'
  10314. else
  10315. if test "$aix_use_runtimelinking" = yes; then
  10316. shared_flag='${wl}-G'
  10317. else
  10318. shared_flag='${wl}-bM:SRE'
  10319. fi
  10320. fi
  10321. fi
  10322. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10323. # It seems that -bexpall does not export symbols beginning with
  10324. # underscore (_), so it is better to generate a list of symbols to
  10325. # export.
  10326. always_export_symbols_CXX=yes
  10327. if test "$aix_use_runtimelinking" = yes; then
  10328. # Warning - without using the other runtime loading flags (-brtl),
  10329. # -berok will link without error, but may produce a broken library.
  10330. allow_undefined_flag_CXX='-berok'
  10331. # Determine the default libpath from the value encoded in an empty
  10332. # executable.
  10333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10334. /* end confdefs.h. */
  10335. int
  10336. main ()
  10337. {
  10338. ;
  10339. return 0;
  10340. }
  10341. _ACEOF
  10342. if ac_fn_cxx_try_link "$LINENO"; then :
  10343. lt_aix_libpath_sed='
  10344. /Import File Strings/,/^$/ {
  10345. /^0/ {
  10346. s/^0 *\(.*\)$/\1/
  10347. p
  10348. }
  10349. }'
  10350. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10351. # Check for a 64-bit object if we didn't find anything.
  10352. if test -z "$aix_libpath"; then
  10353. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10354. fi
  10355. fi
  10356. rm -f core conftest.err conftest.$ac_objext \
  10357. conftest$ac_exeext conftest.$ac_ext
  10358. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10359. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10360. archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10361. else
  10362. if test "$host_cpu" = ia64; then
  10363. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10364. allow_undefined_flag_CXX="-z nodefs"
  10365. 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"
  10366. else
  10367. # Determine the default libpath from the value encoded in an
  10368. # empty executable.
  10369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10370. /* end confdefs.h. */
  10371. int
  10372. main ()
  10373. {
  10374. ;
  10375. return 0;
  10376. }
  10377. _ACEOF
  10378. if ac_fn_cxx_try_link "$LINENO"; then :
  10379. lt_aix_libpath_sed='
  10380. /Import File Strings/,/^$/ {
  10381. /^0/ {
  10382. s/^0 *\(.*\)$/\1/
  10383. p
  10384. }
  10385. }'
  10386. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10387. # Check for a 64-bit object if we didn't find anything.
  10388. if test -z "$aix_libpath"; then
  10389. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10390. fi
  10391. fi
  10392. rm -f core conftest.err conftest.$ac_objext \
  10393. conftest$ac_exeext conftest.$ac_ext
  10394. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  10395. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10396. # Warning - without using the other run time loading flags,
  10397. # -berok will link without error, but may produce a broken library.
  10398. no_undefined_flag_CXX=' ${wl}-bernotok'
  10399. allow_undefined_flag_CXX=' ${wl}-berok'
  10400. # Exported symbols can be pulled into shared objects from archives
  10401. whole_archive_flag_spec_CXX='$convenience'
  10402. archive_cmds_need_lc_CXX=yes
  10403. # This is similar to how AIX traditionally builds its shared
  10404. # libraries.
  10405. 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'
  10406. fi
  10407. fi
  10408. ;;
  10409. beos*)
  10410. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10411. allow_undefined_flag_CXX=unsupported
  10412. # Joseph Beckenbach <[email protected]> says some releases of gcc
  10413. # support --undefined. This deserves some investigation. FIXME
  10414. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10415. else
  10416. ld_shlibs_CXX=no
  10417. fi
  10418. ;;
  10419. chorus*)
  10420. case $cc_basename in
  10421. *)
  10422. # FIXME: insert proper C++ library support
  10423. ld_shlibs_CXX=no
  10424. ;;
  10425. esac
  10426. ;;
  10427. cygwin* | mingw* | pw32* | cegcc*)
  10428. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  10429. # as there is no search path for DLLs.
  10430. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10431. allow_undefined_flag_CXX=unsupported
  10432. always_export_symbols_CXX=no
  10433. enable_shared_with_static_runtimes_CXX=yes
  10434. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  10435. 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'
  10436. # If the export-symbols file already is a .def file (1st line
  10437. # is EXPORTS), use it as is; otherwise, prepend...
  10438. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  10439. cp $export_symbols $output_objdir/$soname.def;
  10440. else
  10441. echo EXPORTS > $output_objdir/$soname.def;
  10442. cat $export_symbols >> $output_objdir/$soname.def;
  10443. fi~
  10444. $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'
  10445. else
  10446. ld_shlibs_CXX=no
  10447. fi
  10448. ;;
  10449. darwin* | rhapsody*)
  10450. archive_cmds_need_lc_CXX=no
  10451. hardcode_direct_CXX=no
  10452. hardcode_automatic_CXX=yes
  10453. hardcode_shlibpath_var_CXX=unsupported
  10454. whole_archive_flag_spec_CXX=''
  10455. link_all_deplibs_CXX=yes
  10456. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  10457. case $cc_basename in
  10458. ifort*) _lt_dar_can_shared=yes ;;
  10459. *) _lt_dar_can_shared=$GCC ;;
  10460. esac
  10461. if test "$_lt_dar_can_shared" = "yes"; then
  10462. output_verbose_link_cmd=echo
  10463. 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}"
  10464. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  10465. 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}"
  10466. 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}"
  10467. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  10468. 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}"
  10469. 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}"
  10470. fi
  10471. else
  10472. ld_shlibs_CXX=no
  10473. fi
  10474. ;;
  10475. dgux*)
  10476. case $cc_basename in
  10477. ec++*)
  10478. # FIXME: insert proper C++ library support
  10479. ld_shlibs_CXX=no
  10480. ;;
  10481. ghcx*)
  10482. # Green Hills C++ Compiler
  10483. # FIXME: insert proper C++ library support
  10484. ld_shlibs_CXX=no
  10485. ;;
  10486. *)
  10487. # FIXME: insert proper C++ library support
  10488. ld_shlibs_CXX=no
  10489. ;;
  10490. esac
  10491. ;;
  10492. freebsd[12]*)
  10493. # C++ shared libraries reported to be fairly broken before
  10494. # switch to ELF
  10495. ld_shlibs_CXX=no
  10496. ;;
  10497. freebsd-elf*)
  10498. archive_cmds_need_lc_CXX=no
  10499. ;;
  10500. freebsd* | dragonfly*)
  10501. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  10502. # conventions
  10503. ld_shlibs_CXX=yes
  10504. ;;
  10505. gnu*)
  10506. ;;
  10507. hpux9*)
  10508. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10509. hardcode_libdir_separator_CXX=:
  10510. export_dynamic_flag_spec_CXX='${wl}-E'
  10511. hardcode_direct_CXX=yes
  10512. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10513. # but as the default
  10514. # location of the library.
  10515. case $cc_basename in
  10516. CC*)
  10517. # FIXME: insert proper C++ library support
  10518. ld_shlibs_CXX=no
  10519. ;;
  10520. aCC*)
  10521. 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'
  10522. # Commands to make compiler produce verbose output that lists
  10523. # what "hidden" libraries, object files and flags are used when
  10524. # linking a shared library.
  10525. #
  10526. # There doesn't appear to be a way to prevent this compiler from
  10527. # explicitly linking system object files so we need to strip them
  10528. # from the output so that they don't get included in the library
  10529. # dependencies.
  10530. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10531. ;;
  10532. *)
  10533. if test "$GXX" = yes; then
  10534. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10535. else
  10536. # FIXME: insert proper C++ library support
  10537. ld_shlibs_CXX=no
  10538. fi
  10539. ;;
  10540. esac
  10541. ;;
  10542. hpux10*|hpux11*)
  10543. if test $with_gnu_ld = no; then
  10544. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  10545. hardcode_libdir_separator_CXX=:
  10546. case $host_cpu in
  10547. hppa*64*|ia64*)
  10548. ;;
  10549. *)
  10550. export_dynamic_flag_spec_CXX='${wl}-E'
  10551. ;;
  10552. esac
  10553. fi
  10554. case $host_cpu in
  10555. hppa*64*|ia64*)
  10556. hardcode_direct_CXX=no
  10557. hardcode_shlibpath_var_CXX=no
  10558. ;;
  10559. *)
  10560. hardcode_direct_CXX=yes
  10561. hardcode_direct_absolute_CXX=yes
  10562. hardcode_minus_L_CXX=yes # Not in the search PATH,
  10563. # but as the default
  10564. # location of the library.
  10565. ;;
  10566. esac
  10567. case $cc_basename in
  10568. CC*)
  10569. # FIXME: insert proper C++ library support
  10570. ld_shlibs_CXX=no
  10571. ;;
  10572. aCC*)
  10573. case $host_cpu in
  10574. hppa*64*)
  10575. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10576. ;;
  10577. ia64*)
  10578. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10579. ;;
  10580. *)
  10581. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10582. ;;
  10583. esac
  10584. # Commands to make compiler produce verbose output that lists
  10585. # what "hidden" libraries, object files and flags are used when
  10586. # linking a shared library.
  10587. #
  10588. # There doesn't appear to be a way to prevent this compiler from
  10589. # explicitly linking system object files so we need to strip them
  10590. # from the output so that they don't get included in the library
  10591. # dependencies.
  10592. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10593. ;;
  10594. *)
  10595. if test "$GXX" = yes; then
  10596. if test $with_gnu_ld = no; then
  10597. case $host_cpu in
  10598. hppa*64*)
  10599. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10600. ;;
  10601. ia64*)
  10602. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10603. ;;
  10604. *)
  10605. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10606. ;;
  10607. esac
  10608. fi
  10609. else
  10610. # FIXME: insert proper C++ library support
  10611. ld_shlibs_CXX=no
  10612. fi
  10613. ;;
  10614. esac
  10615. ;;
  10616. interix[3-9]*)
  10617. hardcode_direct_CXX=no
  10618. hardcode_shlibpath_var_CXX=no
  10619. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10620. export_dynamic_flag_spec_CXX='${wl}-E'
  10621. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  10622. # Instead, shared libraries are loaded at an image base (0x10000000 by
  10623. # default) and relocated if they conflict, which is a slow very memory
  10624. # consuming and fragmenting process. To avoid this, we pick a random,
  10625. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  10626. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  10627. 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'
  10628. 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'
  10629. ;;
  10630. irix5* | irix6*)
  10631. case $cc_basename in
  10632. CC*)
  10633. # SGI C++
  10634. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10635. # Archives containing C++ object files must be created using
  10636. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  10637. # necessary to make sure instantiated templates are included
  10638. # in the archive.
  10639. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  10640. ;;
  10641. *)
  10642. if test "$GXX" = yes; then
  10643. if test "$with_gnu_ld" = no; then
  10644. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10645. else
  10646. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  10647. fi
  10648. fi
  10649. link_all_deplibs_CXX=yes
  10650. ;;
  10651. esac
  10652. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10653. hardcode_libdir_separator_CXX=:
  10654. inherit_rpath_CXX=yes
  10655. ;;
  10656. linux* | k*bsd*-gnu)
  10657. case $cc_basename in
  10658. KCC*)
  10659. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10660. # KCC will only create a shared library if the output file
  10661. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10662. # to its proper name (with version) after linking.
  10663. 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'
  10664. 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'
  10665. # Commands to make compiler produce verbose output that lists
  10666. # what "hidden" libraries, object files and flags are used when
  10667. # linking a shared library.
  10668. #
  10669. # There doesn't appear to be a way to prevent this compiler from
  10670. # explicitly linking system object files so we need to strip them
  10671. # from the output so that they don't get included in the library
  10672. # dependencies.
  10673. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10674. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10675. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10676. # Archives containing C++ object files must be created using
  10677. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  10678. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  10679. ;;
  10680. icpc* | ecpc* )
  10681. # Intel C++
  10682. with_gnu_ld=yes
  10683. # version 8.0 and above of icpc choke on multiply defined symbols
  10684. # if we add $predep_objects and $postdep_objects, however 7.1 and
  10685. # earlier do not add the objects themselves.
  10686. case `$CC -V 2>&1` in
  10687. *"Version 7."*)
  10688. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10689. 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'
  10690. ;;
  10691. *) # Version 8.0 or newer
  10692. tmp_idyn=
  10693. case $host_cpu in
  10694. ia64*) tmp_idyn=' -i_dynamic';;
  10695. esac
  10696. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10697. 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'
  10698. ;;
  10699. esac
  10700. archive_cmds_need_lc_CXX=no
  10701. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10702. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10703. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10704. ;;
  10705. pgCC* | pgcpp*)
  10706. # Portland Group C++ compiler
  10707. case `$CC -V` in
  10708. *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
  10709. prelink_cmds_CXX='tpldir=Template.dir~
  10710. rm -rf $tpldir~
  10711. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  10712. compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  10713. old_archive_cmds_CXX='tpldir=Template.dir~
  10714. rm -rf $tpldir~
  10715. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  10716. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  10717. $RANLIB $oldlib'
  10718. archive_cmds_CXX='tpldir=Template.dir~
  10719. rm -rf $tpldir~
  10720. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10721. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10722. archive_expsym_cmds_CXX='tpldir=Template.dir~
  10723. rm -rf $tpldir~
  10724. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  10725. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  10726. ;;
  10727. *) # Version 6 will use weak symbols
  10728. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  10729. 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'
  10730. ;;
  10731. esac
  10732. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  10733. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10734. whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10735. ;;
  10736. cxx*)
  10737. # Compaq C++
  10738. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10739. 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'
  10740. runpath_var=LD_RUN_PATH
  10741. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10742. hardcode_libdir_separator_CXX=:
  10743. # Commands to make compiler produce verbose output that lists
  10744. # what "hidden" libraries, object files and flags are used when
  10745. # linking a shared library.
  10746. #
  10747. # There doesn't appear to be a way to prevent this compiler from
  10748. # explicitly linking system object files so we need to strip them
  10749. # from the output so that they don't get included in the library
  10750. # dependencies.
  10751. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10752. ;;
  10753. xl*)
  10754. # IBM XL 8.0 on PPC, with GNU ld
  10755. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10756. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10757. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10758. if test "x$supports_anon_versioning" = xyes; then
  10759. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  10760. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10761. echo "local: *; };" >> $output_objdir/$libname.ver~
  10762. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10763. fi
  10764. ;;
  10765. *)
  10766. case `$CC -V 2>&1 | sed 5q` in
  10767. *Sun\ C*)
  10768. # Sun C++ 5.9
  10769. no_undefined_flag_CXX=' -zdefs'
  10770. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10771. 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'
  10772. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10773. whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  10774. compiler_needs_object_CXX=yes
  10775. # Not sure whether something based on
  10776. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  10777. # would be better.
  10778. output_verbose_link_cmd='echo'
  10779. # Archives containing C++ object files must be created using
  10780. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10781. # necessary to make sure instantiated templates are included
  10782. # in the archive.
  10783. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10784. ;;
  10785. esac
  10786. ;;
  10787. esac
  10788. ;;
  10789. lynxos*)
  10790. # FIXME: insert proper C++ library support
  10791. ld_shlibs_CXX=no
  10792. ;;
  10793. m88k*)
  10794. # FIXME: insert proper C++ library support
  10795. ld_shlibs_CXX=no
  10796. ;;
  10797. mvs*)
  10798. case $cc_basename in
  10799. cxx*)
  10800. # FIXME: insert proper C++ library support
  10801. ld_shlibs_CXX=no
  10802. ;;
  10803. *)
  10804. # FIXME: insert proper C++ library support
  10805. ld_shlibs_CXX=no
  10806. ;;
  10807. esac
  10808. ;;
  10809. netbsd*)
  10810. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  10811. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  10812. wlarc=
  10813. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10814. hardcode_direct_CXX=yes
  10815. hardcode_shlibpath_var_CXX=no
  10816. fi
  10817. # Workaround some broken pre-1.5 toolchains
  10818. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  10819. ;;
  10820. *nto* | *qnx*)
  10821. ld_shlibs_CXX=yes
  10822. ;;
  10823. openbsd2*)
  10824. # C++ shared libraries are fairly broken
  10825. ld_shlibs_CXX=no
  10826. ;;
  10827. openbsd*)
  10828. if test -f /usr/libexec/ld.so; then
  10829. hardcode_direct_CXX=yes
  10830. hardcode_shlibpath_var_CXX=no
  10831. hardcode_direct_absolute_CXX=yes
  10832. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10833. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10834. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10835. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  10836. export_dynamic_flag_spec_CXX='${wl}-E'
  10837. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10838. fi
  10839. output_verbose_link_cmd=echo
  10840. else
  10841. ld_shlibs_CXX=no
  10842. fi
  10843. ;;
  10844. osf3* | osf4* | osf5*)
  10845. case $cc_basename in
  10846. KCC*)
  10847. # Kuck and Associates, Inc. (KAI) C++ Compiler
  10848. # KCC will only create a shared library if the output file
  10849. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  10850. # to its proper name (with version) after linking.
  10851. 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'
  10852. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  10853. hardcode_libdir_separator_CXX=:
  10854. # Archives containing C++ object files must be created using
  10855. # the KAI C++ compiler.
  10856. case $host in
  10857. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  10858. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  10859. esac
  10860. ;;
  10861. RCC*)
  10862. # Rational C++ 2.4.1
  10863. # FIXME: insert proper C++ library support
  10864. ld_shlibs_CXX=no
  10865. ;;
  10866. cxx*)
  10867. case $host in
  10868. osf3*)
  10869. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10870. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10871. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10872. ;;
  10873. *)
  10874. allow_undefined_flag_CXX=' -expect_unresolved \*'
  10875. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10876. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10877. echo "-hidden">> $lib.exp~
  10878. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  10879. $RM $lib.exp'
  10880. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  10881. ;;
  10882. esac
  10883. hardcode_libdir_separator_CXX=:
  10884. # Commands to make compiler produce verbose output that lists
  10885. # what "hidden" libraries, object files and flags are used when
  10886. # linking a shared library.
  10887. #
  10888. # There doesn't appear to be a way to prevent this compiler from
  10889. # explicitly linking system object files so we need to strip them
  10890. # from the output so that they don't get included in the library
  10891. # dependencies.
  10892. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10893. ;;
  10894. *)
  10895. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10896. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  10897. case $host in
  10898. osf3*)
  10899. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10900. ;;
  10901. *)
  10902. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10903. ;;
  10904. esac
  10905. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10906. hardcode_libdir_separator_CXX=:
  10907. # Commands to make compiler produce verbose output that lists
  10908. # what "hidden" libraries, object files and flags are used when
  10909. # linking a shared library.
  10910. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10911. else
  10912. # FIXME: insert proper C++ library support
  10913. ld_shlibs_CXX=no
  10914. fi
  10915. ;;
  10916. esac
  10917. ;;
  10918. psos*)
  10919. # FIXME: insert proper C++ library support
  10920. ld_shlibs_CXX=no
  10921. ;;
  10922. sunos4*)
  10923. case $cc_basename in
  10924. CC*)
  10925. # Sun C++ 4.x
  10926. # FIXME: insert proper C++ library support
  10927. ld_shlibs_CXX=no
  10928. ;;
  10929. lcc*)
  10930. # Lucid
  10931. # FIXME: insert proper C++ library support
  10932. ld_shlibs_CXX=no
  10933. ;;
  10934. *)
  10935. # FIXME: insert proper C++ library support
  10936. ld_shlibs_CXX=no
  10937. ;;
  10938. esac
  10939. ;;
  10940. solaris*)
  10941. case $cc_basename in
  10942. CC*)
  10943. # Sun C++ 4.2, 5.x and Centerline C++
  10944. archive_cmds_need_lc_CXX=yes
  10945. no_undefined_flag_CXX=' -zdefs'
  10946. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10947. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10948. $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'
  10949. hardcode_libdir_flag_spec_CXX='-R$libdir'
  10950. hardcode_shlibpath_var_CXX=no
  10951. case $host_os in
  10952. solaris2.[0-5] | solaris2.[0-5].*) ;;
  10953. *)
  10954. # The compiler driver will combine and reorder linker options,
  10955. # but understands `-z linker_flag'.
  10956. # Supported since Solaris 2.6 (maybe 2.5.1?)
  10957. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  10958. ;;
  10959. esac
  10960. link_all_deplibs_CXX=yes
  10961. output_verbose_link_cmd='echo'
  10962. # Archives containing C++ object files must be created using
  10963. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10964. # necessary to make sure instantiated templates are included
  10965. # in the archive.
  10966. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  10967. ;;
  10968. gcx*)
  10969. # Green Hills C++ Compiler
  10970. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10971. # The C++ compiler must be used to create the archive.
  10972. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10973. ;;
  10974. *)
  10975. # GNU C++ compiler with Solaris linker
  10976. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10977. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  10978. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10979. archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10980. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10981. $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10982. # Commands to make compiler produce verbose output that lists
  10983. # what "hidden" libraries, object files and flags are used when
  10984. # linking a shared library.
  10985. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10986. else
  10987. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10988. # platform.
  10989. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10990. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10991. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10992. # Commands to make compiler produce verbose output that lists
  10993. # what "hidden" libraries, object files and flags are used when
  10994. # linking a shared library.
  10995. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10996. fi
  10997. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  10998. case $host_os in
  10999. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11000. *)
  11001. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11002. ;;
  11003. esac
  11004. fi
  11005. ;;
  11006. esac
  11007. ;;
  11008. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11009. no_undefined_flag_CXX='${wl}-z,text'
  11010. archive_cmds_need_lc_CXX=no
  11011. hardcode_shlibpath_var_CXX=no
  11012. runpath_var='LD_RUN_PATH'
  11013. case $cc_basename in
  11014. CC*)
  11015. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11016. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11017. ;;
  11018. *)
  11019. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11020. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11021. ;;
  11022. esac
  11023. ;;
  11024. sysv5* | sco3.2v5* | sco5v6*)
  11025. # Note: We can NOT use -z defs as we might desire, because we do not
  11026. # link with -lc, and that would cause any symbols used from libc to
  11027. # always be unresolved, which means just about no library would
  11028. # ever link correctly. If we're not using GNU ld we use -z text
  11029. # though, which does catch some bad symbols but isn't as heavy-handed
  11030. # as -z defs.
  11031. no_undefined_flag_CXX='${wl}-z,text'
  11032. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11033. archive_cmds_need_lc_CXX=no
  11034. hardcode_shlibpath_var_CXX=no
  11035. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11036. hardcode_libdir_separator_CXX=':'
  11037. link_all_deplibs_CXX=yes
  11038. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11039. runpath_var='LD_RUN_PATH'
  11040. case $cc_basename in
  11041. CC*)
  11042. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11043. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11044. ;;
  11045. *)
  11046. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11047. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11048. ;;
  11049. esac
  11050. ;;
  11051. tandem*)
  11052. case $cc_basename in
  11053. NCC*)
  11054. # NonStop-UX NCC 3.20
  11055. # FIXME: insert proper C++ library support
  11056. ld_shlibs_CXX=no
  11057. ;;
  11058. *)
  11059. # FIXME: insert proper C++ library support
  11060. ld_shlibs_CXX=no
  11061. ;;
  11062. esac
  11063. ;;
  11064. vxworks*)
  11065. # FIXME: insert proper C++ library support
  11066. ld_shlibs_CXX=no
  11067. ;;
  11068. *)
  11069. # FIXME: insert proper C++ library support
  11070. ld_shlibs_CXX=no
  11071. ;;
  11072. esac
  11073. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11074. $as_echo "$ld_shlibs_CXX" >&6; }
  11075. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11076. GCC_CXX="$GXX"
  11077. LD_CXX="$LD"
  11078. ## CAVEAT EMPTOR:
  11079. ## There is no encapsulation within the following macros, do not change
  11080. ## the running order or otherwise move them around unless you know exactly
  11081. ## what you are doing...
  11082. # Dependencies to place before and after the object being linked:
  11083. predep_objects_CXX=
  11084. postdep_objects_CXX=
  11085. predeps_CXX=
  11086. postdeps_CXX=
  11087. compiler_lib_search_path_CXX=
  11088. cat > conftest.$ac_ext <<_LT_EOF
  11089. class Foo
  11090. {
  11091. public:
  11092. Foo (void) { a = 0; }
  11093. private:
  11094. int a;
  11095. };
  11096. _LT_EOF
  11097. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11098. (eval $ac_compile) 2>&5
  11099. ac_status=$?
  11100. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11101. test $ac_status = 0; }; then
  11102. # Parse the compiler output and extract the necessary
  11103. # objects, libraries and library flags.
  11104. # Sentinel used to keep track of whether or not we are before
  11105. # the conftest object file.
  11106. pre_test_object_deps_done=no
  11107. for p in `eval "$output_verbose_link_cmd"`; do
  11108. case $p in
  11109. -L* | -R* | -l*)
  11110. # Some compilers place space between "-{L,R}" and the path.
  11111. # Remove the space.
  11112. if test $p = "-L" ||
  11113. test $p = "-R"; then
  11114. prev=$p
  11115. continue
  11116. else
  11117. prev=
  11118. fi
  11119. if test "$pre_test_object_deps_done" = no; then
  11120. case $p in
  11121. -L* | -R*)
  11122. # Internal compiler library paths should come after those
  11123. # provided the user. The postdeps already come after the
  11124. # user supplied libs so there is no need to process them.
  11125. if test -z "$compiler_lib_search_path_CXX"; then
  11126. compiler_lib_search_path_CXX="${prev}${p}"
  11127. else
  11128. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11129. fi
  11130. ;;
  11131. # The "-l" case would never come before the object being
  11132. # linked, so don't bother handling this case.
  11133. esac
  11134. else
  11135. if test -z "$postdeps_CXX"; then
  11136. postdeps_CXX="${prev}${p}"
  11137. else
  11138. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11139. fi
  11140. fi
  11141. ;;
  11142. *.$objext)
  11143. # This assumes that the test object file only shows up
  11144. # once in the compiler output.
  11145. if test "$p" = "conftest.$objext"; then
  11146. pre_test_object_deps_done=yes
  11147. continue
  11148. fi
  11149. if test "$pre_test_object_deps_done" = no; then
  11150. if test -z "$predep_objects_CXX"; then
  11151. predep_objects_CXX="$p"
  11152. else
  11153. predep_objects_CXX="$predep_objects_CXX $p"
  11154. fi
  11155. else
  11156. if test -z "$postdep_objects_CXX"; then
  11157. postdep_objects_CXX="$p"
  11158. else
  11159. postdep_objects_CXX="$postdep_objects_CXX $p"
  11160. fi
  11161. fi
  11162. ;;
  11163. *) ;; # Ignore the rest.
  11164. esac
  11165. done
  11166. # Clean up.
  11167. rm -f a.out a.exe
  11168. else
  11169. echo "libtool.m4: error: problem compiling CXX test program"
  11170. fi
  11171. $RM -f confest.$objext
  11172. # PORTME: override above test on systems where it is broken
  11173. case $host_os in
  11174. interix[3-9]*)
  11175. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11176. # hack all around it, let's just trust "g++" to DTRT.
  11177. predep_objects_CXX=
  11178. postdep_objects_CXX=
  11179. postdeps_CXX=
  11180. ;;
  11181. linux*)
  11182. case `$CC -V 2>&1 | sed 5q` in
  11183. *Sun\ C*)
  11184. # Sun C++ 5.9
  11185. # The more standards-conforming stlport4 library is
  11186. # incompatible with the Cstd library. Avoid specifying
  11187. # it if it's in CXXFLAGS. Ignore libCrun as
  11188. # -library=stlport4 depends on it.
  11189. case " $CXX $CXXFLAGS " in
  11190. *" -library=stlport4 "*)
  11191. solaris_use_stlport4=yes
  11192. ;;
  11193. esac
  11194. if test "$solaris_use_stlport4" != yes; then
  11195. postdeps_CXX='-library=Cstd -library=Crun'
  11196. fi
  11197. ;;
  11198. esac
  11199. ;;
  11200. solaris*)
  11201. case $cc_basename in
  11202. CC*)
  11203. # The more standards-conforming stlport4 library is
  11204. # incompatible with the Cstd library. Avoid specifying
  11205. # it if it's in CXXFLAGS. Ignore libCrun as
  11206. # -library=stlport4 depends on it.
  11207. case " $CXX $CXXFLAGS " in
  11208. *" -library=stlport4 "*)
  11209. solaris_use_stlport4=yes
  11210. ;;
  11211. esac
  11212. # Adding this requires a known-good setup of shared libraries for
  11213. # Sun compiler versions before 5.6, else PIC objects from an old
  11214. # archive will be linked into the output, leading to subtle bugs.
  11215. if test "$solaris_use_stlport4" != yes; then
  11216. postdeps_CXX='-library=Cstd -library=Crun'
  11217. fi
  11218. ;;
  11219. esac
  11220. ;;
  11221. esac
  11222. case " $postdeps_CXX " in
  11223. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11224. esac
  11225. compiler_lib_search_dirs_CXX=
  11226. if test -n "${compiler_lib_search_path_CXX}"; then
  11227. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11228. fi
  11229. lt_prog_compiler_wl_CXX=
  11230. lt_prog_compiler_pic_CXX=
  11231. lt_prog_compiler_static_CXX=
  11232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  11233. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  11234. # C++ specific cases for pic, static, wl, etc.
  11235. if test "$GXX" = yes; then
  11236. lt_prog_compiler_wl_CXX='-Wl,'
  11237. lt_prog_compiler_static_CXX='-static'
  11238. case $host_os in
  11239. aix*)
  11240. # All AIX code is PIC.
  11241. if test "$host_cpu" = ia64; then
  11242. # AIX 5 now supports IA64 processor
  11243. lt_prog_compiler_static_CXX='-Bstatic'
  11244. fi
  11245. ;;
  11246. amigaos*)
  11247. case $host_cpu in
  11248. powerpc)
  11249. # see comment about AmigaOS4 .so support
  11250. lt_prog_compiler_pic_CXX='-fPIC'
  11251. ;;
  11252. m68k)
  11253. # FIXME: we need at least 68020 code to build shared libraries, but
  11254. # adding the `-m68020' flag to GCC prevents building anything better,
  11255. # like `-m68040'.
  11256. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11257. ;;
  11258. esac
  11259. ;;
  11260. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11261. # PIC is the default for these OSes.
  11262. ;;
  11263. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11264. # This hack is so that the source file can tell whether it is being
  11265. # built for inclusion in a dll (and should export symbols for example).
  11266. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11267. # (--disable-auto-import) libraries
  11268. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11269. ;;
  11270. darwin* | rhapsody*)
  11271. # PIC is the default on this platform
  11272. # Common symbols not allowed in MH_DYLIB files
  11273. lt_prog_compiler_pic_CXX='-fno-common'
  11274. ;;
  11275. *djgpp*)
  11276. # DJGPP does not support shared libraries at all
  11277. lt_prog_compiler_pic_CXX=
  11278. ;;
  11279. interix[3-9]*)
  11280. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11281. # Instead, we relocate shared libraries at runtime.
  11282. ;;
  11283. sysv4*MP*)
  11284. if test -d /usr/nec; then
  11285. lt_prog_compiler_pic_CXX=-Kconform_pic
  11286. fi
  11287. ;;
  11288. hpux*)
  11289. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11290. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11291. # sets the default TLS model and affects inlining.
  11292. case $host_cpu in
  11293. hppa*64*)
  11294. ;;
  11295. *)
  11296. lt_prog_compiler_pic_CXX='-fPIC'
  11297. ;;
  11298. esac
  11299. ;;
  11300. *qnx* | *nto*)
  11301. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11302. # it will coredump.
  11303. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11304. ;;
  11305. *)
  11306. lt_prog_compiler_pic_CXX='-fPIC'
  11307. ;;
  11308. esac
  11309. else
  11310. case $host_os in
  11311. aix[4-9]*)
  11312. # All AIX code is PIC.
  11313. if test "$host_cpu" = ia64; then
  11314. # AIX 5 now supports IA64 processor
  11315. lt_prog_compiler_static_CXX='-Bstatic'
  11316. else
  11317. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11318. fi
  11319. ;;
  11320. chorus*)
  11321. case $cc_basename in
  11322. cxch68*)
  11323. # Green Hills C++ Compiler
  11324. # _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"
  11325. ;;
  11326. esac
  11327. ;;
  11328. dgux*)
  11329. case $cc_basename in
  11330. ec++*)
  11331. lt_prog_compiler_pic_CXX='-KPIC'
  11332. ;;
  11333. ghcx*)
  11334. # Green Hills C++ Compiler
  11335. lt_prog_compiler_pic_CXX='-pic'
  11336. ;;
  11337. *)
  11338. ;;
  11339. esac
  11340. ;;
  11341. freebsd* | dragonfly*)
  11342. # FreeBSD uses GNU C++
  11343. ;;
  11344. hpux9* | hpux10* | hpux11*)
  11345. case $cc_basename in
  11346. CC*)
  11347. lt_prog_compiler_wl_CXX='-Wl,'
  11348. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11349. if test "$host_cpu" != ia64; then
  11350. lt_prog_compiler_pic_CXX='+Z'
  11351. fi
  11352. ;;
  11353. aCC*)
  11354. lt_prog_compiler_wl_CXX='-Wl,'
  11355. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  11356. case $host_cpu in
  11357. hppa*64*|ia64*)
  11358. # +Z the default
  11359. ;;
  11360. *)
  11361. lt_prog_compiler_pic_CXX='+Z'
  11362. ;;
  11363. esac
  11364. ;;
  11365. *)
  11366. ;;
  11367. esac
  11368. ;;
  11369. interix*)
  11370. # This is c89, which is MS Visual C++ (no shared libs)
  11371. # Anyone wants to do a port?
  11372. ;;
  11373. irix5* | irix6* | nonstopux*)
  11374. case $cc_basename in
  11375. CC*)
  11376. lt_prog_compiler_wl_CXX='-Wl,'
  11377. lt_prog_compiler_static_CXX='-non_shared'
  11378. # CC pic flag -KPIC is the default.
  11379. ;;
  11380. *)
  11381. ;;
  11382. esac
  11383. ;;
  11384. linux* | k*bsd*-gnu)
  11385. case $cc_basename in
  11386. KCC*)
  11387. # KAI C++ Compiler
  11388. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11389. lt_prog_compiler_pic_CXX='-fPIC'
  11390. ;;
  11391. ecpc* )
  11392. # old Intel C++ for x86_64 which still supported -KPIC.
  11393. lt_prog_compiler_wl_CXX='-Wl,'
  11394. lt_prog_compiler_pic_CXX='-KPIC'
  11395. lt_prog_compiler_static_CXX='-static'
  11396. ;;
  11397. icpc* )
  11398. # Intel C++, used to be incompatible with GCC.
  11399. # ICC 10 doesn't accept -KPIC any more.
  11400. lt_prog_compiler_wl_CXX='-Wl,'
  11401. lt_prog_compiler_pic_CXX='-fPIC'
  11402. lt_prog_compiler_static_CXX='-static'
  11403. ;;
  11404. pgCC* | pgcpp*)
  11405. # Portland Group C++ compiler
  11406. lt_prog_compiler_wl_CXX='-Wl,'
  11407. lt_prog_compiler_pic_CXX='-fpic'
  11408. lt_prog_compiler_static_CXX='-Bstatic'
  11409. ;;
  11410. cxx*)
  11411. # Compaq C++
  11412. # Make sure the PIC flag is empty. It appears that all Alpha
  11413. # Linux and Compaq Tru64 Unix objects are PIC.
  11414. lt_prog_compiler_pic_CXX=
  11415. lt_prog_compiler_static_CXX='-non_shared'
  11416. ;;
  11417. xlc* | xlC*)
  11418. # IBM XL 8.0 on PPC
  11419. lt_prog_compiler_wl_CXX='-Wl,'
  11420. lt_prog_compiler_pic_CXX='-qpic'
  11421. lt_prog_compiler_static_CXX='-qstaticlink'
  11422. ;;
  11423. *)
  11424. case `$CC -V 2>&1 | sed 5q` in
  11425. *Sun\ C*)
  11426. # Sun C++ 5.9
  11427. lt_prog_compiler_pic_CXX='-KPIC'
  11428. lt_prog_compiler_static_CXX='-Bstatic'
  11429. lt_prog_compiler_wl_CXX='-Qoption ld '
  11430. ;;
  11431. esac
  11432. ;;
  11433. esac
  11434. ;;
  11435. lynxos*)
  11436. ;;
  11437. m88k*)
  11438. ;;
  11439. mvs*)
  11440. case $cc_basename in
  11441. cxx*)
  11442. lt_prog_compiler_pic_CXX='-W c,exportall'
  11443. ;;
  11444. *)
  11445. ;;
  11446. esac
  11447. ;;
  11448. netbsd* | netbsdelf*-gnu)
  11449. ;;
  11450. *qnx* | *nto*)
  11451. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11452. # it will coredump.
  11453. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11454. ;;
  11455. osf3* | osf4* | osf5*)
  11456. case $cc_basename in
  11457. KCC*)
  11458. lt_prog_compiler_wl_CXX='--backend -Wl,'
  11459. ;;
  11460. RCC*)
  11461. # Rational C++ 2.4.1
  11462. lt_prog_compiler_pic_CXX='-pic'
  11463. ;;
  11464. cxx*)
  11465. # Digital/Compaq C++
  11466. lt_prog_compiler_wl_CXX='-Wl,'
  11467. # Make sure the PIC flag is empty. It appears that all Alpha
  11468. # Linux and Compaq Tru64 Unix objects are PIC.
  11469. lt_prog_compiler_pic_CXX=
  11470. lt_prog_compiler_static_CXX='-non_shared'
  11471. ;;
  11472. *)
  11473. ;;
  11474. esac
  11475. ;;
  11476. psos*)
  11477. ;;
  11478. solaris*)
  11479. case $cc_basename in
  11480. CC*)
  11481. # Sun C++ 4.2, 5.x and Centerline C++
  11482. lt_prog_compiler_pic_CXX='-KPIC'
  11483. lt_prog_compiler_static_CXX='-Bstatic'
  11484. lt_prog_compiler_wl_CXX='-Qoption ld '
  11485. ;;
  11486. gcx*)
  11487. # Green Hills C++ Compiler
  11488. lt_prog_compiler_pic_CXX='-PIC'
  11489. ;;
  11490. *)
  11491. ;;
  11492. esac
  11493. ;;
  11494. sunos4*)
  11495. case $cc_basename in
  11496. CC*)
  11497. # Sun C++ 4.x
  11498. lt_prog_compiler_pic_CXX='-pic'
  11499. lt_prog_compiler_static_CXX='-Bstatic'
  11500. ;;
  11501. lcc*)
  11502. # Lucid
  11503. lt_prog_compiler_pic_CXX='-pic'
  11504. ;;
  11505. *)
  11506. ;;
  11507. esac
  11508. ;;
  11509. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  11510. case $cc_basename in
  11511. CC*)
  11512. lt_prog_compiler_wl_CXX='-Wl,'
  11513. lt_prog_compiler_pic_CXX='-KPIC'
  11514. lt_prog_compiler_static_CXX='-Bstatic'
  11515. ;;
  11516. esac
  11517. ;;
  11518. tandem*)
  11519. case $cc_basename in
  11520. NCC*)
  11521. # NonStop-UX NCC 3.20
  11522. lt_prog_compiler_pic_CXX='-KPIC'
  11523. ;;
  11524. *)
  11525. ;;
  11526. esac
  11527. ;;
  11528. vxworks*)
  11529. ;;
  11530. *)
  11531. lt_prog_compiler_can_build_shared_CXX=no
  11532. ;;
  11533. esac
  11534. fi
  11535. case $host_os in
  11536. # For platforms which do not support PIC, -DPIC is meaningless:
  11537. *djgpp*)
  11538. lt_prog_compiler_pic_CXX=
  11539. ;;
  11540. *)
  11541. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  11542. ;;
  11543. esac
  11544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
  11545. $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
  11546. #
  11547. # Check to make sure the PIC flag actually works.
  11548. #
  11549. if test -n "$lt_prog_compiler_pic_CXX"; then
  11550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  11551. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  11552. if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
  11553. $as_echo_n "(cached) " >&6
  11554. else
  11555. lt_cv_prog_compiler_pic_works_CXX=no
  11556. ac_outfile=conftest.$ac_objext
  11557. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11558. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  11559. # Insert the option either (1) after the last *FLAGS variable, or
  11560. # (2) before a word containing "conftest.", or (3) at the end.
  11561. # Note that $ac_compile itself does not contain backslashes and begins
  11562. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11563. # The option is referenced via a variable to avoid confusing sed.
  11564. lt_compile=`echo "$ac_compile" | $SED \
  11565. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11566. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11567. -e 's:$: $lt_compiler_flag:'`
  11568. (eval echo "\"\$as_me:13356: $lt_compile\"" >&5)
  11569. (eval "$lt_compile" 2>conftest.err)
  11570. ac_status=$?
  11571. cat conftest.err >&5
  11572. echo "$as_me:13360: \$? = $ac_status" >&5
  11573. if (exit $ac_status) && test -s "$ac_outfile"; then
  11574. # The compiler can only warn and ignore the option if not recognized
  11575. # So say no if there are warnings other than the usual output.
  11576. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  11577. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11578. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  11579. lt_cv_prog_compiler_pic_works_CXX=yes
  11580. fi
  11581. fi
  11582. $RM conftest*
  11583. fi
  11584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  11585. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  11586. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  11587. case $lt_prog_compiler_pic_CXX in
  11588. "" | " "*) ;;
  11589. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  11590. esac
  11591. else
  11592. lt_prog_compiler_pic_CXX=
  11593. lt_prog_compiler_can_build_shared_CXX=no
  11594. fi
  11595. fi
  11596. #
  11597. # Check to make sure the static flag actually works.
  11598. #
  11599. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  11600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  11601. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  11602. if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
  11603. $as_echo_n "(cached) " >&6
  11604. else
  11605. lt_cv_prog_compiler_static_works_CXX=no
  11606. save_LDFLAGS="$LDFLAGS"
  11607. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  11608. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  11609. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  11610. # The linker can only warn and ignore the option if not recognized
  11611. # So say no if there are warnings
  11612. if test -s conftest.err; then
  11613. # Append any errors to the config.log.
  11614. cat conftest.err 1>&5
  11615. $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  11616. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  11617. if diff conftest.exp conftest.er2 >/dev/null; then
  11618. lt_cv_prog_compiler_static_works_CXX=yes
  11619. fi
  11620. else
  11621. lt_cv_prog_compiler_static_works_CXX=yes
  11622. fi
  11623. fi
  11624. $RM -r conftest*
  11625. LDFLAGS="$save_LDFLAGS"
  11626. fi
  11627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  11628. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  11629. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  11630. :
  11631. else
  11632. lt_prog_compiler_static_CXX=
  11633. fi
  11634. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11635. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11636. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11637. $as_echo_n "(cached) " >&6
  11638. else
  11639. lt_cv_prog_compiler_c_o_CXX=no
  11640. $RM -r conftest 2>/dev/null
  11641. mkdir conftest
  11642. cd conftest
  11643. mkdir out
  11644. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11645. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11646. # Insert the option either (1) after the last *FLAGS variable, or
  11647. # (2) before a word containing "conftest.", or (3) at the end.
  11648. # Note that $ac_compile itself does not contain backslashes and begins
  11649. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11650. lt_compile=`echo "$ac_compile" | $SED \
  11651. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11652. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11653. -e 's:$: $lt_compiler_flag:'`
  11654. (eval echo "\"\$as_me:13455: $lt_compile\"" >&5)
  11655. (eval "$lt_compile" 2>out/conftest.err)
  11656. ac_status=$?
  11657. cat out/conftest.err >&5
  11658. echo "$as_me:13459: \$? = $ac_status" >&5
  11659. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11660. then
  11661. # The compiler can only warn and ignore the option if not recognized
  11662. # So say no if there are warnings
  11663. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11664. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11665. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11666. lt_cv_prog_compiler_c_o_CXX=yes
  11667. fi
  11668. fi
  11669. chmod u+w . 2>&5
  11670. $RM conftest*
  11671. # SGI C++ compiler will create directory out/ii_files/ for
  11672. # template instantiation
  11673. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11674. $RM out/* && rmdir out
  11675. cd ..
  11676. $RM -r conftest
  11677. $RM conftest*
  11678. fi
  11679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11680. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  11682. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  11683. if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
  11684. $as_echo_n "(cached) " >&6
  11685. else
  11686. lt_cv_prog_compiler_c_o_CXX=no
  11687. $RM -r conftest 2>/dev/null
  11688. mkdir conftest
  11689. cd conftest
  11690. mkdir out
  11691. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11692. lt_compiler_flag="-o out/conftest2.$ac_objext"
  11693. # Insert the option either (1) after the last *FLAGS variable, or
  11694. # (2) before a word containing "conftest.", or (3) at the end.
  11695. # Note that $ac_compile itself does not contain backslashes and begins
  11696. # with a dollar sign (not a hyphen), so the echo should work correctly.
  11697. lt_compile=`echo "$ac_compile" | $SED \
  11698. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  11699. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  11700. -e 's:$: $lt_compiler_flag:'`
  11701. (eval echo "\"\$as_me:13507: $lt_compile\"" >&5)
  11702. (eval "$lt_compile" 2>out/conftest.err)
  11703. ac_status=$?
  11704. cat out/conftest.err >&5
  11705. echo "$as_me:13511: \$? = $ac_status" >&5
  11706. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  11707. then
  11708. # The compiler can only warn and ignore the option if not recognized
  11709. # So say no if there are warnings
  11710. $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  11711. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  11712. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  11713. lt_cv_prog_compiler_c_o_CXX=yes
  11714. fi
  11715. fi
  11716. chmod u+w . 2>&5
  11717. $RM conftest*
  11718. # SGI C++ compiler will create directory out/ii_files/ for
  11719. # template instantiation
  11720. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  11721. $RM out/* && rmdir out
  11722. cd ..
  11723. $RM -r conftest
  11724. $RM conftest*
  11725. fi
  11726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  11727. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  11728. hard_links="nottested"
  11729. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  11730. # do not overwrite the value of need_locks provided by the user
  11731. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  11732. $as_echo_n "checking if we can lock with hard links... " >&6; }
  11733. hard_links=yes
  11734. $RM conftest*
  11735. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11736. touch conftest.a
  11737. ln conftest.a conftest.b 2>&5 || hard_links=no
  11738. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  11739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  11740. $as_echo "$hard_links" >&6; }
  11741. if test "$hard_links" = no; then
  11742. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  11743. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  11744. need_locks=warn
  11745. fi
  11746. else
  11747. need_locks=no
  11748. fi
  11749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  11750. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  11751. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11752. case $host_os in
  11753. aix[4-9]*)
  11754. # If we're using GNU nm, then we don't want the "-C" option.
  11755. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11756. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  11757. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  11758. else
  11759. 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'
  11760. fi
  11761. ;;
  11762. pw32*)
  11763. export_symbols_cmds_CXX="$ltdll_cmds"
  11764. ;;
  11765. cygwin* | mingw* | cegcc*)
  11766. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  11767. ;;
  11768. linux* | k*bsd*-gnu)
  11769. link_all_deplibs_CXX=no
  11770. ;;
  11771. *)
  11772. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11773. ;;
  11774. esac
  11775. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  11776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11777. $as_echo "$ld_shlibs_CXX" >&6; }
  11778. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11779. with_gnu_ld_CXX=$with_gnu_ld
  11780. #
  11781. # Do we need to explicitly link libc?
  11782. #
  11783. case "x$archive_cmds_need_lc_CXX" in
  11784. x|xyes)
  11785. # Assume -lc should be added
  11786. archive_cmds_need_lc_CXX=yes
  11787. if test "$enable_shared" = yes && test "$GCC" = yes; then
  11788. case $archive_cmds_CXX in
  11789. *'~'*)
  11790. # FIXME: we may have to deal with multi-command sequences.
  11791. ;;
  11792. '$CC '*)
  11793. # Test whether the compiler implicitly links with -lc since on some
  11794. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  11795. # to ld, don't add -lc before -lgcc.
  11796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  11797. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  11798. $RM conftest*
  11799. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  11800. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11801. (eval $ac_compile) 2>&5
  11802. ac_status=$?
  11803. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11804. test $ac_status = 0; } 2>conftest.err; then
  11805. soname=conftest
  11806. lib=conftest
  11807. libobjs=conftest.$ac_objext
  11808. deplibs=
  11809. wl=$lt_prog_compiler_wl_CXX
  11810. pic_flag=$lt_prog_compiler_pic_CXX
  11811. compiler_flags=-v
  11812. linker_flags=-v
  11813. verstring=
  11814. output_objdir=.
  11815. libname=conftest
  11816. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  11817. allow_undefined_flag_CXX=
  11818. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  11819. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  11820. ac_status=$?
  11821. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11822. test $ac_status = 0; }
  11823. then
  11824. archive_cmds_need_lc_CXX=no
  11825. else
  11826. archive_cmds_need_lc_CXX=yes
  11827. fi
  11828. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  11829. else
  11830. cat conftest.err 1>&5
  11831. fi
  11832. $RM conftest*
  11833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
  11834. $as_echo "$archive_cmds_need_lc_CXX" >&6; }
  11835. ;;
  11836. esac
  11837. fi
  11838. ;;
  11839. esac
  11840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  11841. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  11842. library_names_spec=
  11843. libname_spec='lib$name'
  11844. soname_spec=
  11845. shrext_cmds=".so"
  11846. postinstall_cmds=
  11847. postuninstall_cmds=
  11848. finish_cmds=
  11849. finish_eval=
  11850. shlibpath_var=
  11851. shlibpath_overrides_runpath=unknown
  11852. version_type=none
  11853. dynamic_linker="$host_os ld.so"
  11854. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  11855. need_lib_prefix=unknown
  11856. hardcode_into_libs=no
  11857. # when you set need_version to no, make sure it does not cause -set_version
  11858. # flags to be left without arguments
  11859. need_version=unknown
  11860. case $host_os in
  11861. aix3*)
  11862. version_type=linux
  11863. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  11864. shlibpath_var=LIBPATH
  11865. # AIX 3 has no versioning support, so we append a major version to the name.
  11866. soname_spec='${libname}${release}${shared_ext}$major'
  11867. ;;
  11868. aix[4-9]*)
  11869. version_type=linux
  11870. need_lib_prefix=no
  11871. need_version=no
  11872. hardcode_into_libs=yes
  11873. if test "$host_cpu" = ia64; then
  11874. # AIX 5 supports IA64
  11875. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  11876. shlibpath_var=LD_LIBRARY_PATH
  11877. else
  11878. # With GCC up to 2.95.x, collect2 would create an import file
  11879. # for dependence libraries. The import file would start with
  11880. # the line `#! .'. This would cause the generated library to
  11881. # depend on `.', always an invalid library. This was fixed in
  11882. # development snapshots of GCC prior to 3.0.
  11883. case $host_os in
  11884. aix4 | aix4.[01] | aix4.[01].*)
  11885. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  11886. echo ' yes '
  11887. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  11888. :
  11889. else
  11890. can_build_shared=no
  11891. fi
  11892. ;;
  11893. esac
  11894. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  11895. # soname into executable. Probably we can add versioning support to
  11896. # collect2, so additional links can be useful in future.
  11897. if test "$aix_use_runtimelinking" = yes; then
  11898. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  11899. # instead of lib<name>.a to let people know that these are not
  11900. # typical AIX shared libraries.
  11901. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11902. else
  11903. # We preserve .a as extension for shared libraries through AIX4.2
  11904. # and later when we are not doing run time linking.
  11905. library_names_spec='${libname}${release}.a $libname.a'
  11906. soname_spec='${libname}${release}${shared_ext}$major'
  11907. fi
  11908. shlibpath_var=LIBPATH
  11909. fi
  11910. ;;
  11911. amigaos*)
  11912. case $host_cpu in
  11913. powerpc)
  11914. # Since July 2007 AmigaOS4 officially supports .so libraries.
  11915. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  11916. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11917. ;;
  11918. m68k)
  11919. library_names_spec='$libname.ixlibrary $libname.a'
  11920. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  11921. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  11922. ;;
  11923. esac
  11924. ;;
  11925. beos*)
  11926. library_names_spec='${libname}${shared_ext}'
  11927. dynamic_linker="$host_os ld.so"
  11928. shlibpath_var=LIBRARY_PATH
  11929. ;;
  11930. bsdi[45]*)
  11931. version_type=linux
  11932. need_version=no
  11933. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  11934. soname_spec='${libname}${release}${shared_ext}$major'
  11935. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  11936. shlibpath_var=LD_LIBRARY_PATH
  11937. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  11938. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  11939. # the default ld.so.conf also contains /usr/contrib/lib and
  11940. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  11941. # libtool to hard-code these into programs
  11942. ;;
  11943. cygwin* | mingw* | pw32* | cegcc*)
  11944. version_type=windows
  11945. shrext_cmds=".dll"
  11946. need_version=no
  11947. need_lib_prefix=no
  11948. case $GCC,$host_os in
  11949. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  11950. library_names_spec='$libname.dll.a'
  11951. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  11952. postinstall_cmds='base_file=`basename \${file}`~
  11953. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  11954. dldir=$destdir/`dirname \$dlpath`~
  11955. test -d \$dldir || mkdir -p \$dldir~
  11956. $install_prog $dir/$dlname \$dldir/$dlname~
  11957. chmod a+x \$dldir/$dlname~
  11958. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  11959. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  11960. fi'
  11961. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  11962. dlpath=$dir/\$dldll~
  11963. $RM \$dlpath'
  11964. shlibpath_overrides_runpath=yes
  11965. case $host_os in
  11966. cygwin*)
  11967. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  11968. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11969. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  11970. ;;
  11971. mingw* | cegcc*)
  11972. # MinGW DLLs use traditional 'lib' prefix
  11973. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11974. sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  11975. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  11976. # It is most probably a Windows format PATH printed by
  11977. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  11978. # path with ; separators, and with drive letters. We can handle the
  11979. # drive letters (cygwin fileutils understands them), so leave them,
  11980. # especially as we might pass files found there to a mingw objdump,
  11981. # which wouldn't understand a cygwinified path. Ahh.
  11982. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  11983. else
  11984. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  11985. fi
  11986. ;;
  11987. pw32*)
  11988. # pw32 DLLs use 'pw' prefix rather than 'lib'
  11989. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  11990. ;;
  11991. esac
  11992. ;;
  11993. *)
  11994. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  11995. ;;
  11996. esac
  11997. dynamic_linker='Win32 ld.exe'
  11998. # FIXME: first we should search . and the directory the executable is in
  11999. shlibpath_var=PATH
  12000. ;;
  12001. darwin* | rhapsody*)
  12002. dynamic_linker="$host_os dyld"
  12003. version_type=darwin
  12004. need_lib_prefix=no
  12005. need_version=no
  12006. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12007. soname_spec='${libname}${release}${major}$shared_ext'
  12008. shlibpath_overrides_runpath=yes
  12009. shlibpath_var=DYLD_LIBRARY_PATH
  12010. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12011. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12012. ;;
  12013. dgux*)
  12014. version_type=linux
  12015. need_lib_prefix=no
  12016. need_version=no
  12017. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12018. soname_spec='${libname}${release}${shared_ext}$major'
  12019. shlibpath_var=LD_LIBRARY_PATH
  12020. ;;
  12021. freebsd1*)
  12022. dynamic_linker=no
  12023. ;;
  12024. freebsd* | dragonfly*)
  12025. # DragonFly does not have aout. When/if they implement a new
  12026. # versioning mechanism, adjust this.
  12027. if test -x /usr/bin/objformat; then
  12028. objformat=`/usr/bin/objformat`
  12029. else
  12030. case $host_os in
  12031. freebsd[123]*) objformat=aout ;;
  12032. *) objformat=elf ;;
  12033. esac
  12034. fi
  12035. version_type=freebsd-$objformat
  12036. case $version_type in
  12037. freebsd-elf*)
  12038. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12039. need_version=no
  12040. need_lib_prefix=no
  12041. ;;
  12042. freebsd-*)
  12043. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12044. need_version=yes
  12045. ;;
  12046. esac
  12047. shlibpath_var=LD_LIBRARY_PATH
  12048. case $host_os in
  12049. freebsd2*)
  12050. shlibpath_overrides_runpath=yes
  12051. ;;
  12052. freebsd3.[01]* | freebsdelf3.[01]*)
  12053. shlibpath_overrides_runpath=yes
  12054. hardcode_into_libs=yes
  12055. ;;
  12056. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12057. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12058. shlibpath_overrides_runpath=no
  12059. hardcode_into_libs=yes
  12060. ;;
  12061. *) # from 4.6 on, and DragonFly
  12062. shlibpath_overrides_runpath=yes
  12063. hardcode_into_libs=yes
  12064. ;;
  12065. esac
  12066. ;;
  12067. gnu*)
  12068. version_type=linux
  12069. need_lib_prefix=no
  12070. need_version=no
  12071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12072. soname_spec='${libname}${release}${shared_ext}$major'
  12073. shlibpath_var=LD_LIBRARY_PATH
  12074. hardcode_into_libs=yes
  12075. ;;
  12076. hpux9* | hpux10* | hpux11*)
  12077. # Give a soname corresponding to the major version so that dld.sl refuses to
  12078. # link against other versions.
  12079. version_type=sunos
  12080. need_lib_prefix=no
  12081. need_version=no
  12082. case $host_cpu in
  12083. ia64*)
  12084. shrext_cmds='.so'
  12085. hardcode_into_libs=yes
  12086. dynamic_linker="$host_os dld.so"
  12087. shlibpath_var=LD_LIBRARY_PATH
  12088. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12089. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12090. soname_spec='${libname}${release}${shared_ext}$major'
  12091. if test "X$HPUX_IA64_MODE" = X32; then
  12092. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12093. else
  12094. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12095. fi
  12096. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12097. ;;
  12098. hppa*64*)
  12099. shrext_cmds='.sl'
  12100. hardcode_into_libs=yes
  12101. dynamic_linker="$host_os dld.sl"
  12102. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12103. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12104. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12105. soname_spec='${libname}${release}${shared_ext}$major'
  12106. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12107. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12108. ;;
  12109. *)
  12110. shrext_cmds='.sl'
  12111. dynamic_linker="$host_os dld.sl"
  12112. shlibpath_var=SHLIB_PATH
  12113. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12114. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12115. soname_spec='${libname}${release}${shared_ext}$major'
  12116. ;;
  12117. esac
  12118. # HP-UX runs *really* slowly unless shared libraries are mode 555.
  12119. postinstall_cmds='chmod 555 $lib'
  12120. ;;
  12121. interix[3-9]*)
  12122. version_type=linux
  12123. need_lib_prefix=no
  12124. need_version=no
  12125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12126. soname_spec='${libname}${release}${shared_ext}$major'
  12127. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12128. shlibpath_var=LD_LIBRARY_PATH
  12129. shlibpath_overrides_runpath=no
  12130. hardcode_into_libs=yes
  12131. ;;
  12132. irix5* | irix6* | nonstopux*)
  12133. case $host_os in
  12134. nonstopux*) version_type=nonstopux ;;
  12135. *)
  12136. if test "$lt_cv_prog_gnu_ld" = yes; then
  12137. version_type=linux
  12138. else
  12139. version_type=irix
  12140. fi ;;
  12141. esac
  12142. need_lib_prefix=no
  12143. need_version=no
  12144. soname_spec='${libname}${release}${shared_ext}$major'
  12145. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12146. case $host_os in
  12147. irix5* | nonstopux*)
  12148. libsuff= shlibsuff=
  12149. ;;
  12150. *)
  12151. case $LD in # libtool.m4 will add one of these switches to LD
  12152. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12153. libsuff= shlibsuff= libmagic=32-bit;;
  12154. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12155. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12156. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12157. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12158. *) libsuff= shlibsuff= libmagic=never-match;;
  12159. esac
  12160. ;;
  12161. esac
  12162. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12163. shlibpath_overrides_runpath=no
  12164. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12165. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12166. hardcode_into_libs=yes
  12167. ;;
  12168. # No shared lib support for Linux oldld, aout, or coff.
  12169. linux*oldld* | linux*aout* | linux*coff*)
  12170. dynamic_linker=no
  12171. ;;
  12172. # This must be Linux ELF.
  12173. linux* | k*bsd*-gnu)
  12174. version_type=linux
  12175. need_lib_prefix=no
  12176. need_version=no
  12177. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12178. soname_spec='${libname}${release}${shared_ext}$major'
  12179. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12180. shlibpath_var=LD_LIBRARY_PATH
  12181. shlibpath_overrides_runpath=no
  12182. # Some binutils ld are patched to set DT_RUNPATH
  12183. save_LDFLAGS=$LDFLAGS
  12184. save_libdir=$libdir
  12185. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12186. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12187. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12188. /* end confdefs.h. */
  12189. int
  12190. main ()
  12191. {
  12192. ;
  12193. return 0;
  12194. }
  12195. _ACEOF
  12196. if ac_fn_cxx_try_link "$LINENO"; then :
  12197. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12198. shlibpath_overrides_runpath=yes
  12199. fi
  12200. fi
  12201. rm -f core conftest.err conftest.$ac_objext \
  12202. conftest$ac_exeext conftest.$ac_ext
  12203. LDFLAGS=$save_LDFLAGS
  12204. libdir=$save_libdir
  12205. # This implies no fast_install, which is unacceptable.
  12206. # Some rework will be needed to allow for fast_install
  12207. # before this can be enabled.
  12208. hardcode_into_libs=yes
  12209. # Append ld.so.conf contents to the search path
  12210. if test -f /etc/ld.so.conf; then
  12211. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  12212. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12213. fi
  12214. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12215. # powerpc, because MkLinux only supported shared libraries with the
  12216. # GNU dynamic linker. Since this was broken with cross compilers,
  12217. # most powerpc-linux boxes support dynamic linking these days and
  12218. # people can always --disable-shared, the test was removed, and we
  12219. # assume the GNU/Linux dynamic linker is in use.
  12220. dynamic_linker='GNU/Linux ld.so'
  12221. ;;
  12222. netbsdelf*-gnu)
  12223. version_type=linux
  12224. need_lib_prefix=no
  12225. need_version=no
  12226. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12227. soname_spec='${libname}${release}${shared_ext}$major'
  12228. shlibpath_var=LD_LIBRARY_PATH
  12229. shlibpath_overrides_runpath=no
  12230. hardcode_into_libs=yes
  12231. dynamic_linker='NetBSD ld.elf_so'
  12232. ;;
  12233. netbsd*)
  12234. version_type=sunos
  12235. need_lib_prefix=no
  12236. need_version=no
  12237. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12238. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12239. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12240. dynamic_linker='NetBSD (a.out) ld.so'
  12241. else
  12242. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12243. soname_spec='${libname}${release}${shared_ext}$major'
  12244. dynamic_linker='NetBSD ld.elf_so'
  12245. fi
  12246. shlibpath_var=LD_LIBRARY_PATH
  12247. shlibpath_overrides_runpath=yes
  12248. hardcode_into_libs=yes
  12249. ;;
  12250. newsos6)
  12251. version_type=linux
  12252. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12253. shlibpath_var=LD_LIBRARY_PATH
  12254. shlibpath_overrides_runpath=yes
  12255. ;;
  12256. *nto* | *qnx*)
  12257. version_type=qnx
  12258. need_lib_prefix=no
  12259. need_version=no
  12260. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12261. soname_spec='${libname}${release}${shared_ext}$major'
  12262. shlibpath_var=LD_LIBRARY_PATH
  12263. shlibpath_overrides_runpath=no
  12264. hardcode_into_libs=yes
  12265. dynamic_linker='ldqnx.so'
  12266. ;;
  12267. openbsd*)
  12268. version_type=sunos
  12269. sys_lib_dlsearch_path_spec="/usr/lib"
  12270. need_lib_prefix=no
  12271. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12272. case $host_os in
  12273. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  12274. *) need_version=no ;;
  12275. esac
  12276. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12277. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12278. shlibpath_var=LD_LIBRARY_PATH
  12279. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12280. case $host_os in
  12281. openbsd2.[89] | openbsd2.[89].*)
  12282. shlibpath_overrides_runpath=no
  12283. ;;
  12284. *)
  12285. shlibpath_overrides_runpath=yes
  12286. ;;
  12287. esac
  12288. else
  12289. shlibpath_overrides_runpath=yes
  12290. fi
  12291. ;;
  12292. os2*)
  12293. libname_spec='$name'
  12294. shrext_cmds=".dll"
  12295. need_lib_prefix=no
  12296. library_names_spec='$libname${shared_ext} $libname.a'
  12297. dynamic_linker='OS/2 ld.exe'
  12298. shlibpath_var=LIBPATH
  12299. ;;
  12300. osf3* | osf4* | osf5*)
  12301. version_type=osf
  12302. need_lib_prefix=no
  12303. need_version=no
  12304. soname_spec='${libname}${release}${shared_ext}$major'
  12305. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12306. shlibpath_var=LD_LIBRARY_PATH
  12307. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  12308. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  12309. ;;
  12310. rdos*)
  12311. dynamic_linker=no
  12312. ;;
  12313. solaris*)
  12314. version_type=linux
  12315. need_lib_prefix=no
  12316. need_version=no
  12317. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12318. soname_spec='${libname}${release}${shared_ext}$major'
  12319. shlibpath_var=LD_LIBRARY_PATH
  12320. shlibpath_overrides_runpath=yes
  12321. hardcode_into_libs=yes
  12322. # ldd complains unless libraries are executable
  12323. postinstall_cmds='chmod +x $lib'
  12324. ;;
  12325. sunos4*)
  12326. version_type=sunos
  12327. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12328. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  12329. shlibpath_var=LD_LIBRARY_PATH
  12330. shlibpath_overrides_runpath=yes
  12331. if test "$with_gnu_ld" = yes; then
  12332. need_lib_prefix=no
  12333. fi
  12334. need_version=yes
  12335. ;;
  12336. sysv4 | sysv4.3*)
  12337. version_type=linux
  12338. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12339. soname_spec='${libname}${release}${shared_ext}$major'
  12340. shlibpath_var=LD_LIBRARY_PATH
  12341. case $host_vendor in
  12342. sni)
  12343. shlibpath_overrides_runpath=no
  12344. need_lib_prefix=no
  12345. runpath_var=LD_RUN_PATH
  12346. ;;
  12347. siemens)
  12348. need_lib_prefix=no
  12349. ;;
  12350. motorola)
  12351. need_lib_prefix=no
  12352. need_version=no
  12353. shlibpath_overrides_runpath=no
  12354. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  12355. ;;
  12356. esac
  12357. ;;
  12358. sysv4*MP*)
  12359. if test -d /usr/nec ;then
  12360. version_type=linux
  12361. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  12362. soname_spec='$libname${shared_ext}.$major'
  12363. shlibpath_var=LD_LIBRARY_PATH
  12364. fi
  12365. ;;
  12366. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  12367. version_type=freebsd-elf
  12368. need_lib_prefix=no
  12369. need_version=no
  12370. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12371. soname_spec='${libname}${release}${shared_ext}$major'
  12372. shlibpath_var=LD_LIBRARY_PATH
  12373. shlibpath_overrides_runpath=yes
  12374. hardcode_into_libs=yes
  12375. if test "$with_gnu_ld" = yes; then
  12376. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  12377. else
  12378. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  12379. case $host_os in
  12380. sco3.2v5*)
  12381. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  12382. ;;
  12383. esac
  12384. fi
  12385. sys_lib_dlsearch_path_spec='/usr/lib'
  12386. ;;
  12387. tpf*)
  12388. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  12389. version_type=linux
  12390. need_lib_prefix=no
  12391. need_version=no
  12392. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12393. shlibpath_var=LD_LIBRARY_PATH
  12394. shlibpath_overrides_runpath=no
  12395. hardcode_into_libs=yes
  12396. ;;
  12397. uts4*)
  12398. version_type=linux
  12399. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12400. soname_spec='${libname}${release}${shared_ext}$major'
  12401. shlibpath_var=LD_LIBRARY_PATH
  12402. ;;
  12403. *)
  12404. dynamic_linker=no
  12405. ;;
  12406. esac
  12407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  12408. $as_echo "$dynamic_linker" >&6; }
  12409. test "$dynamic_linker" = no && can_build_shared=no
  12410. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12411. if test "$GCC" = yes; then
  12412. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12413. fi
  12414. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  12415. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  12416. fi
  12417. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  12418. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  12419. fi
  12420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  12421. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  12422. hardcode_action_CXX=
  12423. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  12424. test -n "$runpath_var_CXX" ||
  12425. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  12426. # We can hardcode non-existent directories.
  12427. if test "$hardcode_direct_CXX" != no &&
  12428. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  12429. # have to relink, otherwise we might link with an installed library
  12430. # when we should be linking with a yet-to-be-installed one
  12431. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  12432. test "$hardcode_minus_L_CXX" != no; then
  12433. # Linking always hardcodes the temporary library directory.
  12434. hardcode_action_CXX=relink
  12435. else
  12436. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  12437. hardcode_action_CXX=immediate
  12438. fi
  12439. else
  12440. # We cannot hardcode anything, or else we can only hardcode existing
  12441. # directories.
  12442. hardcode_action_CXX=unsupported
  12443. fi
  12444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  12445. $as_echo "$hardcode_action_CXX" >&6; }
  12446. if test "$hardcode_action_CXX" = relink ||
  12447. test "$inherit_rpath_CXX" = yes; then
  12448. # Fast installation is not supported
  12449. enable_fast_install=no
  12450. elif test "$shlibpath_overrides_runpath" = yes ||
  12451. test "$enable_shared" = no; then
  12452. # Fast installation is not necessary
  12453. enable_fast_install=needless
  12454. fi
  12455. fi # test -n "$compiler"
  12456. CC=$lt_save_CC
  12457. LDCXX=$LD
  12458. LD=$lt_save_LD
  12459. GCC=$lt_save_GCC
  12460. with_gnu_ld=$lt_save_with_gnu_ld
  12461. lt_cv_path_LDCXX=$lt_cv_path_LD
  12462. lt_cv_path_LD=$lt_save_path_LD
  12463. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  12464. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  12465. fi # test "$_lt_caught_CXX_error" != yes
  12466. ac_ext=cpp
  12467. ac_cpp='$CXXCPP $CPPFLAGS'
  12468. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12469. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12470. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12471. ac_config_commands="$ac_config_commands libtool"
  12472. # Only expand once:
  12473. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler vendor" >&5
  12474. $as_echo_n "checking for C++ compiler vendor... " >&6; }
  12475. if test "${ax_cv_cxx_compiler_vendor+set}" = set; then :
  12476. $as_echo_n "(cached) " >&6
  12477. else
  12478. ax_cv_cxx_compiler_vendor=unknown
  12479. # note: don't check for gcc first since some other compilers define __GNUC__
  12480. 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
  12481. vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
  12482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12483. /* end confdefs.h. */
  12484. int
  12485. main ()
  12486. {
  12487. #if !($vencpp)
  12488. thisisanerror;
  12489. #endif
  12490. ;
  12491. return 0;
  12492. }
  12493. _ACEOF
  12494. if ac_fn_cxx_try_compile "$LINENO"; then :
  12495. ax_cv_cxx_compiler_vendor=`echo $ventest | cut -d: -f1`; break
  12496. fi
  12497. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12498. done
  12499. fi
  12500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compiler_vendor" >&5
  12501. $as_echo "$ax_cv_cxx_compiler_vendor" >&6; }
  12502. # Use silent rules if supported.
  12503. # Check whether --enable-silent-rules was given.
  12504. if test "${enable_silent_rules+set}" = set; then :
  12505. enableval=$enable_silent_rules;
  12506. fi
  12507. case $enable_silent_rules in
  12508. yes) AM_DEFAULT_VERBOSITY=0;;
  12509. no) AM_DEFAULT_VERBOSITY=1;;
  12510. *) AM_DEFAULT_VERBOSITY=0;;
  12511. esac
  12512. AM_BACKSLASH='\'
  12513. # Check whether --enable-debug was given.
  12514. if test "${enable_debug+set}" = set; then :
  12515. enableval=$enable_debug; if test x$enableval = xyes ; then
  12516. enable_debug="yes"
  12517. else
  12518. enable_debug="no"
  12519. fi
  12520. else
  12521. enable_debug="yes"
  12522. fi
  12523. if test "x$GXX" = "xyes" -a "x$enable_debug" = "xyes" ; then
  12524. CXXFLAGS="$CXXFLAGS -O0 -ggdb"
  12525. fi
  12526. # For gcc and compatible compilers, enable compilation warnings, but
  12527. # selectively disable some because too many are generated.
  12528. if test "x$GXX" = "xyes" ; then
  12529. CXXFLAGS="$CXXFLAGS -Wall -Wno-switch -Wno-sign-compare -Wcast-align -Wpointer-arith -Wno-unknown-pragmas"
  12530. fi
  12531. # extra clang parameters
  12532. if test "x${ax_cv_cxx_compiler_vendor}" = "xclang" ; then
  12533. CXXFLAGS="$CXXFLAGS -Wno-address-of-temporary -Wno-unused-value -Wno-cast-align"
  12534. fi
  12535. # extra Intel icc parameters
  12536. if test "x${ax_cv_cxx_compiler_vendor}" = "xintel" ; then
  12537. CXXFLAGS="$CXXFLAGS -diag-disable 383,981,1418,869,1563,2259,1782,444,271,1,10156,1419"
  12538. fi
  12539. # Check for Boost libraries
  12540. # Check whether --with-boost was given.
  12541. if test "${with_boost+set}" = set; then :
  12542. withval=$with_boost;
  12543. if test "$withval" = "no"; then
  12544. want_boost="no"
  12545. elif test "$withval" = "yes"; then
  12546. want_boost="yes"
  12547. ac_boost_path=""
  12548. else
  12549. want_boost="yes"
  12550. ac_boost_path="$withval"
  12551. fi
  12552. else
  12553. want_boost="yes"
  12554. fi
  12555. # Check whether --with-boost-libdir was given.
  12556. if test "${with_boost_libdir+set}" = set; then :
  12557. withval=$with_boost_libdir;
  12558. if test -d "$withval"
  12559. then
  12560. ac_boost_lib_path="$withval"
  12561. else
  12562. as_fn_error $? "--with-boost-libdir expected directory name" "$LINENO" 5
  12563. fi
  12564. else
  12565. ac_boost_lib_path=""
  12566. fi
  12567. if test "x$want_boost" = "xyes"; then
  12568. boost_lib_version_req=1.36
  12569. boost_lib_version_req_shorten=`expr $boost_lib_version_req : '\([0-9]*\.[0-9]*\)'`
  12570. boost_lib_version_req_major=`expr $boost_lib_version_req : '\([0-9]*\)'`
  12571. boost_lib_version_req_minor=`expr $boost_lib_version_req : '[0-9]*\.\([0-9]*\)'`
  12572. boost_lib_version_req_sub_minor=`expr $boost_lib_version_req : '[0-9]*\.[0-9]*\.\([0-9]*\)'`
  12573. if test "x$boost_lib_version_req_sub_minor" = "x" ; then
  12574. boost_lib_version_req_sub_minor="0"
  12575. fi
  12576. WANT_BOOST_VERSION=`expr $boost_lib_version_req_major \* 100000 \+ $boost_lib_version_req_minor \* 100 \+ $boost_lib_version_req_sub_minor`
  12577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for boostlib >= $boost_lib_version_req" >&5
  12578. $as_echo_n "checking for boostlib >= $boost_lib_version_req... " >&6; }
  12579. succeeded=no
  12580. libsubdirs="lib"
  12581. ax_arch=`uname -m`
  12582. if test $ax_arch = x86_64 -o $ax_arch = ppc64 -o $ax_arch = s390x -o $ax_arch = sparc64; then
  12583. libsubdirs="lib64 lib lib64"
  12584. fi
  12585. if test "$ac_boost_path" != ""; then
  12586. BOOST_CPPFLAGS="-I$ac_boost_path/include"
  12587. for ac_boost_path_tmp in $libsubdirs; do
  12588. if test -d "$ac_boost_path"/"$ac_boost_path_tmp" ; then
  12589. BOOST_LDFLAGS="-L$ac_boost_path/$ac_boost_path_tmp"
  12590. break
  12591. fi
  12592. done
  12593. elif test "$cross_compiling" != yes; then
  12594. for ac_boost_path_tmp in /usr /usr/local /opt /opt/local ; do
  12595. if test -d "$ac_boost_path_tmp/include/boost" && test -r "$ac_boost_path_tmp/include/boost"; then
  12596. for libsubdir in $libsubdirs ; do
  12597. if ls "$ac_boost_path_tmp/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  12598. done
  12599. BOOST_LDFLAGS="-L$ac_boost_path_tmp/$libsubdir"
  12600. BOOST_CPPFLAGS="-I$ac_boost_path_tmp/include"
  12601. break;
  12602. fi
  12603. done
  12604. fi
  12605. if test "$ac_boost_lib_path" != ""; then
  12606. BOOST_LDFLAGS="-L$ac_boost_lib_path"
  12607. fi
  12608. CPPFLAGS_SAVED="$CPPFLAGS"
  12609. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12610. export CPPFLAGS
  12611. LDFLAGS_SAVED="$LDFLAGS"
  12612. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12613. export LDFLAGS
  12614. ac_ext=cpp
  12615. ac_cpp='$CXXCPP $CPPFLAGS'
  12616. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12617. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12618. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12619. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12620. /* end confdefs.h. */
  12621. #include <boost/version.hpp>
  12622. int
  12623. main ()
  12624. {
  12625. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  12626. // Everything is okay
  12627. #else
  12628. # error Boost version is too old
  12629. #endif
  12630. ;
  12631. return 0;
  12632. }
  12633. _ACEOF
  12634. if ac_fn_cxx_try_compile "$LINENO"; then :
  12635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12636. $as_echo "yes" >&6; }
  12637. succeeded=yes
  12638. found_system=yes
  12639. fi
  12640. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12641. ac_ext=cpp
  12642. ac_cpp='$CXXCPP $CPPFLAGS'
  12643. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12644. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12645. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12646. if test "x$succeeded" != "xyes"; then
  12647. _version=0
  12648. if test "$ac_boost_path" != ""; then
  12649. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  12650. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  12651. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  12652. V_CHECK=`expr $_version_tmp \> $_version`
  12653. if test "$V_CHECK" = "1" ; then
  12654. _version=$_version_tmp
  12655. fi
  12656. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  12657. BOOST_CPPFLAGS="-I$ac_boost_path/include/boost-$VERSION_UNDERSCORE"
  12658. done
  12659. fi
  12660. else
  12661. if test "$cross_compiling" != yes; then
  12662. for ac_boost_path in /usr /usr/local /opt /opt/local ; do
  12663. if test -d "$ac_boost_path" && test -r "$ac_boost_path"; then
  12664. for i in `ls -d $ac_boost_path/include/boost-* 2>/dev/null`; do
  12665. _version_tmp=`echo $i | sed "s#$ac_boost_path##" | sed 's/\/include\/boost-//' | sed 's/_/./'`
  12666. V_CHECK=`expr $_version_tmp \> $_version`
  12667. if test "$V_CHECK" = "1" ; then
  12668. _version=$_version_tmp
  12669. best_path=$ac_boost_path
  12670. fi
  12671. done
  12672. fi
  12673. done
  12674. VERSION_UNDERSCORE=`echo $_version | sed 's/\./_/'`
  12675. BOOST_CPPFLAGS="-I$best_path/include/boost-$VERSION_UNDERSCORE"
  12676. if test "$ac_boost_lib_path" = ""; then
  12677. for libsubdir in $libsubdirs ; do
  12678. if ls "$best_path/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  12679. done
  12680. BOOST_LDFLAGS="-L$best_path/$libsubdir"
  12681. fi
  12682. fi
  12683. if test "x$BOOST_ROOT" != "x"; then
  12684. for libsubdir in $libsubdirs ; do
  12685. if ls "$BOOST_ROOT/stage/$libsubdir/libboost_"* >/dev/null 2>&1 ; then break; fi
  12686. done
  12687. if test -d "$BOOST_ROOT" && test -r "$BOOST_ROOT" && test -d "$BOOST_ROOT/stage/$libsubdir" && test -r "$BOOST_ROOT/stage/$libsubdir"; then
  12688. version_dir=`expr //$BOOST_ROOT : '.*/\(.*\)'`
  12689. stage_version=`echo $version_dir | sed 's/boost_//' | sed 's/_/./g'`
  12690. stage_version_shorten=`expr $stage_version : '\([0-9]*\.[0-9]*\)'`
  12691. V_CHECK=`expr $stage_version_shorten \>\= $_version`
  12692. if test "$V_CHECK" = "1" -a "$ac_boost_lib_path" = "" ; then
  12693. { $as_echo "$as_me:${as_lineno-$LINENO}: We will use a staged boost library from $BOOST_ROOT" >&5
  12694. $as_echo "$as_me: We will use a staged boost library from $BOOST_ROOT" >&6;}
  12695. BOOST_CPPFLAGS="-I$BOOST_ROOT"
  12696. BOOST_LDFLAGS="-L$BOOST_ROOT/stage/$libsubdir"
  12697. fi
  12698. fi
  12699. fi
  12700. fi
  12701. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12702. export CPPFLAGS
  12703. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12704. export LDFLAGS
  12705. ac_ext=cpp
  12706. ac_cpp='$CXXCPP $CPPFLAGS'
  12707. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12708. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12709. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12710. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12711. /* end confdefs.h. */
  12712. #include <boost/version.hpp>
  12713. int
  12714. main ()
  12715. {
  12716. #if BOOST_VERSION >= $WANT_BOOST_VERSION
  12717. // Everything is okay
  12718. #else
  12719. # error Boost version is too old
  12720. #endif
  12721. ;
  12722. return 0;
  12723. }
  12724. _ACEOF
  12725. if ac_fn_cxx_try_compile "$LINENO"; then :
  12726. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12727. $as_echo "yes" >&6; }
  12728. succeeded=yes
  12729. found_system=yes
  12730. fi
  12731. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12732. ac_ext=cpp
  12733. ac_cpp='$CXXCPP $CPPFLAGS'
  12734. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12735. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12736. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12737. fi
  12738. if test "$succeeded" != "yes" ; then
  12739. if test "$_version" = "0" ; then
  12740. { $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
  12741. $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;}
  12742. else
  12743. { $as_echo "$as_me:${as_lineno-$LINENO}: Your boost libraries seems to old (version $_version)." >&5
  12744. $as_echo "$as_me: Your boost libraries seems to old (version $_version)." >&6;}
  12745. fi
  12746. # execute ACTION-IF-NOT-FOUND (if present):
  12747. :
  12748. else
  12749. $as_echo "#define HAVE_BOOST /**/" >>confdefs.h
  12750. # execute ACTION-IF-FOUND (if present):
  12751. :
  12752. fi
  12753. CPPFLAGS="$CPPFLAGS_SAVED"
  12754. LDFLAGS="$LDFLAGS_SAVED"
  12755. fi
  12756. # Check whether --with-boost-system was given.
  12757. if test "${with_boost_system+set}" = set; then :
  12758. withval=$with_boost_system;
  12759. if test "$withval" = "no"; then
  12760. want_boost="no"
  12761. elif test "$withval" = "yes"; then
  12762. want_boost="yes"
  12763. ax_boost_user_system_lib=""
  12764. else
  12765. want_boost="yes"
  12766. ax_boost_user_system_lib="$withval"
  12767. fi
  12768. else
  12769. want_boost="yes"
  12770. fi
  12771. if test "x$want_boost" = "xyes"; then
  12772. CPPFLAGS_SAVED="$CPPFLAGS"
  12773. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12774. export CPPFLAGS
  12775. LDFLAGS_SAVED="$LDFLAGS"
  12776. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12777. export LDFLAGS
  12778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::System library is available" >&5
  12779. $as_echo_n "checking whether the Boost::System library is available... " >&6; }
  12780. if test "${ax_cv_boost_system+set}" = set; then :
  12781. $as_echo_n "(cached) " >&6
  12782. else
  12783. ac_ext=cpp
  12784. ac_cpp='$CXXCPP $CPPFLAGS'
  12785. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12786. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12787. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12788. CXXFLAGS_SAVE=$CXXFLAGS
  12789. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12790. /* end confdefs.h. */
  12791. #include <boost/system/error_code.hpp>
  12792. int
  12793. main ()
  12794. {
  12795. boost::system::system_category
  12796. ;
  12797. return 0;
  12798. }
  12799. _ACEOF
  12800. if ac_fn_cxx_try_compile "$LINENO"; then :
  12801. ax_cv_boost_system=yes
  12802. else
  12803. ax_cv_boost_system=no
  12804. fi
  12805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12806. CXXFLAGS=$CXXFLAGS_SAVE
  12807. ac_ext=cpp
  12808. ac_cpp='$CXXCPP $CPPFLAGS'
  12809. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12810. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12811. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12812. fi
  12813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_system" >&5
  12814. $as_echo "$ax_cv_boost_system" >&6; }
  12815. if test "x$ax_cv_boost_system" = "xyes"; then
  12816. $as_echo "#define HAVE_BOOST_SYSTEM /**/" >>confdefs.h
  12817. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  12818. LDFLAGS_SAVE=$LDFLAGS
  12819. if test "x$ax_boost_user_system_lib" = "x"; then
  12820. 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
  12821. ax_lib=${libextension}
  12822. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12824. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12825. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  12826. $as_echo_n "(cached) " >&6
  12827. else
  12828. ac_check_lib_save_LIBS=$LIBS
  12829. LIBS="-l$ax_lib $LIBS"
  12830. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12831. /* end confdefs.h. */
  12832. /* Override any GCC internal prototype to avoid an error.
  12833. Use char because int might match the return type of a GCC
  12834. builtin and then its argument prototype would still apply. */
  12835. #ifdef __cplusplus
  12836. extern "C"
  12837. #endif
  12838. char exit ();
  12839. int
  12840. main ()
  12841. {
  12842. return exit ();
  12843. ;
  12844. return 0;
  12845. }
  12846. _ACEOF
  12847. if ac_fn_cxx_try_link "$LINENO"; then :
  12848. eval "$as_ac_Lib=yes"
  12849. else
  12850. eval "$as_ac_Lib=no"
  12851. fi
  12852. rm -f core conftest.err conftest.$ac_objext \
  12853. conftest$ac_exeext conftest.$ac_ext
  12854. LIBS=$ac_check_lib_save_LIBS
  12855. fi
  12856. eval ac_res=\$$as_ac_Lib
  12857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12858. $as_echo "$ac_res" >&6; }
  12859. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  12860. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12861. else
  12862. link_system="no"
  12863. fi
  12864. done
  12865. if test "x$link_system" != "xyes"; then
  12866. 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
  12867. ax_lib=${libextension}
  12868. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12869. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12870. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12871. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  12872. $as_echo_n "(cached) " >&6
  12873. else
  12874. ac_check_lib_save_LIBS=$LIBS
  12875. LIBS="-l$ax_lib $LIBS"
  12876. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12877. /* end confdefs.h. */
  12878. /* Override any GCC internal prototype to avoid an error.
  12879. Use char because int might match the return type of a GCC
  12880. builtin and then its argument prototype would still apply. */
  12881. #ifdef __cplusplus
  12882. extern "C"
  12883. #endif
  12884. char exit ();
  12885. int
  12886. main ()
  12887. {
  12888. return exit ();
  12889. ;
  12890. return 0;
  12891. }
  12892. _ACEOF
  12893. if ac_fn_cxx_try_link "$LINENO"; then :
  12894. eval "$as_ac_Lib=yes"
  12895. else
  12896. eval "$as_ac_Lib=no"
  12897. fi
  12898. rm -f core conftest.err conftest.$ac_objext \
  12899. conftest$ac_exeext conftest.$ac_ext
  12900. LIBS=$ac_check_lib_save_LIBS
  12901. fi
  12902. eval ac_res=\$$as_ac_Lib
  12903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12904. $as_echo "$ac_res" >&6; }
  12905. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  12906. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12907. else
  12908. link_system="no"
  12909. fi
  12910. done
  12911. fi
  12912. else
  12913. for ax_lib in $ax_boost_user_system_lib boost_system-$ax_boost_user_system_lib; do
  12914. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  12915. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  12916. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  12917. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  12918. $as_echo_n "(cached) " >&6
  12919. else
  12920. ac_check_lib_save_LIBS=$LIBS
  12921. LIBS="-l$ax_lib $LIBS"
  12922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12923. /* end confdefs.h. */
  12924. /* Override any GCC internal prototype to avoid an error.
  12925. Use char because int might match the return type of a GCC
  12926. builtin and then its argument prototype would still apply. */
  12927. #ifdef __cplusplus
  12928. extern "C"
  12929. #endif
  12930. char exit ();
  12931. int
  12932. main ()
  12933. {
  12934. return exit ();
  12935. ;
  12936. return 0;
  12937. }
  12938. _ACEOF
  12939. if ac_fn_cxx_try_link "$LINENO"; then :
  12940. eval "$as_ac_Lib=yes"
  12941. else
  12942. eval "$as_ac_Lib=no"
  12943. fi
  12944. rm -f core conftest.err conftest.$ac_objext \
  12945. conftest$ac_exeext conftest.$ac_ext
  12946. LIBS=$ac_check_lib_save_LIBS
  12947. fi
  12948. eval ac_res=\$$as_ac_Lib
  12949. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12950. $as_echo "$ac_res" >&6; }
  12951. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  12952. BOOST_SYSTEM_LIB="-l$ax_lib"; link_system="yes"; break
  12953. else
  12954. link_system="no"
  12955. fi
  12956. done
  12957. fi
  12958. if test "x$ax_lib" = "x"; then
  12959. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  12960. fi
  12961. if test "x$link_system" = "xno"; then
  12962. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  12963. fi
  12964. fi
  12965. CPPFLAGS="$CPPFLAGS_SAVED"
  12966. LDFLAGS="$LDFLAGS_SAVED"
  12967. fi
  12968. # Check whether --with-boost-filesystem was given.
  12969. if test "${with_boost_filesystem+set}" = set; then :
  12970. withval=$with_boost_filesystem;
  12971. if test "$withval" = "no"; then
  12972. want_boost="no"
  12973. elif test "$withval" = "yes"; then
  12974. want_boost="yes"
  12975. ax_boost_user_filesystem_lib=""
  12976. else
  12977. want_boost="yes"
  12978. ax_boost_user_filesystem_lib="$withval"
  12979. fi
  12980. else
  12981. want_boost="yes"
  12982. fi
  12983. if test "x$want_boost" = "xyes"; then
  12984. CPPFLAGS_SAVED="$CPPFLAGS"
  12985. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  12986. export CPPFLAGS
  12987. LDFLAGS_SAVED="$LDFLAGS"
  12988. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  12989. export LDFLAGS
  12990. LIBS_SAVED=$LIBS
  12991. LIBS="$LIBS $BOOST_SYSTEM_LIB"
  12992. export LIBS
  12993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Filesystem library is available" >&5
  12994. $as_echo_n "checking whether the Boost::Filesystem library is available... " >&6; }
  12995. if test "${ax_cv_boost_filesystem+set}" = set; then :
  12996. $as_echo_n "(cached) " >&6
  12997. else
  12998. ac_ext=cpp
  12999. ac_cpp='$CXXCPP $CPPFLAGS'
  13000. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13001. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13002. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13004. /* end confdefs.h. */
  13005. #include <boost/filesystem/path.hpp>
  13006. int
  13007. main ()
  13008. {
  13009. using namespace boost::filesystem;
  13010. path my_path( "foo/bar/data.txt" );
  13011. return 0;
  13012. ;
  13013. return 0;
  13014. }
  13015. _ACEOF
  13016. if ac_fn_cxx_try_compile "$LINENO"; then :
  13017. ax_cv_boost_filesystem=yes
  13018. else
  13019. ax_cv_boost_filesystem=no
  13020. fi
  13021. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13022. ac_ext=cpp
  13023. ac_cpp='$CXXCPP $CPPFLAGS'
  13024. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13025. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13026. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13027. fi
  13028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_filesystem" >&5
  13029. $as_echo "$ax_cv_boost_filesystem" >&6; }
  13030. if test "x$ax_cv_boost_filesystem" = "xyes"; then
  13031. $as_echo "#define HAVE_BOOST_FILESYSTEM /**/" >>confdefs.h
  13032. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13033. if test "x$ax_boost_user_filesystem_lib" = "x"; then
  13034. 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
  13035. ax_lib=${libextension}
  13036. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13038. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13039. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13040. $as_echo_n "(cached) " >&6
  13041. else
  13042. ac_check_lib_save_LIBS=$LIBS
  13043. LIBS="-l$ax_lib $LIBS"
  13044. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13045. /* end confdefs.h. */
  13046. /* Override any GCC internal prototype to avoid an error.
  13047. Use char because int might match the return type of a GCC
  13048. builtin and then its argument prototype would still apply. */
  13049. #ifdef __cplusplus
  13050. extern "C"
  13051. #endif
  13052. char exit ();
  13053. int
  13054. main ()
  13055. {
  13056. return exit ();
  13057. ;
  13058. return 0;
  13059. }
  13060. _ACEOF
  13061. if ac_fn_cxx_try_link "$LINENO"; then :
  13062. eval "$as_ac_Lib=yes"
  13063. else
  13064. eval "$as_ac_Lib=no"
  13065. fi
  13066. rm -f core conftest.err conftest.$ac_objext \
  13067. conftest$ac_exeext conftest.$ac_ext
  13068. LIBS=$ac_check_lib_save_LIBS
  13069. fi
  13070. eval ac_res=\$$as_ac_Lib
  13071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13072. $as_echo "$ac_res" >&6; }
  13073. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13074. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13075. else
  13076. link_filesystem="no"
  13077. fi
  13078. done
  13079. if test "x$link_program_options" != "xyes"; then
  13080. 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
  13081. ax_lib=${libextension}
  13082. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13084. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13085. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13086. $as_echo_n "(cached) " >&6
  13087. else
  13088. ac_check_lib_save_LIBS=$LIBS
  13089. LIBS="-l$ax_lib $LIBS"
  13090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13091. /* end confdefs.h. */
  13092. /* Override any GCC internal prototype to avoid an error.
  13093. Use char because int might match the return type of a GCC
  13094. builtin and then its argument prototype would still apply. */
  13095. #ifdef __cplusplus
  13096. extern "C"
  13097. #endif
  13098. char exit ();
  13099. int
  13100. main ()
  13101. {
  13102. return exit ();
  13103. ;
  13104. return 0;
  13105. }
  13106. _ACEOF
  13107. if ac_fn_cxx_try_link "$LINENO"; then :
  13108. eval "$as_ac_Lib=yes"
  13109. else
  13110. eval "$as_ac_Lib=no"
  13111. fi
  13112. rm -f core conftest.err conftest.$ac_objext \
  13113. conftest$ac_exeext conftest.$ac_ext
  13114. LIBS=$ac_check_lib_save_LIBS
  13115. fi
  13116. eval ac_res=\$$as_ac_Lib
  13117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13118. $as_echo "$ac_res" >&6; }
  13119. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13120. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13121. else
  13122. link_filesystem="no"
  13123. fi
  13124. done
  13125. fi
  13126. else
  13127. for ax_lib in $ax_boost_user_filesystem_lib boost_filesystem-$ax_boost_user_filesystem_lib; do
  13128. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13130. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13131. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13132. $as_echo_n "(cached) " >&6
  13133. else
  13134. ac_check_lib_save_LIBS=$LIBS
  13135. LIBS="-l$ax_lib $LIBS"
  13136. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13137. /* end confdefs.h. */
  13138. /* Override any GCC internal prototype to avoid an error.
  13139. Use char because int might match the return type of a GCC
  13140. builtin and then its argument prototype would still apply. */
  13141. #ifdef __cplusplus
  13142. extern "C"
  13143. #endif
  13144. char exit ();
  13145. int
  13146. main ()
  13147. {
  13148. return exit ();
  13149. ;
  13150. return 0;
  13151. }
  13152. _ACEOF
  13153. if ac_fn_cxx_try_link "$LINENO"; then :
  13154. eval "$as_ac_Lib=yes"
  13155. else
  13156. eval "$as_ac_Lib=no"
  13157. fi
  13158. rm -f core conftest.err conftest.$ac_objext \
  13159. conftest$ac_exeext conftest.$ac_ext
  13160. LIBS=$ac_check_lib_save_LIBS
  13161. fi
  13162. eval ac_res=\$$as_ac_Lib
  13163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13164. $as_echo "$ac_res" >&6; }
  13165. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13166. BOOST_FILESYSTEM_LIB="-l$ax_lib"; link_filesystem="yes"; break
  13167. else
  13168. link_filesystem="no"
  13169. fi
  13170. done
  13171. fi
  13172. if test "x$ax_lib" = "x"; then
  13173. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13174. fi
  13175. if test "x$link_filesystem" != "xyes"; then
  13176. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13177. fi
  13178. fi
  13179. CPPFLAGS="$CPPFLAGS_SAVED"
  13180. LDFLAGS="$LDFLAGS_SAVED"
  13181. LIBS="$LIBS_SAVED"
  13182. fi
  13183. # Check whether --with-boost-thread was given.
  13184. if test "${with_boost_thread+set}" = set; then :
  13185. withval=$with_boost_thread;
  13186. if test "$withval" = "no"; then
  13187. want_boost="no"
  13188. elif test "$withval" = "yes"; then
  13189. want_boost="yes"
  13190. ax_boost_user_thread_lib=""
  13191. else
  13192. want_boost="yes"
  13193. ax_boost_user_thread_lib="$withval"
  13194. fi
  13195. else
  13196. want_boost="yes"
  13197. fi
  13198. if test "x$want_boost" = "xyes"; then
  13199. CPPFLAGS_SAVED="$CPPFLAGS"
  13200. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13201. export CPPFLAGS
  13202. LDFLAGS_SAVED="$LDFLAGS"
  13203. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13204. export LDFLAGS
  13205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Thread library is available" >&5
  13206. $as_echo_n "checking whether the Boost::Thread library is available... " >&6; }
  13207. if test "${ax_cv_boost_thread+set}" = set; then :
  13208. $as_echo_n "(cached) " >&6
  13209. else
  13210. ac_ext=cpp
  13211. ac_cpp='$CXXCPP $CPPFLAGS'
  13212. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13213. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13214. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13215. CXXFLAGS_SAVE=$CXXFLAGS
  13216. if test "x$build_os" = "xsolaris" ; then
  13217. CXXFLAGS="-pthreads $CXXFLAGS"
  13218. elif test "x$build_os" = "xming32" ; then
  13219. CXXFLAGS="-mthreads $CXXFLAGS"
  13220. else
  13221. CXXFLAGS="-pthread $CXXFLAGS"
  13222. fi
  13223. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13224. /* end confdefs.h. */
  13225. #include <boost/thread/thread.hpp>
  13226. int
  13227. main ()
  13228. {
  13229. boost::thread_group thrds;
  13230. return 0;
  13231. ;
  13232. return 0;
  13233. }
  13234. _ACEOF
  13235. if ac_fn_cxx_try_compile "$LINENO"; then :
  13236. ax_cv_boost_thread=yes
  13237. else
  13238. ax_cv_boost_thread=no
  13239. fi
  13240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13241. CXXFLAGS=$CXXFLAGS_SAVE
  13242. ac_ext=cpp
  13243. ac_cpp='$CXXCPP $CPPFLAGS'
  13244. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13245. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13246. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13247. fi
  13248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_thread" >&5
  13249. $as_echo "$ax_cv_boost_thread" >&6; }
  13250. if test "x$ax_cv_boost_thread" = "xyes"; then
  13251. if test "x$build_os" = "xsolaris" ; then
  13252. BOOST_CPPFLAGS="-pthreads $BOOST_CPPFLAGS"
  13253. elif test "x$build_os" = "xming32" ; then
  13254. BOOST_CPPFLAGS="-mthreads $BOOST_CPPFLAGS"
  13255. else
  13256. BOOST_CPPFLAGS="-pthread $BOOST_CPPFLAGS"
  13257. fi
  13258. $as_echo "#define HAVE_BOOST_THREAD /**/" >>confdefs.h
  13259. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13260. LDFLAGS_SAVE=$LDFLAGS
  13261. case "x$build_os" in
  13262. *bsd* )
  13263. LDFLAGS="-pthread $LDFLAGS"
  13264. break;
  13265. ;;
  13266. esac
  13267. if test "x$ax_boost_user_thread_lib" = "x"; then
  13268. 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
  13269. ax_lib=${libextension}
  13270. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13272. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13273. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13274. $as_echo_n "(cached) " >&6
  13275. else
  13276. ac_check_lib_save_LIBS=$LIBS
  13277. LIBS="-l$ax_lib $LIBS"
  13278. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13279. /* end confdefs.h. */
  13280. /* Override any GCC internal prototype to avoid an error.
  13281. Use char because int might match the return type of a GCC
  13282. builtin and then its argument prototype would still apply. */
  13283. #ifdef __cplusplus
  13284. extern "C"
  13285. #endif
  13286. char exit ();
  13287. int
  13288. main ()
  13289. {
  13290. return exit ();
  13291. ;
  13292. return 0;
  13293. }
  13294. _ACEOF
  13295. if ac_fn_cxx_try_link "$LINENO"; then :
  13296. eval "$as_ac_Lib=yes"
  13297. else
  13298. eval "$as_ac_Lib=no"
  13299. fi
  13300. rm -f core conftest.err conftest.$ac_objext \
  13301. conftest$ac_exeext conftest.$ac_ext
  13302. LIBS=$ac_check_lib_save_LIBS
  13303. fi
  13304. eval ac_res=\$$as_ac_Lib
  13305. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13306. $as_echo "$ac_res" >&6; }
  13307. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13308. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13309. else
  13310. link_thread="no"
  13311. fi
  13312. done
  13313. if test "x$link_thread" != "xyes"; then
  13314. 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
  13315. ax_lib=${libextension}
  13316. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13318. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13319. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13320. $as_echo_n "(cached) " >&6
  13321. else
  13322. ac_check_lib_save_LIBS=$LIBS
  13323. LIBS="-l$ax_lib $LIBS"
  13324. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13325. /* end confdefs.h. */
  13326. /* Override any GCC internal prototype to avoid an error.
  13327. Use char because int might match the return type of a GCC
  13328. builtin and then its argument prototype would still apply. */
  13329. #ifdef __cplusplus
  13330. extern "C"
  13331. #endif
  13332. char exit ();
  13333. int
  13334. main ()
  13335. {
  13336. return exit ();
  13337. ;
  13338. return 0;
  13339. }
  13340. _ACEOF
  13341. if ac_fn_cxx_try_link "$LINENO"; then :
  13342. eval "$as_ac_Lib=yes"
  13343. else
  13344. eval "$as_ac_Lib=no"
  13345. fi
  13346. rm -f core conftest.err conftest.$ac_objext \
  13347. conftest$ac_exeext conftest.$ac_ext
  13348. LIBS=$ac_check_lib_save_LIBS
  13349. fi
  13350. eval ac_res=\$$as_ac_Lib
  13351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13352. $as_echo "$ac_res" >&6; }
  13353. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13354. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13355. else
  13356. link_thread="no"
  13357. fi
  13358. done
  13359. fi
  13360. else
  13361. for ax_lib in $ax_boost_user_thread_lib boost_thread-$ax_boost_user_thread_lib; do
  13362. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13363. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13364. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13365. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13366. $as_echo_n "(cached) " >&6
  13367. else
  13368. ac_check_lib_save_LIBS=$LIBS
  13369. LIBS="-l$ax_lib $LIBS"
  13370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13371. /* end confdefs.h. */
  13372. /* Override any GCC internal prototype to avoid an error.
  13373. Use char because int might match the return type of a GCC
  13374. builtin and then its argument prototype would still apply. */
  13375. #ifdef __cplusplus
  13376. extern "C"
  13377. #endif
  13378. char exit ();
  13379. int
  13380. main ()
  13381. {
  13382. return exit ();
  13383. ;
  13384. return 0;
  13385. }
  13386. _ACEOF
  13387. if ac_fn_cxx_try_link "$LINENO"; then :
  13388. eval "$as_ac_Lib=yes"
  13389. else
  13390. eval "$as_ac_Lib=no"
  13391. fi
  13392. rm -f core conftest.err conftest.$ac_objext \
  13393. conftest$ac_exeext conftest.$ac_ext
  13394. LIBS=$ac_check_lib_save_LIBS
  13395. fi
  13396. eval ac_res=\$$as_ac_Lib
  13397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13398. $as_echo "$ac_res" >&6; }
  13399. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13400. BOOST_THREAD_LIB="-l$ax_lib"; link_thread="yes"; break
  13401. else
  13402. link_thread="no"
  13403. fi
  13404. done
  13405. fi
  13406. if test "x$ax_lib" = "x"; then
  13407. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13408. fi
  13409. if test "x$link_thread" = "xno"; then
  13410. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13411. else
  13412. case "x$build_os" in
  13413. *bsd* )
  13414. BOOST_LDFLAGS="-pthread $BOOST_LDFLAGS"
  13415. break;
  13416. ;;
  13417. esac
  13418. fi
  13419. fi
  13420. CPPFLAGS="$CPPFLAGS_SAVED"
  13421. LDFLAGS="$LDFLAGS_SAVED"
  13422. fi
  13423. # Check whether --with-boost-iostreams was given.
  13424. if test "${with_boost_iostreams+set}" = set; then :
  13425. withval=$with_boost_iostreams;
  13426. if test "$withval" = "no"; then
  13427. want_boost="no"
  13428. elif test "$withval" = "yes"; then
  13429. want_boost="yes"
  13430. ax_boost_user_iostreams_lib=""
  13431. else
  13432. want_boost="yes"
  13433. ax_boost_user_iostreams_lib="$withval"
  13434. fi
  13435. else
  13436. want_boost="yes"
  13437. fi
  13438. if test "x$want_boost" = "xyes"; then
  13439. CPPFLAGS_SAVED="$CPPFLAGS"
  13440. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13441. export CPPFLAGS
  13442. LDFLAGS_SAVED="$LDFLAGS"
  13443. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13444. export LDFLAGS
  13445. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::IOStreams library is available" >&5
  13446. $as_echo_n "checking whether the Boost::IOStreams library is available... " >&6; }
  13447. if test "${ax_cv_boost_iostreams+set}" = set; then :
  13448. $as_echo_n "(cached) " >&6
  13449. else
  13450. ac_ext=cpp
  13451. ac_cpp='$CXXCPP $CPPFLAGS'
  13452. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13453. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13454. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13455. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13456. /* end confdefs.h. */
  13457. #include <boost/iostreams/filtering_stream.hpp>
  13458. #include <boost/range/iterator_range.hpp>
  13459. int
  13460. main ()
  13461. {
  13462. std::string input = "Hello World!";
  13463. namespace io = boost::iostreams;
  13464. io::filtering_istream in(boost::make_iterator_range(input));
  13465. return 0;
  13466. ;
  13467. return 0;
  13468. }
  13469. _ACEOF
  13470. if ac_fn_cxx_try_compile "$LINENO"; then :
  13471. ax_cv_boost_iostreams=yes
  13472. else
  13473. ax_cv_boost_iostreams=no
  13474. fi
  13475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13476. ac_ext=cpp
  13477. ac_cpp='$CXXCPP $CPPFLAGS'
  13478. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13479. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13480. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13481. fi
  13482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_iostreams" >&5
  13483. $as_echo "$ax_cv_boost_iostreams" >&6; }
  13484. if test "x$ax_cv_boost_iostreams" = "xyes"; then
  13485. $as_echo "#define HAVE_BOOST_IOSTREAMS /**/" >>confdefs.h
  13486. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13487. if test "x$ax_boost_user_iostreams_lib" = "x"; then
  13488. 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
  13489. ax_lib=${libextension}
  13490. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13492. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13493. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13494. $as_echo_n "(cached) " >&6
  13495. else
  13496. ac_check_lib_save_LIBS=$LIBS
  13497. LIBS="-l$ax_lib $LIBS"
  13498. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13499. /* end confdefs.h. */
  13500. /* Override any GCC internal prototype to avoid an error.
  13501. Use char because int might match the return type of a GCC
  13502. builtin and then its argument prototype would still apply. */
  13503. #ifdef __cplusplus
  13504. extern "C"
  13505. #endif
  13506. char exit ();
  13507. int
  13508. main ()
  13509. {
  13510. return exit ();
  13511. ;
  13512. return 0;
  13513. }
  13514. _ACEOF
  13515. if ac_fn_cxx_try_link "$LINENO"; then :
  13516. eval "$as_ac_Lib=yes"
  13517. else
  13518. eval "$as_ac_Lib=no"
  13519. fi
  13520. rm -f core conftest.err conftest.$ac_objext \
  13521. conftest$ac_exeext conftest.$ac_ext
  13522. LIBS=$ac_check_lib_save_LIBS
  13523. fi
  13524. eval ac_res=\$$as_ac_Lib
  13525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13526. $as_echo "$ac_res" >&6; }
  13527. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13528. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13529. else
  13530. link_iostreams="no"
  13531. fi
  13532. done
  13533. if test "x$link_iostreams" != "xyes"; then
  13534. 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
  13535. ax_lib=${libextension}
  13536. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13537. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13538. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13539. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13540. $as_echo_n "(cached) " >&6
  13541. else
  13542. ac_check_lib_save_LIBS=$LIBS
  13543. LIBS="-l$ax_lib $LIBS"
  13544. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13545. /* end confdefs.h. */
  13546. /* Override any GCC internal prototype to avoid an error.
  13547. Use char because int might match the return type of a GCC
  13548. builtin and then its argument prototype would still apply. */
  13549. #ifdef __cplusplus
  13550. extern "C"
  13551. #endif
  13552. char exit ();
  13553. int
  13554. main ()
  13555. {
  13556. return exit ();
  13557. ;
  13558. return 0;
  13559. }
  13560. _ACEOF
  13561. if ac_fn_cxx_try_link "$LINENO"; then :
  13562. eval "$as_ac_Lib=yes"
  13563. else
  13564. eval "$as_ac_Lib=no"
  13565. fi
  13566. rm -f core conftest.err conftest.$ac_objext \
  13567. conftest$ac_exeext conftest.$ac_ext
  13568. LIBS=$ac_check_lib_save_LIBS
  13569. fi
  13570. eval ac_res=\$$as_ac_Lib
  13571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13572. $as_echo "$ac_res" >&6; }
  13573. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13574. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13575. else
  13576. link_iostreams="no"
  13577. fi
  13578. done
  13579. fi
  13580. else
  13581. for ax_lib in $ax_boost_user_iostreams_lib boost_iostreams-$ax_boost_user_iostreams_lib; do
  13582. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  13583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
  13584. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  13585. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13586. $as_echo_n "(cached) " >&6
  13587. else
  13588. ac_check_lib_save_LIBS=$LIBS
  13589. LIBS="-l$ax_lib $LIBS"
  13590. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13591. /* end confdefs.h. */
  13592. int
  13593. main ()
  13594. {
  13595. return main ();
  13596. ;
  13597. return 0;
  13598. }
  13599. _ACEOF
  13600. if ac_fn_cxx_try_link "$LINENO"; then :
  13601. eval "$as_ac_Lib=yes"
  13602. else
  13603. eval "$as_ac_Lib=no"
  13604. fi
  13605. rm -f core conftest.err conftest.$ac_objext \
  13606. conftest$ac_exeext conftest.$ac_ext
  13607. LIBS=$ac_check_lib_save_LIBS
  13608. fi
  13609. eval ac_res=\$$as_ac_Lib
  13610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13611. $as_echo "$ac_res" >&6; }
  13612. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13613. BOOST_IOSTREAMS_LIB="-l$ax_lib"; link_iostreams="yes"; break
  13614. else
  13615. link_iostreams="no"
  13616. fi
  13617. done
  13618. fi
  13619. if test "x$ax_lib" = "x"; then
  13620. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13621. fi
  13622. if test "x$link_iostreams" != "xyes"; then
  13623. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13624. fi
  13625. fi
  13626. CPPFLAGS="$CPPFLAGS_SAVED"
  13627. LDFLAGS="$LDFLAGS_SAVED"
  13628. fi
  13629. # Check whether --with-boost-program-options was given.
  13630. if test "${with_boost_program_options+set}" = set; then :
  13631. withval=$with_boost_program_options;
  13632. if test "$withval" = "no"; then
  13633. want_boost="no"
  13634. elif test "$withval" = "yes"; then
  13635. want_boost="yes"
  13636. ax_boost_user_program_options_lib=""
  13637. else
  13638. want_boost="yes"
  13639. ax_boost_user_program_options_lib="$withval"
  13640. fi
  13641. else
  13642. want_boost="yes"
  13643. fi
  13644. if test "x$want_boost" = "xyes"; then
  13645. export want_boost
  13646. CPPFLAGS_SAVED="$CPPFLAGS"
  13647. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  13648. export CPPFLAGS
  13649. LDFLAGS_SAVED="$LDFLAGS"
  13650. LDFLAGS="$LDFLAGS $BOOST_LDFLAGS"
  13651. export LDFLAGS
  13652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the Boost::Program_Options library is available" >&5
  13653. $as_echo_n "checking whether the Boost::Program_Options library is available... " >&6; }
  13654. if test "${ax_cv_boost_program_options+set}" = set; then :
  13655. $as_echo_n "(cached) " >&6
  13656. else
  13657. ac_ext=cpp
  13658. ac_cpp='$CXXCPP $CPPFLAGS'
  13659. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13660. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13661. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13662. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13663. /* end confdefs.h. */
  13664. #include <boost/program_options.hpp>
  13665. int
  13666. main ()
  13667. {
  13668. boost::program_options::options_description generic("Generic options");
  13669. return 0;
  13670. ;
  13671. return 0;
  13672. }
  13673. _ACEOF
  13674. if ac_fn_cxx_try_compile "$LINENO"; then :
  13675. ax_cv_boost_program_options=yes
  13676. else
  13677. ax_cv_boost_program_options=no
  13678. fi
  13679. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  13680. ac_ext=cpp
  13681. ac_cpp='$CXXCPP $CPPFLAGS'
  13682. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13683. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13684. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13685. fi
  13686. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_boost_program_options" >&5
  13687. $as_echo "$ax_cv_boost_program_options" >&6; }
  13688. if test "$ax_cv_boost_program_options" = yes; then
  13689. $as_echo "#define HAVE_BOOST_PROGRAM_OPTIONS /**/" >>confdefs.h
  13690. BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/[^\/]*//'`
  13691. if test "x$ax_boost_user_program_options_lib" = "x"; then
  13692. 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
  13693. ax_lib=${libextension}
  13694. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13695. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13696. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13697. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13698. $as_echo_n "(cached) " >&6
  13699. else
  13700. ac_check_lib_save_LIBS=$LIBS
  13701. LIBS="-l$ax_lib $LIBS"
  13702. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13703. /* end confdefs.h. */
  13704. /* Override any GCC internal prototype to avoid an error.
  13705. Use char because int might match the return type of a GCC
  13706. builtin and then its argument prototype would still apply. */
  13707. #ifdef __cplusplus
  13708. extern "C"
  13709. #endif
  13710. char exit ();
  13711. int
  13712. main ()
  13713. {
  13714. return exit ();
  13715. ;
  13716. return 0;
  13717. }
  13718. _ACEOF
  13719. if ac_fn_cxx_try_link "$LINENO"; then :
  13720. eval "$as_ac_Lib=yes"
  13721. else
  13722. eval "$as_ac_Lib=no"
  13723. fi
  13724. rm -f core conftest.err conftest.$ac_objext \
  13725. conftest$ac_exeext conftest.$ac_ext
  13726. LIBS=$ac_check_lib_save_LIBS
  13727. fi
  13728. eval ac_res=\$$as_ac_Lib
  13729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13730. $as_echo "$ac_res" >&6; }
  13731. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13732. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  13733. else
  13734. link_program_options="no"
  13735. fi
  13736. done
  13737. if test "x$link_program_options" != "xyes"; then
  13738. 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
  13739. ax_lib=${libextension}
  13740. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_exit" | $as_tr_sh`
  13741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -l$ax_lib" >&5
  13742. $as_echo_n "checking for exit in -l$ax_lib... " >&6; }
  13743. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13744. $as_echo_n "(cached) " >&6
  13745. else
  13746. ac_check_lib_save_LIBS=$LIBS
  13747. LIBS="-l$ax_lib $LIBS"
  13748. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13749. /* end confdefs.h. */
  13750. /* Override any GCC internal prototype to avoid an error.
  13751. Use char because int might match the return type of a GCC
  13752. builtin and then its argument prototype would still apply. */
  13753. #ifdef __cplusplus
  13754. extern "C"
  13755. #endif
  13756. char exit ();
  13757. int
  13758. main ()
  13759. {
  13760. return exit ();
  13761. ;
  13762. return 0;
  13763. }
  13764. _ACEOF
  13765. if ac_fn_cxx_try_link "$LINENO"; then :
  13766. eval "$as_ac_Lib=yes"
  13767. else
  13768. eval "$as_ac_Lib=no"
  13769. fi
  13770. rm -f core conftest.err conftest.$ac_objext \
  13771. conftest$ac_exeext conftest.$ac_ext
  13772. LIBS=$ac_check_lib_save_LIBS
  13773. fi
  13774. eval ac_res=\$$as_ac_Lib
  13775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13776. $as_echo "$ac_res" >&6; }
  13777. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13778. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  13779. else
  13780. link_program_options="no"
  13781. fi
  13782. done
  13783. fi
  13784. else
  13785. for ax_lib in $ax_boost_user_program_options_lib boost_program_options-$ax_boost_user_program_options_lib; do
  13786. as_ac_Lib=`$as_echo "ac_cv_lib_$ax_lib''_main" | $as_tr_sh`
  13787. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l$ax_lib" >&5
  13788. $as_echo_n "checking for main in -l$ax_lib... " >&6; }
  13789. if eval "test \"\${$as_ac_Lib+set}\"" = set; then :
  13790. $as_echo_n "(cached) " >&6
  13791. else
  13792. ac_check_lib_save_LIBS=$LIBS
  13793. LIBS="-l$ax_lib $LIBS"
  13794. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13795. /* end confdefs.h. */
  13796. int
  13797. main ()
  13798. {
  13799. return main ();
  13800. ;
  13801. return 0;
  13802. }
  13803. _ACEOF
  13804. if ac_fn_cxx_try_link "$LINENO"; then :
  13805. eval "$as_ac_Lib=yes"
  13806. else
  13807. eval "$as_ac_Lib=no"
  13808. fi
  13809. rm -f core conftest.err conftest.$ac_objext \
  13810. conftest$ac_exeext conftest.$ac_ext
  13811. LIBS=$ac_check_lib_save_LIBS
  13812. fi
  13813. eval ac_res=\$$as_ac_Lib
  13814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  13815. $as_echo "$ac_res" >&6; }
  13816. if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
  13817. BOOST_PROGRAM_OPTIONS_LIB="-l$ax_lib"; link_program_options="yes"; break
  13818. else
  13819. link_program_options="no"
  13820. fi
  13821. done
  13822. fi
  13823. if test "x$ax_lib" = "x"; then
  13824. as_fn_error $? "Could not find a version of the library!" "$LINENO" 5
  13825. fi
  13826. if test "x$link_program_options" != "xyes"; then
  13827. as_fn_error $? "Could not link against $ax_lib !" "$LINENO" 5
  13828. fi
  13829. fi
  13830. CPPFLAGS="$CPPFLAGS_SAVED"
  13831. LDFLAGS="$LDFLAGS_SAVED"
  13832. fi
  13833. # Check for SDL libraries
  13834. saved_LIBS=$LIBS
  13835. # Extract the first word of "sdl-config", so it can be a program name with args.
  13836. set dummy sdl-config; ac_word=$2
  13837. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13838. $as_echo_n "checking for $ac_word... " >&6; }
  13839. if test "${ac_cv_prog_HAVE_SDL_CONFIG+set}" = set; then :
  13840. $as_echo_n "(cached) " >&6
  13841. else
  13842. if test -n "$HAVE_SDL_CONFIG"; then
  13843. ac_cv_prog_HAVE_SDL_CONFIG="$HAVE_SDL_CONFIG" # Let the user override the test.
  13844. else
  13845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13846. for as_dir in $PATH
  13847. do
  13848. IFS=$as_save_IFS
  13849. test -z "$as_dir" && as_dir=.
  13850. for ac_exec_ext in '' $ac_executable_extensions; do
  13851. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13852. ac_cv_prog_HAVE_SDL_CONFIG="yes"
  13853. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13854. break 2
  13855. fi
  13856. done
  13857. done
  13858. IFS=$as_save_IFS
  13859. test -z "$ac_cv_prog_HAVE_SDL_CONFIG" && ac_cv_prog_HAVE_SDL_CONFIG="no"
  13860. fi
  13861. fi
  13862. HAVE_SDL_CONFIG=$ac_cv_prog_HAVE_SDL_CONFIG
  13863. if test -n "$HAVE_SDL_CONFIG"; then
  13864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_SDL_CONFIG" >&5
  13865. $as_echo "$HAVE_SDL_CONFIG" >&6; }
  13866. else
  13867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13868. $as_echo "no" >&6; }
  13869. fi
  13870. if test "$HAVE_SDL_CONFIG" = no; then
  13871. as_fn_error $? "sdl-config doesn't exist. Try to check the PATH enviroment." "$LINENO" 5
  13872. fi
  13873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL_Init in -lSDL" >&5
  13874. $as_echo_n "checking for SDL_Init in -lSDL... " >&6; }
  13875. if test "${ac_cv_lib_SDL_SDL_Init+set}" = set; then :
  13876. $as_echo_n "(cached) " >&6
  13877. else
  13878. ac_check_lib_save_LIBS=$LIBS
  13879. LIBS="-lSDL $LIBS"
  13880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13881. /* end confdefs.h. */
  13882. /* Override any GCC internal prototype to avoid an error.
  13883. Use char because int might match the return type of a GCC
  13884. builtin and then its argument prototype would still apply. */
  13885. #ifdef __cplusplus
  13886. extern "C"
  13887. #endif
  13888. char SDL_Init ();
  13889. int
  13890. main ()
  13891. {
  13892. return SDL_Init ();
  13893. ;
  13894. return 0;
  13895. }
  13896. _ACEOF
  13897. if ac_fn_cxx_try_link "$LINENO"; then :
  13898. ac_cv_lib_SDL_SDL_Init=yes
  13899. else
  13900. ac_cv_lib_SDL_SDL_Init=no
  13901. fi
  13902. rm -f core conftest.err conftest.$ac_objext \
  13903. conftest$ac_exeext conftest.$ac_ext
  13904. LIBS=$ac_check_lib_save_LIBS
  13905. fi
  13906. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_SDL_Init" >&5
  13907. $as_echo "$ac_cv_lib_SDL_SDL_Init" >&6; }
  13908. if test "x$ac_cv_lib_SDL_SDL_Init" = x""yes; then :
  13909. cat >>confdefs.h <<_ACEOF
  13910. #define HAVE_LIBSDL 1
  13911. _ACEOF
  13912. LIBS="-lSDL $LIBS"
  13913. else
  13914. as_fn_error $? "SDL library not found. Please install it." "$LINENO" 5
  13915. fi
  13916. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_mixer" >&5
  13917. $as_echo_n "checking for main in -lSDL_mixer... " >&6; }
  13918. if test "${ac_cv_lib_SDL_mixer_main+set}" = set; then :
  13919. $as_echo_n "(cached) " >&6
  13920. else
  13921. ac_check_lib_save_LIBS=$LIBS
  13922. LIBS="-lSDL_mixer $LIBS"
  13923. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13924. /* end confdefs.h. */
  13925. int
  13926. main ()
  13927. {
  13928. return main ();
  13929. ;
  13930. return 0;
  13931. }
  13932. _ACEOF
  13933. if ac_fn_cxx_try_link "$LINENO"; then :
  13934. ac_cv_lib_SDL_mixer_main=yes
  13935. else
  13936. ac_cv_lib_SDL_mixer_main=no
  13937. fi
  13938. rm -f core conftest.err conftest.$ac_objext \
  13939. conftest$ac_exeext conftest.$ac_ext
  13940. LIBS=$ac_check_lib_save_LIBS
  13941. fi
  13942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_mixer_main" >&5
  13943. $as_echo "$ac_cv_lib_SDL_mixer_main" >&6; }
  13944. if test "x$ac_cv_lib_SDL_mixer_main" = x""yes; then :
  13945. cat >>confdefs.h <<_ACEOF
  13946. #define HAVE_LIBSDL_MIXER 1
  13947. _ACEOF
  13948. LIBS="-lSDL_mixer $LIBS"
  13949. else
  13950. as_fn_error $? "SDL_mixer library not found. Please install it." "$LINENO" 5
  13951. fi
  13952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IMG_Load in -lSDL_image" >&5
  13953. $as_echo_n "checking for IMG_Load in -lSDL_image... " >&6; }
  13954. if test "${ac_cv_lib_SDL_image_IMG_Load+set}" = set; then :
  13955. $as_echo_n "(cached) " >&6
  13956. else
  13957. ac_check_lib_save_LIBS=$LIBS
  13958. LIBS="-lSDL_image $LIBS"
  13959. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13960. /* end confdefs.h. */
  13961. /* Override any GCC internal prototype to avoid an error.
  13962. Use char because int might match the return type of a GCC
  13963. builtin and then its argument prototype would still apply. */
  13964. #ifdef __cplusplus
  13965. extern "C"
  13966. #endif
  13967. char IMG_Load ();
  13968. int
  13969. main ()
  13970. {
  13971. return IMG_Load ();
  13972. ;
  13973. return 0;
  13974. }
  13975. _ACEOF
  13976. if ac_fn_cxx_try_link "$LINENO"; then :
  13977. ac_cv_lib_SDL_image_IMG_Load=yes
  13978. else
  13979. ac_cv_lib_SDL_image_IMG_Load=no
  13980. fi
  13981. rm -f core conftest.err conftest.$ac_objext \
  13982. conftest$ac_exeext conftest.$ac_ext
  13983. LIBS=$ac_check_lib_save_LIBS
  13984. fi
  13985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_image_IMG_Load" >&5
  13986. $as_echo "$ac_cv_lib_SDL_image_IMG_Load" >&6; }
  13987. if test "x$ac_cv_lib_SDL_image_IMG_Load" = x""yes; then :
  13988. cat >>confdefs.h <<_ACEOF
  13989. #define HAVE_LIBSDL_IMAGE 1
  13990. _ACEOF
  13991. LIBS="-lSDL_image $LIBS"
  13992. else
  13993. as_fn_error $? "SDL_image library not found. Please install it." "$LINENO" 5
  13994. fi
  13995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lSDL_ttf" >&5
  13996. $as_echo_n "checking for main in -lSDL_ttf... " >&6; }
  13997. if test "${ac_cv_lib_SDL_ttf_main+set}" = set; then :
  13998. $as_echo_n "(cached) " >&6
  13999. else
  14000. ac_check_lib_save_LIBS=$LIBS
  14001. LIBS="-lSDL_ttf $LIBS"
  14002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14003. /* end confdefs.h. */
  14004. int
  14005. main ()
  14006. {
  14007. return main ();
  14008. ;
  14009. return 0;
  14010. }
  14011. _ACEOF
  14012. if ac_fn_cxx_try_link "$LINENO"; then :
  14013. ac_cv_lib_SDL_ttf_main=yes
  14014. else
  14015. ac_cv_lib_SDL_ttf_main=no
  14016. fi
  14017. rm -f core conftest.err conftest.$ac_objext \
  14018. conftest$ac_exeext conftest.$ac_ext
  14019. LIBS=$ac_check_lib_save_LIBS
  14020. fi
  14021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SDL_ttf_main" >&5
  14022. $as_echo "$ac_cv_lib_SDL_ttf_main" >&6; }
  14023. if test "x$ac_cv_lib_SDL_ttf_main" = x""yes; then :
  14024. cat >>confdefs.h <<_ACEOF
  14025. #define HAVE_LIBSDL_TTF 1
  14026. _ACEOF
  14027. LIBS="-lSDL_ttf $LIBS"
  14028. else
  14029. as_fn_error $? "SDL_ttf library not found. Please install it." "$LINENO" 5
  14030. fi
  14031. SDL_CXXFLAGS=`sdl-config --cflags`
  14032. SDL_LIBS="`sdl-config --libs` $LIBS"
  14033. LIBS=$saved_LIBS
  14034. # Check for ffmpeg libraries
  14035. saved_LIBS=$LIBS
  14036. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for av_open_input_file in -lavformat" >&5
  14037. $as_echo_n "checking for av_open_input_file in -lavformat... " >&6; }
  14038. if test "${ac_cv_lib_avformat_av_open_input_file+set}" = set; then :
  14039. $as_echo_n "(cached) " >&6
  14040. else
  14041. ac_check_lib_save_LIBS=$LIBS
  14042. LIBS="-lavformat $LIBS"
  14043. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14044. /* end confdefs.h. */
  14045. /* Override any GCC internal prototype to avoid an error.
  14046. Use char because int might match the return type of a GCC
  14047. builtin and then its argument prototype would still apply. */
  14048. #ifdef __cplusplus
  14049. extern "C"
  14050. #endif
  14051. char av_open_input_file ();
  14052. int
  14053. main ()
  14054. {
  14055. return av_open_input_file ();
  14056. ;
  14057. return 0;
  14058. }
  14059. _ACEOF
  14060. if ac_fn_cxx_try_link "$LINENO"; then :
  14061. ac_cv_lib_avformat_av_open_input_file=yes
  14062. else
  14063. ac_cv_lib_avformat_av_open_input_file=no
  14064. fi
  14065. rm -f core conftest.err conftest.$ac_objext \
  14066. conftest$ac_exeext conftest.$ac_ext
  14067. LIBS=$ac_check_lib_save_LIBS
  14068. fi
  14069. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avformat_av_open_input_file" >&5
  14070. $as_echo "$ac_cv_lib_avformat_av_open_input_file" >&6; }
  14071. if test "x$ac_cv_lib_avformat_av_open_input_file" = x""yes; then :
  14072. cat >>confdefs.h <<_ACEOF
  14073. #define HAVE_LIBAVFORMAT 1
  14074. _ACEOF
  14075. LIBS="-lavformat $LIBS"
  14076. else
  14077. as_fn_error $? "FFMpeg avformat library not found. Please install it." "$LINENO" 5
  14078. fi
  14079. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sws_getContext in -lswscale" >&5
  14080. $as_echo_n "checking for sws_getContext in -lswscale... " >&6; }
  14081. if test "${ac_cv_lib_swscale_sws_getContext+set}" = set; then :
  14082. $as_echo_n "(cached) " >&6
  14083. else
  14084. ac_check_lib_save_LIBS=$LIBS
  14085. LIBS="-lswscale $LIBS"
  14086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14087. /* end confdefs.h. */
  14088. /* Override any GCC internal prototype to avoid an error.
  14089. Use char because int might match the return type of a GCC
  14090. builtin and then its argument prototype would still apply. */
  14091. #ifdef __cplusplus
  14092. extern "C"
  14093. #endif
  14094. char sws_getContext ();
  14095. int
  14096. main ()
  14097. {
  14098. return sws_getContext ();
  14099. ;
  14100. return 0;
  14101. }
  14102. _ACEOF
  14103. if ac_fn_cxx_try_link "$LINENO"; then :
  14104. ac_cv_lib_swscale_sws_getContext=yes
  14105. else
  14106. ac_cv_lib_swscale_sws_getContext=no
  14107. fi
  14108. rm -f core conftest.err conftest.$ac_objext \
  14109. conftest$ac_exeext conftest.$ac_ext
  14110. LIBS=$ac_check_lib_save_LIBS
  14111. fi
  14112. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_getContext" >&5
  14113. $as_echo "$ac_cv_lib_swscale_sws_getContext" >&6; }
  14114. if test "x$ac_cv_lib_swscale_sws_getContext" = x""yes; then :
  14115. cat >>confdefs.h <<_ACEOF
  14116. #define HAVE_LIBSWSCALE 1
  14117. _ACEOF
  14118. LIBS="-lswscale $LIBS"
  14119. else
  14120. as_fn_error $? "FFMpeg swscale library not found. Please install it." "$LINENO" 5
  14121. fi
  14122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avcodec_decode_video2 in -lavcodec" >&5
  14123. $as_echo_n "checking for avcodec_decode_video2 in -lavcodec... " >&6; }
  14124. if test "${ac_cv_lib_avcodec_avcodec_decode_video2+set}" = set; then :
  14125. $as_echo_n "(cached) " >&6
  14126. else
  14127. ac_check_lib_save_LIBS=$LIBS
  14128. LIBS="-lavcodec $LIBS"
  14129. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14130. /* end confdefs.h. */
  14131. /* Override any GCC internal prototype to avoid an error.
  14132. Use char because int might match the return type of a GCC
  14133. builtin and then its argument prototype would still apply. */
  14134. #ifdef __cplusplus
  14135. extern "C"
  14136. #endif
  14137. char avcodec_decode_video2 ();
  14138. int
  14139. main ()
  14140. {
  14141. return avcodec_decode_video2 ();
  14142. ;
  14143. return 0;
  14144. }
  14145. _ACEOF
  14146. if ac_fn_cxx_try_link "$LINENO"; then :
  14147. ac_cv_lib_avcodec_avcodec_decode_video2=yes
  14148. else
  14149. ac_cv_lib_avcodec_avcodec_decode_video2=no
  14150. fi
  14151. rm -f core conftest.err conftest.$ac_objext \
  14152. conftest$ac_exeext conftest.$ac_ext
  14153. LIBS=$ac_check_lib_save_LIBS
  14154. fi
  14155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avcodec_avcodec_decode_video2" >&5
  14156. $as_echo "$ac_cv_lib_avcodec_avcodec_decode_video2" >&6; }
  14157. if test "x$ac_cv_lib_avcodec_avcodec_decode_video2" = x""yes; then :
  14158. AVCODEC_DECODE_VIDEO2="-DWITH_AVCODEC_DECODE_VIDEO2"
  14159. fi
  14160. FFMPEG_CXXFLAGS="`pkg-config --cflags libavformat libswscale` $AVCODEC_DECODE_VIDEO2"
  14161. FFMPEG_LIBS=`pkg-config --libs libavformat libswscale`
  14162. LIBS=$saved_LIBS
  14163. # Checks for header files.
  14164. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  14165. $as_echo_n "checking for ANSI C header files... " >&6; }
  14166. if test "${ac_cv_header_stdc+set}" = set; then :
  14167. $as_echo_n "(cached) " >&6
  14168. else
  14169. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14170. /* end confdefs.h. */
  14171. #include <stdlib.h>
  14172. #include <stdarg.h>
  14173. #include <string.h>
  14174. #include <float.h>
  14175. int
  14176. main ()
  14177. {
  14178. ;
  14179. return 0;
  14180. }
  14181. _ACEOF
  14182. if ac_fn_cxx_try_compile "$LINENO"; then :
  14183. ac_cv_header_stdc=yes
  14184. else
  14185. ac_cv_header_stdc=no
  14186. fi
  14187. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  14188. if test $ac_cv_header_stdc = yes; then
  14189. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  14190. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14191. /* end confdefs.h. */
  14192. #include <string.h>
  14193. _ACEOF
  14194. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14195. $EGREP "memchr" >/dev/null 2>&1; then :
  14196. else
  14197. ac_cv_header_stdc=no
  14198. fi
  14199. rm -f conftest*
  14200. fi
  14201. if test $ac_cv_header_stdc = yes; then
  14202. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  14203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14204. /* end confdefs.h. */
  14205. #include <stdlib.h>
  14206. _ACEOF
  14207. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  14208. $EGREP "free" >/dev/null 2>&1; then :
  14209. else
  14210. ac_cv_header_stdc=no
  14211. fi
  14212. rm -f conftest*
  14213. fi
  14214. if test $ac_cv_header_stdc = yes; then
  14215. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  14216. if test "$cross_compiling" = yes; then :
  14217. :
  14218. else
  14219. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14220. /* end confdefs.h. */
  14221. #include <ctype.h>
  14222. #include <stdlib.h>
  14223. #if ((' ' & 0x0FF) == 0x020)
  14224. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  14225. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  14226. #else
  14227. # define ISLOWER(c) \
  14228. (('a' <= (c) && (c) <= 'i') \
  14229. || ('j' <= (c) && (c) <= 'r') \
  14230. || ('s' <= (c) && (c) <= 'z'))
  14231. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  14232. #endif
  14233. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  14234. int
  14235. main ()
  14236. {
  14237. int i;
  14238. for (i = 0; i < 256; i++)
  14239. if (XOR (islower (i), ISLOWER (i))
  14240. || toupper (i) != TOUPPER (i))
  14241. return 2;
  14242. return 0;
  14243. }
  14244. _ACEOF
  14245. if ac_fn_cxx_try_run "$LINENO"; then :
  14246. else
  14247. ac_cv_header_stdc=no
  14248. fi
  14249. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  14250. conftest.$ac_objext conftest.beam conftest.$ac_ext
  14251. fi
  14252. fi
  14253. fi
  14254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  14255. $as_echo "$ac_cv_header_stdc" >&6; }
  14256. if test $ac_cv_header_stdc = yes; then
  14257. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  14258. fi
  14259. for ac_header in fcntl.h stdlib.h string.h
  14260. do :
  14261. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14262. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14263. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14264. cat >>confdefs.h <<_ACEOF
  14265. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14266. _ACEOF
  14267. fi
  14268. done
  14269. CPPFLAGS="$CPPFLAGS $BOOST_CPPFLAGS"
  14270. 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
  14271. do :
  14272. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  14273. ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  14274. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  14275. cat >>confdefs.h <<_ACEOF
  14276. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  14277. _ACEOF
  14278. else
  14279. as_fn_error $? "Required boost headers not found. Please install it." "$LINENO" 5
  14280. fi
  14281. done
  14282. # Checks for library functions.
  14283. for ac_func in atexit memset pow select sqrt
  14284. do :
  14285. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  14286. ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
  14287. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  14288. cat >>confdefs.h <<_ACEOF
  14289. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  14290. _ACEOF
  14291. fi
  14292. done
  14293. CXXFLAGS="$CXXFLAGS -DDATA_DIR=\\\"\$(pkgdatadir)\\\" -DBIN_DIR=\\\"\$(bindir)\\\" -DLIB_DIR=\\\"\$(pkglibdir)\\\""
  14294. ac_config_files="$ac_config_files Makefile lib/Makefile client/Makefile server/Makefile AI/Makefile AI/StupidAI/Makefile AI/GeniusAI/Makefile AI/EmptyAI/Makefile"
  14295. cat >confcache <<\_ACEOF
  14296. # This file is a shell script that caches the results of configure
  14297. # tests run on this system so they can be shared between configure
  14298. # scripts and configure runs, see configure's option --config-cache.
  14299. # It is not useful on other systems. If it contains results you don't
  14300. # want to keep, you may remove or edit it.
  14301. #
  14302. # config.status only pays attention to the cache file if you give it
  14303. # the --recheck option to rerun configure.
  14304. #
  14305. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14306. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14307. # following values.
  14308. _ACEOF
  14309. # The following way of writing the cache mishandles newlines in values,
  14310. # but we know of no workaround that is simple, portable, and efficient.
  14311. # So, we kill variables containing newlines.
  14312. # Ultrix sh set writes to stderr and can't be redirected directly,
  14313. # and sets the high bit in the cache file unless we assign to the vars.
  14314. (
  14315. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14316. eval ac_val=\$$ac_var
  14317. case $ac_val in #(
  14318. *${as_nl}*)
  14319. case $ac_var in #(
  14320. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14321. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14322. esac
  14323. case $ac_var in #(
  14324. _ | IFS | as_nl) ;; #(
  14325. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14326. *) { eval $ac_var=; unset $ac_var;} ;;
  14327. esac ;;
  14328. esac
  14329. done
  14330. (set) 2>&1 |
  14331. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14332. *${as_nl}ac_space=\ *)
  14333. # `set' does not quote correctly, so add quotes: double-quote
  14334. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14335. sed -n \
  14336. "s/'/'\\\\''/g;
  14337. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14338. ;; #(
  14339. *)
  14340. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14341. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14342. ;;
  14343. esac |
  14344. sort
  14345. ) |
  14346. sed '
  14347. /^ac_cv_env_/b end
  14348. t clear
  14349. :clear
  14350. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14351. t end
  14352. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14353. :end' >>confcache
  14354. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14355. if test -w "$cache_file"; then
  14356. test "x$cache_file" != "x/dev/null" &&
  14357. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14358. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14359. cat confcache >$cache_file
  14360. else
  14361. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14362. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14363. fi
  14364. fi
  14365. rm -f confcache
  14366. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14367. # Let make expand exec_prefix.
  14368. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14369. # Transform confdefs.h into DEFS.
  14370. # Protect against shell expansion while executing Makefile rules.
  14371. # Protect against Makefile macro expansion.
  14372. #
  14373. # If the first sed substitution is executed (which looks for macros that
  14374. # take arguments), then branch to the quote section. Otherwise,
  14375. # look for a macro that doesn't take arguments.
  14376. ac_script='
  14377. :mline
  14378. /\\$/{
  14379. N
  14380. s,\\\n,,
  14381. b mline
  14382. }
  14383. t clear
  14384. :clear
  14385. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  14386. t quote
  14387. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  14388. t quote
  14389. b any
  14390. :quote
  14391. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  14392. s/\[/\\&/g
  14393. s/\]/\\&/g
  14394. s/\$/$$/g
  14395. H
  14396. :any
  14397. ${
  14398. g
  14399. s/^\n//
  14400. s/\n/ /g
  14401. p
  14402. }
  14403. '
  14404. DEFS=`sed -n "$ac_script" confdefs.h`
  14405. ac_libobjs=
  14406. ac_ltlibobjs=
  14407. U=
  14408. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14409. # 1. Remove the extension, and $U if already installed.
  14410. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14411. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14412. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14413. # will be set to the directory where LIBOBJS objects are built.
  14414. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14415. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14416. done
  14417. LIBOBJS=$ac_libobjs
  14418. LTLIBOBJS=$ac_ltlibobjs
  14419. if test -n "$EXEEXT"; then
  14420. am__EXEEXT_TRUE=
  14421. am__EXEEXT_FALSE='#'
  14422. else
  14423. am__EXEEXT_TRUE='#'
  14424. am__EXEEXT_FALSE=
  14425. fi
  14426. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14427. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14428. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14429. fi
  14430. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14431. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14432. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14433. fi
  14434. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14435. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14436. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14437. fi
  14438. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14439. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14440. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14441. fi
  14442. : ${CONFIG_STATUS=./config.status}
  14443. ac_write_fail=0
  14444. ac_clean_files_save=$ac_clean_files
  14445. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14446. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14447. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14448. as_write_fail=0
  14449. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14450. #! $SHELL
  14451. # Generated by $as_me.
  14452. # Run this file to recreate the current configuration.
  14453. # Compiler output produced by configure, useful for debugging
  14454. # configure, is in config.log if it exists.
  14455. debug=false
  14456. ac_cs_recheck=false
  14457. ac_cs_silent=false
  14458. SHELL=\${CONFIG_SHELL-$SHELL}
  14459. export SHELL
  14460. _ASEOF
  14461. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14462. ## -------------------- ##
  14463. ## M4sh Initialization. ##
  14464. ## -------------------- ##
  14465. # Be more Bourne compatible
  14466. DUALCASE=1; export DUALCASE # for MKS sh
  14467. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14468. emulate sh
  14469. NULLCMD=:
  14470. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14471. # is contrary to our usage. Disable this feature.
  14472. alias -g '${1+"$@"}'='"$@"'
  14473. setopt NO_GLOB_SUBST
  14474. else
  14475. case `(set -o) 2>/dev/null` in #(
  14476. *posix*) :
  14477. set -o posix ;; #(
  14478. *) :
  14479. ;;
  14480. esac
  14481. fi
  14482. as_nl='
  14483. '
  14484. export as_nl
  14485. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14486. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14487. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14488. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14489. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14490. # but without wasting forks for bash or zsh.
  14491. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14492. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14493. as_echo='print -r --'
  14494. as_echo_n='print -rn --'
  14495. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14496. as_echo='printf %s\n'
  14497. as_echo_n='printf %s'
  14498. else
  14499. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14500. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14501. as_echo_n='/usr/ucb/echo -n'
  14502. else
  14503. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14504. as_echo_n_body='eval
  14505. arg=$1;
  14506. case $arg in #(
  14507. *"$as_nl"*)
  14508. expr "X$arg" : "X\\(.*\\)$as_nl";
  14509. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14510. esac;
  14511. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14512. '
  14513. export as_echo_n_body
  14514. as_echo_n='sh -c $as_echo_n_body as_echo'
  14515. fi
  14516. export as_echo_body
  14517. as_echo='sh -c $as_echo_body as_echo'
  14518. fi
  14519. # The user is always right.
  14520. if test "${PATH_SEPARATOR+set}" != set; then
  14521. PATH_SEPARATOR=:
  14522. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14523. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14524. PATH_SEPARATOR=';'
  14525. }
  14526. fi
  14527. # IFS
  14528. # We need space, tab and new line, in precisely that order. Quoting is
  14529. # there to prevent editors from complaining about space-tab.
  14530. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14531. # splitting by setting IFS to empty value.)
  14532. IFS=" "" $as_nl"
  14533. # Find who we are. Look in the path if we contain no directory separator.
  14534. case $0 in #((
  14535. *[\\/]* ) as_myself=$0 ;;
  14536. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14537. for as_dir in $PATH
  14538. do
  14539. IFS=$as_save_IFS
  14540. test -z "$as_dir" && as_dir=.
  14541. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14542. done
  14543. IFS=$as_save_IFS
  14544. ;;
  14545. esac
  14546. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14547. # in which case we are not to be found in the path.
  14548. if test "x$as_myself" = x; then
  14549. as_myself=$0
  14550. fi
  14551. if test ! -f "$as_myself"; then
  14552. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14553. exit 1
  14554. fi
  14555. # Unset variables that we do not need and which cause bugs (e.g. in
  14556. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14557. # suppresses any "Segmentation fault" message there. '((' could
  14558. # trigger a bug in pdksh 5.2.14.
  14559. for as_var in BASH_ENV ENV MAIL MAILPATH
  14560. do eval test x\${$as_var+set} = xset \
  14561. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14562. done
  14563. PS1='$ '
  14564. PS2='> '
  14565. PS4='+ '
  14566. # NLS nuisances.
  14567. LC_ALL=C
  14568. export LC_ALL
  14569. LANGUAGE=C
  14570. export LANGUAGE
  14571. # CDPATH.
  14572. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14573. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14574. # ----------------------------------------
  14575. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14576. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14577. # script with STATUS, using 1 if that was 0.
  14578. as_fn_error ()
  14579. {
  14580. as_status=$1; test $as_status -eq 0 && as_status=1
  14581. if test "$4"; then
  14582. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14583. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14584. fi
  14585. $as_echo "$as_me: error: $2" >&2
  14586. as_fn_exit $as_status
  14587. } # as_fn_error
  14588. # as_fn_set_status STATUS
  14589. # -----------------------
  14590. # Set $? to STATUS, without forking.
  14591. as_fn_set_status ()
  14592. {
  14593. return $1
  14594. } # as_fn_set_status
  14595. # as_fn_exit STATUS
  14596. # -----------------
  14597. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14598. as_fn_exit ()
  14599. {
  14600. set +e
  14601. as_fn_set_status $1
  14602. exit $1
  14603. } # as_fn_exit
  14604. # as_fn_unset VAR
  14605. # ---------------
  14606. # Portably unset VAR.
  14607. as_fn_unset ()
  14608. {
  14609. { eval $1=; unset $1;}
  14610. }
  14611. as_unset=as_fn_unset
  14612. # as_fn_append VAR VALUE
  14613. # ----------------------
  14614. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14615. # advantage of any shell optimizations that allow amortized linear growth over
  14616. # repeated appends, instead of the typical quadratic growth present in naive
  14617. # implementations.
  14618. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14619. eval 'as_fn_append ()
  14620. {
  14621. eval $1+=\$2
  14622. }'
  14623. else
  14624. as_fn_append ()
  14625. {
  14626. eval $1=\$$1\$2
  14627. }
  14628. fi # as_fn_append
  14629. # as_fn_arith ARG...
  14630. # ------------------
  14631. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14632. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14633. # must be portable across $(()) and expr.
  14634. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14635. eval 'as_fn_arith ()
  14636. {
  14637. as_val=$(( $* ))
  14638. }'
  14639. else
  14640. as_fn_arith ()
  14641. {
  14642. as_val=`expr "$@" || test $? -eq 1`
  14643. }
  14644. fi # as_fn_arith
  14645. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14646. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14647. as_expr=expr
  14648. else
  14649. as_expr=false
  14650. fi
  14651. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14652. as_basename=basename
  14653. else
  14654. as_basename=false
  14655. fi
  14656. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14657. as_dirname=dirname
  14658. else
  14659. as_dirname=false
  14660. fi
  14661. as_me=`$as_basename -- "$0" ||
  14662. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14663. X"$0" : 'X\(//\)$' \| \
  14664. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14665. $as_echo X/"$0" |
  14666. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14667. s//\1/
  14668. q
  14669. }
  14670. /^X\/\(\/\/\)$/{
  14671. s//\1/
  14672. q
  14673. }
  14674. /^X\/\(\/\).*/{
  14675. s//\1/
  14676. q
  14677. }
  14678. s/.*/./; q'`
  14679. # Avoid depending upon Character Ranges.
  14680. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14681. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14682. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14683. as_cr_digits='0123456789'
  14684. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14685. ECHO_C= ECHO_N= ECHO_T=
  14686. case `echo -n x` in #(((((
  14687. -n*)
  14688. case `echo 'xy\c'` in
  14689. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14690. xy) ECHO_C='\c';;
  14691. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14692. ECHO_T=' ';;
  14693. esac;;
  14694. *)
  14695. ECHO_N='-n';;
  14696. esac
  14697. rm -f conf$$ conf$$.exe conf$$.file
  14698. if test -d conf$$.dir; then
  14699. rm -f conf$$.dir/conf$$.file
  14700. else
  14701. rm -f conf$$.dir
  14702. mkdir conf$$.dir 2>/dev/null
  14703. fi
  14704. if (echo >conf$$.file) 2>/dev/null; then
  14705. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14706. as_ln_s='ln -s'
  14707. # ... but there are two gotchas:
  14708. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14709. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14710. # In both cases, we have to default to `cp -p'.
  14711. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14712. as_ln_s='cp -p'
  14713. elif ln conf$$.file conf$$ 2>/dev/null; then
  14714. as_ln_s=ln
  14715. else
  14716. as_ln_s='cp -p'
  14717. fi
  14718. else
  14719. as_ln_s='cp -p'
  14720. fi
  14721. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14722. rmdir conf$$.dir 2>/dev/null
  14723. # as_fn_mkdir_p
  14724. # -------------
  14725. # Create "$as_dir" as a directory, including parents if necessary.
  14726. as_fn_mkdir_p ()
  14727. {
  14728. case $as_dir in #(
  14729. -*) as_dir=./$as_dir;;
  14730. esac
  14731. test -d "$as_dir" || eval $as_mkdir_p || {
  14732. as_dirs=
  14733. while :; do
  14734. case $as_dir in #(
  14735. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14736. *) as_qdir=$as_dir;;
  14737. esac
  14738. as_dirs="'$as_qdir' $as_dirs"
  14739. as_dir=`$as_dirname -- "$as_dir" ||
  14740. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14741. X"$as_dir" : 'X\(//\)[^/]' \| \
  14742. X"$as_dir" : 'X\(//\)$' \| \
  14743. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14744. $as_echo X"$as_dir" |
  14745. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14746. s//\1/
  14747. q
  14748. }
  14749. /^X\(\/\/\)[^/].*/{
  14750. s//\1/
  14751. q
  14752. }
  14753. /^X\(\/\/\)$/{
  14754. s//\1/
  14755. q
  14756. }
  14757. /^X\(\/\).*/{
  14758. s//\1/
  14759. q
  14760. }
  14761. s/.*/./; q'`
  14762. test -d "$as_dir" && break
  14763. done
  14764. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14765. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14766. } # as_fn_mkdir_p
  14767. if mkdir -p . 2>/dev/null; then
  14768. as_mkdir_p='mkdir -p "$as_dir"'
  14769. else
  14770. test -d ./-p && rmdir ./-p
  14771. as_mkdir_p=false
  14772. fi
  14773. if test -x / >/dev/null 2>&1; then
  14774. as_test_x='test -x'
  14775. else
  14776. if ls -dL / >/dev/null 2>&1; then
  14777. as_ls_L_option=L
  14778. else
  14779. as_ls_L_option=
  14780. fi
  14781. as_test_x='
  14782. eval sh -c '\''
  14783. if test -d "$1"; then
  14784. test -d "$1/.";
  14785. else
  14786. case $1 in #(
  14787. -*)set "./$1";;
  14788. esac;
  14789. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14790. ???[sx]*):;;*)false;;esac;fi
  14791. '\'' sh
  14792. '
  14793. fi
  14794. as_executable_p=$as_test_x
  14795. # Sed expression to map a string onto a valid CPP name.
  14796. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14797. # Sed expression to map a string onto a valid variable name.
  14798. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14799. exec 6>&1
  14800. ## ----------------------------------- ##
  14801. ## Main body of $CONFIG_STATUS script. ##
  14802. ## ----------------------------------- ##
  14803. _ASEOF
  14804. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14805. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14806. # Save the log message, to keep $0 and so on meaningful, and to
  14807. # report actual input values of CONFIG_FILES etc. instead of their
  14808. # values after options handling.
  14809. ac_log="
  14810. This file was extended by vcmi $as_me 0.84b, which was
  14811. generated by GNU Autoconf 2.67. Invocation command line was
  14812. CONFIG_FILES = $CONFIG_FILES
  14813. CONFIG_HEADERS = $CONFIG_HEADERS
  14814. CONFIG_LINKS = $CONFIG_LINKS
  14815. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14816. $ $0 $@
  14817. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14818. "
  14819. _ACEOF
  14820. case $ac_config_files in *"
  14821. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14822. esac
  14823. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14824. # Files that config.status was made for.
  14825. config_files="$ac_config_files"
  14826. config_commands="$ac_config_commands"
  14827. _ACEOF
  14828. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14829. ac_cs_usage="\
  14830. \`$as_me' instantiates files and other configuration actions
  14831. from templates according to the current configuration. Unless the files
  14832. and actions are specified as TAGs, all are instantiated by default.
  14833. Usage: $0 [OPTION]... [TAG]...
  14834. -h, --help print this help, then exit
  14835. -V, --version print version number and configuration settings, then exit
  14836. --config print configuration, then exit
  14837. -q, --quiet, --silent
  14838. do not print progress messages
  14839. -d, --debug don't remove temporary files
  14840. --recheck update $as_me by reconfiguring in the same conditions
  14841. --file=FILE[:TEMPLATE]
  14842. instantiate the configuration file FILE
  14843. Configuration files:
  14844. $config_files
  14845. Configuration commands:
  14846. $config_commands
  14847. Report bugs to the package provider."
  14848. _ACEOF
  14849. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14850. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14851. ac_cs_version="\\
  14852. vcmi config.status 0.84b
  14853. configured by $0, generated by GNU Autoconf 2.67,
  14854. with options \\"\$ac_cs_config\\"
  14855. Copyright (C) 2010 Free Software Foundation, Inc.
  14856. This config.status script is free software; the Free Software Foundation
  14857. gives unlimited permission to copy, distribute and modify it."
  14858. ac_pwd='$ac_pwd'
  14859. srcdir='$srcdir'
  14860. INSTALL='$INSTALL'
  14861. MKDIR_P='$MKDIR_P'
  14862. AWK='$AWK'
  14863. test -n "\$AWK" || AWK=awk
  14864. _ACEOF
  14865. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14866. # The default lists apply if the user does not specify any file.
  14867. ac_need_defaults=:
  14868. while test $# != 0
  14869. do
  14870. case $1 in
  14871. --*=?*)
  14872. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14873. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14874. ac_shift=:
  14875. ;;
  14876. --*=)
  14877. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14878. ac_optarg=
  14879. ac_shift=:
  14880. ;;
  14881. *)
  14882. ac_option=$1
  14883. ac_optarg=$2
  14884. ac_shift=shift
  14885. ;;
  14886. esac
  14887. case $ac_option in
  14888. # Handling of the options.
  14889. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14890. ac_cs_recheck=: ;;
  14891. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14892. $as_echo "$ac_cs_version"; exit ;;
  14893. --config | --confi | --conf | --con | --co | --c )
  14894. $as_echo "$ac_cs_config"; exit ;;
  14895. --debug | --debu | --deb | --de | --d | -d )
  14896. debug=: ;;
  14897. --file | --fil | --fi | --f )
  14898. $ac_shift
  14899. case $ac_optarg in
  14900. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14901. '') as_fn_error $? "missing file argument" ;;
  14902. esac
  14903. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14904. ac_need_defaults=false;;
  14905. --he | --h | --help | --hel | -h )
  14906. $as_echo "$ac_cs_usage"; exit ;;
  14907. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14908. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14909. ac_cs_silent=: ;;
  14910. # This is an error.
  14911. -*) as_fn_error $? "unrecognized option: \`$1'
  14912. Try \`$0 --help' for more information." ;;
  14913. *) as_fn_append ac_config_targets " $1"
  14914. ac_need_defaults=false ;;
  14915. esac
  14916. shift
  14917. done
  14918. ac_configure_extra_args=
  14919. if $ac_cs_silent; then
  14920. exec 6>/dev/null
  14921. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14922. fi
  14923. _ACEOF
  14924. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14925. if \$ac_cs_recheck; then
  14926. set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14927. shift
  14928. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14929. CONFIG_SHELL='$SHELL'
  14930. export CONFIG_SHELL
  14931. exec "\$@"
  14932. fi
  14933. _ACEOF
  14934. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14935. exec 5>>config.log
  14936. {
  14937. echo
  14938. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14939. ## Running $as_me. ##
  14940. _ASBOX
  14941. $as_echo "$ac_log"
  14942. } >&5
  14943. _ACEOF
  14944. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14945. #
  14946. # INIT-COMMANDS
  14947. #
  14948. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  14949. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14950. # if CDPATH is set.
  14951. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14952. sed_quote_subst='$sed_quote_subst'
  14953. double_quote_subst='$double_quote_subst'
  14954. delay_variable_subst='$delay_variable_subst'
  14955. enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  14956. enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  14957. macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  14958. macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  14959. pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  14960. enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  14961. host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  14962. host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  14963. host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  14964. build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  14965. build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  14966. build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  14967. SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  14968. Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  14969. GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  14970. EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  14971. FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  14972. LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  14973. NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  14974. LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  14975. max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  14976. ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  14977. exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  14978. lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  14979. lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  14980. lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  14981. reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  14982. reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14983. OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  14984. deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  14985. file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  14986. AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  14987. AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  14988. STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  14989. RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  14990. old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14991. old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14992. old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  14993. CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  14994. CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  14995. compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  14996. GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  14997. lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  14998. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  14999. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  15000. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  15001. objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  15002. SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  15003. ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  15004. MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  15005. lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  15006. lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  15007. lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  15008. lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  15009. lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  15010. need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  15011. DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  15012. NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  15013. LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  15014. OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  15015. OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  15016. libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  15017. shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15018. extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15019. archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  15020. enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  15021. export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15022. whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15023. compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  15024. old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15025. old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15026. archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15027. archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15028. module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15029. module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15030. with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  15031. allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  15032. no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  15033. hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15034. hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  15035. hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  15036. hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  15037. hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  15038. hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  15039. hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  15040. hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  15041. inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  15042. link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  15043. fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  15044. always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  15045. export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15046. exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  15047. include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  15048. prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15049. file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15050. variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  15051. need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  15052. need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  15053. version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  15054. runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  15055. shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  15056. shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  15057. libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15058. library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15059. soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15060. postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15061. postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15062. finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  15063. finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  15064. hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  15065. sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15066. sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  15067. hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  15068. enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  15069. enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  15070. enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  15071. old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  15072. striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  15073. compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
  15074. predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  15075. postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
  15076. predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
  15077. postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
  15078. compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
  15079. LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15080. old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15081. compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15082. GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15083. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15084. lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15085. lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15086. lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15087. lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15088. archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15089. enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15090. export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15091. whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15092. compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15093. old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15094. old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15095. archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15096. archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15097. module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15098. module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15099. with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15100. allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15101. no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15102. hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15103. hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15104. hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15105. hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15106. hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15107. hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15108. hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15109. hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15110. inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15111. link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15112. fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15113. always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15114. export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15115. exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15116. include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15117. prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15118. file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15119. hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15120. compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15121. predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15122. postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15123. predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15124. postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15125. compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
  15126. LTCC='$LTCC'
  15127. LTCFLAGS='$LTCFLAGS'
  15128. compiler='$compiler_DEFAULT'
  15129. # Quote evaled strings.
  15130. for var in SED \
  15131. GREP \
  15132. EGREP \
  15133. FGREP \
  15134. LD \
  15135. NM \
  15136. LN_S \
  15137. lt_SP2NL \
  15138. lt_NL2SP \
  15139. reload_flag \
  15140. OBJDUMP \
  15141. deplibs_check_method \
  15142. file_magic_cmd \
  15143. AR \
  15144. AR_FLAGS \
  15145. STRIP \
  15146. RANLIB \
  15147. CC \
  15148. CFLAGS \
  15149. compiler \
  15150. lt_cv_sys_global_symbol_pipe \
  15151. lt_cv_sys_global_symbol_to_cdecl \
  15152. lt_cv_sys_global_symbol_to_c_name_address \
  15153. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15154. SHELL \
  15155. ECHO \
  15156. lt_prog_compiler_no_builtin_flag \
  15157. lt_prog_compiler_wl \
  15158. lt_prog_compiler_pic \
  15159. lt_prog_compiler_static \
  15160. lt_cv_prog_compiler_c_o \
  15161. need_locks \
  15162. DSYMUTIL \
  15163. NMEDIT \
  15164. LIPO \
  15165. OTOOL \
  15166. OTOOL64 \
  15167. shrext_cmds \
  15168. export_dynamic_flag_spec \
  15169. whole_archive_flag_spec \
  15170. compiler_needs_object \
  15171. with_gnu_ld \
  15172. allow_undefined_flag \
  15173. no_undefined_flag \
  15174. hardcode_libdir_flag_spec \
  15175. hardcode_libdir_flag_spec_ld \
  15176. hardcode_libdir_separator \
  15177. fix_srcfile_path \
  15178. exclude_expsyms \
  15179. include_expsyms \
  15180. file_list_spec \
  15181. variables_saved_for_relink \
  15182. libname_spec \
  15183. library_names_spec \
  15184. soname_spec \
  15185. finish_eval \
  15186. old_striplib \
  15187. striplib \
  15188. compiler_lib_search_dirs \
  15189. predep_objects \
  15190. postdep_objects \
  15191. predeps \
  15192. postdeps \
  15193. compiler_lib_search_path \
  15194. LD_CXX \
  15195. compiler_CXX \
  15196. lt_prog_compiler_no_builtin_flag_CXX \
  15197. lt_prog_compiler_wl_CXX \
  15198. lt_prog_compiler_pic_CXX \
  15199. lt_prog_compiler_static_CXX \
  15200. lt_cv_prog_compiler_c_o_CXX \
  15201. export_dynamic_flag_spec_CXX \
  15202. whole_archive_flag_spec_CXX \
  15203. compiler_needs_object_CXX \
  15204. with_gnu_ld_CXX \
  15205. allow_undefined_flag_CXX \
  15206. no_undefined_flag_CXX \
  15207. hardcode_libdir_flag_spec_CXX \
  15208. hardcode_libdir_flag_spec_ld_CXX \
  15209. hardcode_libdir_separator_CXX \
  15210. fix_srcfile_path_CXX \
  15211. exclude_expsyms_CXX \
  15212. include_expsyms_CXX \
  15213. file_list_spec_CXX \
  15214. compiler_lib_search_dirs_CXX \
  15215. predep_objects_CXX \
  15216. postdep_objects_CXX \
  15217. predeps_CXX \
  15218. postdeps_CXX \
  15219. compiler_lib_search_path_CXX; do
  15220. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  15221. *[\\\\\\\`\\"\\\$]*)
  15222. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15223. ;;
  15224. *)
  15225. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15226. ;;
  15227. esac
  15228. done
  15229. # Double-quote double-evaled strings.
  15230. for var in reload_cmds \
  15231. old_postinstall_cmds \
  15232. old_postuninstall_cmds \
  15233. old_archive_cmds \
  15234. extract_expsyms_cmds \
  15235. old_archive_from_new_cmds \
  15236. old_archive_from_expsyms_cmds \
  15237. archive_cmds \
  15238. archive_expsym_cmds \
  15239. module_cmds \
  15240. module_expsym_cmds \
  15241. export_symbols_cmds \
  15242. prelink_cmds \
  15243. postinstall_cmds \
  15244. postuninstall_cmds \
  15245. finish_cmds \
  15246. sys_lib_search_path_spec \
  15247. sys_lib_dlsearch_path_spec \
  15248. old_archive_cmds_CXX \
  15249. old_archive_from_new_cmds_CXX \
  15250. old_archive_from_expsyms_cmds_CXX \
  15251. archive_cmds_CXX \
  15252. archive_expsym_cmds_CXX \
  15253. module_cmds_CXX \
  15254. module_expsym_cmds_CXX \
  15255. export_symbols_cmds_CXX \
  15256. prelink_cmds_CXX; do
  15257. case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  15258. *[\\\\\\\`\\"\\\$]*)
  15259. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15260. ;;
  15261. *)
  15262. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15263. ;;
  15264. esac
  15265. done
  15266. # Fix-up fallback echo if it was mangled by the above quoting rules.
  15267. case \$lt_ECHO in
  15268. *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  15269. ;;
  15270. esac
  15271. ac_aux_dir='$ac_aux_dir'
  15272. xsi_shell='$xsi_shell'
  15273. lt_shell_append='$lt_shell_append'
  15274. # See if we are running on zsh, and set the options which allow our
  15275. # commands through without removal of \ escapes INIT.
  15276. if test -n "\${ZSH_VERSION+set}" ; then
  15277. setopt NO_GLOB_SUBST
  15278. fi
  15279. PACKAGE='$PACKAGE'
  15280. VERSION='$VERSION'
  15281. TIMESTAMP='$TIMESTAMP'
  15282. RM='$RM'
  15283. ofile='$ofile'
  15284. _ACEOF
  15285. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15286. # Handling of arguments.
  15287. for ac_config_target in $ac_config_targets
  15288. do
  15289. case $ac_config_target in
  15290. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15291. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15292. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15293. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  15294. "client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
  15295. "server/Makefile") CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
  15296. "AI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/Makefile" ;;
  15297. "AI/StupidAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/StupidAI/Makefile" ;;
  15298. "AI/GeniusAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/GeniusAI/Makefile" ;;
  15299. "AI/EmptyAI/Makefile") CONFIG_FILES="$CONFIG_FILES AI/EmptyAI/Makefile" ;;
  15300. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
  15301. esac
  15302. done
  15303. # If the user did not use the arguments to specify the items to instantiate,
  15304. # then the envvar interface is used. Set only those that are not.
  15305. # We use the long form for the default assignment because of an extremely
  15306. # bizarre bug on SunOS 4.1.3.
  15307. if $ac_need_defaults; then
  15308. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15309. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15310. fi
  15311. # Have a temporary directory for convenience. Make it in the build tree
  15312. # simply because there is no reason against having it here, and in addition,
  15313. # creating and moving files from /tmp can sometimes cause problems.
  15314. # Hook for its removal unless debugging.
  15315. # Note that there is a small window in which the directory will not be cleaned:
  15316. # after its creation but before its name has been assigned to `$tmp'.
  15317. $debug ||
  15318. {
  15319. tmp=
  15320. trap 'exit_status=$?
  15321. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  15322. ' 0
  15323. trap 'as_fn_exit 1' 1 2 13 15
  15324. }
  15325. # Create a (secure) tmp directory for tmp files.
  15326. {
  15327. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15328. test -n "$tmp" && test -d "$tmp"
  15329. } ||
  15330. {
  15331. tmp=./conf$$-$RANDOM
  15332. (umask 077 && mkdir "$tmp")
  15333. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15334. # Set up the scripts for CONFIG_FILES section.
  15335. # No need to generate them if there are no CONFIG_FILES.
  15336. # This happens for instance with `./config.status config.h'.
  15337. if test -n "$CONFIG_FILES"; then
  15338. ac_cr=`echo X | tr X '\015'`
  15339. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15340. # But we know of no other shell where ac_cr would be empty at this
  15341. # point, so we can use a bashism as a fallback.
  15342. if test "x$ac_cr" = x; then
  15343. eval ac_cr=\$\'\\r\'
  15344. fi
  15345. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15346. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15347. ac_cs_awk_cr='\\r'
  15348. else
  15349. ac_cs_awk_cr=$ac_cr
  15350. fi
  15351. echo 'BEGIN {' >"$tmp/subs1.awk" &&
  15352. _ACEOF
  15353. {
  15354. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15355. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15356. echo "_ACEOF"
  15357. } >conf$$subs.sh ||
  15358. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15359. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15360. ac_delim='%!_!# '
  15361. for ac_last_try in false false false false false :; do
  15362. . ./conf$$subs.sh ||
  15363. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15364. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15365. if test $ac_delim_n = $ac_delim_num; then
  15366. break
  15367. elif $ac_last_try; then
  15368. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15369. else
  15370. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15371. fi
  15372. done
  15373. rm -f conf$$subs.sh
  15374. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15375. cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  15376. _ACEOF
  15377. sed -n '
  15378. h
  15379. s/^/S["/; s/!.*/"]=/
  15380. p
  15381. g
  15382. s/^[^!]*!//
  15383. :repl
  15384. t repl
  15385. s/'"$ac_delim"'$//
  15386. t delim
  15387. :nl
  15388. h
  15389. s/\(.\{148\}\)..*/\1/
  15390. t more1
  15391. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15392. p
  15393. n
  15394. b repl
  15395. :more1
  15396. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15397. p
  15398. g
  15399. s/.\{148\}//
  15400. t nl
  15401. :delim
  15402. h
  15403. s/\(.\{148\}\)..*/\1/
  15404. t more2
  15405. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15406. p
  15407. b
  15408. :more2
  15409. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15410. p
  15411. g
  15412. s/.\{148\}//
  15413. t delim
  15414. ' <conf$$subs.awk | sed '
  15415. /^[^""]/{
  15416. N
  15417. s/\n//
  15418. }
  15419. ' >>$CONFIG_STATUS || ac_write_fail=1
  15420. rm -f conf$$subs.awk
  15421. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15422. _ACAWK
  15423. cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  15424. for (key in S) S_is_set[key] = 1
  15425. FS = ""
  15426. }
  15427. {
  15428. line = $ 0
  15429. nfields = split(line, field, "@")
  15430. substed = 0
  15431. len = length(field[1])
  15432. for (i = 2; i < nfields; i++) {
  15433. key = field[i]
  15434. keylen = length(key)
  15435. if (S_is_set[key]) {
  15436. value = S[key]
  15437. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15438. len += length(value) + length(field[++i])
  15439. substed = 1
  15440. } else
  15441. len += 1 + keylen
  15442. }
  15443. print line
  15444. }
  15445. _ACAWK
  15446. _ACEOF
  15447. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15448. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15449. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15450. else
  15451. cat
  15452. fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  15453. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15454. _ACEOF
  15455. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15456. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15457. # trailing colons and then remove the whole line if VPATH becomes empty
  15458. # (actually we leave an empty line to preserve line numbers).
  15459. if test "x$srcdir" = x.; then
  15460. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15461. h
  15462. s///
  15463. s/^/:/
  15464. s/[ ]*$/:/
  15465. s/:\$(srcdir):/:/g
  15466. s/:\${srcdir}:/:/g
  15467. s/:@srcdir@:/:/g
  15468. s/^:*//
  15469. s/:*$//
  15470. x
  15471. s/\(=[ ]*\).*/\1/
  15472. G
  15473. s/\n//
  15474. s/^[^=]*=[ ]*$//
  15475. }'
  15476. fi
  15477. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15478. fi # test -n "$CONFIG_FILES"
  15479. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  15480. shift
  15481. for ac_tag
  15482. do
  15483. case $ac_tag in
  15484. :[FHLC]) ac_mode=$ac_tag; continue;;
  15485. esac
  15486. case $ac_mode$ac_tag in
  15487. :[FHL]*:*);;
  15488. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
  15489. :[FH]-) ac_tag=-:-;;
  15490. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15491. esac
  15492. ac_save_IFS=$IFS
  15493. IFS=:
  15494. set x $ac_tag
  15495. IFS=$ac_save_IFS
  15496. shift
  15497. ac_file=$1
  15498. shift
  15499. case $ac_mode in
  15500. :L) ac_source=$1;;
  15501. :[FH])
  15502. ac_file_inputs=
  15503. for ac_f
  15504. do
  15505. case $ac_f in
  15506. -) ac_f="$tmp/stdin";;
  15507. *) # Look for the file first in the build tree, then in the source tree
  15508. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15509. # because $ac_f cannot contain `:'.
  15510. test -f "$ac_f" ||
  15511. case $ac_f in
  15512. [\\/$]*) false;;
  15513. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15514. esac ||
  15515. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
  15516. esac
  15517. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15518. as_fn_append ac_file_inputs " '$ac_f'"
  15519. done
  15520. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15521. # use $as_me), people would be surprised to read:
  15522. # /* config.h. Generated by config.status. */
  15523. configure_input='Generated from '`
  15524. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15525. `' by configure.'
  15526. if test x"$ac_file" != x-; then
  15527. configure_input="$ac_file. $configure_input"
  15528. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15529. $as_echo "$as_me: creating $ac_file" >&6;}
  15530. fi
  15531. # Neutralize special characters interpreted by sed in replacement strings.
  15532. case $configure_input in #(
  15533. *\&* | *\|* | *\\* )
  15534. ac_sed_conf_input=`$as_echo "$configure_input" |
  15535. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15536. *) ac_sed_conf_input=$configure_input;;
  15537. esac
  15538. case $ac_tag in
  15539. *:-:* | *:-) cat >"$tmp/stdin" \
  15540. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15541. esac
  15542. ;;
  15543. esac
  15544. ac_dir=`$as_dirname -- "$ac_file" ||
  15545. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15546. X"$ac_file" : 'X\(//\)[^/]' \| \
  15547. X"$ac_file" : 'X\(//\)$' \| \
  15548. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15549. $as_echo X"$ac_file" |
  15550. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15551. s//\1/
  15552. q
  15553. }
  15554. /^X\(\/\/\)[^/].*/{
  15555. s//\1/
  15556. q
  15557. }
  15558. /^X\(\/\/\)$/{
  15559. s//\1/
  15560. q
  15561. }
  15562. /^X\(\/\).*/{
  15563. s//\1/
  15564. q
  15565. }
  15566. s/.*/./; q'`
  15567. as_dir="$ac_dir"; as_fn_mkdir_p
  15568. ac_builddir=.
  15569. case "$ac_dir" in
  15570. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15571. *)
  15572. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15573. # A ".." for each directory in $ac_dir_suffix.
  15574. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15575. case $ac_top_builddir_sub in
  15576. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15577. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15578. esac ;;
  15579. esac
  15580. ac_abs_top_builddir=$ac_pwd
  15581. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15582. # for backward compatibility:
  15583. ac_top_builddir=$ac_top_build_prefix
  15584. case $srcdir in
  15585. .) # We are building in place.
  15586. ac_srcdir=.
  15587. ac_top_srcdir=$ac_top_builddir_sub
  15588. ac_abs_top_srcdir=$ac_pwd ;;
  15589. [\\/]* | ?:[\\/]* ) # Absolute name.
  15590. ac_srcdir=$srcdir$ac_dir_suffix;
  15591. ac_top_srcdir=$srcdir
  15592. ac_abs_top_srcdir=$srcdir ;;
  15593. *) # Relative name.
  15594. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15595. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15596. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15597. esac
  15598. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15599. case $ac_mode in
  15600. :F)
  15601. #
  15602. # CONFIG_FILE
  15603. #
  15604. case $INSTALL in
  15605. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15606. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15607. esac
  15608. ac_MKDIR_P=$MKDIR_P
  15609. case $MKDIR_P in
  15610. [\\/$]* | ?:[\\/]* ) ;;
  15611. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15612. esac
  15613. _ACEOF
  15614. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15615. # If the template does not know about datarootdir, expand it.
  15616. # FIXME: This hack should be removed a few years after 2.60.
  15617. ac_datarootdir_hack=; ac_datarootdir_seen=
  15618. ac_sed_dataroot='
  15619. /datarootdir/ {
  15620. p
  15621. q
  15622. }
  15623. /@datadir@/p
  15624. /@docdir@/p
  15625. /@infodir@/p
  15626. /@localedir@/p
  15627. /@mandir@/p'
  15628. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15629. *datarootdir*) ac_datarootdir_seen=yes;;
  15630. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15631. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15632. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15633. _ACEOF
  15634. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15635. ac_datarootdir_hack='
  15636. s&@datadir@&$datadir&g
  15637. s&@docdir@&$docdir&g
  15638. s&@infodir@&$infodir&g
  15639. s&@localedir@&$localedir&g
  15640. s&@mandir@&$mandir&g
  15641. s&\\\${datarootdir}&$datarootdir&g' ;;
  15642. esac
  15643. _ACEOF
  15644. # Neutralize VPATH when `$srcdir' = `.'.
  15645. # Shell code in configure.ac might set extrasub.
  15646. # FIXME: do we really want to maintain this feature?
  15647. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15648. ac_sed_extra="$ac_vpsub
  15649. $extrasub
  15650. _ACEOF
  15651. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15652. :t
  15653. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15654. s|@configure_input@|$ac_sed_conf_input|;t t
  15655. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15656. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15657. s&@srcdir@&$ac_srcdir&;t t
  15658. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15659. s&@top_srcdir@&$ac_top_srcdir&;t t
  15660. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15661. s&@builddir@&$ac_builddir&;t t
  15662. s&@abs_builddir@&$ac_abs_builddir&;t t
  15663. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15664. s&@INSTALL@&$ac_INSTALL&;t t
  15665. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15666. $ac_datarootdir_hack
  15667. "
  15668. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  15669. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15670. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15671. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  15672. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  15673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15674. which seems to be undefined. Please make sure it is defined" >&5
  15675. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15676. which seems to be undefined. Please make sure it is defined" >&2;}
  15677. rm -f "$tmp/stdin"
  15678. case $ac_file in
  15679. -) cat "$tmp/out" && rm -f "$tmp/out";;
  15680. *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  15681. esac \
  15682. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15683. ;;
  15684. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15685. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15686. ;;
  15687. esac
  15688. case $ac_file$ac_mode in
  15689. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  15690. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  15691. # are listed without --file. Let's play safe and only enable the eval
  15692. # if we detect the quoting.
  15693. case $CONFIG_FILES in
  15694. *\'*) eval set x "$CONFIG_FILES" ;;
  15695. *) set x $CONFIG_FILES ;;
  15696. esac
  15697. shift
  15698. for mf
  15699. do
  15700. # Strip MF so we end up with the name of the file.
  15701. mf=`echo "$mf" | sed -e 's/:.*$//'`
  15702. # Check whether this is an Automake generated Makefile or not.
  15703. # We used to match only the files named `Makefile.in', but
  15704. # some people rename them; so instead we look at the file content.
  15705. # Grep'ing the first line is not enough: some people post-process
  15706. # each Makefile.in and add a new line on top of each file to say so.
  15707. # Grep'ing the whole file is not good either: AIX grep has a line
  15708. # limit of 2048, but all sed's we know have understand at least 4000.
  15709. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  15710. dirpart=`$as_dirname -- "$mf" ||
  15711. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15712. X"$mf" : 'X\(//\)[^/]' \| \
  15713. X"$mf" : 'X\(//\)$' \| \
  15714. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  15715. $as_echo X"$mf" |
  15716. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15717. s//\1/
  15718. q
  15719. }
  15720. /^X\(\/\/\)[^/].*/{
  15721. s//\1/
  15722. q
  15723. }
  15724. /^X\(\/\/\)$/{
  15725. s//\1/
  15726. q
  15727. }
  15728. /^X\(\/\).*/{
  15729. s//\1/
  15730. q
  15731. }
  15732. s/.*/./; q'`
  15733. else
  15734. continue
  15735. fi
  15736. # Extract the definition of DEPDIR, am__include, and am__quote
  15737. # from the Makefile without running `make'.
  15738. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  15739. test -z "$DEPDIR" && continue
  15740. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  15741. test -z "am__include" && continue
  15742. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  15743. # When using ansi2knr, U may be empty or an underscore; expand it
  15744. U=`sed -n 's/^U = //p' < "$mf"`
  15745. # Find all dependency output files, they are included files with
  15746. # $(DEPDIR) in their names. We invoke sed twice because it is the
  15747. # simplest approach to changing $(DEPDIR) to its actual value in the
  15748. # expansion.
  15749. for file in `sed -n "
  15750. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  15751. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  15752. # Make sure the directory exists.
  15753. test -f "$dirpart/$file" && continue
  15754. fdir=`$as_dirname -- "$file" ||
  15755. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15756. X"$file" : 'X\(//\)[^/]' \| \
  15757. X"$file" : 'X\(//\)$' \| \
  15758. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  15759. $as_echo X"$file" |
  15760. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15761. s//\1/
  15762. q
  15763. }
  15764. /^X\(\/\/\)[^/].*/{
  15765. s//\1/
  15766. q
  15767. }
  15768. /^X\(\/\/\)$/{
  15769. s//\1/
  15770. q
  15771. }
  15772. /^X\(\/\).*/{
  15773. s//\1/
  15774. q
  15775. }
  15776. s/.*/./; q'`
  15777. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  15778. # echo "creating $dirpart/$file"
  15779. echo '# dummy' > "$dirpart/$file"
  15780. done
  15781. done
  15782. }
  15783. ;;
  15784. "libtool":C)
  15785. # See if we are running on zsh, and set the options which allow our
  15786. # commands through without removal of \ escapes.
  15787. if test -n "${ZSH_VERSION+set}" ; then
  15788. setopt NO_GLOB_SUBST
  15789. fi
  15790. cfgfile="${ofile}T"
  15791. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15792. $RM "$cfgfile"
  15793. cat <<_LT_EOF >> "$cfgfile"
  15794. #! $SHELL
  15795. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15796. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15797. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15798. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15799. #
  15800. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15801. # 2006, 2007, 2008 Free Software Foundation, Inc.
  15802. # Written by Gordon Matzigkeit, 1996
  15803. #
  15804. # This file is part of GNU Libtool.
  15805. #
  15806. # GNU Libtool is free software; you can redistribute it and/or
  15807. # modify it under the terms of the GNU General Public License as
  15808. # published by the Free Software Foundation; either version 2 of
  15809. # the License, or (at your option) any later version.
  15810. #
  15811. # As a special exception to the GNU General Public License,
  15812. # if you distribute this file as part of a program or library that
  15813. # is built using GNU Libtool, you may include this file under the
  15814. # same distribution terms that you use for the rest of that program.
  15815. #
  15816. # GNU Libtool is distributed in the hope that it will be useful,
  15817. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15818. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15819. # GNU General Public License for more details.
  15820. #
  15821. # You should have received a copy of the GNU General Public License
  15822. # along with GNU Libtool; see the file COPYING. If not, a copy
  15823. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15824. # obtained by writing to the Free Software Foundation, Inc.,
  15825. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15826. # The names of the tagged configurations supported by this script.
  15827. available_tags="CXX "
  15828. # ### BEGIN LIBTOOL CONFIG
  15829. # Whether or not to build shared libraries.
  15830. build_libtool_libs=$enable_shared
  15831. # Whether or not to build static libraries.
  15832. build_old_libs=$enable_static
  15833. # Which release of libtool.m4 was used?
  15834. macro_version=$macro_version
  15835. macro_revision=$macro_revision
  15836. # What type of objects to build.
  15837. pic_mode=$pic_mode
  15838. # Whether or not to optimize for fast installation.
  15839. fast_install=$enable_fast_install
  15840. # The host system.
  15841. host_alias=$host_alias
  15842. host=$host
  15843. host_os=$host_os
  15844. # The build system.
  15845. build_alias=$build_alias
  15846. build=$build
  15847. build_os=$build_os
  15848. # A sed program that does not truncate output.
  15849. SED=$lt_SED
  15850. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15851. Xsed="\$SED -e 1s/^X//"
  15852. # A grep program that handles long lines.
  15853. GREP=$lt_GREP
  15854. # An ERE matcher.
  15855. EGREP=$lt_EGREP
  15856. # A literal string matcher.
  15857. FGREP=$lt_FGREP
  15858. # A BSD- or MS-compatible name lister.
  15859. NM=$lt_NM
  15860. # Whether we need soft or hard links.
  15861. LN_S=$lt_LN_S
  15862. # What is the maximum length of a command?
  15863. max_cmd_len=$max_cmd_len
  15864. # Object file suffix (normally "o").
  15865. objext=$ac_objext
  15866. # Executable file suffix (normally "").
  15867. exeext=$exeext
  15868. # whether the shell understands "unset".
  15869. lt_unset=$lt_unset
  15870. # turn spaces into newlines.
  15871. SP2NL=$lt_lt_SP2NL
  15872. # turn newlines into spaces.
  15873. NL2SP=$lt_lt_NL2SP
  15874. # How to create reloadable object files.
  15875. reload_flag=$lt_reload_flag
  15876. reload_cmds=$lt_reload_cmds
  15877. # An object symbol dumper.
  15878. OBJDUMP=$lt_OBJDUMP
  15879. # Method to check whether dependent libraries are shared objects.
  15880. deplibs_check_method=$lt_deplibs_check_method
  15881. # Command to use when deplibs_check_method == "file_magic".
  15882. file_magic_cmd=$lt_file_magic_cmd
  15883. # The archiver.
  15884. AR=$lt_AR
  15885. AR_FLAGS=$lt_AR_FLAGS
  15886. # A symbol stripping program.
  15887. STRIP=$lt_STRIP
  15888. # Commands used to install an old-style archive.
  15889. RANLIB=$lt_RANLIB
  15890. old_postinstall_cmds=$lt_old_postinstall_cmds
  15891. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  15892. # A C compiler.
  15893. LTCC=$lt_CC
  15894. # LTCC compiler flags.
  15895. LTCFLAGS=$lt_CFLAGS
  15896. # Take the output of nm and produce a listing of raw symbols and C names.
  15897. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  15898. # Transform the output of nm in a proper C declaration.
  15899. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  15900. # Transform the output of nm in a C name address pair.
  15901. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  15902. # Transform the output of nm in a C name address pair when lib prefix is needed.
  15903. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  15904. # The name of the directory that contains temporary libtool files.
  15905. objdir=$objdir
  15906. # Shell to use when invoking shell scripts.
  15907. SHELL=$lt_SHELL
  15908. # An echo program that does not interpret backslashes.
  15909. ECHO=$lt_ECHO
  15910. # Used to examine libraries when file_magic_cmd begins with "file".
  15911. MAGIC_CMD=$MAGIC_CMD
  15912. # Must we lock files when doing compilation?
  15913. need_locks=$lt_need_locks
  15914. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  15915. DSYMUTIL=$lt_DSYMUTIL
  15916. # Tool to change global to local symbols on Mac OS X.
  15917. NMEDIT=$lt_NMEDIT
  15918. # Tool to manipulate fat objects and archives on Mac OS X.
  15919. LIPO=$lt_LIPO
  15920. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  15921. OTOOL=$lt_OTOOL
  15922. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  15923. OTOOL64=$lt_OTOOL64
  15924. # Old archive suffix (normally "a").
  15925. libext=$libext
  15926. # Shared library suffix (normally ".so").
  15927. shrext_cmds=$lt_shrext_cmds
  15928. # The commands to extract the exported symbol list from a shared archive.
  15929. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  15930. # Variables whose values should be saved in libtool wrapper scripts and
  15931. # restored at link time.
  15932. variables_saved_for_relink=$lt_variables_saved_for_relink
  15933. # Do we need the "lib" prefix for modules?
  15934. need_lib_prefix=$need_lib_prefix
  15935. # Do we need a version for libraries?
  15936. need_version=$need_version
  15937. # Library versioning type.
  15938. version_type=$version_type
  15939. # Shared library runtime path variable.
  15940. runpath_var=$runpath_var
  15941. # Shared library path variable.
  15942. shlibpath_var=$shlibpath_var
  15943. # Is shlibpath searched before the hard-coded library search path?
  15944. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  15945. # Format of library name prefix.
  15946. libname_spec=$lt_libname_spec
  15947. # List of archive names. First name is the real one, the rest are links.
  15948. # The last name is the one that the linker finds with -lNAME
  15949. library_names_spec=$lt_library_names_spec
  15950. # The coded name of the library, if different from the real name.
  15951. soname_spec=$lt_soname_spec
  15952. # Command to use after installation of a shared archive.
  15953. postinstall_cmds=$lt_postinstall_cmds
  15954. # Command to use after uninstallation of a shared archive.
  15955. postuninstall_cmds=$lt_postuninstall_cmds
  15956. # Commands used to finish a libtool library installation in a directory.
  15957. finish_cmds=$lt_finish_cmds
  15958. # As "finish_cmds", except a single script fragment to be evaled but
  15959. # not shown.
  15960. finish_eval=$lt_finish_eval
  15961. # Whether we should hardcode library paths into libraries.
  15962. hardcode_into_libs=$hardcode_into_libs
  15963. # Compile-time system search path for libraries.
  15964. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  15965. # Run-time system search path for libraries.
  15966. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  15967. # Whether dlopen is supported.
  15968. dlopen_support=$enable_dlopen
  15969. # Whether dlopen of programs is supported.
  15970. dlopen_self=$enable_dlopen_self
  15971. # Whether dlopen of statically linked programs is supported.
  15972. dlopen_self_static=$enable_dlopen_self_static
  15973. # Commands to strip libraries.
  15974. old_striplib=$lt_old_striplib
  15975. striplib=$lt_striplib
  15976. # The linker used to build libraries.
  15977. LD=$lt_LD
  15978. # Commands used to build an old-style archive.
  15979. old_archive_cmds=$lt_old_archive_cmds
  15980. # A language specific compiler.
  15981. CC=$lt_compiler
  15982. # Is the compiler the GNU compiler?
  15983. with_gcc=$GCC
  15984. # Compiler flag to turn off builtin functions.
  15985. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  15986. # How to pass a linker flag through the compiler.
  15987. wl=$lt_lt_prog_compiler_wl
  15988. # Additional compiler flags for building library objects.
  15989. pic_flag=$lt_lt_prog_compiler_pic
  15990. # Compiler flag to prevent dynamic linking.
  15991. link_static_flag=$lt_lt_prog_compiler_static
  15992. # Does compiler simultaneously support -c and -o options?
  15993. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  15994. # Whether or not to add -lc for building shared libraries.
  15995. build_libtool_need_lc=$archive_cmds_need_lc
  15996. # Whether or not to disallow shared libs when runtime libs are static.
  15997. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  15998. # Compiler flag to allow reflexive dlopens.
  15999. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16000. # Compiler flag to generate shared objects directly from archives.
  16001. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16002. # Whether the compiler copes with passing no objects directly.
  16003. compiler_needs_object=$lt_compiler_needs_object
  16004. # Create an old-style archive from a shared archive.
  16005. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16006. # Create a temporary old-style archive to link instead of a shared archive.
  16007. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16008. # Commands used to build a shared archive.
  16009. archive_cmds=$lt_archive_cmds
  16010. archive_expsym_cmds=$lt_archive_expsym_cmds
  16011. # Commands used to build a loadable module if different from building
  16012. # a shared archive.
  16013. module_cmds=$lt_module_cmds
  16014. module_expsym_cmds=$lt_module_expsym_cmds
  16015. # Whether we are building with GNU ld or not.
  16016. with_gnu_ld=$lt_with_gnu_ld
  16017. # Flag that allows shared libraries with undefined symbols to be built.
  16018. allow_undefined_flag=$lt_allow_undefined_flag
  16019. # Flag that enforces no undefined symbols.
  16020. no_undefined_flag=$lt_no_undefined_flag
  16021. # Flag to hardcode \$libdir into a binary during linking.
  16022. # This must work even if \$libdir does not exist
  16023. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16024. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16025. # during linking. This must work even if \$libdir does not exist.
  16026. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  16027. # Whether we need a single "-rpath" flag with a separated argument.
  16028. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16029. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16030. # DIR into the resulting binary.
  16031. hardcode_direct=$hardcode_direct
  16032. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16033. # DIR into the resulting binary and the resulting library dependency is
  16034. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16035. # library is relocated.
  16036. hardcode_direct_absolute=$hardcode_direct_absolute
  16037. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16038. # into the resulting binary.
  16039. hardcode_minus_L=$hardcode_minus_L
  16040. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16041. # into the resulting binary.
  16042. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16043. # Set to "yes" if building a shared library automatically hardcodes DIR
  16044. # into the library and all subsequent libraries and executables linked
  16045. # against it.
  16046. hardcode_automatic=$hardcode_automatic
  16047. # Set to yes if linker adds runtime paths of dependent libraries
  16048. # to runtime path list.
  16049. inherit_rpath=$inherit_rpath
  16050. # Whether libtool must link a program against all its dependency libraries.
  16051. link_all_deplibs=$link_all_deplibs
  16052. # Fix the shell variable \$srcfile for the compiler.
  16053. fix_srcfile_path=$lt_fix_srcfile_path
  16054. # Set to "yes" if exported symbols are required.
  16055. always_export_symbols=$always_export_symbols
  16056. # The commands to list exported symbols.
  16057. export_symbols_cmds=$lt_export_symbols_cmds
  16058. # Symbols that should not be listed in the preloaded symbols.
  16059. exclude_expsyms=$lt_exclude_expsyms
  16060. # Symbols that must always be exported.
  16061. include_expsyms=$lt_include_expsyms
  16062. # Commands necessary for linking programs (against libraries) with templates.
  16063. prelink_cmds=$lt_prelink_cmds
  16064. # Specify filename containing input files.
  16065. file_list_spec=$lt_file_list_spec
  16066. # How to hardcode a shared library path into an executable.
  16067. hardcode_action=$hardcode_action
  16068. # The directories searched by this compiler when creating a shared library.
  16069. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16070. # Dependencies to place before and after the objects being linked to
  16071. # create a shared library.
  16072. predep_objects=$lt_predep_objects
  16073. postdep_objects=$lt_postdep_objects
  16074. predeps=$lt_predeps
  16075. postdeps=$lt_postdeps
  16076. # The library search path used internally by the compiler when linking
  16077. # a shared library.
  16078. compiler_lib_search_path=$lt_compiler_lib_search_path
  16079. # ### END LIBTOOL CONFIG
  16080. _LT_EOF
  16081. case $host_os in
  16082. aix3*)
  16083. cat <<\_LT_EOF >> "$cfgfile"
  16084. # AIX sometimes has problems with the GCC collect2 program. For some
  16085. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16086. # vanish in a puff of smoke.
  16087. if test "X${COLLECT_NAMES+set}" != Xset; then
  16088. COLLECT_NAMES=
  16089. export COLLECT_NAMES
  16090. fi
  16091. _LT_EOF
  16092. ;;
  16093. esac
  16094. ltmain="$ac_aux_dir/ltmain.sh"
  16095. # We use sed instead of cat because bash on DJGPP gets confused if
  16096. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16097. # text mode, it properly converts lines to CR/LF. This bash problem
  16098. # is reportedly fixed, but why not run on old versions too?
  16099. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  16100. || (rm -f "$cfgfile"; exit 1)
  16101. case $xsi_shell in
  16102. yes)
  16103. cat << \_LT_EOF >> "$cfgfile"
  16104. # func_dirname file append nondir_replacement
  16105. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16106. # otherwise set result to NONDIR_REPLACEMENT.
  16107. func_dirname ()
  16108. {
  16109. case ${1} in
  16110. */*) func_dirname_result="${1%/*}${2}" ;;
  16111. * ) func_dirname_result="${3}" ;;
  16112. esac
  16113. }
  16114. # func_basename file
  16115. func_basename ()
  16116. {
  16117. func_basename_result="${1##*/}"
  16118. }
  16119. # func_dirname_and_basename file append nondir_replacement
  16120. # perform func_basename and func_dirname in a single function
  16121. # call:
  16122. # dirname: Compute the dirname of FILE. If nonempty,
  16123. # add APPEND to the result, otherwise set result
  16124. # to NONDIR_REPLACEMENT.
  16125. # value returned in "$func_dirname_result"
  16126. # basename: Compute filename of FILE.
  16127. # value retuned in "$func_basename_result"
  16128. # Implementation must be kept synchronized with func_dirname
  16129. # and func_basename. For efficiency, we do not delegate to
  16130. # those functions but instead duplicate the functionality here.
  16131. func_dirname_and_basename ()
  16132. {
  16133. case ${1} in
  16134. */*) func_dirname_result="${1%/*}${2}" ;;
  16135. * ) func_dirname_result="${3}" ;;
  16136. esac
  16137. func_basename_result="${1##*/}"
  16138. }
  16139. # func_stripname prefix suffix name
  16140. # strip PREFIX and SUFFIX off of NAME.
  16141. # PREFIX and SUFFIX must not contain globbing or regex special
  16142. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16143. # dot (in which case that matches only a dot).
  16144. func_stripname ()
  16145. {
  16146. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  16147. # positional parameters, so assign one to ordinary parameter first.
  16148. func_stripname_result=${3}
  16149. func_stripname_result=${func_stripname_result#"${1}"}
  16150. func_stripname_result=${func_stripname_result%"${2}"}
  16151. }
  16152. # func_opt_split
  16153. func_opt_split ()
  16154. {
  16155. func_opt_split_opt=${1%%=*}
  16156. func_opt_split_arg=${1#*=}
  16157. }
  16158. # func_lo2o object
  16159. func_lo2o ()
  16160. {
  16161. case ${1} in
  16162. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  16163. *) func_lo2o_result=${1} ;;
  16164. esac
  16165. }
  16166. # func_xform libobj-or-source
  16167. func_xform ()
  16168. {
  16169. func_xform_result=${1%.*}.lo
  16170. }
  16171. # func_arith arithmetic-term...
  16172. func_arith ()
  16173. {
  16174. func_arith_result=$(( $* ))
  16175. }
  16176. # func_len string
  16177. # STRING may not start with a hyphen.
  16178. func_len ()
  16179. {
  16180. func_len_result=${#1}
  16181. }
  16182. _LT_EOF
  16183. ;;
  16184. *) # Bourne compatible functions.
  16185. cat << \_LT_EOF >> "$cfgfile"
  16186. # func_dirname file append nondir_replacement
  16187. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  16188. # otherwise set result to NONDIR_REPLACEMENT.
  16189. func_dirname ()
  16190. {
  16191. # Extract subdirectory from the argument.
  16192. func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  16193. if test "X$func_dirname_result" = "X${1}"; then
  16194. func_dirname_result="${3}"
  16195. else
  16196. func_dirname_result="$func_dirname_result${2}"
  16197. fi
  16198. }
  16199. # func_basename file
  16200. func_basename ()
  16201. {
  16202. func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  16203. }
  16204. # func_stripname prefix suffix name
  16205. # strip PREFIX and SUFFIX off of NAME.
  16206. # PREFIX and SUFFIX must not contain globbing or regex special
  16207. # characters, hashes, percent signs, but SUFFIX may contain a leading
  16208. # dot (in which case that matches only a dot).
  16209. # func_strip_suffix prefix name
  16210. func_stripname ()
  16211. {
  16212. case ${2} in
  16213. .*) func_stripname_result=`$ECHO "X${3}" \
  16214. | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  16215. *) func_stripname_result=`$ECHO "X${3}" \
  16216. | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  16217. esac
  16218. }
  16219. # sed scripts:
  16220. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  16221. my_sed_long_arg='1s/^-[^=]*=//'
  16222. # func_opt_split
  16223. func_opt_split ()
  16224. {
  16225. func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  16226. func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  16227. }
  16228. # func_lo2o object
  16229. func_lo2o ()
  16230. {
  16231. func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  16232. }
  16233. # func_xform libobj-or-source
  16234. func_xform ()
  16235. {
  16236. func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  16237. }
  16238. # func_arith arithmetic-term...
  16239. func_arith ()
  16240. {
  16241. func_arith_result=`expr "$@"`
  16242. }
  16243. # func_len string
  16244. # STRING may not start with a hyphen.
  16245. func_len ()
  16246. {
  16247. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  16248. }
  16249. _LT_EOF
  16250. esac
  16251. case $lt_shell_append in
  16252. yes)
  16253. cat << \_LT_EOF >> "$cfgfile"
  16254. # func_append var value
  16255. # Append VALUE to the end of shell variable VAR.
  16256. func_append ()
  16257. {
  16258. eval "$1+=\$2"
  16259. }
  16260. _LT_EOF
  16261. ;;
  16262. *)
  16263. cat << \_LT_EOF >> "$cfgfile"
  16264. # func_append var value
  16265. # Append VALUE to the end of shell variable VAR.
  16266. func_append ()
  16267. {
  16268. eval "$1=\$$1\$2"
  16269. }
  16270. _LT_EOF
  16271. ;;
  16272. esac
  16273. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  16274. || (rm -f "$cfgfile"; exit 1)
  16275. mv -f "$cfgfile" "$ofile" ||
  16276. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16277. chmod +x "$ofile"
  16278. cat <<_LT_EOF >> "$ofile"
  16279. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16280. # The linker used to build libraries.
  16281. LD=$lt_LD_CXX
  16282. # Commands used to build an old-style archive.
  16283. old_archive_cmds=$lt_old_archive_cmds_CXX
  16284. # A language specific compiler.
  16285. CC=$lt_compiler_CXX
  16286. # Is the compiler the GNU compiler?
  16287. with_gcc=$GCC_CXX
  16288. # Compiler flag to turn off builtin functions.
  16289. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16290. # How to pass a linker flag through the compiler.
  16291. wl=$lt_lt_prog_compiler_wl_CXX
  16292. # Additional compiler flags for building library objects.
  16293. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16294. # Compiler flag to prevent dynamic linking.
  16295. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16296. # Does compiler simultaneously support -c and -o options?
  16297. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16298. # Whether or not to add -lc for building shared libraries.
  16299. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16300. # Whether or not to disallow shared libs when runtime libs are static.
  16301. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16302. # Compiler flag to allow reflexive dlopens.
  16303. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16304. # Compiler flag to generate shared objects directly from archives.
  16305. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16306. # Whether the compiler copes with passing no objects directly.
  16307. compiler_needs_object=$lt_compiler_needs_object_CXX
  16308. # Create an old-style archive from a shared archive.
  16309. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16310. # Create a temporary old-style archive to link instead of a shared archive.
  16311. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16312. # Commands used to build a shared archive.
  16313. archive_cmds=$lt_archive_cmds_CXX
  16314. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16315. # Commands used to build a loadable module if different from building
  16316. # a shared archive.
  16317. module_cmds=$lt_module_cmds_CXX
  16318. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16319. # Whether we are building with GNU ld or not.
  16320. with_gnu_ld=$lt_with_gnu_ld_CXX
  16321. # Flag that allows shared libraries with undefined symbols to be built.
  16322. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16323. # Flag that enforces no undefined symbols.
  16324. no_undefined_flag=$lt_no_undefined_flag_CXX
  16325. # Flag to hardcode \$libdir into a binary during linking.
  16326. # This must work even if \$libdir does not exist
  16327. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16328. # If ld is used when linking, flag to hardcode \$libdir into a binary
  16329. # during linking. This must work even if \$libdir does not exist.
  16330. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  16331. # Whether we need a single "-rpath" flag with a separated argument.
  16332. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16333. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16334. # DIR into the resulting binary.
  16335. hardcode_direct=$hardcode_direct_CXX
  16336. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16337. # DIR into the resulting binary and the resulting library dependency is
  16338. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16339. # library is relocated.
  16340. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16341. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16342. # into the resulting binary.
  16343. hardcode_minus_L=$hardcode_minus_L_CXX
  16344. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16345. # into the resulting binary.
  16346. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16347. # Set to "yes" if building a shared library automatically hardcodes DIR
  16348. # into the library and all subsequent libraries and executables linked
  16349. # against it.
  16350. hardcode_automatic=$hardcode_automatic_CXX
  16351. # Set to yes if linker adds runtime paths of dependent libraries
  16352. # to runtime path list.
  16353. inherit_rpath=$inherit_rpath_CXX
  16354. # Whether libtool must link a program against all its dependency libraries.
  16355. link_all_deplibs=$link_all_deplibs_CXX
  16356. # Fix the shell variable \$srcfile for the compiler.
  16357. fix_srcfile_path=$lt_fix_srcfile_path_CXX
  16358. # Set to "yes" if exported symbols are required.
  16359. always_export_symbols=$always_export_symbols_CXX
  16360. # The commands to list exported symbols.
  16361. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16362. # Symbols that should not be listed in the preloaded symbols.
  16363. exclude_expsyms=$lt_exclude_expsyms_CXX
  16364. # Symbols that must always be exported.
  16365. include_expsyms=$lt_include_expsyms_CXX
  16366. # Commands necessary for linking programs (against libraries) with templates.
  16367. prelink_cmds=$lt_prelink_cmds_CXX
  16368. # Specify filename containing input files.
  16369. file_list_spec=$lt_file_list_spec_CXX
  16370. # How to hardcode a shared library path into an executable.
  16371. hardcode_action=$hardcode_action_CXX
  16372. # The directories searched by this compiler when creating a shared library.
  16373. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16374. # Dependencies to place before and after the objects being linked to
  16375. # create a shared library.
  16376. predep_objects=$lt_predep_objects_CXX
  16377. postdep_objects=$lt_postdep_objects_CXX
  16378. predeps=$lt_predeps_CXX
  16379. postdeps=$lt_postdeps_CXX
  16380. # The library search path used internally by the compiler when linking
  16381. # a shared library.
  16382. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16383. # ### END LIBTOOL TAG CONFIG: CXX
  16384. _LT_EOF
  16385. ;;
  16386. esac
  16387. done # for ac_tag
  16388. as_fn_exit 0
  16389. _ACEOF
  16390. ac_clean_files=$ac_clean_files_save
  16391. test $ac_write_fail = 0 ||
  16392. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16393. # configure is writing to config.log, and then calls config.status.
  16394. # config.status does its own redirection, appending to config.log.
  16395. # Unfortunately, on DOS this fails, as config.log is still kept open
  16396. # by configure, so config.status won't be able to write to it; its
  16397. # output is simply discarded. So we exec the FD to /dev/null,
  16398. # effectively closing config.log, so it can be properly (re)opened and
  16399. # appended to by config.status. When coming back to configure, we
  16400. # need to make the FD available again.
  16401. if test "$no_create" != yes; then
  16402. ac_cs_success=:
  16403. ac_config_status_args=
  16404. test "$silent" = yes &&
  16405. ac_config_status_args="$ac_config_status_args --quiet"
  16406. exec 5>/dev/null
  16407. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16408. exec 5>>config.log
  16409. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16410. # would make configure fail if this is the last instruction.
  16411. $ac_cs_success || as_fn_exit 1
  16412. fi
  16413. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16414. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16415. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16416. fi